atexit-tests: ensure reliable exit status
[gnulib.git] / ChangeLog
1 2011-05-24  Eric Blake  <eblake@redhat.com>
2
3         atexit-tests: ensure reliable exit status
4         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
5         Reported by Bruno Haible.
6
7 2011-05-24  Bruno Haible  <bruno@clisp.org>
8
9         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11         gl_PREREQ_STRERROR_R invocations from here...
12         * modules/strerror_r-posix (configure.ac): ... to here.
13
14 2011-05-24  Eric Blake  <eblake@redhat.com>
15
16         strerror_r: fix missing header
17         * lib/strerror_r.c: Avoid compiler warning about snprintf.
18
19         strerror_r: fix AIX test failures
20         * lib/strerror_r.c (strerror_r): Convert silent truncation to
21         ERANGE failure.
22
23         strerror_r: fix Solaris test failures
24         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
25         failures.
26         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
27
28         strerror_r: enforce POSIX recommendations
29         * lib/strerror_r.c (safe_copy): New helper method.
30         (strerror_r): Guarantee a non-empty string.
31         * tests/test-strerror_r.c (main): Enhance tests to incorporate
32         recent POSIX rulings and to match our strerror guarantees.
33         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
34
35 2011-05-24  Jim Meyering  <meyering@redhat.com>
36
37         test-perror2.c: avoid warning about unused variable
38         * tests/test-perror2.c (main): Remove declaration of unused "fp".
39
40 2011-05-24  Eric Blake  <eblake@redhat.com>
41
42         perror: avoid spurious test failure on HP-UX
43         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
44
45         tests: fix logic bug in init.sh
46         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
47         shell.
48
49 2011-05-24  Jim Meyering  <meyering@redhat.com>
50
51         utimensat: do not reference an out-of-scope buffer
52         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
53         declared in an inner scope, yet "times" would be dereferenced outside
54         the scope in which "ts" was valid.
55         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
56         of ts[2] "out/up", so that the use of aliased "times" (via
57         "times = ts;") does not end up referencing an out-of-scope "ts"
58
59         opendir-safer.c: don't clobber errno; don't close negative FD
60         * lib/opendir-safer.c (opendir_safer):
61         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
62         file descriptor, and more importantly, don't clobber the
63         offending errno value with EINVAL.  Before, upon failure
64         of dup_safer, we would pass the negative file descriptor to
65         fdopendir, which would clobber errno.
66
67 2011-05-23  Bruno Haible  <bruno@clisp.org>
68
69         idcache: Fix module description.
70         * modules/idcache (Include): Set to "idcache.h".
71
72 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
73
74         gnulib-tool: fix portability problem with MacOS sed
75         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
76         before the "}".  Problem reported by Leo in
77         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
78         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
79         sed_extract_condition1, sed_extract_condition2.
80
81 2011-05-23  Bruno Haible  <bruno@clisp.org>
82
83         hash: Simplify autoconf macro.
84         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
85
86 2011-05-23  Bruno Haible  <bruno@clisp.org>
87
88         getugroups: Fix module description.
89         * modules/getugroups (Include): Set to "getugroups.h".
90
91 2011-05-23  Bruno Haible  <bruno@clisp.org>
92
93         linkat: Simplify autoconf macro.
94         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
95
96 2011-05-23  Bruno Haible  <bruno@clisp.org>
97             Eric Blake  <eblake@redhat.com>
98
99         linkat, renameat: Update dependencies.
100         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
101         * modules/linkat (Depends-on): Likewise. Remove also readlink,
102         symlinkat.
103
104 2011-05-23  Jim Meyering  <meyering@redhat.com>
105
106         maint.mk: more tight_scope improvements
107         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
108         (_gl_TS_headers): Define only in if-0'd block.
109         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
110         sometimes we must *not* use it.  Adjust uses accordingly.
111         (sc_tight_scope): Use much simpler grep-based test to determine
112         whether we skip this rule.
113
114         maint.mk: generalize/improve the tight-scope rule
115         * top/maint.mk: Emit a warning when the test is skipped.
116         (_gl_TS_dir): Add $(srcdir)/ prefix.
117         (_gl_TS_function_match): Simplify, rather than trying
118         to enumerate common types.  Otherwise, it would fail to match an
119         "extern unsigned char const *" declaration in idutils.
120         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
121         a way to support use of that type of macro.
122         (_gl_TS_var_match): Simplify regexp.
123         (_gl_TS_obj_files): New configurable variable.
124         (_gl_TS_headers): Likewise.
125
126 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
127
128         verify: fix bug when gnulib <assert.h> is also included
129         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
130         is defined, not if _GL_STATIC_ASSERT_H is not defined.
131         Perhaps there's a better way, but this fixes the immediate problem.
132         Problem reported by Bruno Haible in
133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
134
135 2011-05-22  Bruno Haible  <bruno@clisp.org>
136
137         xgetcwd: Simplify autoconf macro.
138         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
139
140 2011-05-22  Bruno Haible  <bruno@clisp.org>
141
142         New module 'mktime-internal'.
143         * modules/mktime-internal: New file.
144         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
145         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
146         mktime_internal as a C macro if libc has __mktime_internal.
147         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
148         conditions.
149         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
150
151 2011-05-22  Bruno Haible  <bruno@clisp.org>
152
153         timegm: Correct mktime replacement statements.
154         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
155         defining mktime as a C macro. This completes a 2009-07-28 commit.
156
157 2011-05-22  Bruno Haible  <bruno@clisp.org>
158
159         timegm: Simplify autoconf macro.
160         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
161
162 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
163
164         clock-time: change to LGPLv2+.
165         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
166         BSD-like but we have no mark for that; this is good enough for now.
167
168 2011-05-21  Bruno Haible  <bruno@clisp.org>
169
170         strerror_r: Fix comments.
171         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
172
173 2011-05-21  Bruno Haible  <bruno@clisp.org>
174
175         relocatable-prog-wrapper: Fix possible link error.
176         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
177         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
178         (gl_FUNC_SETENV): ... to here.
179         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
180         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
181
182 2011-05-21  Bruno Haible  <bruno@clisp.org>
183
184         relocatable-prog-wrapper: Assume strerror() exists.
185         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
186         m4/strerror.m4.
187         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
188         * lib/relocwrapper.c: Remove mention of strerror module.
189         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
190         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
191         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
192         C macro.
193
194 2011-05-21  Bruno Haible  <bruno@clisp.org>
195
196         select: Simplify replacement idiom.
197         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
198         Win32 platforms.
199         * lib/sys_select.in.h (select): Simplify accordingly.
200         * modules/select (Depends-on): Likewise.
201
202 2011-05-21  Bruno Haible  <bruno@clisp.org>
203
204         mkdir-p: Simplify autoconf macro.
205         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
206         gl_FUNC_LCHOWN.
207
208 2011-05-21  Eric Blake  <eblake@redhat.com>
209
210         strerror_r: avoid clobbering strerror on cygwin
211         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
212         fall back instead to sys_errlist.
213         * modules/strerror (configure.ac): Add witness.
214         * tests/test-strerror_r.c (main): Enhance test.
215         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
216         * tests/test-perror2.c (main): Free memory before exit.
217
218 2011-05-21  Bruno Haible  <bruno@clisp.org>
219
220         mkdtemp: Use gnulib naming conventions.
221         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
222         * modules/mkdtemp (configure.ac): Update.
223
224 2011-05-20  Eric Blake  <eblake@redhat.com>
225
226         strerror_r: avoid corrupting errno on Solaris
227         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
228         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
229
230         strerror_r: avoid compiler warning
231         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
232
233         strerror_r: simplify AIX code
234         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
235
236         test-perror: avoid spurious failure on FreeBSD
237         * modules/perror-tests (Depends-on): Add strerror, now that
238         strerror_r no longer pulls it in.
239
240 2011-05-20  Bruno Haible  <bruno@clisp.org>
241
242         strerror_r-posix: Remove unused dependencies.
243         * modules/strerror_r-posix (Depends-on): Remove strerror.
244         Reported by Eric Blake.
245
246 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
247
248         intprops: remove assumption about A|B representation
249         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
250         is a valid integer if both A and B are.  Although this is true for
251         all known practical hosts, the C standard doesn't guarantee it,
252         and the code need not assume it.  Also, this change may work around
253         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
254         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
255
256 2011-05-20  Eric Blake  <eblake@redhat.com>
257
258         perror: work around FreeBSD bug
259         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
260         is broken.  Move AC_LIBOBJ...
261         * modules/perror (configure.ac): Here.
262         * doc/posix-functions/perror.texi (perror): Document this.
263         * tests/test-perror2.c (main): Enhance test.
264
265         test-perror: check for strerror interactions
266         * tests/macros.h (STREQ): Add macro.
267         * modules/perror-tests (Files): Add second test.
268         * tests/test-perror2.c (main): New file.
269         * doc/posix-functions/perror.texi (perror): Document glibc bug.
270
271         test-perror: rewrite to use init script
272         * modules/perror-tests (Files): Add init.sh.
273         * tests/test-perror.sh: Use temporary directory.
274
275 2011-05-20  Jim Meyering  <meyering@redhat.com>
276
277         maint: replace misused "a" with "an"
278         * doc/intprops.texi: "a integer"
279         * doc/regex.texi: "a explanation"
280         * lib/alignof.h: "a object"
281         * lib/argmatch.h: "a explanation"
282         * lib/argp-help.c: "a option" and "a OPTION_DOC"
283         * lib/stdint.in.h: "a integer"
284         * lib/userspec.c: "a owner"
285         * doc/gnulib.texi: Fix "a idea", and reword.
286
287 2011-05-19  Jim Meyering  <meyering@redhat.com>
288
289         maint: correct misuse of "a" and "an"
290         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
291         * lib/argp-help.c: "an docum...": s/an/a/
292         * lib/argp-parse.c: "An vector": s/An/A/
293         * lib/execute.c: "an native": s/an/a/
294         * lib/spawn-pipe.c: Likewise.
295         * lib/gc.h: "an Gc_rc": s/an/a/
296         * lib/unigbrk.in.h: "an grapheme": s/an/a/
297         * lib/fts.c: "an stat.st_dev": s/an/a/
298
299 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
300
301         intprops-tests: work around HP-UX 11.23 cc bug with constants
302         * tests/test-intprops.c (VERIFY): New macro.
303         (main): Use it, instead of verify, to work around the compiler bug; see
304         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
305
306         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
307         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
308         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
309         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
310         (_GL_REMAINDER_OVERFLOW): Use it.
311
312         intprops-tests: revert unsigned part of previous change
313         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
314         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
315         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
316         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
317
318 2011-05-19  Bruno Haible  <bruno@clisp.org>
319
320         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
321         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
322         strerror_r() returned without filling the buffer.
323         Reported by Eric Blake.
324
325 2011-05-19  Eric Blake  <eblake@redhat.com>
326
327         strerror_r: guarantee unchanged errno
328         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
329         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
330         failure.
331         * tests/test-strerror_r.c (main): Enhance test.
332
333 2011-05-19  Bruno Haible  <bruno@clisp.org>
334
335         strerror_r: Reorder #if blocks.
336         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
337         for consistency with the previous commit.
338
339 2011-05-19  Bruno Haible  <bruno@clisp.org>
340
341         perror: Avoid clobbering the strerror buffer when possible.
342         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
343         * lib/strerror.c: Include it.
344         * modules/strerror (Files): Add lib/strerror-impl.h.
345         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
346         (my_strerror): New function, defined through lib/strerror-impl.h.
347         (perror): Use it instead of strerror.
348         * modules/perror (Files): Add lib/strerror-impl.h.
349         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
350
351 2011-05-19  Eric Blake  <eblake@redhat.com>
352
353         strerror_r: fix on newer cygwin
354         * lib/strerror_r.c (strerror_r): Cygwin now has
355         __xpg_strerror_r, use it.
356
357 2011-05-19  Bruno Haible  <bruno@clisp.org>
358
359         strerror_r: Avoid clobbering the strerror buffer when possible.
360         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
361         (sys_nerr, sys_errlist): New declarations.
362         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
363         HP-UX, native Win32, IRIX, and 32-bit Solaris.
364         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
365
366 2011-05-19  Bruno Haible  <bruno@clisp.org>
367
368         strerror_r: Fix test failure on mingw.
369         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
370         EXTEND_STRERROR_R.
371         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
372         macros from errno.in.h instead.
373
374 2011-05-19  Eric Blake  <eblake@redhat.com>
375
376         strerror: relax test for Solaris
377         * tests/test-strerror.c (main): Permit Solaris behavior.
378         * tests/test-strerror_r.c (main): Likewise.
379
380         strerror: enforce POSIX ruling on strerror(0)
381         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
382         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
383         * lib/strerror_r.c (rpl_strerror_r): Work around it.
384         * doc/posix-functions/strerror.texi (strerror): Document it.
385         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
386         * tests/test-strerror.c (main): Strengthen test.
387         * tests/test-strerror_r.c (main): Likewise.
388
389 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
390
391         intprop-tests: port to older and more-pedantic compilers
392         * modules/intprops-tests (Files): Add tests/macros.h.
393         * tests/test-intprops.c: Include macros.h.
394         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
395         it's no longer documented to expand to an integer constant expression.
396         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
397         argument is floating point, as it's no longer documented to expand
398         to an integer constant expression in that case.
399         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
400         compiler bugs reported by Bruno Haible.  See
401         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
402         (U0, U1): New constants, to work around the same bugs.  Also,
403         in tests, use e.g., "(unsigned int) 39" rather than "39u".
404
405         intprops: work around C compiler bugs
406         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
407         bug in Sun C 5.11 2010/08/13 and other compilers; see
408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
409
410         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
411         * doc/intprops.texi (Integer Type Determination): Fix
412         documentation for TYPE_IS_INTEGER: it returns an constant
413         expression, not an integer constant expression.  Fix doc for
414         TYPE_SIGNED: it returns an integer constant expression only if its
415         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
416         hardly worth documented that way....)
417
418 2011-05-18  Bruno Haible  <bruno@clisp.org>
419
420         strerror_r: Avoid clobbering the strerror buffer when possible.
421         * lib/strerror_r.c (strerror_r): Merge the three implementations.
422         Handle gnulib defined errno values here. When strerror() returns NULL
423         or an empty string, return EINVAL.
424         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
425         gnulib defined errno values here.
426         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
427
428 2011-05-18  Eric Blake  <eblake@redhat.com>
429
430         fnmatch: avoid compiler warning
431         * lib/fnmatch_loop.c (FCT): Use correct type.
432         Reported by Matthias Bolte.
433
434 2011-05-13  Jim Meyering  <meyering@redhat.com>
435
436         maint.mk: three new prohibit_<HDR>_without_use rules
437         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
438         (sc_prohibit_stdio-safer_without_use): Likewise.
439         (sc_prohibit_xfreopen_without_use): Likewise.
440
441 2011-05-17  Jim Meyering  <meyering@redhat.com>
442
443         announce-gen: fail if the NEWS delta is empty
444         If there's nothing noteworthy in NEWS, then either you forgot
445         or you shouldn't be releasing.
446         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
447
448 2011-05-17  Pádraig Brady <P@draigBrady.com>
449
450         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
451         reserved symbols starting with double underscore from the check.
452
453 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
454
455         intprops: add doc
456         * doc/intprops.texi: New file, documenting intprops.
457         * doc/gnulib.texi (Particular Modules): Include it.
458
459         verify: add doc to gnulib manual and fix example
460         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
461         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
462         (Compile-time Assertions): Fix example so it can't overflow.
463
464 2011-05-17  Jim Meyering  <meyering@redhat.com>
465
466         warnings.m4: don't usurp save_CPPFLAGS variable name
467         * m4/warnings.m4: Prefix local temporary variable name with gl_.
468
469         doc: fix typo
470         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
471
472 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
473             Bruno Haible  <bruno@clisp.org>
474
475         doc: Tweak recent change.
476         * README (Portability guidelines): Tweak new text.
477         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
478         Interix 6.1.
479
480 2011-05-16  Eric Blake  <eblake@redhat.com>
481
482         inttypes: avoid autoconf warning
483         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
484         * m4/stdint.m4 (gl_STDINT_H): Likewise.
485
486 2011-05-16  Sam Steingold <sds@gnu.org>
487         and Eric Blake  <eblake@redhat.com>
488
489         vc-list-files: accept multiple directory operands
490         * build-aux/vc-list-files: Iterate over all remaining operands.
491
492 2011-05-16  Bruno Haible  <bruno@clisp.org>
493
494         Fix confusion regarding deprecated modules.
495         * modules/calloc (Status, Notice): Mark module as deprecated, not
496         obsolete.
497         * modules/fnmatch-posix (Status, Notice): Likewise.
498         * modules/getdate (Status, Notice): Likewise.
499         * modules/getopt (Status, Notice): Likewise.
500         * modules/malloc (Status, Notice): Likewise.
501         * modules/pipe (Status, Notice): Likewise.
502         * modules/realloc (Status, Notice): Likewise.
503         * modules/rename-dest-slash (Status, Notice): Likewise.
504         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
505         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
506         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
507         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
508         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
509
510 2011-05-16  Bruno Haible  <bruno@clisp.org>
511
512         doc: List the target platforms.
513         * doc/gnulib-intro.texi (Target Platforms): New section.
514         * doc/gnulib.texi (Introduction): Update menu.
515         * README (Portability guidelines): Refer to the new section. Update
516         statement about oldest supported environment. Remove rationale why
517         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
518         unportable C89 function.
519         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
520         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
521
522 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
523
524         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
525
526 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
527
528         intprops-tests: new module
529         * modules/intprops-tests, tests/test-intprops.c: New files.
530
531         intprops: add safe, portable integer overflow checking
532         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
533         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
534         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
535         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
536         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
537         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
538         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
539         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
540         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
541         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
542         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
543
544 2011-05-12  James Youngman  <jay@gnu.org>
545
546         Add a test for glibc's Bugzilla bug #12378.
547         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
548         doesn't allow the literal matching of a lone "[" (which is
549         required by POSIX).
550         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
551
552 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
553
554         Sync glibc change fixing Bugzilla bug #12378.
555         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
556         beginning and fall back to matching as normal character if the
557         string ends before the matching ']' is found.  This is what POSIX
558         requires.
559
560 2011-05-13  Eric Blake  <eblake@redhat.com>
561
562         getcwd-lgpl: relax test for FreeBSD
563         * doc/posix-functions/getcwd.texi (getcwd): Document portability
564         issue.
565         * tests/test-getcwd-lgpl.c (main): Relax test.
566         Reported by Matthias Bolte.
567
568 2011-05-11  Eric Blake  <eblake@redhat.com>
569
570         test-fflush: silence compiler warning
571         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
572
573 2011-05-11  Bruno Haible  <bruno@clisp.org>
574
575         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
576         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
577         * modules/canonicalize (Depends-on): Add 'nocrash'.
578         * modules/canonicalize-lgpl (Depends-on): Likewise.
579         * doc/posix-functions/realpath.texi: Update platforms list.
580         Reported by Ryan Schmidt <ryandesign@macports.org>.
581
582 2011-05-11  Bruno Haible  <bruno@clisp.org>
583
584         group-member: Declare function in <unistd.h>.
585         * lib/unistd.in.h (group_member): New declaration.
586         * lib/group-member.h: Remove file.
587         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
588         * tests/test-unistd-c++.cc: Check signature of group_member.
589         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
590         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
591         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
592         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
593         HAVE_GROUP_MEMBER.
594         * modules/group-member (Files): Remove lib/group-member.h.
595         (Depends-on): Add unistd. Specify conditions.
596         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
597         (Include): Change to <unistd.h>.
598         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
599         HAVE_GROUP_MEMBER.
600         * NEWS: Mention the change.
601         * lib/euidaccess.c: Don't include group-member.h.
602
603 2011-05-11  Bruno Haible  <bruno@clisp.org>
604
605         group-member: Document module.
606         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
607         module.
608
609 2011-05-11  Bruno Haible  <bruno@clisp.org>
610
611         fclose: Fix mistake earlier today.
612         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
613
614 2011-05-11  Eric Blake  <eblake@redhat.com>
615
616         fclose: preserve fflush errors
617         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
618         Reported by Jim Meyering.
619
620         bootstrap: support a prereq of 'rpcgen -' on RHEL5
621         * build-aux/bootstrap (check_versions): When no specific version
622         is required, merely check that the app produces an exit status
623         that indicates its existence.
624
625         maint.mk: drop redundant check
626         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
627         the same but better.
628
629 2011-05-11  Bruno Haible  <bruno@clisp.org>
630
631         fclose: Fix possible link error.
632         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
633         unregister_shadow_fd. Improve comments.
634         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
635         Eric Blake.
636
637 2011-05-11  Jim Meyering  <meyering@redhat.com>
638
639         maint.mk: improve "can not" detection and generalize rule name
640         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
641         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
642         Use the same technique as in sc_prohibit_doubled_word, so that
643         we recognize "can not" also when the words are separated by a newline.
644         Suggested by Eric Blake.
645         (perl_filename_lineno_text_): Define.  Factored out of...
646         (prohibit_doubled_word_): ...here.  Use the new definition.
647         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
648         (prohibit_undesirable_word_seq_RE_): New overridable variable.
649         (ignore_undesirable_word_sequence_RE_): New overridable variable.
650
651 2011-05-10  Eric Blake  <eblake@redhat.com>
652
653         fclose: avoid double close race when possible
654         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
655         all but WINDOWS_SOCKETS.
656
657 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
658
659         openat: correct new comment
660         * lib/openat-proc.c (openat_proc_name): Correct the comment.
661
662 2011-05-10  Jim Meyering  <meyering@redhat.com>
663
664         openat: add comments
665         * lib/openat-proc.c (openat_proc_name): Add comments,
666         mostly from Eric Blake.
667
668 2011-05-09  Eric Blake  <eblake@redhat.com>
669
670         openat: reduce syscalls in first probe of /proc
671         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
672         be a directory.  Simplify the probe for .. bugs.
673         * modules/openat (Depends-on): Drop same-inode.
674         Reported by Bastien ROUCARIES.
675
676 2011-05-09  Jim Meyering  <meyering@redhat.com>
677
678         maint.mk: change semantics/name of tight_scope variables
679         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
680         Rename variables to align with semantics that make them more useful.
681
682         maint.mk: tweak new rule's name not to impinge
683         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
684         (sc_tight_scope): Use new rule name rather than $@-0.
685
686         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
687         * top/maint.mk (sc_tight_scope): New rule.
688         (sc_tight_scope-0): New rule, ifdef'd out.
689         (_gl_TS_dir): Default.
690         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
691         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
692
693 2011-05-09  Simon Josefsson  <simon@josefsson.org>
694
695         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
696         Haible <bruno@clisp.org>.
697
698 2011-05-08  Bruno Haible  <bruno@clisp.org>
699
700         Comments.
701         * m4/isnanf.m4: Add comment.
702         * m4/isnanl.m4: Likewise.
703
704 2011-05-08  Bruno Haible  <bruno@clisp.org>
705
706         glob: Remove obsolete macro.
707         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
708
709 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
710
711         intprops: Sun C 5.11 supports __typeof__
712         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
713         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
714         which is new.
715         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
716
717         intprops: switch to usual gnulib indenting and naming
718         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
719         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
720
721         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
722
723 2011-05-08  Jim Meyering  <meyering@redhat.com>
724
725         maint.mk: suppress "Entering/Leaving directory" diag in announcement
726         * top/maint.mk (release-prep): Use make's --no-print-directory
727         option when generating the announcement.  This eliminates the
728         pesky "make[2]: Entering/Leaving directory" diagnostics in the
729         generated announcement template.
730
731 2011-05-08  Bruno Haible  <bruno@clisp.org>
732
733         tzset: Fix gettimeofday wrapper on Solaris 2.6.
734         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
735         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
736
737 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
738
739         ignore-value, verify: Omit include files from lib_SOURCES.
740         * modules/ignore-value, modules/verify (Makefile.am):
741         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
742         that leads Automake to duplicate use of am__objects_... variables
743         in Makefile.in.  See
744         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
745
746 2011-05-07  Bruno Haible  <bruno@clisp.org>
747
748         fclose: Simplify autoconf macro.
749         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
750         defined.
751
752 2011-05-07  Bruno Haible  <bruno@clisp.org>
753
754         canonicalize-lgpl: Fix autoconf macro ordering bug.
755         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
756         gl_STDLIB_H_DEFAULTS.
757
758 2011-05-06  Eric Blake  <eblake@redhat.com>
759
760         maintainer-makefile: make sc_po_check easier to tune
761         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
762         to probe for strings, such as an alternate location for gnulib.
763
764         fclose: guarantee behavior on seekable stdin
765         * modules/fclose (Depends-on): Add fflush.
766         * doc/posix-functions/fclose.texi (fclose): Document this.
767         * tests/test-fclose.c (main): Make test for this unconditional.
768
769 2011-05-06  Bruno Haible  <bruno@clisp.org>
770
771         fflush, fpurge: Relicense under LGPLv2+.
772         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
773         * modules/fpurge (License): Likewise.
774         With permission from Eric Blake and Jim Meyering.
775         Suggested by Eric Blake.
776
777 2011-05-06  Karl Berry  <karl@gnu.org>
778
779         * MODULES.html.sh (func_all_modules): remove exit.
780
781 2011-05-06  Jim Meyering  <meyering@redhat.com>
782
783         maint.mk: use info-gnu@ as the default only for a stable release
784         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
785         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
786         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
787         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
788
789 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
790
791         assert-h: new module, which supports C1X-style static_assert
792         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
793         * lib/verify.h: Revamp so that this can be copied into assert.h,
794         while retaining the ability to use it standalone as before.
795         Rename private identifiers so as not to encroach on the
796         standard C namespace, since this is now used by assert.h.
797         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
798         the old verify_true.
799         (_GL_VERIFY_TRUE): New macro, with much of the contents of
800         the old verify_true.  Use _GL_VERIFY_TYPE.
801         (_GL_VERIFY): New macro, with much of the contents of the old verify.
802         (static_assert): New macro, if _GL_STATIC_ASSERT_H
803         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
804         defined when this file is copied into the replacement assert.h.
805         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
806         and _Static_assert is not built in.
807         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
808         defined, and use the new macros mentioned above.
809         * doc/posix-headers/assert.texi: Document this.
810
811 2011-05-05  Bruno Haible  <bruno@clisp.org>
812
813         fclose, fflush: Respect rules for use of AC_LIBOBJ.
814         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
815         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
816         gl_REPLACE_FCLOSE here.
817         * modules/fflush (Depends-on): Remove fclose.
818         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
819         combination with module 'fclose'.
820
821 2011-05-05  Bruno Haible  <bruno@clisp.org>
822
823         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
824         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
825         gl_FUNC_FFLUSH.
826         (gl_FUNC_FFLUSH): Use it.
827         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
828         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
829         gl_REPLACE_FSEEKO here.
830
831 2011-05-05  Bruno Haible  <bruno@clisp.org>
832
833         tzset: Relicense under LGPL.
834         * modules/tzset (License): Change to LGPL.
835         No agreement needed; it's a no-op.
836
837         strtoimax, strtoumax: Relicense under LGPL.
838         * modules/strtoimax (License): Change to LGPL.
839         * modules/strtoumax (License): Likewise.
840         With permission from Jim Meyering, Paul Eggert:
841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
843
844         getgroups: Relicense under LGPL.
845         * modules/getgroups (License): Change to LGPL.
846         With permission from Jim Meyering, Paul Eggert, Eric Blake:
847         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
850
851         nanosleep: Relicense under LGPL.
852         * modules/nanosleep (License): Change to LGPL.
853         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
854         Haible:
855         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
858         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
859
860         futimens: Relicense under LGPL.
861         * modules/futimens (License): Change to LGPL.
862         With permission from Eric Blake:
863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
864
865         fflush: Relicense under LGPL.
866         * modules/fflush (License): Change to LGPL.
867         With permission from Eric Blake, Bruno Haible, Jim Meyering:
868         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
869         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
870         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
871
872         tmpfile: Relicense under LGPL.
873         * modules/tmpfile (License): Change to LGPL.
874         With permission from Ben Pfaff:
875         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
876
877         isfinite: Relicense under LGPL.
878         * modules/isfinite (License): Change to LGPL.
879         With permission from Ben Pfaff, Bruno Haible:
880         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
881         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
882
883         acosl..tanl: Relicense under LGPL.
884         * modules/acosl (License): Change to LGPL.
885         * modules/asinl (License): Likewise.
886         * modules/atanl (License): Likewise.
887         * modules/cosl (License): Likewise.
888         * modules/expl (License): Likewise.
889         * modules/logl (License): Likewise.
890         * modules/sinl (License): Likewise.
891         * modules/sqrtl (License): Likewise.
892         * modules/tanl (License): Likewise.
893         Source code originally from glibc and Paolo Bonzini. Agreements:
894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
896
897 2011-05-05  Bruno Haible  <bruno@clisp.org>
898
899         signal: Define sighandler_t.
900         * lib/signal.in.h (sighandler_t): New type.
901         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
902         whether sighandler_t is defined.
903         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
904         * modules/signal (Depends-on): Add extensions.
905         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
906         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
907         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
908
909 2011-05-05  Eric Blake  <eblake@redhat.com>
910
911         maint: remove useless REPLACE_*_H macros
912         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
913         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
914         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
915         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
916         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
917         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
918         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
919         * m4/btowc.m4: Update callers.
920         * m4/dirfd.m4: Likewise.
921         * m4/duplocale.m4: Likewise.
922         * m4/fchdir.m4: Likewise.
923         * m4/fdopendir.m4: Likewise.
924         * m4/inet_ntop.m4: Likewise.
925         * m4/inet_pton.m4: Likewise.
926         * m4/ioctl.m4: Likewise.
927         * m4/mbrlen.m4: Likewise.
928         * m4/mbrtowc.m4: Likewise.
929         * m4/mbsinit.m4: Likewise.
930         * m4/mbsnrtowcs.m4: Likewise.
931         * m4/mbsrtowcs.m4: Likewise.
932         * m4/poll.m4: Likewise.
933         * m4/setlocale.m4: Likewise.
934         * m4/wcrtomb.m4: Likewise.
935         * m4/wcsnrtombs.m4: Likewise.
936         * m4/wcsrtombs.m4: Likewise.
937         * m4/wctob.m4: Likewise.
938         * m4/wcwidth.m4: Likewise.
939         * modules/posix_spawn: Likewise.
940         * modules/posix_spawn_file_actions_addclose: Likewise.
941         * modules/posix_spawn_file_actions_adddup2: Likewise.
942         * modules/posix_spawn_file_actions_addopen: Likewise.
943         * modules/posix_spawn_file_actions_destroy: Likewise.
944         * modules/posix_spawn_file_actions_init: Likewise.
945         * modules/posix_spawnattr_destroy: Likewise.
946         * modules/posix_spawnattr_getflags: Likewise.
947         * modules/posix_spawnattr_getpgroup: Likewise.
948         * modules/posix_spawnattr_getschedparam: Likewise.
949         * modules/posix_spawnattr_getschedpolicy: Likewise.
950         * modules/posix_spawnattr_getsigdefault: Likewise.
951         * modules/posix_spawnattr_getsigmask: Likewise.
952         * modules/posix_spawnattr_init: Likewise.
953         * modules/posix_spawnattr_setflags: Likewise.
954         * modules/posix_spawnattr_setpgroup: Likewise.
955         * modules/posix_spawnattr_setschedparam: Likewise.
956         * modules/posix_spawnattr_setschedpolicy: Likewise.
957         * modules/posix_spawnattr_setsigdefault: Likewise.
958         * modules/posix_spawnattr_setsigmask: Likewise.
959         * modules/posix_spawnp: Likewise.
960
961 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
962
963         Add option to do-release-commit-and-tag to specify branch.
964         * build-aux/do-release-commit-and-tag: Add --branch.
965
966 2011-05-03  Bruno Haible  <bruno@clisp.org>
967
968         Avoid unnecessary compilation units, through conditional dependencies.
969         * modules/accept (Depends-on): Add conditions to the dependencies.
970         * modules/acosl (Depends-on): Likewise.
971         * modules/argz (Depends-on): Likewise.
972         * modules/asinl (Depends-on): Likewise.
973         * modules/atanl (Depends-on): Likewise.
974         * modules/atoll (Depends-on): Likewise.
975         * modules/bind (Depends-on): Likewise.
976         * modules/btowc (Depends-on): Likewise.
977         * modules/canonicalize-lgpl (Depends-on): Likewise.
978         * modules/ceil (Depends-on): Likewise.
979         * modules/ceilf (Depends-on): Likewise.
980         * modules/ceill (Depends-on): Likewise.
981         * modules/chdir-long (Depends-on): Likewise.
982         * modules/chown (Depends-on): Likewise.
983         * modules/close (Depends-on): Likewise.
984         * modules/connect (Depends-on): Likewise.
985         * modules/cosl (Depends-on): Likewise.
986         * modules/dirfd (Depends-on): Likewise.
987         * modules/dprintf (Depends-on): Likewise.
988         * modules/dprintf-posix (Depends-on): Likewise.
989         * modules/error (Depends-on): Likewise.
990         * modules/euidaccess (Depends-on): Likewise.
991         * modules/expl (Depends-on): Likewise.
992         * modules/faccessat (Depends-on): Likewise.
993         * modules/fchdir (Depends-on): Likewise.
994         * modules/fclose (Depends-on): Likewise.
995         * modules/fcntl (Depends-on): Likewise.
996         * modules/fdopendir (Depends-on): Likewise.
997         * modules/fflush (Depends-on): Likewise.
998         * modules/floor (Depends-on): Likewise.
999         * modules/floorf (Depends-on): Likewise.
1000         * modules/floorl (Depends-on): Likewise.
1001         * modules/fnmatch (Depends-on): Likewise.
1002         * modules/fopen (Depends-on): Likewise.
1003         * modules/fprintf-posix (Depends-on): Likewise.
1004         * modules/frexp (Depends-on): Likewise.
1005         * modules/frexp-nolibm (Depends-on): Likewise.
1006         * modules/frexpl (Depends-on): Likewise.
1007         * modules/frexpl-nolibm (Depends-on): Likewise.
1008         * modules/fseek (Depends-on): Likewise.
1009         * modules/fsusage (Depends-on): Likewise.
1010         * modules/ftell (Depends-on): Likewise.
1011         * modules/ftello (Depends-on): Likewise.
1012         * modules/futimens (Depends-on): Likewise.
1013         * modules/getcwd (Depends-on): Likewise.
1014         * modules/getcwd-lgpl (Depends-on): Likewise.
1015         * modules/getdelim (Depends-on): Likewise.
1016         * modules/getdomainname (Depends-on): Likewise.
1017         * modules/getgroups (Depends-on): Likewise.
1018         * modules/gethostname (Depends-on): Likewise.
1019         * modules/getline (Depends-on): Likewise.
1020         * modules/getlogin_r (Depends-on): Likewise.
1021         * modules/getopt-posix (Depends-on): Likewise.
1022         * modules/getpeername (Depends-on): Likewise.
1023         * modules/getsockname (Depends-on): Likewise.
1024         * modules/getsockopt (Depends-on): Likewise.
1025         * modules/getsubopt (Depends-on): Likewise.
1026         * modules/getusershell (Depends-on): Likewise.
1027         * modules/glob (Depends-on): Likewise.
1028         * modules/grantpt (Depends-on): Likewise.
1029         * modules/iconv_open (Depends-on): Likewise.
1030         * modules/iconv_open-utf (Depends-on): Likewise.
1031         * modules/inet_ntop (Depends-on): Likewise.
1032         * modules/inet_pton (Depends-on): Likewise.
1033         * modules/ioctl (Depends-on): Likewise.
1034         * modules/isapipe (Depends-on): Likewise.
1035         * modules/isfinite (Depends-on): Likewise.
1036         * modules/isinf (Depends-on): Likewise.
1037         * modules/lchown (Depends-on): Likewise.
1038         * modules/ldexpl (Depends-on): Likewise.
1039         * modules/link (Depends-on): Likewise.
1040         * modules/linkat (Depends-on): Likewise.
1041         * modules/listen (Depends-on): Likewise.
1042         * modules/logl (Depends-on): Likewise.
1043         * modules/lstat (Depends-on): Likewise.
1044         * modules/mbrlen (Depends-on): Likewise.
1045         * modules/mbrtowc (Depends-on): Likewise.
1046         * modules/mbsinit (Depends-on): Likewise.
1047         * modules/mbsnrtowcs (Depends-on): Likewise.
1048         * modules/mbsrtowcs (Depends-on): Likewise.
1049         * modules/mbtowc (Depends-on): Likewise.
1050         * modules/memcmp (Depends-on): Likewise.
1051         * modules/mkdir (Depends-on): Likewise.
1052         * modules/mkdtemp (Depends-on): Likewise.
1053         * modules/mkfifo (Depends-on): Likewise.
1054         * modules/mkfifoat (Depends-on): Likewise.
1055         * modules/mknod (Depends-on): Likewise.
1056         * modules/mkostemp (Depends-on): Likewise.
1057         * modules/mkostemps (Depends-on): Likewise.
1058         * modules/mkstemp (Depends-on): Likewise.
1059         * modules/mkstemps (Depends-on): Likewise.
1060         * modules/mktime (Depends-on): Likewise.
1061         * modules/nanosleep (Depends-on): Likewise.
1062         * modules/open (Depends-on): Likewise.
1063         * modules/openat (Depends-on): Likewise.
1064         * modules/perror (Depends-on): Likewise.
1065         * modules/poll (Depends-on): Likewise.
1066         * modules/popen (Depends-on): Likewise.
1067         * modules/posix_spawn (Depends-on): Likewise.
1068         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
1069         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1070         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1071         * modules/posix_spawnp (Depends-on): Likewise.
1072         * modules/pread (Depends-on): Likewise.
1073         * modules/printf-posix (Depends-on): Likewise.
1074         * modules/ptsname (Depends-on): Likewise.
1075         * modules/putenv (Depends-on): Likewise.
1076         * modules/pwrite (Depends-on): Likewise.
1077         * modules/readline (Depends-on): Likewise.
1078         * modules/readlink (Depends-on): Likewise.
1079         * modules/readlinkat (Depends-on): Likewise.
1080         * modules/recv (Depends-on): Likewise.
1081         * modules/recvfrom (Depends-on): Likewise.
1082         * modules/regex (Depends-on): Likewise.
1083         * modules/remove (Depends-on): Likewise.
1084         * modules/rename (Depends-on): Likewise.
1085         * modules/renameat (Depends-on): Likewise.
1086         * modules/rmdir (Depends-on): Likewise.
1087         * modules/round (Depends-on): Likewise.
1088         * modules/roundf (Depends-on): Likewise.
1089         * modules/roundl (Depends-on): Likewise.
1090         * modules/rpmatch (Depends-on): Likewise.
1091         * modules/select (Depends-on): Likewise.
1092         * modules/send (Depends-on): Likewise.
1093         * modules/sendto (Depends-on): Likewise.
1094         * modules/setenv (Depends-on): Likewise.
1095         * modules/setlocale (Depends-on): Likewise.
1096         * modules/setsockopt (Depends-on): Likewise.
1097         * modules/shutdown (Depends-on): Likewise.
1098         * modules/sigaction (Depends-on): Likewise.
1099         * modules/signbit (Depends-on): Likewise.
1100         * modules/sigprocmask (Depends-on): Likewise.
1101         * modules/sinl (Depends-on): Likewise.
1102         * modules/sleep (Depends-on): Likewise.
1103         * modules/snprintf (Depends-on): Likewise.
1104         * modules/snprintf-posix (Depends-on): Likewise.
1105         * modules/socket (Depends-on): Likewise.
1106         * modules/sprintf-posix (Depends-on): Likewise.
1107         * modules/sqrtl (Depends-on): Likewise.
1108         * modules/stat (Depends-on): Likewise.
1109         * modules/strchrnul (Depends-on): Likewise.
1110         * modules/strdup-posix (Depends-on): Likewise.
1111         * modules/strerror (Depends-on): Likewise.
1112         * modules/strerror_r-posix (Depends-on): Likewise.
1113         * modules/strndup (Depends-on): Likewise.
1114         * modules/strnlen (Depends-on): Likewise.
1115         * modules/strptime (Depends-on): Likewise.
1116         * modules/strsep (Depends-on): Likewise.
1117         * modules/strsignal (Depends-on): Likewise.
1118         * modules/strstr-simple (Depends-on): Likewise.
1119         * modules/strtod (Depends-on): Likewise.
1120         * modules/strtoimax (Depends-on): Likewise.
1121         * modules/strtok_r (Depends-on): Likewise.
1122         * modules/strtoumax (Depends-on): Likewise.
1123         * modules/symlink (Depends-on): Likewise.
1124         * modules/symlinkat (Depends-on): Likewise.
1125         * modules/tanl (Depends-on): Likewise.
1126         * modules/tcgetsid (Depends-on): Likewise.
1127         * modules/tmpfile (Depends-on): Likewise.
1128         * modules/trunc (Depends-on): Likewise.
1129         * modules/truncf (Depends-on): Likewise.
1130         * modules/truncl (Depends-on): Likewise.
1131         * modules/uname (Depends-on): Likewise.
1132         * modules/unlink (Depends-on): Likewise.
1133         * modules/unlockpt (Depends-on): Likewise.
1134         * modules/unsetenv (Depends-on): Likewise.
1135         * modules/usleep (Depends-on): Likewise.
1136         * modules/utimensat (Depends-on): Likewise.
1137         * modules/vasprintf (Depends-on): Likewise.
1138         * modules/vdprintf (Depends-on): Likewise.
1139         * modules/vdprintf-posix (Depends-on): Likewise.
1140         * modules/vfprintf-posix (Depends-on): Likewise.
1141         * modules/vprintf-posix (Depends-on): Likewise.
1142         * modules/vsnprintf (Depends-on): Likewise.
1143         * modules/vsnprintf-posix (Depends-on): Likewise.
1144         * modules/vsprintf-posix (Depends-on): Likewise.
1145         * modules/wcrtomb (Depends-on): Likewise.
1146         * modules/wcscasecmp (Depends-on): Likewise.
1147         * modules/wcscspn (Depends-on): Likewise.
1148         * modules/wcsdup (Depends-on): Likewise.
1149         * modules/wcsncasecmp (Depends-on): Likewise.
1150         * modules/wcsnrtombs (Depends-on): Likewise.
1151         * modules/wcspbrk (Depends-on): Likewise.
1152         * modules/wcsrtombs (Depends-on): Likewise.
1153         * modules/wcsspn (Depends-on): Likewise.
1154         * modules/wcsstr (Depends-on): Likewise.
1155         * modules/wcstok (Depends-on): Likewise.
1156         * modules/wcswidth (Depends-on): Likewise.
1157         * modules/wctob (Depends-on): Likewise.
1158         * modules/wctomb (Depends-on): Likewise.
1159         * modules/wctype (Depends-on): Likewise.
1160         * modules/wcwidth (Depends-on): Likewise.
1161         * modules/write (Depends-on): Likewise.
1162
1163 2011-05-03  Bruno Haible  <bruno@clisp.org>
1164
1165         Support for conditional dependencies.
1166         * doc/gnulib.texi (Module description): Document the syntax of
1167         conditional dependencies.
1168         * gnulib-tool: New option --conditional-dependencies.
1169         (func_usage): Document it.
1170         (cond_dependencies): New variable.
1171         (func_get_automake_snippet_conditional,
1172         func_get_automake_snippet_unconditional): New functions, extracted from
1173         func_get_automake_snippet.
1174         (func_get_automake_snippet): Use them.
1175         (sed_first_32_chars): New variable.
1176         (func_module_shellfunc_name): New function.
1177         (func_module_shellvar_name): New function.
1178         (func_module_conditional_name): New function.
1179         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
1180         func_cond_module_condition): New functions.
1181         (func_modules_transitive_closure): Add support for conditional
1182         dependencies.
1183         (func_emit_lib_Makefile_am): For a conditional module, enclose the
1184         conditional automake snippet in an automake conditional.
1185         (func_emit_autoconf_snippets): Emit shell functions that contain the
1186         code for conditional modules.
1187         (func_import, func_create_testdir): Update specification.
1188
1189 2011-05-03  Eric Blake  <eblake@redhat.com>
1190
1191         test-getaddrinfo: report error information
1192         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
1193
1194 2011-05-03  Jim Meyering  <meyering@redhat.com>
1195
1196         bootstrap: avoid build failure when $GZIP is set
1197         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
1198         program name.  If defined at all, it is supposed to list gzip options.
1199         Reported by Alan Curry in http://debbugs.gnu.org/8609
1200
1201 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
1202
1203         readme-release: new module with release instructions
1204         * modules/readme-release: New module.
1205         * top/README-release: New file, from coreutils, grep, diffutils.
1206         * MODULES.html.sh (Support for maintaining and releasing): Add it.
1207
1208 2011-05-02  Eric Blake  <eblake@redhat.com>
1209
1210         fflush: also replace fclose when fixing fflush
1211         * modules/fflush (Depends-on): Add fclose.
1212         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
1213         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
1214         memstreams with no backing fd.
1215         * doc/posix-functions/fclose.texi (fclose): Document the use of
1216         fflush module to fix the bug.
1217         * tests/test-fclose.c (main): Relax test when fclose is used in
1218         isolation.
1219
1220         fclose: add some tests
1221         * modules/fclose-tests: New test module.
1222         * tests/test-fclose.c: New file.
1223         * doc/posix-functions/fclose.texi (fclose): Document the bug.
1224
1225         fclose: reduced dependencies
1226         * modules/fclose (Depends-on): Switch from fflush/fseeko to
1227         simpler lseek.
1228         * lib/fclose.c (rpl_fclose): Likewise.
1229         Reported by Simon Josefsson.
1230
1231         exit: drop remaining clients
1232         * modules/argmatch (Depends-on): Replace exit with stdlib.
1233         * modules/copy-file (Depends-on): Likewise.
1234         * modules/execute (Depends-on): Likewise.
1235         * modules/exitfail (Depends-on): Likewise.
1236         * modules/obstack (Depends-on): Likewise.
1237         * modules/pagealign_alloc (Depends-on): Likewise.
1238         * modules/pipe-filter-gi (Depends-on): Likewise.
1239         * modules/pipe-filter-ii (Depends-on): Likewise.
1240         * modules/savewd (Depends-on): Likewise.
1241         * modules/spawn-pipe (Depends-on): Likewise.
1242         * modules/wait-process (Depends-on): Likewise.
1243         * modules/xsetenv (Depends-on): Likewise.
1244         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
1245         * modules/git-merge-changelog (Depends-on): Likewise.
1246         * modules/long-options (Depends-on): Likewise.
1247         * modules/pt_chown (Depends-on): Likewise.
1248         * modules/sysexits (Depends-on): Likewise.
1249
1250         freading: relax license from LGPLv3+ to LGPLv2+
1251         * modules/freading (License): Relax LGPL version.
1252
1253 2011-05-02  Bruno Haible  <bruno@clisp.org>
1254
1255         fchdir: Remove unused dependencies.
1256         * modules/fchdir (Depends-on): Remove include_next.
1257
1258 2011-05-02  Bruno Haible  <bruno@clisp.org>
1259
1260         gnulib-tool: Refactor.
1261         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
1262         from func_emit_autoconf_snippets.
1263         (func_emit_autoconf_snippets): Use it.
1264
1265 2011-05-02  Simon Josefsson  <simon@josefsson.org>
1266
1267         * NEWS: Document removal of 'exit'.
1268         * modules/exit: Remove file.
1269
1270 2011-05-01  Bruno Haible  <bruno@clisp.org>
1271
1272         Update DEPENDENCIES.
1273         * DEPENDENCIES (gettext): Recommend the newest release.
1274         Reported by Simon Josefsson.
1275
1276 2011-05-01  Bruno Haible  <bruno@clisp.org>
1277
1278         gnulib-tool: Reduce code duplication.
1279         * gnulib-tool (func_emit_autoconf_snippets): New function.
1280         (func_import, func_create_testdir): Use it.
1281
1282 2011-04-30  Eric Blake  <eblake@redhat.com>
1283
1284         fclose: don't fail on non-seekable input stream
1285         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
1286         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
1287         since fflush is allowed to fail in that case.
1288
1289 2011-04-30  Bruno Haible  <bruno@clisp.org>
1290
1291         dup3: cleanup
1292         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
1293
1294 2011-04-30  Bruno Haible  <bruno@clisp.org>
1295
1296         netdb: Make it work in C++ mode.
1297         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
1298         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
1299         module.
1300         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
1301         gl_MODULE_INDICATOR_FOR_TESTS.
1302         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
1303         * modules/netdb-c++-tests: New file.
1304         * tests/test-netdb-c++.cc: New file.
1305
1306 2011-04-30  Bruno Haible  <bruno@clisp.org>
1307
1308         New modules 'vfscanf', 'vscanf'.
1309         * modules/vfscanf: New file.
1310         * modules/vscanf: New file.
1311         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
1312         here.
1313         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
1314         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
1315
1316 2011-04-30  Bruno Haible  <bruno@clisp.org>
1317
1318         passfd: Add comments.
1319         * lib/passfd.c: Add comments about platforms.
1320
1321 2011-04-30  Bruno Haible  <bruno@clisp.org>
1322
1323         sys_uio: Make <sys/uio.h> self-contained.
1324         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
1325         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
1326
1327 2011-04-30  Bruno Haible  <bruno@clisp.org>
1328
1329         sys_socket: Ensure 'struct iovec' definition.
1330         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
1331         <sys/socket.h>.
1332         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
1333
1334 2011-04-30  Bruno Haible  <bruno@clisp.org>
1335
1336         sys_uio: Protect definition of 'struct iovec'.
1337         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
1338         it as a C struct.
1339
1340 2011-04-30  Bruno Haible  <bruno@clisp.org>
1341
1342         manywarnings: fix indentation
1343         * m4/manywarnings.m4: Indent by 2 spaces consistently.
1344
1345 2011-04-30  Pádraig Brady <P@draigBrady.com>
1346
1347         manywarnings: add -Wno-missing-field-initializers if needed.
1348         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
1349         option if it's needed to allow initialization with { 0, }
1350
1351 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
1352
1353         announce-gen: cosmetic improvement
1354         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
1355
1356 2011-04-29  Jim Meyering  <meyering@redhat.com>
1357
1358         vc-list-files: indent with spaces, not TABs
1359         * build-aux/vc-list-files: Convert leading TABs to spaces,
1360         to match the style of most other files in gnulib.
1361
1362         announce-gen: indent with spaces, not TABs
1363         * build-aux/announce-gen: Convert all TABs to spaces, to match
1364         the style of most other files in gnulib.
1365
1366 2011-04-29  Eric Blake  <eblake@redhat.com>
1367
1368         quotearg: avoid uninitialized variable use
1369         * lib/quotearg.c (quoting_options_from_style): Initialize
1370         remaining fields, and ensure that custom styles are only used via
1371         quoting_options rather than quoting_style.
1372
1373 2011-04-29  Jim Meyering  <meyering@redhat.com>
1374
1375         maint.mk: remove unused VC-tag variable
1376         * top/maint.mk (VC-tag): Remove unused variable.
1377
1378 2011-04-29  Bruno Haible  <bruno@clisp.org>
1379
1380         netdb: fix gai_strerror replacements
1381         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
1382         * modules/netdb: Substitute it.
1383
1384 2011-04-29  Jim Meyering  <meyering@redhat.com>
1385
1386         test-getcwd.c: avoid new set-but-not-used warning
1387         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
1388         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
1389         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
1390         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
1391
1392         test-hash.c: avoid a new shadowing warning
1393         * tests/test-hash.c (main): Don't shadow "dup".
1394
1395 2011-04-28  Eric Blake  <eblake@redhat.com>
1396
1397         getaddrinfo: fix gai_strerror signature
1398         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
1399         and work around mingw with UNICODE defined.
1400         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
1401         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
1402         * modules/netdb (Makefile.am): Substitute it.
1403         * lib/netdb.in.h (gai_strerror): Declare replacement.
1404         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
1405         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
1406         the fix.
1407
1408         getsockopt: avoid compiler warning
1409         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
1410         Reported by Matthias Bolte.
1411
1412         tests: drop unused link dependency
1413         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
1414         * modules/dirent-safer-tests (Makefile.am): Likewise.
1415         * modules/fdopendir-tests (Makefile.am): Likewise.
1416         * modules/mkfifoat-tests (Makefile.am): Likewise.
1417         * modules/openat-safer-tests (Makefile.am): Likewise.
1418         * modules/openat-tests (Makefile.am): Likewise.
1419         * modules/readlinkat-tests (Makefile.am): Likewise.
1420         * modules/symlinkat-tests (Makefile.am): Likewise.
1421         * modules/linkat-tests (Makefile.am): Likewise.
1422         (Depends-on): Switch to filenamecat-lgpl.
1423         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
1424         LIBINTL.
1425         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
1426         * tests/test-linkat.c (main): Don't require xalloc.
1427
1428         hash, mgetgroups: drop xalloc dependency
1429         * lib/hash.c (includes): Adjust includes.
1430         * lib/mgetgroups.c (includes): Likewise.
1431         (xgetgroups): Move...
1432         * lib/xgetgroups.c: ...to new file.
1433         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
1434         * modules/xgetgroups: New file, split from...
1435         * modules/mgetgroups: ...here.
1436         (Depends-on): Add xalloc-oversized.
1437         * modules/hash (Depends-on): Likewise.
1438         * modules/hash-tests (Depends-on): Drop xalloc.
1439         (test_hash_LDADD): Drop unused library.
1440         * tests/test-hash.c (main): Break xalloc dependency.
1441         (includes): Drop unused include.
1442
1443         xalloc-oversized: new module
1444         * modules/xalloc-oversized: New module.
1445         * modules/xalloc (Depends-on): Add it.
1446         * lib/xalloc.h (xalloc_oversized): Move...
1447         * lib/xalloc-oversized.h: ...into new file.
1448
1449         utimecmp: drop dependency on xmalloc
1450         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
1451         due to memory pressure.
1452         * modules/utimecmp (Depends-on): Drop xalloc.
1453
1454 2011-04-27  Eric Blake  <eblake@redhat.com>
1455
1456         getcwd: fix mingw bugs
1457         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
1458         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
1459         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
1460
1461 2011-04-27  Bruno Haible  <bruno@clisp.org>
1462
1463         mkstemps: Ensure declaration on MacOS X 10.5.
1464         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
1465         * doc/glibc-functions/mkstemps.texi: Document header file problem on
1466         MacOS X.
1467
1468 2011-04-27  Bruno Haible  <bruno@clisp.org>
1469
1470         mkstemp: More documentation.
1471         * doc/posix-functions/mkstemp.texi: Document header file problem on
1472         MacOS X.
1473
1474 2011-04-27  Bruno Haible  <bruno@clisp.org>
1475
1476         mkstemp: Tweak configure message when cross-compiling.
1477         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
1478         result as a guess.
1479
1480 2011-04-27  Bruno Haible  <bruno@clisp.org>
1481
1482         clean-temp: Clarify what it does.
1483         * lib/clean-temp.h: Add more comments.
1484         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
1485         module.
1486         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
1487         * doc/glibc-functions/mkstemps.texi: Likewise.
1488         * doc/glibc-functions/mkostemps.texi: Likewise.
1489
1490 2011-04-27  Eric Blake  <eblake@redhat.com>
1491
1492         fchdir: avoid extra chdir and fix test
1493         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
1494         getcwd-lgpl.
1495         * lib/fchdir.c (get_name): Any absolute name will do; it does not
1496         have to be canonical.
1497         (canonicalize_file_name): Drop unused macro.
1498         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
1499
1500         filenamecat-lgpl: fix licence
1501         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
1502         when it was first created.
1503
1504         linkat, renameat: add missing dependency
1505         * modules/linkat (Depends-on): Require getcwd-lgpl.
1506         * modules/renameat (Depends-on): Likewise.
1507
1508         tests: reduce dependencies
1509         * tests/test-linkat.c (main): Use lighter-weight getcwd.
1510         * tests/test-renameat.c (main): Likewise.
1511         * modules/linkat-tests (Depends-on): Relax dependency.
1512         * modules/renameat-tests (Depends-on): Likewise.
1513         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
1514         dependency explicit.
1515
1516         save-cwd: reduce default dependency
1517         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
1518         * lib/save-cwd.c: Update comments.
1519         * NEWS: Document the semantic change.
1520
1521         getcwd: enhance tests
1522         * tests/test-getcwd-lgpl.c: New file, taken from...
1523         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
1524         repeat long path stress tests from m4 probe.
1525         * modules/getcwd-lgpl-tests: New module.
1526         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
1527         * m4/getcwd-abort-bug.m4: Update comment.
1528         * m4/getcwd-path-max.m4: Likewise.
1529
1530         getcwd-lgpl: new module
1531         * modules/getcwd-lgpl: New module.
1532         * lib/getcwd-lgpl.c: New file.
1533         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1534         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1535         * modules/getcwd (configure.ac): Set C witness.
1536         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
1537
1538         getcwd: tweak comments
1539         * m4/getcwd-abort-bug.m4: Fix comments.
1540         * m4/getcwd-path-max.m4: Likewise.
1541         * m4/getcwd.m4: Likewise.
1542
1543 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1544         and Eric Blake  <eblake@redhat.com>
1545
1546         mkstemp: replace if system version uses wrong permissions
1547         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
1548         read/write mode bits set in file created by mkstemp.
1549         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
1550
1551 2011-04-27  Eric Blake  <eblake@redhat.com>
1552
1553         passfd: avoid compiler warning
1554         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
1555         Reported by Laine Stump.
1556
1557 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
1558
1559         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
1560         required by the NetBSD (and perhaps other 4.4BSD derived) join.
1561
1562 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1563         and Eric Blake  <eblake@redhat.com>
1564
1565         mkstemp: mention clean-temp module
1566         * lib/mkstemp.c: Add comment.
1567         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
1568
1569 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
1570
1571         inttypes: also provide default values for 32-bit tests
1572         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
1573         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
1574
1575 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1576
1577         strtoumax: remove dependency on strtoimax
1578         This is like the strtoull change of yesterday.
1579         * modules/strtoumax (Files): Add lib/strtoimax.c.
1580         (Depends-on): Remove strtoimax and add verify.
1581
1582         inttypes-incomplete: new module
1583         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
1584         all but the PRI* and SCN* parts of gl_INTTYPES_H.
1585         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
1586         of gl_INTTYPES_H.
1587         (gl_INTTYPES_H): Rewrite in terms of these new macros.
1588         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
1589         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
1590         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
1591         * modules/strtoumax, modules/xstrtol (Depends-on):
1592         Depend on inttypes-incomplete, not inttypes.
1593         * modules/inttypes-incomplete: New module, containing the contents
1594         of the old modules/inttypes module, except that the Files: section
1595         omits m4/inttypes-pri.m4, and the configure.ac section invokes
1596         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
1597         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
1598         (Depends-on): Depend only on inttypes-incomplete.
1599         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
1600
1601         inttypes: omit now-redundant strtoimax and strtoumax work
1602         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
1603         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
1604
1605         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
1606         This supports apps that need pointers to strtoimax and strtoumax,
1607         and ports to HP-UX 11.00 64.bit, which has macros that expand to
1608         nonexistent functions.  See
1609         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
1610         et seq.
1611         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
1612         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
1613         a macro.
1614         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1615
1616 2011-04-25  Simon Josefsson  <simon@josefsson.org>
1617
1618         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
1619
1620 2011-04-25  Bruno Haible  <bruno@clisp.org>
1621
1622         strtol, strtoul: Mark modules as obsolete.
1623         * modules/strtol (Status, Notice): New sections.
1624         * modules/strtoul (Status, Notice): New sections.
1625
1626 2011-04-25  Bruno Haible  <bruno@clisp.org>
1627
1628         strtod: Remove check for strtod, unless supporting old platforms.
1629         * modules/strtod-obsolete: New file.
1630         * m4/strtod-obsolete.m4: New file.
1631         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
1632         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
1633         * modules/strtod (Depends-on): Add strtod-obsolete.
1634         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
1635
1636 2011-04-25  Bruno Haible  <bruno@clisp.org>
1637
1638         strcase: Make module obsolete.
1639         * modules/strcase (Status, Notice): New sections.
1640
1641 2011-04-25  Bruno Haible  <bruno@clisp.org>
1642
1643         dup2: Remove check for dup2, unless supporting old obsolete platforms.
1644         * modules/dup2-obsolete: New file.
1645         * m4/dup2-obsolete.m4: New file.
1646         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
1647         gl_FUNC_DUP2_OBSOLETE is not also defined.
1648         * modules/dup2 (Depends-on): Add dup2-obsolete.
1649         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
1650
1651 2011-04-25  Bruno Haible  <bruno@clisp.org>
1652
1653         strnlen: Avoid memchr related link error on old obsolete platforms.
1654         * modules/memchr-obsolete: New file.
1655         * m4/memchr-obsolete.m4: New file.
1656         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
1657         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
1658         * modules/memchr (Depends-on): Add memchr-obsolete.
1659         * modules/strnlen (Depends-on): Likewise.
1660         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
1661
1662 2011-04-25  Jim Meyering  <meyering@redhat.com>
1663
1664         maint.mk: makefile_at_at_check extend and clean up
1665         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
1666         in addition to */Makefile.am.
1667         Exempt legitimate uses of @VAR@ notation, e.g.,
1668         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
1669         Remove obsolete coreutils-specific comment.
1670         Prompted by discussion here:
1671         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
1672
1673 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
1674
1675         strtoul: remove dependency on strtol
1676         This is so that 'configure' need not check for strtol merely because
1677         the application needs strtoul.
1678         * modules/strtoul (Files): Add lib/strtol.c.
1679         (Depends-on): Remove strtol.
1680
1681         strtoull: remove dependency on strtoul
1682         This is like the strtoll change.
1683         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
1684         (Depends-on): Remove strtoul.
1685
1686         strtoll: remove dependency on strtol
1687         This is so that 'configure' need not check for strtol merely because
1688         the application needs strtoll.
1689         * modules/strtoll (Files): Add lib/strtol.c.
1690         (Depends-on): Remove strtol.
1691
1692 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1693
1694         inttypes: Move some configure check to module 'imaxdiv'.
1695         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
1696         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
1697         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
1698
1699 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1700
1701         inttypes: Move some configure check to module 'imaxabs'.
1702         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
1703         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
1704         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
1705
1706 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1707
1708         inttypes: Remove configure tests that are not needed since 2009-12-31.
1709         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
1710         gl_cv_header_working_inttypes_h.
1711
1712 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1713
1714         * modules/strnlen (Depends-on): Remove memchr.
1715         The strnlen implementation doesn't need the memchr module's fixes; see
1716         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
1717
1718         strtol: remove dependency on wchar
1719         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
1720         * modules/strtol (Depends-on): Remove wchar.
1721
1722 2011-04-21  Eric Blake  <eblake@redhat.com>
1723
1724         passfd: fix test regression on Linux
1725         * modules/passfd-tests (configure.ac): Correct socketpair check.
1726
1727         passfd: speed up configure and drop unused code
1728         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
1729         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
1730         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
1731         Instead of probing at configure for unix_scm_rights_bsd44_way,
1732         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
1733         check to a struct member probe.
1734         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
1735         (sendfd, recvfd): Update preprocessor checks.
1736         * modules/passfd (Files): Reflect rename, and drop unused file.
1737         (Depends-on): Drop unused dependency.
1738
1739         passfd: allow compilation on mingw
1740         * modules/sys_socket (Depends-on): Add sys_uio.
1741         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
1742         iovec and a minimal struct msghdr.
1743         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
1744         * tests/test-sys_socket.c (main): Enhance test.
1745         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
1746         guaranteed to provide what we need.
1747         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
1748         * modules/passfd-tests (Depends-on): Add sys_wait.
1749         * tests/test-passfd.c (main): Skip test on mingw, for now.
1750         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
1751         partial 'struct msghdr' implementation.
1752
1753         sys_uio: new module
1754         * modules/sys_uio: New module.
1755         * modules/sys_uio-tests: Likewise.
1756         * lib/sys_uio.in.h: New file.
1757         * m4/sys_uio_h.m4: Likewise.
1758         * tests/test-sys_uio.c: Likewise.
1759         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
1760         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
1761
1762 2011-04-20  Jim Meyering  <meyering@redhat.com>
1763
1764         useless-if-before-free: avoid false-positive
1765         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
1766         disjunct so that it too requires a terminating ";".  Without that,
1767         this script would identify as useless one statement from gcc that
1768         was not:
1769           if (aligned_ptr)
1770             free (((void **) aligned_ptr) [-1]);
1771
1772 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
1773
1774         doc: update users.txt.
1775         * users.txt: Add barcode.
1776
1777 2011-04-19  Bruno Haible  <bruno@clisp.org>
1778
1779         ioctl: Remove link dependency on native Windows.
1780         * lib/fd-hook.h: Renamed from lib/close-hook.h.
1781         (gl_close_fn, gl_ioctl_fn): New types.
1782         (struct fd_hook): Renamed from struct close_hook. Change type of
1783         private_close_fn field. Add private_ioctl_fn field.
1784         (close_hook_fn): Add parameter for primary close method.
1785         (execute_close_hooks, execute_all_close_hooks): Likewise.
1786         (ioctl_hook_fn): New type.
1787         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
1788         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1789         argument.
1790         (unregister_fd_hook): Renamed from unregister_close_hook.
1791         * lib/fd-hook.c: Renamed from lib/close-hook.c.
1792         Don't include <unistd.h>.
1793         (close): Remove undef.
1794         (anchor): Update.
1795         (execute_close_hooks): Add argument for primary close method.
1796         (execute_all_close_hooks): Likewise.
1797         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
1798         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1799         argument. Allow each argument to be NULL.
1800         (unregister_fd_hook): Renamed from unregister_close_hook.
1801         * lib/close.c (rpl_close): Pass 'close' function pointer to
1802         execute_all_close_hooks.
1803         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
1804         (primary_ioctl): New function.
1805         (ioctl): Don't call ioctlsocket here. Instead, call
1806         execute_all_ioctl_hooks.
1807         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
1808         close method.
1809         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
1810         (fd_sockets_hook): Renamed from close_sockets_hook.
1811         (gl_sockets_startup, gl_sockets_cleanup): Update.
1812         * modules/fd-hook: Renamed from modules/close-hook. Update.
1813         * modules/close (Depends-on): Add fd-hook, remove close-hook.
1814         * modules/sockets (Depends-on): Likewise.
1815         * modules/ioctl (Depends-on): Add fd-hook.
1816         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
1817         GNULIB_SOCKET.
1818
1819 2011-04-19  Bruno Haible  <bruno@clisp.org>
1820
1821         Move the support of O_NONBLOCK in open() to the 'open' module.
1822         * modules/nonblocking (Depends-on): Remove 'open'.
1823         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
1824         gl_cv_have_open_O_NONBLOCK.
1825         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
1826         O_NONBLOCK support.
1827         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
1828
1829 2011-04-17  Bruno Haible  <bruno@clisp.org>
1830
1831         pipe2: Simplify code.
1832         * lib/pipe2.c (pipe2): Reduce code duplication.
1833
1834 2011-04-17  Bruno Haible  <bruno@clisp.org>
1835
1836         nonblocking: Add comment.
1837         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
1838
1839 2011-04-17  Bruno Haible  <bruno@clisp.org>
1840
1841         nonblocking: Add tests for sockets.
1842         * tests/test-nonblocking-socket.sh: New file.
1843         * tests/test-nonblocking-socket-main.c: New file.
1844         * tests/test-nonblocking-socket-child.c: New file.
1845         * tests/test-nonblocking-socket.h: New file.
1846         * tests/socket-server.h: New file.
1847         * tests/socket-client.h: New file.
1848         * modules/nonblocking-socket-tests: New file.
1849         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
1850
1851 2011-04-17  Bruno Haible  <bruno@clisp.org>
1852
1853         nonblocking: Add tests for pipes.
1854         * tests/test-nonblocking-pipe.sh: New file.
1855         * tests/test-nonblocking-pipe-main.c: New file.
1856         * tests/test-nonblocking-pipe-child.c: New file.
1857         * tests/test-nonblocking-pipe.h: New file.
1858         * tests/test-nonblocking-writer.h: New file.
1859         * tests/test-nonblocking-reader.h: New file.
1860         * tests/test-nonblocking-misc.h: New file.
1861         * modules/nonblocking-pipe-tests: New file.
1862         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
1863
1864 2011-04-16  Bruno Haible  <bruno@clisp.org>
1865
1866         gettext: Clarify the needed programmer actions.
1867         * modules/gettext (Notice): New field.
1868         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1869
1870 2011-04-16  Bruno Haible  <bruno@clisp.org>
1871
1872         strchrnul: Tweak last commit.
1873         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
1874         bug.
1875         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
1876         as in _GL_FUNCDECL_SYS.
1877         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
1878         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
1879
1880 2011-04-15  Eric Blake  <eblake@redhat.com>
1881
1882         strchrnul: work around cygwin bug
1883         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
1884         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
1885         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
1886         * modules/string (Makefile.am): Substitute it.
1887         * lib/string.in.h (strchrnul): Use it.
1888
1889 2011-04-15  Bruno Haible  <bruno@clisp.org>
1890
1891         Don't require lib/stdio-write.c when only module 'stdio' is used.
1892         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
1893         invocation.
1894         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
1895
1896 2011-04-14  Bruno Haible  <bruno@clisp.org>
1897
1898         Support non-blocking pipe I/O in read() on native Windows.
1899         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
1900         (read): New declaration.
1901         * lib/read.c: New file.
1902         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
1903         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
1904         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
1905         vscanf): New declarations.
1906         * lib/stdio-read.c: New file.
1907         * m4/read.m4: New file.
1908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
1909         REPLACE_READ.
1910         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
1911         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1912         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
1913         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
1914         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
1915         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1916         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1917         * modules/read: New file.
1918         * modules/nonblocking (Files): Add lib/stdio-read.c.
1919         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
1920         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
1921         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1922         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1923         * modules/pread (Depends-on): Add read.
1924         * modules/safe-read (Depends-on): Likewise.
1925         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
1926         gets, scanf, vfscanf, vscanf): Verify signatures.
1927         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
1928         problem with non-blocking pipes.
1929         * doc/posix-functions/fgetc.texi: Likewise.
1930         * doc/posix-functions/fgets.texi: Likewise.
1931         * doc/posix-functions/fread.texi: Likewise.
1932         * doc/posix-functions/fscanf.texi: Likewise.
1933         * doc/posix-functions/getc.texi: Likewise.
1934         * doc/posix-functions/getchar.texi: Likewise.
1935         * doc/posix-functions/gets.texi: Likewise.
1936         * doc/posix-functions/scanf.texi: Likewise.
1937         * doc/posix-functions/vfscanf.texi: Likewise.
1938         * doc/posix-functions/vscanf.texi: Likewise.
1939
1940 2011-04-14  Bruno Haible  <bruno@clisp.org>
1941
1942         Support non-blocking pipe I/O in write() on native Windows.
1943         * lib/write.c (rpl_write): Split a write request that failed merely
1944         because the byte count was larger than the pipe buffer's size.
1945         * doc/posix-functions/write.texi: Mention the problem with large byte
1946         counts.
1947
1948 2011-04-14  Bruno Haible  <bruno@clisp.org>
1949
1950         wchar: Ensure that wchar_t gets defined on uClibc.
1951         * lib/wchar.in.h: On uClibc, include <stddef.h>.
1952         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
1953
1954 2011-04-13  Bruno Haible  <bruno@clisp.org>
1955
1956         safe-write, full-read: Avoid unnecessary compilation units.
1957         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
1958         (Depends-on): Remove safe-read. Add ssize_t.
1959         * modules/full-read (Files): Add lib/full-write.c.
1960         (Depends-on): Add full-write.
1961
1962 2011-04-13  Bruno Haible  <bruno@clisp.org>
1963
1964         Support non-blocking pipe I/O and SIGPIPE in pwrite().
1965         * modules/pwrite (Depends-on): Add 'write'.
1966
1967 2011-04-13  Bruno Haible  <bruno@clisp.org>
1968
1969         Support non-blocking pipe I/O in write() on native Windows.
1970         * lib/unistd.in.h (write): Enable replacement also if
1971         GNULIB_UNISTD_H_NONBLOCKING is 1.
1972         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
1973         (rpl_write): When failing to write on a non-blocking pipe, change
1974         errno from ENOSPC to EAGAIN.
1975         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
1976         putchar, puts, vfprintf, vprintf): Enable replacement also if
1977         GNULIB_STDIO_H_NONBLOCKING is 1.
1978         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
1979         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
1980         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
1981         CALL_WITH_SIGPIPE_EMULATION.
1982         (CALL_WITH_SIGPIPE_EMULATION): Use them.
1983         * m4/nonblocking.m4: New file.
1984         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
1985         for non-blocking I/O support.
1986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1987         GNULIB_UNISTD_H_NONBLOCKING.
1988         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
1989         required for non-blocking I/O support.
1990         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
1991         * modules/nonblocking (Files): Add m4/nonblocking.m4,
1992         lib/stdio-write.c, m4/asm-underscore.m4.
1993         (Depends-on): Add stdio, unistd.
1994         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
1995         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
1996         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
1997         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
1998         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
1999         problem with non-blocking pipes.
2000         * doc/posix-functions/fputc.texi: Likewise.
2001         * doc/posix-functions/fputs.texi: Likewise.
2002         * doc/posix-functions/fwrite.texi: Likewise.
2003         * doc/posix-functions/printf.texi: Likewise.
2004         * doc/posix-functions/putc.texi: Likewise.
2005         * doc/posix-functions/putchar.texi: Likewise.
2006         * doc/posix-functions/puts.texi: Likewise.
2007         * doc/posix-functions/vfprintf.texi: Likewise.
2008         * doc/posix-functions/vprintf.texi: Likewise.
2009         * doc/posix-functions/write.texi: Likewise.
2010
2011 2011-04-10  Jim Meyering  <meyering@redhat.com>
2012
2013         maint.mk: prohibit doubled words
2014         Detect them also when they're separated by a newline.
2015         There are 3 ways to customize it:
2016           - disable the test on a per file basis, as usual with rules using
2017             $(VC_LIST_EXCEPT)
2018           - replace the default doubled-word-selecting regexp (affects all files)
2019           - ignore a particular file-vs-doubled-word match
2020         I nearly used that last one to ignore the "is is" match in
2021         coreutils' NEWS file, since the text was "ls -is is ..."
2022         To do that, I would have added this line to cfg.mk:
2023           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
2024         but it would have ignored any "is is" match in NEWS.
2025         Low probability, but still...
2026         Instead, I changed the text, slightly:
2027           -  ls -is is now consistent with ls -lis in ignoring values returned
2028           +  "ls -is" is now consistent with ls -lis in ignoring values returned
2029         * top/maint.mk (prohibit_double_word_RE_): Provide default.
2030         (prohibit_doubled_word_): Define.
2031         (sc_prohibit_doubled_word): New rule.
2032         (sc_prohibit_the_the): Remove.  Subsumed by the above.
2033
2034 2011-04-10  Jim Meyering  <meyering@redhat.com>
2035
2036         maint: fix doubled-word typo in comment
2037         * m4/gethostname.m4: s/is is/it is/
2038         * m4/getdomainname.m4: Likewise.
2039
2040 2011-04-10  Jim Meyering  <meyering@redhat.com>
2041
2042         maint: remove doubled word: s/it it/it/
2043         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
2044
2045 2011-04-10  Jim Meyering  <meyering@redhat.com>
2046
2047         maint.mk: remove useless semicolon and backslash
2048         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
2049         semicolon and backslash.
2050
2051 2011-04-10  Bruno Haible  <bruno@clisp.org>
2052
2053         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
2054         * modules/stdint-tests (Depends-on): Add wchar.
2055
2056 2011-04-10  Jim Meyering  <meyering@redhat.com>
2057
2058         maint: remove doubled words in comments, e.g., s/a a/a/
2059         * lib/strptime.c (day_of_the_week): s/the the/the/
2060         * tests/test-chown.h (test_chown): s/a a/a/
2061
2062         test-chown.h: correct a cast
2063         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
2064         when the destination is a stat.st_gid.
2065
2066 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
2067
2068         getaddrinfo: Fix test for sa_len member.
2069         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
2070         include <sys/types.h> before <sys/socket.h>.
2071
2072 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
2073
2074         maint: change "can not" to "cannot"
2075         * doc/posix-functions/iconv.texi (iconv): This one crossed line
2076         boundaries.
2077
2078 2011-04-09  Jim Meyering  <meyering@redhat.com>
2079
2080         maint: change "a a" to "a"
2081         * tests/test-lchown.h (test_lchown): s/a a/a/
2082
2083         maint.mk: prohibit \<the the\>
2084         * top/maint.mk (sc_prohibit_the_the): New rule.
2085
2086         maint: fix "the the" in comment
2087         * lib/count-one-bits.h: s/the the/the/
2088
2089         maint: change "can not" to "cannot"
2090         But do not change the occurrences in maintain.texi or in
2091         build-aux/po/Makefile.in.in, which I presume comes from gettext.
2092         * doc/gnulib-tool.texi: s/can not/cannot/
2093         * doc/posix-functions/accept.texi (accept): Likewise.
2094         * doc/posix-functions/socket.texi (socket): Likewise.
2095         * lib/mbrtowc.c: Likewise.
2096
2097         maint.mk: prohibit use of "can not"
2098         * top/maint.mk (sc_prohibit_can_not): New rule.
2099         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
2100
2101 2011-04-09  Bruno Haible  <bruno@clisp.org>
2102
2103         careadlinkat: Guard against misuse of careadlinkatcwd.
2104         * lib/careadlinkat.c: Include <stdlib.h>.
2105         (careadlinkatcwd): Check that the fd argument is as expected.
2106
2107 2011-04-09  Bruno Haible  <bruno@clisp.org>
2108
2109         careadlinkat: Use common coding style.
2110         * lib/careadlinkat.c: Move gnulib includes after system includes.
2111
2112 2011-04-09  Bruno Haible  <bruno@clisp.org>
2113
2114         careadlinkat: Clarify specification.
2115         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
2116         (careadlinkatcwd): Add comment.
2117         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
2118
2119 2011-04-09  Bruno Haible  <bruno@clisp.org>
2120
2121         areadlinkat: Avoid link error on many platforms.
2122         * modules/areadlinkat (Depends-on): Add areadlink.
2123
2124 2011-04-09  Bruno Haible  <bruno@clisp.org>
2125
2126         allocator, careadlinkat: Fix double-inclusion guard.
2127         * lib/allocator.h: Fix double-inclusion guard.
2128         * lib/careadlinkat.h: Likewise.
2129
2130 2011-04-09  Bruno Haible  <bruno@clisp.org>
2131
2132         relocatable-prog-wrapper: Update after module 'areadlink' changed.
2133         * lib/relocwrapper.c: Update dependencies hierarchy.
2134         * build-aux/install-reloc: Update list of files to be compiled.
2135         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
2136         lib/allocator.[hc].
2137
2138 2011-04-08  Eric Blake  <eblake@redhat.com>
2139
2140         strftime: silence gnulib-tool warning
2141         * modules/strftime-tests (Depends-on): Drop automatic dependency.
2142
2143 2011-04-08  Bruno Haible  <bruno@clisp.org>
2144
2145         verify: Fix syntax error with GCC 4.6 in C++ mode.
2146         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
2147         (HAVE_STATIC_ASSERT): New macro.
2148         (verify_true, verify): Use 'static_assert' if it is supported and
2149         '_Static_assert' is not supported.
2150
2151 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2152
2153         allocator: New module.
2154         * modules/allocator, lib/allocator.c: New files.
2155         * lib/allocator.h (stdlib_allocator): New decl.
2156         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
2157         Remove.  Do not include <stdlib.h>.
2158         (careadlinkat): Use stdlib_allocator instead of rolling our own.
2159         * modules/careadlinkat (Files): Remove lib/allocator.h.
2160         (Depends-on): Add allocator.
2161
2162         stdlib: let modules use system malloc, realloc
2163         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
2164         if !_GL_USE_STDLIB_ALLOC.
2165         (malloc, realloc): Limit this change to a smaller scope.
2166
2167         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
2168         (malloc, realloc): Don't #undef; no longer needed.
2169         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2170         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2171         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2172         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2173         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2174         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2175         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2176         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2177
2178         careadlinkat: rename members to avoid problem
2179         * lib/allocator.h (struct allocator): Rename members from
2180         malloc/realloc to allocate/reallocate, to avoid problems if malloc
2181         and realloc are #define'd.  Reported by Eric Blake in
2182         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
2183         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
2184
2185 2011-04-08  Eric Blake  <eblake@redhat.com>
2186
2187         nonblocking: reduce dependency
2188         * tests/test-nonblocking.c: Only test sockets when in use.
2189         * modules/nonblocking-tests (Depends-on): Drop socket.
2190         (Makefile.am): Link even if sockets are not present.
2191         * modules/pipe2-tests (Makefile.am): Likewise.
2192         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
2193
2194         pipe2: fix O_NONBLOCK support on mingw
2195         * modules/pipe2 (Depends-on): Add nonblocking.
2196         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
2197         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
2198         * tests/test-nonblocking.c (main): Likewise.
2199         * modules/pipe2-tests (Makefile.am): Avoid link failure.
2200
2201         fcntl-h: fix O_ACCMODE on cygwin
2202         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
2203         * lib/fcntl.in.h (O_ACCMODE): Fix it.
2204
2205         pipe-filter: drop O_NONBLOCK workarounds
2206         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
2207         * modules/pipe-filter-ii (Depends-on): Likewise.
2208         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
2209
2210         nonblocking: provide O_NONBLOCK for mingw
2211         * modules/nonblocking (Depends-on): Add open.
2212         (configure.ac): Set new witness macro.
2213         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
2214         * modules/fcntl-h (Makefile.am): Substitute it.
2215         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
2216         nonblocking module is in use.
2217         * lib/nonblocking.c: Adjust portability test.
2218         * lib/open.c (open): Don't let native open see gnulib flag.
2219         * tests/test-fcntl-h.c (main): Enhance test.
2220         * tests/test-open.h (test_open): Likewise.
2221         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
2222
2223         careadlinkat: fix compilation error on mingw
2224         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
2225         within struct allocator.
2226
2227 2011-04-06  Eric Blake  <eblake@redhat.com>
2228
2229         binary-io: relicense under LGPLv2+
2230         * modules/binary-io (License): Relax to LGPLv2+.
2231         Requested for libvirt, and required by pipe2.
2232
2233 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2234
2235         verify: use _Static_assert if available
2236         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
2237         (verify_true, verify): Use it if available.  This generates better
2238         diagnostics with GCC 4.6.0 and later.
2239
2240 2011-04-05  Bruno Haible  <bruno@clisp.org>
2241
2242         Remove leftover generated .h files after config.status changed.
2243
2244         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
2245         GL_GENERATE_ALLOCA_H.
2246         * modules/alloca-opt (Makefile.am): Remove alloca.h if
2247         GL_GENERATE_ALLOCA_H evaluates to false.
2248
2249         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
2250         GL_GENERATE_ARGZ_H.
2251         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
2252         evaluates to false.
2253
2254         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
2255         GL_GENERATE_BYTESWAP_H.
2256         * modules/byteswap (Makefile.am): Remove byteswap.h if
2257         GL_GENERATE_BYTESWAP_H evaluates to false.
2258
2259         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
2260         GL_GENERATE_ERRNO_H.
2261         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
2262         evaluates to false.
2263
2264         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
2265         GL_GENERATE_FLOAT_H.
2266         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
2267         evaluates to false.
2268
2269         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
2270         GL_GENERATE_FNMATCH_H.
2271         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
2272         GL_GENERATE_FNMATCH_H evaluates to false.
2273
2274         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
2275         GL_GENERATE_GLOB_H.
2276         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
2277         evaluates to false.
2278
2279         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
2280         automake conditional GL_GENERATE_ICONV_H.
2281         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
2282         evaluates to false.
2283
2284         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
2285         GL_GENERATE_NETINET_IN_H.
2286         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
2287         GL_GENERATE_NETINET_IN_H evaluates to false.
2288
2289         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
2290         conditional GL_GENERATE_PTHREAD_H.
2291         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
2292         * modules/pthread (Makefile.am): Remove pthread.h if
2293         GL_GENERATE_PTHREAD_H evaluates to false.
2294
2295         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
2296         GL_GENERATE_SCHED_H.
2297         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
2298         evaluates to false.
2299
2300         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
2301         conditional GL_GENERATE_SELINUX_CONTEXT_H.
2302         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
2303         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
2304
2305         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
2306         GL_GENERATE_STDARG_H.
2307         * modules/stdarg (Makefile.am): Remove stdarg.h if
2308         GL_GENERATE_STDARG_H evaluates to false.
2309
2310         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
2311         GL_GENERATE_STDBOOL_H.
2312         * modules/stdbool (Makefile.am): Remove stdbool.h if
2313         GL_GENERATE_STDBOOL_H evaluates to false.
2314
2315         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
2316         conditional GL_GENERATE_STDDEF_H.
2317         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
2318         * modules/stddef (Makefile.am): Remove stddef.h if
2319         GL_GENERATE_STDDEF_H evaluates to false.
2320
2321         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
2322         GL_GENERATE_STDINT_H.
2323         * modules/stdint (Makefile.am): Remove stdint.h if
2324         GL_GENERATE_STDINT_H evaluates to false.
2325
2326         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
2327         GL_GENERATE_SYSEXITS_H.
2328         * modules/sysexits (Makefile.am): Remove sysexits.h if
2329         GL_GENERATE_SYSEXITS_H evaluates to false.
2330
2331         Reported by Karl Berry and Ralf Wildenhues.
2332
2333 2011-04-05  Bruno Haible  <bruno@clisp.org>
2334
2335         Ensure to rebuild generated .h files when config.status has changed.
2336         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
2337         config.status.
2338         * modules/ctype (Makefile.am): Likewise.
2339         * modules/dirent (Makefile.am): Likewise.
2340         * modules/errno (Makefile.am): Likewise.
2341         * modules/fcntl-h (Makefile.am): Likewise.
2342         * modules/float (Makefile.am): Likewise.
2343         * modules/getopt-posix (Makefile.am): Likewise.
2344         * modules/glob (Makefile.am): Likewise.
2345         * modules/iconv-h (Makefile.am): Likewise.
2346         * modules/inttypes (Makefile.am): Likewise.
2347         * modules/langinfo (Makefile.am): Likewise.
2348         * modules/locale (Makefile.am): Likewise.
2349         * modules/math (Makefile.am): Likewise.
2350         * modules/netdb (Makefile.am): Likewise.
2351         * modules/netinet_in (Makefile.am): Likewise.
2352         * modules/poll-h (Makefile.am): Likewise.
2353         * modules/pthread (Makefile.am): Likewise.
2354         * modules/pty (Makefile.am): Likewise.
2355         * modules/sched (Makefile.am): Likewise.
2356         * modules/search (Makefile.am): Likewise.
2357         * modules/selinux-h (Makefile.am): Likewise.
2358         * modules/signal (Makefile.am): Likewise.
2359         * modules/spawn (Makefile.am): Likewise.
2360         * modules/stdarg (Makefile.am): Likewise.
2361         * modules/stdbool (Makefile.am): Likewise.
2362         * modules/stddef (Makefile.am): Likewise.
2363         * modules/stdint (Makefile.am): Likewise.
2364         * modules/stdio (Makefile.am): Likewise.
2365         * modules/stdlib (Makefile.am): Likewise.
2366         * modules/string (Makefile.am): Likewise.
2367         * modules/strings (Makefile.am): Likewise.
2368         * modules/sys_file (Makefile.am): Likewise.
2369         * modules/sys_ioctl (Makefile.am): Likewise.
2370         * modules/sys_select (Makefile.am): Likewise.
2371         * modules/sys_socket (Makefile.am): Likewise.
2372         * modules/sys_stat (Makefile.am): Likewise.
2373         * modules/sys_time (Makefile.am): Likewise.
2374         * modules/sys_times (Makefile.am): Likewise.
2375         * modules/sys_utsname (Makefile.am): Likewise.
2376         * modules/sys_wait (Makefile.am): Likewise.
2377         * modules/sysexits (Makefile.am): Likewise.
2378         * modules/termios (Makefile.am): Likewise.
2379         * modules/time (Makefile.am): Likewise.
2380         * modules/unistd (Makefile.am): Likewise.
2381         * modules/wchar (Makefile.am): Likewise.
2382         * modules/wctype-h (Makefile.am): Likewise.
2383         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
2384
2385 2011-04-05  Bruno Haible  <bruno@clisp.org>
2386
2387         pipe2: Relicense under LGPLv2+.
2388         * modules/pipe2 (License): Change to LGPLv2+.
2389         Requested by Eric Blake, for libvirt.
2390
2391 2011-04-05  Bruce Korb  <bkorb@gnu.org>
2392
2393         bootstrap: compute gnulib_extra_files after updating build_aux
2394         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
2395         change build_aux or also supply gnulib_extra_files.  Handle correctly.
2396
2397 2011-04-05  Eric Blake  <eblake@redhat.com>
2398
2399         bootstrap: preserve git whitelist item sorting
2400         * build-aux/bootstrap (sort_patterns): New function.
2401         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
2402
2403 2011-04-05  Simon Josefsson  <simon@josefsson.org>
2404
2405         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
2406         sc_space_tab check.
2407
2408 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
2409
2410         areadlink, areadlinkat: rewrite in terms of careadlinkat
2411         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
2412         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
2413         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
2414         (malloc, realloc): Remove #undefs.
2415         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
2416         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
2417         readlink, ssize_t, stdint, unistd.
2418         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
2419         areadlink, stdint.
2420
2421         careadlinkat: new module
2422         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
2423         * modules/careadlinkat: New files, written by me with
2424         a review and feedback from Ben Pfaff in
2425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
2426
2427 2011-04-01  Bruno Haible  <bruno@clisp.org>
2428
2429         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
2430         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
2431         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
2432         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
2433         Reported by Bruce Korb <bruce.korb@gmail.com>.
2434
2435 2011-04-01  Bruno Haible  <bruno@clisp.org>
2436
2437         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
2438         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
2439         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
2440         * modules/wcpcpy (Depends-on): Add extensions.
2441         * modules/wcpncpy (Depends-on): Likewise.
2442         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
2443         systems.
2444         * doc/posix-functions/wcpncpy.texi: Likewise.
2445         * doc/posix-functions/wcwidth.texi: Likewise.
2446
2447 2011-03-31  Eric Blake  <eblake@redhat.com>
2448
2449         nonblocking: fix mingw test failures
2450         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
2451         non-blocking flag on regular file.
2452         (get_nonblocking_flag): Set errno on invalid fd.
2453         * tests/test-nonblocking.c (main): Avoid test failure on
2454         directories if fchdir is not active.
2455         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
2456
2457 2011-03-31  Bruno Haible  <bruno@clisp.org>
2458
2459         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
2460         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
2461         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
2462         Reported by Simon Josefsson <simon@josefsson.org>.
2463
2464 2011-03-31  Bruno Haible  <bruno@clisp.org>
2465         and Eric Blake  <eblake@redhat.com>
2466
2467         nonblocking: new module
2468         * modules/nonblocking: New module.
2469         * modules/nonblocking-tests: Likewise.
2470         * lib/nonblocking.h: New file.
2471         * lib/nonblocking.c: Likewise.
2472         * tests/test-nonblocking.c: New test.
2473         * lib/ioctl.c (ioctl) [mingw]: Update comment.
2474
2475 2011-03-30  Bruno Haible  <bruno@clisp.org>
2476
2477         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
2478         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
2479         instead of 'printf' format for GCC >= 4.4.
2480         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
2481         (fprintf, printf, vfprintf, vprintf): Declare with
2482         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
2483         the system's vfprintf() function.
2484         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
2485
2486 2011-03-30  Eric Blake  <eblake@redhat.com>
2487
2488         passfd: fix scoping bug
2489         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
2490         before sendmsg/recvmsg.
2491
2492         passfd: standardize coding conventions
2493         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
2494         can be learned at compile time.
2495         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
2496         ifdefs.
2497         (sendfd, recvfd): Follow gnulib code conventions.
2498
2499         passfd: fix incorrect sendmsg arguments
2500         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
2501         incorrect msg_controllen value.
2502         * modules/passfd-tests (Depends-on): Check for alarm.
2503         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
2504         Reported by Bastien ROUCARIES.
2505
2506 2011-03-30  Bruno Haible  <bruno@clisp.org>
2507
2508         c-strcasestr: Relicense under LGPLv2+.
2509         * modules/c-strcasestr (License): Change to LGPLv2+.
2510         Requested by Eric Blake, for libvirt.
2511
2512 2011-03-30  Simon Josefsson  <simon@josefsson.org>
2513
2514         * users.txt: Add libidn2.  Fix libtasn1 link.
2515
2516 2011-03-30  Jim Meyering  <meyering@redhat.com>
2517
2518         tests: readlink* ("",... fails with EINVAL on newer kernels
2519         readlink and readlinkat have typically failed with ENOENT for
2520         the invalid, empty file name,  "".  However, with the advent
2521         of linux-2.6.39, they fail with EINVAL.
2522         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
2523         when operating on the empty file name.
2524         * tests/test-readlink.h (test_readlink): Likewise.
2525
2526 2011-03-29  Bruno Haible  <bruno@clisp.org>
2527
2528         Relicense some modules under LGPLv2+, for libidn2.
2529         * modules/array-mergesort (License): Change to LGPLv2+.
2530         * modules/c-strcaseeq (License): Likewise.
2531         * modules/striconveh (License): Likewise.
2532         * modules/striconveha (License): Likewise.
2533         * modules/uniconv/base (License): Likewise.
2534         * modules/uniconv/u8-conv-from-enc (License): Likewise.
2535         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
2536         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
2537         * modules/unictype/base (License): Likewise.
2538         * modules/unictype/bidiclass-of (License): Likewise.
2539         * modules/unictype/category-M (License): Likewise.
2540         * modules/unictype/category-none (License): Likewise.
2541         * modules/unictype/category-of (License): Likewise.
2542         * modules/unictype/category-test (License): Likewise.
2543         * modules/unictype/category-test-withtable (License): Likewise.
2544         * modules/unictype/combining-class (License): Likewise.
2545         * modules/unictype/joiningtype-of (License): Likewise.
2546         * modules/unictype/scripts (License): Likewise.
2547         * modules/uninorm/base (License): Likewise.
2548         * modules/uninorm/canonical-decomposition (License): Likewise.
2549         * modules/uninorm/composition (License): Likewise.
2550         * modules/uninorm/decompose-internal (License): Likewise.
2551         * modules/uninorm/decomposition-table (License): Likewise.
2552         * modules/uninorm/nfc (License): Likewise.
2553         * modules/uninorm/nfd (License): Likewise.
2554         * modules/uninorm/u32-normalize (License): Likewise.
2555         * modules/unistr/base (License): Likewise.
2556         * modules/unistr/u32-cpy (License): Likewise.
2557         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
2558         * modules/unistr/u32-to-u8 (License): Likewise.
2559         * modules/unistr/u32-uctomb (License): Likewise.
2560         * modules/unistr/u8-check (License): Likewise.
2561         * modules/unistr/u8-mblen (License): Likewise.
2562         * modules/unistr/u8-mbtouc (License): Likewise.
2563         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
2564         * modules/unistr/u8-mbtoucr (License): Likewise.
2565         * modules/unistr/u8-prev (License): Likewise.
2566         * modules/unistr/u8-strlen (License): Likewise.
2567         * modules/unistr/u8-to-u32 (License): Likewise.
2568         * modules/unistr/u8-uctomb (License): Likewise.
2569         * modules/unitypes (License): Likewise.
2570         Requested by Simon Josefsson.
2571
2572 2011-03-29  Simon Josefsson  <simon@josefsson.org>
2573
2574         lib-symbol-visibility: Add a notice.
2575         * modules/lib-symbol-visibility (Notice): New field.
2576
2577 2011-03-29  Bruno Haible  <bruno@clisp.org>
2578
2579         getaddrinfo: Doc fix.
2580         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
2581         section "fixed in Gnulib".
2582
2583 2011-03-28  Simon Josefsson  <simon@josefsson.org>
2584
2585         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
2586         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
2587
2588 2011-03-26  Bruno Haible  <bruno@clisp.org>
2589
2590         unictype/property-byname: Reduce the number of load-time relocations.
2591         * lib/unictype/pr_byname.c: Include <stdlib.h>.
2592         (UC_PROPERTY_INDEX_*): New enumeration values.
2593         (uc_property_byname): Convert an index from the lookup table to an
2594         uc_property_t.
2595         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
2596         values.
2597
2598 2011-03-26  Bruno Haible  <bruno@clisp.org>
2599
2600         unictype/property-byname: Allow omitted word separators and aliases.
2601         * lib/unictype/pr_byname.gperf: Add property names without word
2602         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
2603         for 'space'.
2604
2605 2011-03-26  Bruno Haible  <bruno@clisp.org>
2606
2607         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
2608         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
2609         also hyphens to space.
2610         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
2611         without spaces.
2612         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
2613
2614 2011-03-26  Bruno Haible  <bruno@clisp.org>
2615
2616         unictype/joiningtype-byname: Recognize long names as well.
2617         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
2618         a long name.
2619         * lib/unictype/joiningtype_byname.c: Include <string.h>,
2620         unictype/joiningtype_byname.h.
2621         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
2622         * lib/unictype/joiningtype_byname.gperf: New file.
2623         * modules/unictype/joiningtype-byname (Files): Add
2624         lib/unictype/joiningtype_byname.gperf.
2625         (Depends-on): Add gperf.
2626         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
2627         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
2628         long names.
2629
2630         Tests for module 'unictype/joiningtype-longname'.
2631         * modules/unictype/joiningtype-longname-tests: New file.
2632         * tests/unictype/test-joiningtype_longname.c: New file.
2633
2634         New module 'unictype/joiningtype-longname'.
2635         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
2636         * lib/unictype/joiningtype_longname.c: New file.
2637         * modules/unictype/joiningtype-longname: New file.
2638         * modules/unictype/joiningtype-all (Depends-on): Add
2639         unictype/joiningtype-longname.
2640
2641 2011-03-26  Bruno Haible  <bruno@clisp.org>
2642
2643         unictype/bidiclass-byname: Recognize long names as well.
2644         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
2645         name.
2646         * lib/unictype/bidi_byname.c: Include <string.h>,
2647         unictype/bidi_byname.h.
2648         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
2649         * lib/unictype/bidi_byname.gperf: New file.
2650         * modules/unictype/bidiclass-byname (Files): Add
2651         lib/unictype/bidi_byname.gperf.
2652         (Depends-on): Add gperf.
2653         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
2654         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
2655         long names.
2656
2657         Tests for module 'unictype/bidiclass-longname'.
2658         * modules/unictype/bidiclass-longname-tests: New file.
2659         * tests/unictype/test-bidi_longname.c: New file.
2660
2661         New module 'unictype/bidiclass-longname'.
2662         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
2663         * lib/unictype/bidi_longname.c: New file.
2664         * modules/unictype/bidiclass-longname: New file.
2665         * modules/unictype/bidiclass-all (Depends-on): Add
2666         unictype/bidiclass-longname.
2667
2668 2011-03-26  Bruno Haible  <bruno@clisp.org>
2669
2670         unictype/bidi*: Rename modules.
2671         * modules/unictype/bidiclass-all: Renamed from
2672         modules/unictype/bidicategory-all.
2673         * modules/unictype/bidiclass-name: Renamed from
2674         modules/unictype/bidiclass-name.
2675         (Description): Update.
2676         * modules/unictype/bidiclass-name-tests: Renamed from
2677         modules/unictype/bidicategory-name-tests.
2678         * modules/unictype/bidiclass-byname: Renamed from
2679         modules/unictype/bidicategory-byname.
2680         (Description): Update.
2681         * modules/unictype/bidiclass-byname-tests: Renamed from
2682         modules/unictype/bidicategory-byname-tests.
2683         * modules/unictype/bidiclass-of: Renamed from
2684         modules/unictype/bidicategory-of.
2685         (Description): Update.
2686         * modules/unictype/bidiclass-of-tests: Renamed from
2687         modules/unictype/bidicategory-of-tests.
2688         * modules/unictype/bidiclass-test: Renamed from
2689         modules/unictype/bidicategory-test.
2690         (Description): Update.
2691         * modules/unictype/bidiclass-test-tests: Renamed from
2692         modules/unictype/bidicategory-test-tests.
2693         * modules/unictype/bidicategory-all: New file, a simple redirection.
2694         * modules/unictype/bidicategory-name: Likewise.
2695         * modules/unictype/bidicategory-byname: Likewise.
2696         * modules/unictype/bidicategory-of: Likewise.
2697         * modules/unictype/bidicategory-test: Likewise.
2698         * modules/unictype/property-bidi-* (Dependencies): Update.
2699         * lib/unictype/bidi_*.c: Update comment.
2700
2701 2011-03-26  Bruno Haible  <bruno@clisp.org>
2702
2703         unictype/bidi*: Rename functions, part 2.
2704         * modules/unictype/bidicategory-name (configure.ac): Update required
2705         libunistring version.
2706         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
2707
2708 2011-03-25  Bruno Haible  <bruno@clisp.org>
2709
2710         New module 'unictype/combining-class-all'.
2711         * modules/unictype/combining-class-all: New file.
2712
2713         Tests for module 'unictype/combining-class-byname'.
2714         * modules/unictype/combining-class-byname-tests: New file.
2715         * tests/unictype/test-combiningclass_byname.c: New file.
2716
2717         New module 'unictype/combining-class-byname'.
2718         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
2719         * lib/unictype/combiningclass_byname.c: New file.
2720         * lib/unictype/combiningclass_byname.gperf: New file.
2721         * modules/unictype/combining-class-byname: New file.
2722
2723         Tests for module 'unictype/combining-class-longname'.
2724         * modules/unictype/combining-class-longname-tests: New file.
2725         * tests/unictype/test-combiningclass_longname.c: New file.
2726
2727         New module 'unictype/combining-class-longname'.
2728         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
2729         * lib/unictype/combiningclass_longname.c: New file.
2730         * modules/unictype/combining-class-longname: New file.
2731
2732         Tests for module 'unictype/combining-class-name'.
2733         * modules/unictype/combining-class-name-tests: New file.
2734         * tests/unictype/test-combiningclass_name.c: New file.
2735
2736         New module 'unictype/combining-class-name'.
2737         * lib/unictype.in.h (uc_combining_class_name): New declaration.
2738         * lib/unictype/combiningclass_name.c: New file.
2739         * modules/unictype/combining-class-name: New file.
2740
2741 2011-03-25  Bruno Haible  <bruno@clisp.org>
2742
2743         unictype/combining-class: Rename source files.
2744         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
2745         of unictype/combining.h.
2746         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
2747         Update.
2748         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
2749         * modules/unictype/combining-class (Description): Fix.
2750         (Files, Makefile.am): Update.
2751         * tests/unictype/test-combiningclass.c: Renamed from
2752         tests/unictype/test-combining.c.
2753         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
2754
2755 2011-03-25  Bruno Haible  <bruno@clisp.org>
2756
2757         unictype: Update list of canonical combining classes.
2758         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
2759
2760 2011-03-25  Bruno Haible  <bruno@clisp.org>
2761
2762         unictype/category-byname: Recognize long names as well.
2763         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
2764         a long name.
2765         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
2766         unictype/categ_byname.h.
2767         (UC_CATEGORY_INDEX_*): New enumeration values.
2768         (uc_general_category_byname): Use uc_general_category_lookup and
2769         convert from index to value.
2770         * lib/unictype/categ_byname.gperf: New file.
2771         * modules/unictype/category-byname (Files): Add
2772         lib/unictype/categ_byname.gperf.
2773         (Depends-on): Add gperf.
2774         (Makefile.am): Add rule for generating unictype/categ_byname.h.
2775         * tests/unictype/test-categ_byname.c (main): Test the recognition of
2776         long names.
2777
2778         Tests for module 'unictype/category-longname'.
2779         * modules/unictype/category-longname-tests: New file.
2780         * tests/unictype/test-categ_longname.c: New file.
2781
2782         New module 'unictype/category-longname'.
2783         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
2784         * lib/unictype/categ_longname.c: New file.
2785         * modules/unictype/category-longname: New file.
2786         * modules/unictype/category-all (Depends-on): Add it.
2787
2788 2011-03-25  Bruno Haible  <bruno@clisp.org>
2789
2790         Tests for module 'unictype/category-LC'.
2791         * modules/unictype/category-LC-tests: New file.
2792         * tests/unictype/test-categ_LC.c: New file, automatically generated.
2793
2794         New module 'unictype/category-LC'.
2795         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
2796         (UC_CATEGORY_LC): New declaration.
2797         (UC_CASED_LETTER): New macro.
2798         * lib/gen-uni-tables.c (is_category_LC): New function.
2799         (output_categories): Also handle category LC.
2800         (UC_CATEGORY_MASK_LC): New enumeration value.
2801         (general_category_byname): Also handle category LC.
2802         * lib/unictype/categ_LC.c: New file.
2803         * lib/unictype/categ_LC.h: New file, automatically generated.
2804         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
2805         category LC.
2806         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
2807         * modules/unictype/category-LC: New file.
2808         * modules/unictype/category-byname (Depends-on): Add
2809         unictype/category-LC.
2810         * modules/unictype/category-all (Depends-on): Likewise.
2811
2812 2011-03-25  Eric Blake  <eblake@redhat.com>
2813
2814         xmalloc: revert yesterday's regression
2815         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
2816         realloc's underlying behavior (allowing allocation of zero-size
2817         objects, especially if malloc-gnu is also in use).
2818
2819 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
2820
2821         maint.mk: add missing version to VC-tag
2822         * top/maint.mk: git tag was missing actual tag name; add it.
2823
2824         valgrind: do leak checking, and exit with code 1 on error (not 0)
2825         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
2826         to VALGRIND.
2827
2828 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
2829
2830         posix-modules: say what it does.
2831         * posix-modules: Add a line to the --help output saying what it does.
2832
2833 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
2834
2835         xmalloc: Do not leak if underlying realloc is C99 compatible.
2836         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
2837         This avoids a leak on C99-based systems.  See
2838         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
2839
2840 2011-03-24  Eric Blake  <eblake@redhat.com>
2841
2842         realloc: document portability problem
2843         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
2844         passing 0 size to realloc.
2845
2846 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
2847
2848         doc: update users.txt
2849         * users.txt: Add cvsps, tmpwatch
2850
2851 2011-03-23  Matt Rice  <ratmice@gmail.com>
2852
2853         doc: update users.txt
2854         * users.txt: Add gdb.
2855
2856 2011-03-23  Jim Meyering  <meyering@redhat.com>
2857
2858         doc: update users.txt
2859         Looking through matches up to the following URL (there are still
2860         several more pages), I found several projects that use gnulib:
2861         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
2862         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
2863         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
2864
2865 2011-03-22  Bruno Haible  <bruno@clisp.org>
2866
2867         unictype/bidi*: Rename functions.
2868         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
2869         uc_bidi_class, uc_is_bidi_class): New declarations.
2870         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
2871         uc_bidi_category_byname.
2872         (uc_bidi_category_byname): New function.
2873         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
2874         u_bidi_category_name.
2875         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
2876         (uc_bidi_category_name): New function.
2877         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
2878         uc_bidi_category.
2879         (uc_bidi_category): New function.
2880         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
2881         uc_is_bidi_category. Invoke uc_bidi_class.
2882         (uc_is_bidi_category): New function.
2883         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
2884         instead of uc_bidi_category_byname.
2885         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
2886         instead of uc_bidi_category_name.
2887         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
2888         uc_bidi_category.
2889         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
2890         instead of uc_is_bidi_category.
2891
2892 2011-03-21  Bruno Haible  <bruno@clisp.org>
2893
2894         New module 'unictype/joininggroup-all'.
2895         * modules/unictype/joininggroup-all: New file.
2896
2897         Tests for module 'unictype/joininggroup-of'.
2898         * modules/unictype/joininggroup-of-tests: New file.
2899         * tests/unictype/test-joininggroup_of.c: New file.
2900         * tests/unictype/test-joininggroup_of.h: New file, automatically
2901         generated by gen-uni-tables.
2902
2903         New module 'unictype/joininggroup-of'.
2904         * modules/unictype/joininggroup-of: New file.
2905         * lib/unictype/joininggroup_of.c: New file.
2906         * lib/unictype/joininggroup_of.h: New file, automatically generated by
2907         gen-uni-tables.
2908
2909         Tests for module 'unictype/joininggroup-byname'.
2910         * modules/unictype/joininggroup-byname-tests: New file.
2911         * tests/unictype/test-joininggroup_byname.c: New file.
2912
2913         New module 'unictype/joininggroup-byname'.
2914         * modules/unictype/joininggroup-byname: New file.
2915         * lib/unictype/joininggroup_byname.c: New file.
2916         * lib/unictype/joininggroup_byname.gperf: New file.
2917
2918         Tests for module 'unictype/joininggroup-name'.
2919         * modules/unictype/joininggroup-name-tests: New file.
2920         * tests/unictype/test-joininggroup_name.c: New file.
2921
2922         New module 'unictype/joininggroup-name'.
2923         * modules/unictype/joininggroup-name: New file.
2924         * lib/unictype/joininggroup_name.c: New file.
2925         * lib/unictype/joininggroup_name.h: New file.
2926
2927         New module 'unictype/joiningtype-all'.
2928         * modules/unictype/joiningtype-all: New file.
2929
2930         Tests for module 'unictype/joiningtype-of'.
2931         * modules/unictype/joiningtype-of-tests: New file.
2932         * tests/unictype/test-joiningtype_of.c: New file.
2933         * tests/unictype/test-joiningtype_of.h: New file, automatically
2934         generated by gen-uni-tables.
2935
2936         New module 'unictype/joiningtype-of'.
2937         * modules/unictype/joiningtype-of: New file.
2938         * lib/unictype/joiningtype_of.c: New file.
2939         * lib/unictype/joiningtype_of.h: New file, automatically generated by
2940         gen-uni-tables.
2941
2942         Tests for module 'unictype/joiningtype-byname'.
2943         * modules/unictype/joiningtype-byname-tests: New file.
2944         * tests/unictype/test-joiningtype_byname.c: New file.
2945
2946         New module 'unictype/joiningtype-byname'.
2947         * modules/unictype/joiningtype-byname: New file.
2948         * lib/unictype/joiningtype_byname.c: New file.
2949
2950         Tests for module 'unictype/joiningtype-name'.
2951         * modules/unictype/joiningtype-name-tests: New file.
2952         * tests/unictype/test-joiningtype_name.c: New file.
2953
2954         New module 'unictype/joiningtype-name'.
2955         * modules/unictype/joiningtype-name: New file.
2956         * lib/unictype/joiningtype_name.c: New file.
2957
2958         unictype: Add support for Arabic shaping properties.
2959         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
2960         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
2961         declarations.
2962         (UC_JOINING_GROUP_*): New enumeration values.
2963         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
2964         declarations.
2965         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
2966         (unicode_joining_type): New variable.
2967         (UC_JOINING_GROUP_*): New enumeration values.
2968         (unicode_joining_group): New variable.
2969         (fill_arabicshaping, joining_type_as_c_identifier,
2970         output_joining_type_test, output_joining_type,
2971         joining_group_as_c_identifier, output_joining_group_test,
2972         output_joining_group): New functions.
2973         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
2974         fill_arabicshaping and output_joining_type_test, output_joining_type,
2975         output_joining_group_test, output_joining_group.
2976         Reported by Simon Josefsson.
2977
2978 2011-03-21  Jim Meyering  <meyering@redhat.com>
2979
2980         strftime: fix a bug in yesterday's change
2981         * lib/strftime.c (add): Accommodate width's initial value of -1.
2982         Otherwise, nstrftime would copy uninitialized data into
2983         the result buffer.
2984
2985 2011-03-21  Jim Meyering  <meyering@redhat.com>
2986
2987         tests: add strftime-tests module
2988         * tests/test-strftime.c: New file.
2989         * modules/strftime-tests: New module.
2990
2991 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2992
2993         strftime: don't assume a byte count fits in 'int'
2994         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
2995         found this problem by static analysis, using gcc -Wstrict-overflow
2996         (GCC 4.5.2, x86-64).  This reported an optimization that depended
2997         on an integer overflow having undefined behavior, but it turns out
2998         that the argument is a size, which might not fit in 'int' anyway,
2999
3000 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3001
3002         stdio: don't require ignore_value around fwrite
3003
3004         This patch works around libc bug 11959
3005         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
3006         Without this patch, applications must often write
3007         ignore_value (fwrite (...)) even though the ignore_value is
3008         not helpful here.  It's common to write many objects, using
3009         fwrite/printf/etc., and then use ferror to detect output error.
3010
3011         I considered making this patch optional, but decided against it,
3012         because libc is obviously being inconsistent here: there is no
3013         reason libc should insist that user code must inspect fwrite
3014         return's value without also insisting that it inspect printf's,
3015         putchar's, etc.  If user code wants to have a strict style where
3016         all these functions' values are checked (so that ferror need not
3017         be checked), we could add support for that style in a new gnulib
3018         module, but in the meantime it's better to be consistent and to
3019         support common usage.
3020
3021         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
3022         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
3023         that we are compiling in checking mode, and if not C++, and
3024         if not already wrapping fwrite for some other reason.
3025         (fwrite): #define to rpl_fwrite if the latter is defined.
3026
3027 2011-03-20  Bruno Haible  <bruno@clisp.org>
3028
3029         verror: Fix compilation error introduced on 2011-02-13.
3030         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
3031         instead of __attribute__.
3032         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3033
3034 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3035             Bruno Haible  <bruno@clisp.org>
3036
3037         socklen: do not depend on sys_socket
3038         While trying to modify Emacs to use gnulib's socklen module,
3039         I discovered a circular dependency: socklen depends on sys_socket
3040         and vice versa.  Emacs can use socklen, but it does not need
3041         sys_socket because it has its own substitute for sys/socket.h.
3042         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
3043         gl_TYPE_SOCKLEN_T.
3044         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
3045         gl_PREREQ_SYS_H_SOCKET.
3046         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
3047         gl_PREREQ_SYS_H_SOCKET.
3048         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
3049         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
3050         * modules/socklen (Depends-on): Do not depend on sys_socket.
3051         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
3052
3053 2011-03-20  Jim Meyering  <meyering@redhat.com>
3054
3055         maint.mk: sort file names *after* new transformation
3056         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
3057         prefix would have led to an unwarranted failure in GNU parted.
3058         Sort after that transformation.
3059
3060 2011-03-19  Jim Meyering  <meyering@redhat.com>
3061
3062         maint.mk: fix po-file syntax-check rule
3063         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
3064         Patch by Bruno Haible.
3065
3066 2011-03-19  Bruno Haible  <bruno@clisp.org>
3067
3068         socklen: Update comment.
3069         * m4/socklen.m4: Update comment about platforms.
3070
3071 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3072             Bruno Haible  <bruno@clisp.org>
3073
3074         inet_ntop, inet_pton: Simplify.
3075         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
3076         documented to provide socklen_t and we already depend on sys_socket.
3077         * modules/inet_pton (Depends-on): Likewise.
3078         * lib/arpa_inet.in.h: Adjust comment.
3079
3080 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3081             Bruno Haible  <bruno@clisp.org>
3082
3083         netdb: Simplify.
3084         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
3085         documented to provide socklen_t and we already depend on sys_socket.
3086         * lib/netdb.in.h: Adjust comment.
3087
3088 2011-03-19  Bruno Haible  <bruno@clisp.org>
3089
3090         sys_socket, netdb: Document problem with socklen_t.
3091         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
3092         platforms.
3093         * doc/posix-headers/netdb.texi: Likewise.
3094
3095 2011-03-18  Eric Blake  <eblake@redhat.com>
3096
3097         maint.mk: let po check work in VPATH build
3098         * top/maint.mk (po_file): Allow cfg.mk override.
3099         (sc_po_check): Allow VPATH use.
3100         Reported by Jiri Denemark.
3101
3102 2011-03-16  Jim Meyering  <meyering@redhat.com>
3103
3104         maint.mk: allow fine-grained syntax-check exclusion via Make variables
3105         Before, you would have had to create one .x-sc_ file per rule in order
3106         to exempt offending files.  Now, you may instead use a Make variable --
3107         usually defined in cfg.mk -- whose name identifies the affected rule.
3108         * top/maint.mk (_sc_excl): Define.
3109         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
3110         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
3111
3112 2011-03-13  Bruno Haible  <bruno@clisp.org>
3113
3114         ignore-value tests: Avoid warnings.
3115         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
3116         empty for gcc < 3.4.
3117
3118 2011-03-13  Bruno Haible  <bruno@clisp.org>
3119
3120         passfd: Fix link error on Solaris.
3121         * modules/passfd (Description): Correct.
3122         (Depends-on): Add socketlib.
3123         (Link): New section.
3124         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
3125
3126 2011-03-13  Bruno Haible  <bruno@clisp.org>
3127
3128         passfd: Fix link error on AIX 5.2.
3129         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
3130
3131 2011-03-13  Bruno Haible  <bruno@clisp.org>
3132
3133         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
3134         * lib/sys_socket.in.h: Include <stddef.h>.
3135         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
3136         CMSG_FIRSTHDR. Remove unused variable.
3137
3138 2011-03-13  Bruno Haible  <bruno@clisp.org>
3139
3140         passfd: Fix compilation error on OpenBSD.
3141         * lib/passfd.c: Include <sys/uio.h>.
3142
3143 2011-03-13  Bruno Haible  <bruno@clisp.org>
3144
3145         passfd test: Fix warnings.
3146         * tests/test-passfd.c: Include <sys/wait.h>.
3147         (main): Fix typo.
3148
3149 2011-03-13  Bruno Haible  <bruno@clisp.org>
3150
3151         passfd module, part 4, tweaks.
3152         * tests/test-passfd.c: Reorder includes.
3153         (main): Fix perror and printf calls.
3154
3155 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3156
3157         passfd module, part 4.
3158         * modules/passfd-tests: New file.
3159         * tests/test-passfd.c: New file.
3160
3161 2011-03-13  Jim Meyering  <meyering@redhat.com>
3162
3163         Makefile: rely on GNU make; derive syntax-check rule names
3164         Rather than requiring that each sc_ rule be listed as a dependent
3165         of "check", use features of GNU make to derive the list.
3166         * Makefile (syntax-check-rules): Define.
3167         (check): Depend on the new variable, not the hard-coded list.
3168
3169 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
3170             Bruno Haible  <bruno@clisp.org>
3171
3172         passfd module, part 3.
3173         * lib/passfd.h (recvfd): Add a flags argument.
3174         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
3175         (recvfd): Add a flags argument.
3176         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
3177         exists.
3178         * modules/passfd (Depends-on): Add cloexec.
3179         Suggested by Eric Blake.
3180
3181 2011-03-13  Bruno Haible  <bruno@clisp.org>
3182
3183         passfd module, part 2, tweaks.
3184         * modules/passfd (Files): Reorder.
3185         (Depends-on): Remove errno.
3186         (Include): Remove <sys/socket.h>, <sys/un.h>.
3187         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
3188         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
3189         specification header. Include <sys/socket.h> always. Don't include
3190         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
3191         (sendfd): Clarify that it sets errno when it fails.
3192         (recvfd): Fix specification.
3193
3194 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3195
3196         passfd module, part 2.
3197         * modules/passfd: New file.
3198         * lib/passfd.h: New file.
3199         * lib/passfd.c: New file.
3200
3201 2011-03-12  Bruno Haible  <bruno@clisp.org>
3202
3203         wcswidth, mbswidth: Avoid integer overflow.
3204         * lib/wcswidth.c: Include <limits.h>.
3205         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
3206         * lib/mbswidth.c: Include <limits.h>.
3207         (mbsnwidth): Avoid 'int' overflow.
3208         Reported by Jim Meyering.
3209
3210 2011-03-12  Bruno Haible  <bruno@clisp.org>
3211
3212         futimens, utimensat: Avoid endless recursion on Solaris 10.
3213         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
3214         Solaris.
3215         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
3216         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
3217
3218 2011-03-11  Jim Meyering  <meyering@redhat.com>
3219
3220         maint.mk: relax a regexp to accommodate other formatting styles
3221         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
3222         between "ngettext" and the following "(".
3223
3224 2011-03-11  Pádraig Brady <P@draigBrady.com>
3225
3226         maint.mk: suppress a false positive warning
3227         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
3228         diagnostics are marked with ngettext.
3229
3230 2011-03-10  Eric Blake  <eblake@redhat.com>
3231
3232         wchar: add explicit dependencies, for Tru64
3233         * modules/mbmemcasecoll (Depends-on): Add wchar.
3234         * modules/mbtowc (Depends-on): Likewise.
3235         * modules/vasnprintf (Depends-on): Likewise.
3236         * modules/unistdio/u-printf-args (Depends-on): Likewise.
3237         * modules/wctomb (Depends-on): Likewise.
3238         Reported by Peter O'Gorman.
3239
3240 2011-03-08  Bruno Haible  <bruno@clisp.org>
3241
3242         passfd module, part 1, tweaks.
3243         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
3244         Improve indentation. Improve AC_MSG_CHECKING messages.
3245         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
3246         gl_SOCKET_FAMILIES.
3247
3248 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3249
3250         passfd module, part 1.
3251         * m4/afunix.m4: New file.
3252         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
3253         sockets.
3254
3255 2011-03-08  Bruno Haible  <bruno@clisp.org>
3256
3257         regex-quote: New API.
3258         * lib/regex-quote.h: Include <stdbool.h>.
3259         (struct regex_quote_spec): New type.
3260         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3261         New declarations.
3262         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3263         'const struct regex_quote_spec *' argument.
3264         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
3265         (pcre_special): New constant.
3266         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3267         New functions.
3268         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3269         'const struct regex_quote_spec *' argument.
3270         * modules/regex-quote (Depends-on): Add stdbool.
3271         * tests/test-regex-quote.c (check): Update for new API. Add test for
3272         anchored results.
3273         * NEWS: Mention the API change.
3274         Reported by Reuben Thomas and Eric Blake.
3275
3276 2011-03-06  Bruno Haible  <bruno@clisp.org>
3277
3278         regex-quote: Fix creation of POSIX extended regular expressions.
3279         * lib/regex-quote.c (ere_special): Add grouping and alternation
3280         operators.
3281
3282 2011-03-05  Bruno Haible  <bruno@clisp.org>
3283
3284         doc: Improve doc regarding autopoint vs. gnulib.
3285         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
3286         disable autopoint while running autoreconf.
3287         Suggested by Ralf Wildenhues.
3288
3289 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3290
3291         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
3292         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
3293
3294 2011-03-03  Bruce Korb  <bkorb@gnu.org>
3295
3296         parse-duration: remove xalloc.h dependency
3297         * lib/parse-duration.c (parse_period): handle NULL return from
3298         strdup instead of calling xstrdup().
3299         * modules/parse-duration: remove "xalloc" dependency
3300
3301 2011-03-03  Matthew Booth  <mbooth@redhat.com>
3302
3303         bootstrap: honor m4_base when running aclocal
3304         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
3305
3306 2011-03-02  Jim Meyering  <meyering@redhat.com>
3307
3308         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
3309         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
3310         on request from Matt Booth.
3311
3312 2011-03-01  Eric Blake  <eblake@redhat.com>
3313
3314         test-link: work on Hurd
3315         * tests/test-link.h (test_link): Hurd rejects linking directories
3316         with EISDIR instead of the POSIX-mandated EPERM.
3317
3318 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
3319
3320         stdio: simplify by moving files to printf-posix, sigpipe
3321         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
3322         since this symbol is needed only if printf is replaced.
3323         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
3324         Require gl_ASM_SYMBOL_PREFIX.
3325         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
3326         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
3327         (Depends-on): Add 'raise'.
3328         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
3329         * modules/stdio (Files): Remove lib/stdio-write.c,
3330         m4/asm-underscore.m4.
3331         (Depends-on): Remove 'raise'.
3332
3333         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
3334         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
3335         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
3336         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
3337
3338 2011-02-28  Bruno Haible  <bruno@clisp.org>
3339
3340         localcharset: Assume ANSI C behaviour of free().
3341         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
3342         calling free().
3343         Suggested by Simon Josefsson <simon@josefsson.org>.
3344
3345 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
3346             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
3347             Bruno Haible  <bruno@clisp.org>  (tiny change)
3348
3349         On Cygwin, use /proc file system instead of win32 API.
3350         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
3351         Win32 file names.
3352         (DllMain): Simplify by removing Cygwin specific code.
3353         (find_shared_library_fullname): Use Linux specific implementation also
3354         for Cygwin.
3355         (get_shared_library_fullname): Update accordingly.
3356         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
3357         Win32 file names.
3358         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
3359         Cygwin specific code.
3360
3361 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
3362             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
3363
3364         Fix OpenMP flag detection for various Fortran compilers.
3365         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
3366         OpenMP-conditional compilation construct, to force compile
3367         failure with missing OpenMP flag.
3368         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
3369
3370 2011-02-25  Eric Blake  <eblake@redhat.com>
3371
3372         strstr: expand test coverage
3373         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
3374         compilation.
3375         * tests/test-memmem.c (main): Duplicate tests.
3376         * tests/test-strcasestr.c (main): Likewise.
3377         * tests/test-c-strcasestr.c (main): Likewise.
3378
3379 2011-02-25  Jim Meyering  <meyering@redhat.com>
3380
3381         maint.mk: detect missing-NL-at-EOF, too
3382         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
3383         it also detects when a file lacks a newline at EOF.
3384         (require_exactly_one_NL_at_EOF_): Renamed from
3385         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
3386         since people may well have .x-sc_... file names tied to the
3387         existing name.  Suggested by Eric Blake.
3388
3389 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
3390
3391         dirname: move m4/dos.m4 functionality into lib/dosname.h
3392
3393         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
3394         extracts symbols from it, puts them into config.h; but it's much
3395         easier to use the symbols directly.  filename.h already does this,
3396         but it disagrees with dos.m4 in some respects.  This patch
3397         introduces a different include file dosname.h that packages up
3398         dos.m4, and then later we can work on merging filename.h and
3399         dosname.h.  Applications that need only the easy-to-configure
3400         symbols should consider including dosname.h rather than dirname.h.
3401         * NEWS: Mention incompatible changes.
3402         * m4/dos.m4: Remove.
3403         * lib/dosname.h, modules/dosname: New files.
3404         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
3405         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
3406         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
3407         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
3408         Include dosname.h, not dirname.h.
3409         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
3410         Include dosname.h, for definitions of symbols like ISSLASH
3411         that used to be in config.h.
3412         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
3413         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3414         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3415         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3416         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
3417         * modules/rmdir (Files): Likewise.
3418         * modules/stat (Files): Likewise.
3419         * modules/unlink (Files): Likewise.
3420         * modules/dirname-lgpl (Depends-on): Add dosname.
3421         * modules/lstat (Depends-on): Likewise.
3422         * modules/openat (Depends-on): Likewise.
3423         * modules/rmdir (Depends-on): Likewise.
3424         * modules/savewd (Depends-on): Likewise.
3425         * modules/stat (Depends-on): Likewise.
3426         * modules/unlink (Depends-on): Likewise.
3427         * modules/openat (Depends-on): Remove dirname-lgpl.
3428         * modules/savewd (Depends-on): Likewise.
3429         * tests/test-dirname.c: Do not use removed symbols like
3430         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
3431         the remaining symbols, e.g., ISSLASH ('\\').
3432
3433 2011-02-25  Eric Blake  <eblake@redhat.com>
3434
3435         strstr: revert patches that introduced bug and pessimization
3436         * lib/str-two-way.h: Add another reference.
3437         (two_way_short_needle, two_way_long_needle): Revert changes from
3438         2011-02-24; they pessimize search speed.
3439         (critical_factorization): Partially revert changes from
3440         2010-06-22; they violate the requirement that the left half of the
3441         needle be smaller than the period of the needle.
3442
3443 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3444
3445         filenamecat: remove unnecessary dependency on dirname-lgpl
3446         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
3447         is no direct dependency, just an indirect one via filenamecat-lgpl.
3448
3449         remove: remove unnecessary use of m4/dos.m4
3450         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
3451         * modules/remove (FILES): Remove m4/dos.m4.
3452
3453         * lib/openat-proc.c: Don't include dirname.h; not needed.
3454
3455         backupfile: remove unnecessary use of m4/dos.m4
3456         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
3457         of its symbols are used by the backupfile code.  backupfile.c does
3458         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
3459         for the rare case of programs that want all their backup file
3460         names to live within 8+3 limits, and dos.m4 doesn't address that.
3461         * modules/backupfile (Files): Remove m4/dos.m4.
3462
3463 2011-02-24  Jim Meyering  <meyering@redhat.com>
3464
3465         strstr: fix a bug whereby strstr would mistakenly return NULL
3466         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
3467         in period calculation.
3468         (two_way_long_needle): Likewise.
3469         The original problem was reported by Mike Stump in
3470         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
3471         Ralf Wildenhues provided the short needle and haystack.
3472         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
3473         Add a more involved test to trigger the bug in two_way_long_needle.
3474
3475 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3476
3477         gnulib-tool: remove use of bold display in help screen
3478         * gnulib-tool (func_usage): Do not use bold display anymore in the
3479         help screen.  That was just meant to be a temporary emphasis for a
3480         backward-incompatible change.
3481
3482 2011-02-23  Bruno Haible  <bruno@clisp.org>
3483
3484         Fix misindentation of preprocessor directives.
3485         * lib/argp-namefrob.h: Reindent preprocessor directives.
3486         * lib/getopt_int.h (struct _getopt_data): Likewise.
3487         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
3488         * lib/vasnprintf.c (decode_long_double): Likewise.
3489         * tests/test-argmatch.c: Insert blank lines, for clarity.
3490         * tests/test-exclude.c: Likewise.
3491
3492 2011-02-22  Bruno Haible  <bruno@clisp.org>
3493
3494         ioctl: Fix for MacOS X in 64-bit mode.
3495         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
3496         value.
3497         Suggested by Eric Blake.
3498         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
3499
3500 2011-02-22  Jim Meyering  <meyering@redhat.com>
3501
3502         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
3503         * Makefile (sc_cpp_indent_check): Don't limit the check to files
3504         in lib/.
3505
3506 2011-02-22  Eric Blake  <eblake@redhat.com>
3507
3508         maint: avoid any CDPATH issue
3509         * Makefile (sc_cpp_indent_check): Anchor cd argument.
3510
3511         maint: adjust cpp indentation for my modules, as well
3512         * Makefile (sc_cpp_indent_check): Add my name.
3513         * lib/fbufmode.c: Filter through cppi.
3514         * lib/fpurge.c: Likewise.
3515         * lib/freadable.c: Likewise.
3516         * lib/freading.c: Likewise.
3517         * lib/fwritable.c: Likewise.
3518         * lib/fwriting.c: Likewise.
3519         * lib/sigaction.c: Likewise.
3520
3521 2011-02-22  Jim Meyering  <meyering@redhat.com>
3522
3523         maint: adjust cpp indentation to reflect nesting depth
3524         I.e., in a block of code that begins with an unnested "#if",
3525         put one space between the "#" in column 1 and following token.
3526         For example,
3527         -#include <sys/vfs.h>
3528         +# include <sys/vfs.h>
3529         Do this only in .c files that are part of a module I maintain.
3530         * lib/linkat.c: Filter through cppi.
3531         * lib/nanosleep.c: Likewise.
3532         * lib/openat.c: Likewise.
3533         * lib/openat-die.c: Likewise.
3534         * lib/dup3.c: Likewise.
3535         * lib/fchownat.c: Likewise.
3536         * lib/flock.c: Likewise.
3537         * lib/fsync.c: Likewise.
3538         * lib/fts.c: Likewise.
3539         * lib/getpass.c: Likewise.
3540         * lib/gettimeofday.c: Likewise.
3541         * lib/userspec.c: Likewise.
3542         * Makefile (sc_cpp_indent_check): New rule, to check this.
3543
3544 2011-02-22  Bruno Haible  <bruno@clisp.org>
3545
3546         New module 'wctomb'.
3547         * lib/stdlib.in.h (wctomb): New declaration.
3548         * lib/wctomb.c: New file.
3549         * lib/wctomb-impl.h: New file.
3550         * m4/wctomb.m4: New file.
3551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
3552         REPLACE_WCTOMB.
3553         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
3554         REPLACE_WCTOMB.
3555         * modules/wctomb: New file.
3556         * tests/test-stdlib-c++.cc: Test signature of wctomb.
3557         * doc/posix-functions/wctomb.texi: Mention the new module.
3558         * modules/wctob (Depends-on): Add wctomb.
3559
3560 2011-02-22  Bruno Haible  <bruno@clisp.org>
3561
3562         New module 'mbtowc'.
3563         * lib/stdlib.in.h (mbtowc): New declaration.
3564         * lib/mbtowc.c: New file.
3565         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
3566         * m4/mbtowc.m4: New file.
3567         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
3568         REPLACE_MBTOWC.
3569         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
3570         REPLACE_MBTOWC.
3571         * modules/mbtowc: New file.
3572         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
3573         * doc/posix-functions/mbtowc.texi: Mention the new module.
3574         * modules/btowc (Depends-on): Add mbtowc.
3575
3576 2011-02-22  Bruno Haible  <bruno@clisp.org>
3577
3578         wcrtomb: Add more tests for native Windows platforms.
3579         * tests/test-wcrtomb-w32-1.sh: New file.
3580         * tests/test-wcrtomb-w32-2.sh: New file.
3581         * tests/test-wcrtomb-w32-3.sh: New file.
3582         * tests/test-wcrtomb-w32-4.sh: New file.
3583         * tests/test-wcrtomb-w32-5.sh: New file.
3584         * tests/test-wcrtomb-w32.c: New file.
3585         * modules/wcrtomb-tests (Files): Add them.
3586         (Makefile.am): Arrange to run these tests.
3587         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
3588         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
3589
3590 2011-02-20  Bruno Haible  <bruno@clisp.org>
3591
3592         wcrtomb: Enhance test.
3593         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
3594
3595 2011-02-20  Bruno Haible  <bruno@clisp.org>
3596
3597         mbrtowc: Tiny optimization.
3598         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
3599
3600 2011-02-20  Jim Meyering  <meyering@redhat.com>
3601
3602         test-exclude.c: remove unmatched #endif
3603         * tests/test-exclude.c: Remove stray #endif, left over from
3604         the change of a week ago.
3605
3606 2011-02-19  Jim Meyering  <meyering@redhat.com>
3607
3608         git-version-gen: skip "-dirty" check when appropriate
3609         * build-aux/git-version-gen: Don't run any git commands when the
3610         version string comes from .tarball-version.  Prior to this, we
3611         would run git update-index --refresh even from a just-unpacked
3612         tarball directory, and that could affect a .git/ directory in a
3613         parent of the build directory.  Reported by Mike Frysinger.
3614
3615 2011-02-19  Bruno Haible  <bruno@clisp.org>
3616
3617         unictype/property-byname: Reduce the size of the 'data' segment.
3618         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
3619
3620 2011-02-19  Bruno Haible  <bruno@clisp.org>
3621
3622         unictype/scripts: Reduce the size of the 'data' segment.
3623         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
3624         '%pic'.
3625         * lib/unictype/scripts_byname.gperf: Regenerated.
3626
3627 2011-02-19  Bruno Haible  <bruno@clisp.org>
3628
3629         stdint: Update documentation.
3630         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
3631
3632 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
3633
3634         stdint: omit redundant check for wchar.h
3635         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
3636         always tests whether wchar.h exists, so remove the now-redundant test.
3637
3638 2011-02-18  Bruno Haible  <bruno@clisp.org>
3639
3640         stdint: Cut dependency to module 'wchar'.
3641         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
3642         include the necessary prerequisites.
3643         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
3644         * modules/stdint (Depends-on): Remove wchar.
3645         (Makefile.am): Substitute HAVE_WCHAR_H.
3646         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
3647
3648 2011-02-18  Eric Blake  <eblake@redhat.com>
3649
3650         longlong: skip, rather than fail, on cross-compilation
3651         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
3652         when cross-compiling; regression from 2011-02-16.
3653
3654 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3655
3656         * NEWS: Mention 2011-02-08 change to stdlib.
3657
3658 2011-02-17  Bruno Haible  <bruno@clisp.org>
3659
3660         getloadavg: Add comments about platforms.
3661         * m4/getloadavg.m4: Add comment.
3662         * lib/getloadavg.c: Likewise.
3663
3664 2011-02-17  Bruno Haible  <bruno@clisp.org>
3665
3666         getloadavg: Fix link error on Solaris 2.6.
3667         * modules/getloadavg (Link): New section.
3668         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
3669         linking test-getloadavg.
3670         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
3671         getloadavg.
3672
3673 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3674
3675         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
3676         It was 'int', but this doesn't match the IRIX 6.5 manual.
3677         Suggested by Bruno Haible in
3678         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
3679
3680 2011-02-17  Bruno Haible  <bruno@clisp.org>
3681
3682         havelib: Fix comments.
3683         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
3684         change.
3685
3686 2011-02-17  Bruno Haible  <bruno@clisp.org>
3687
3688         havelib: Update config.rpath.
3689         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
3690
3691 2011-02-17  Bruno Haible  <bruno@clisp.org>
3692
3693         getloadavg test: Add some plausibility checks.
3694         * tests/test-getloadavg.c (check_avg): Print a warning when the value
3695         is improbable.
3696
3697 2011-02-16  Eric Blake  <eblake@redhat.com>
3698
3699         maintainer-makefile: make syntax-check a no-op from tarballs
3700         * top/maint.mk (no-vc-detected): New rule.
3701         (local-checks-available): Use it to avoid hanging if someone tries
3702         'make syntax-check' from a tarball.  Also append to any non-syntax
3703         checks already defined in cfg.mk.
3704
3705 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
3706
3707         longlong: tune, particularly for common case of c99
3708
3709         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
3710         or running anything if c99, or if unsigned long long int does not
3711         work.  In either case, we know the answer without further tests.
3712         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
3713         it at most once, and use its results for both long long int and
3714         unsigned long long int.  This is more likely to be efficient in
3715         the common case where the program wants to check for both long
3716         long int and unsigned long long int.
3717         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
3718         since the answer is already known.
3719
3720 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
3721
3722         getloadavg: set errno
3723         * lib/getloadavg.c: Set errno when returning -1.  If no other
3724         error number looks appropriate, set it to ENOSYS if the getloadavg
3725         looks like it can't possibly ever work, ENOTSUP otherwise.
3726         Suggested by Bruno Haible in
3727         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
3728
3729         getloadavg: trim unused parts and speed up 'configure'
3730         * NEWS: Document this.
3731         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
3732         always compiled if getloadavg is absent.
3733         Move test code to ...
3734         * tests/test-getloadavg.c: New file, containing previous
3735         contents of test from lib/getloadavg.c.  It also contains
3736         suggestions by Bruno Haible in
3737         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
3738         * modules/getloadavg-tests: New file.
3739         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
3740         Do tests in the same order as they're needed for getloadavg.c.
3741         Omit setgid-related tests that generate symbols KMEM_GROUP,
3742         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
3743         Do only the tests that are needed to see whether the system has
3744         getloadavg, moving the other tests into ...
3745         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
3746         NLIST_NAME_UNION; nobody should be using it.  Do not define
3747         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
3748         relevant, as the user of this module shouldn't care how getloadavg
3749         is implemented.
3750
3751         getloadavg: omit unused var
3752         * lib/getloadavg.c (getloadavg): Omit unused local variable.
3753
3754 2011-02-15  Jim Meyering  <meyering@redhat.com>
3755
3756         doc: update users.txt
3757         * users.txt: Update iwhd's URL.
3758
3759 2011-02-13  Bruno Haible  <bruno@clisp.org>
3760
3761         Consistent macro naming for macros that use GCC __attribute__.
3762         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
3763         _ATTRIBUTE_NONNULL_.
3764         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
3765         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
3766         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
3767         ATTRIBUTE_DEPRECATED.
3768         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
3769         ATTRIBUTE_NORETURN.
3770         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3771         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3772         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3773         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3774         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
3775         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
3776         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
3777         ATTRIBUTE_SENTINEL.
3778         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
3779         ATTRIBUTE_RETURN_CHECK.
3780         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
3781         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
3782         ATTRIBUTE_NORETURN.
3783         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
3784         Reported by Paul Eggert.
3785
3786 2011-02-13  Bruno Haible  <bruno@clisp.org>
3787
3788         Don't interfere with a program's definition of __attribute__.
3789         * lib/argp.h (__attribute__): Remove definition.
3790         (_GL_ATTRIBUTE_FORMAT): New macro.
3791         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
3792         * lib/argp-fmtstream.h (__attribute__): Remove definition.
3793         (_GL_ATTRIBUTE_FORMAT): New macro.
3794         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
3795         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
3796         GCC 3 or newer.
3797         * lib/error.h (__attribute__): Remove definition.
3798         (_GL_ATTRIBUTE_FORMAT): New macro.
3799         (error, error_at_line): Use it.
3800         * lib/hash.h (__attribute__): Remove definition.
3801         (ATTRIBUTE_WUR): Update definition. Define always.
3802         * lib/openat.h (__attribute__): Remove definition.
3803         (ATTRIBUTE_NORETURN): Update definition. Define always.
3804         * lib/sigpipe-die.h (__attribute__): Remove definition.
3805         (ATTRIBUTE_NORETURN): Update definition. Define always.
3806         * lib/vasnprintf.h (__attribute__): Remove definition.
3807         (_GL_ATTRIBUTE_FORMAT): New macro.
3808         (asnprintf, vasnprintf): Use it.
3809         * lib/xalloc.h (__attribute__): Remove definition.
3810         (ATTRIBUTE_NORETURN): Update definition. Define always.
3811         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
3812         * lib/xmemdup0.h (__attribute__): Remove definition.
3813         (ATTRIBUTE_NORETURN): Update definition. Define always.
3814         * lib/xprintf.h (__attribute__): Remove definition.
3815         (_GL_ATTRIBUTE_FORMAT): New macro.
3816         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
3817         * lib/xstrtol.h (__attribute__): Remove definition.
3818         (ATTRIBUTE_NORETURN): Update definition. Define always.
3819         * lib/xvasprintf.h (__attribute__): Remove definition.
3820         (_GL_ATTRIBUTE_FORMAT): New macro.
3821         (xasprintf, xvasprintf): Use it.
3822         * tests/test-argmatch.c (__attribute__): Remove definition.
3823         (ATTRIBUTE_NORETURN): Update definition. Define always.
3824         * tests/test-exclude.c (__attribute__): Remove definition.
3825         (ATTRIBUTE_NORETURN): Update definition. Define always.
3826         Reported by Paul Eggert.
3827
3828 2011-02-13  Bruno Haible  <bruno@clisp.org>
3829
3830         mbrtowc: Add more tests for native Windows platforms.
3831         * tests/test-mbrtowc-w32-1.sh: New file.
3832         * tests/test-mbrtowc-w32-2.sh: New file.
3833         * tests/test-mbrtowc-w32-3.sh: New file.
3834         * tests/test-mbrtowc-w32-4.sh: New file.
3835         * tests/test-mbrtowc-w32-5.sh: New file.
3836         * tests/test-mbrtowc-w32.c: New file.
3837         * modules/mbrtowc-tests (Files): Add them.
3838         (Makefile.am): Arrange to run these tests.
3839         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
3840         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
3841
3842 2011-02-13  Bruno Haible  <bruno@clisp.org>
3843
3844         mbrtowc: Work around native Windows bug.
3845         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
3846         guess when no suitable locale for testing was found.
3847         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
3848
3849 2011-02-13  Bruno Haible  <bruno@clisp.org>
3850
3851         mbsinit: Work around mingw bug.
3852         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
3853         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
3854         Windows.
3855         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
3856
3857 2011-02-13  Bruno Haible  <bruno@clisp.org>
3858
3859         mbsinit: Don't crash for a NULL argument.
3860         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
3861         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
3862
3863 2011-02-13  Bruno Haible  <bruno@clisp.org>
3864
3865         Don't interfere with a program's definition of __attribute__.
3866         * lib/stdio.in.h (__attribute__): Remove definition.
3867         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
3868         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
3869         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
3870         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
3871         * lib/string.in.h (__attribute__): Remove definition.
3872         Reported by Paul Eggert.
3873
3874 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3875
3876         stdlib: don't get in the way of non-GCC __attribute__
3877         See thread starting at
3878         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
3879         Revert previous stdlib change, installing the following instead:
3880         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
3881         to get in the way of a non-GCC compiler that supports __attribute__.
3882         (_GL_ATTRIBUTE_RETURN): New macro.
3883         (_Exit): Use it instead of __attribute__.
3884
3885 2011-02-12  Bruno Haible  <bruno@clisp.org>
3886
3887         quotearg test: Avoid test failure on mingw.
3888         * tests/test-quotearg.sh: Convert the locale identifier from native
3889         Windows syntax to Unix syntax.
3890
3891 2011-02-12  Bruno Haible  <bruno@clisp.org>
3892
3893         setlocale: Prefer gnulib's override over libintl's override.
3894         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
3895         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
3896         GNULIB_defined_setlocale is set.
3897
3898 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3899
3900         stdlib: support non-GCC __attribute__
3901
3902         Fix a serious and tricky problem encountered when attempting to
3903         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
3904         5.5, but it crashed due to memory corruption on Solaris 10 with
3905         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
3906         bits that are otherwise zero.  This tagging is optional inside
3907         Emacs but is preferred and is used when __attribute__ ((__aligned
3908         (8))) works, as it does with both recent-enough GCC and with Sun C
3909         5.11.  However, Sun C 5.11 is not GCC and does not #define
3910         __GNUC__ and __GNUC_MINOR__.
3911
3912         When I added the getloadavg module to Emacs, it brought in
3913         stdlib.in.h, which contained this fragment:
3914
3915            #ifndef __attribute__
3916            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
3917            #  define __attribute__(Spec)   /* empty */
3918            # endif
3919            #endif
3920
3921         When files that include <stdlib.h> were compiled with Sun C 5.11,
3922         the above code disabled __attribute__ ((__aligned (8))), which
3923         caused variables to not be properly aligned, which eventually led
3924         to the pointer corruption mentioned above.  (This was a bit hard
3925         to diagnose, unfortunately.)
3926
3927         Several "#define __attribute__(X) /* empty */" code snippets need
3928         to be eradicated from Gnulib to work with non-GCC compilers that
3929         support __attribute__.  The Autoconf way to do this is to test for
3930         each kind of attribute that we want support for, and selectively
3931         enable that in source code.
3932
3933         Fix this problem just for stdlib.h, by adding a test for the
3934         __noreturn__ attribute, and change stdlib.in.h to use that test
3935         when needed.  This technique can be easily generalized to the
3936         other *.in.h files and attributes, and a similar technique can be
3937         used for *.h and *.c files.  This patch is enough to solve the
3938         problem for Emacs + getloadavg, and I thought I'd publish it for
3939         feedback before undertaking further, similar fixes in other
3940         modules.
3941
3942         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
3943         because it's not needed for stdlib.h.  It merely substitutes the
3944         value directly into stdlib.h.  We may well need to #define it, or
3945         similar symbols, for other modules, but it's nice to also have an
3946         option to not #define it for applications like Emacs that do not
3947         need it.
3948
3949         * lib/stdlib.in.h (__attribute__): Do not #define.
3950         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
3951         be defined only if the _Exit module is also used.
3952         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
3953         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
3954         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
3955         platforms.
3956         * modules/_Exit (Files): Add m4/attribute.m4.
3957         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
3958         * m4/attribute.m4: New file.
3959
3960 2011-02-12  Bruno Haible  <bruno@clisp.org>
3961
3962         wcsrtombs: Work around bug on native Windows.
3963         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
3964         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
3965         instead of len.
3966         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
3967
3968 2011-02-12  Bruno Haible  <bruno@clisp.org>
3969
3970         mbsrtowcs: Work around bug on native Windows.
3971         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
3972         against mingw bug.
3973         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
3974
3975 2011-02-12  Bruno Haible  <bruno@clisp.org>
3976
3977         Avoid setlocale bugs in tests.
3978         * modules/btowc (Dependencies): Add setlocale.
3979         * modules/c-strcase (Dependencies): Likewise.
3980         * modules/mbmemcasecmp (Dependencies): Likewise.
3981         * modules/mbmemcasecoll (Dependencies): Likewise.
3982         * modules/mbrtowc (Dependencies): Likewise.
3983         * modules/mbscasecmp (Dependencies): Likewise.
3984         * modules/mbscasestr (Dependencies): Likewise.
3985         * modules/mbschr (Dependencies): Likewise.
3986         * modules/mbscspn (Dependencies): Likewise.
3987         * modules/mbsinit (Dependencies): Likewise.
3988         * modules/mbsncasecmp (Dependencies): Likewise.
3989         * modules/mbsnrtowcs (Dependencies): Likewise.
3990         * modules/mbspbrk (Dependencies): Likewise.
3991         * modules/mbspcasecmp (Dependencies): Likewise.
3992         * modules/mbsrchr (Dependencies): Likewise.
3993         * modules/mbsrtowcs (Dependencies): Likewise.
3994         * modules/mbsspn (Dependencies): Likewise.
3995         * modules/mbsstr (Dependencies): Likewise.
3996         * modules/nl_langinfo (Dependencies): Likewise.
3997         * modules/quotearg (Dependencies): Likewise.
3998         * modules/unicase/locale-language (Dependencies): Likewise.
3999         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
4000         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
4001         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
4002         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
4003         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
4004         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
4005         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
4006         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
4007         * modules/vasnprintf-posix (Dependencies): Likewise.
4008         * modules/wcrtomb (Dependencies): Likewise.
4009         * modules/wcsnrtombs (Dependencies): Likewise.
4010         * modules/wcsrtombs (Dependencies): Likewise.
4011
4012 2011-02-12  Bruno Haible  <bruno@clisp.org>
4013
4014         setlocale: Workaround native Windows bug.
4015         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
4016         succeeds but sets LC_CTYPE to "C", report a failure.
4017         * tests/test-setlocale2.sh: New file.
4018         * tests/test-setlocale2.c: New file.
4019         * modules/setlocale-tests (Files): Add the new files.
4020         (Makefile.am): Enable test-setlocale2.sh test.
4021         * doc/posix-functions/setlocale.texi: Mention workaround.
4022
4023 2011-02-11  Bruno Haible  <bruno@clisp.org>
4024
4025         Tests for module 'setlocale'.
4026         * modules/setlocale-tests: New file.
4027         * tests/test-setlocale1.sh: New file.
4028         * tests/test-setlocale1.c: New file.
4029
4030         New module 'setlocale'.
4031         * lib/locale.in.h (setlocale): New declaration.
4032         * lib/setlocale.c: New file, based on
4033         gettext/gettext-runtime/intl/setlocale.c.
4034         * m4/setlocale.m4: New file.
4035         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
4036         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
4037         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
4038         REPLACE_SETLOCALE.
4039         * modules/setlocale: New file.
4040         * tests/test-locale-c++.cc: Test the declaration of setlocale.
4041         * doc/posix-functions/setlocale.texi: Mention the new module.
4042
4043 2011-02-11  Bruno Haible  <bruno@clisp.org>
4044
4045         Prepare for locale dependent tests on mingw.
4046         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
4047         because it has the wrong locale encoding.
4048         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
4049         French_France.1252 instead of "fr".
4050         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
4051         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
4052         because it has the wrong locale encoding.
4053         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
4054         native Windows, try Turkish_Turkey.65001.
4055         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
4056         Chinese_China.54936.
4057
4058         Prepare for locale dependent tests on mingw.
4059         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
4060         differently.
4061         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4062         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4063         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4064         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4065
4066 2011-02-11  Eric Blake  <eblake@redhat.com>
4067
4068         strptime: avoid compiler warnings
4069         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
4070         compiler warnings about dead code.
4071         Reported by Daniel P. Berrange.
4072
4073 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
4074
4075         doc: update users.txt
4076         * users.txt: Add rcs.
4077
4078 2011-02-10  John W. Eaton  <jwe@gnu.org>
4079
4080         doc: update users.txt
4081         * users.txt: Add octave.
4082
4083 2011-02-10  Jim Meyering  <meyering@redhat.com>
4084
4085         doc: update users.txt
4086         * users.txt: Add iwhd.
4087
4088 2011-02-09  Bruno Haible  <bruno@clisp.org>
4089
4090         gnulib-tool: Make copyright notice adjustment more robust.
4091         * gnulib-tool (func_import): In sed_transform_main_lib_file,
4092         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
4093         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
4094         License".
4095         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
4096
4097 2011-02-06  Bruno Haible  <bruno@clisp.org>
4098
4099         New module 'towctrans'.
4100         * modules/towctrans: New file.
4101         * lib/wctype.in.h (towctrans): New declaration.
4102         * lib/towctrans.c: New file.
4103         * lib/towctrans-impl.h: New file.
4104         * m4/towctrans.m4: New file.
4105         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
4106         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
4107         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
4108         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
4109         * doc/posix-functions/towctrans.texi: Mention the new module.
4110
4111 2011-02-06  Bruno Haible  <bruno@clisp.org>
4112
4113         New module 'wctrans'.
4114         * modules/wctrans: New file.
4115         * lib/wctype.in.h (wctrans): New declaration.
4116         * lib/wctrans.c: New file.
4117         * lib/wctrans-impl.h: New file.
4118         * m4/wctrans.m4: New file.
4119         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
4120         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
4121         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
4122         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
4123         * doc/posix-functions/wctrans.texi: Mention the new module.
4124
4125 2011-02-06  Bruno Haible  <bruno@clisp.org>
4126
4127         New module 'iswctype'.
4128         * modules/iswctype: New file.
4129         * lib/wctype.in.h (iswctype): New declaration.
4130         * lib/iswctype.c: New file.
4131         * lib/iswctype-impl.h: New file.
4132         * m4/iswctype.m4: New file.
4133         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
4134         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
4135         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
4136         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
4137         * doc/posix-functions/iswctype.texi: Mention the new module and the
4138         HP-UX 11.00 problem.
4139
4140 2011-02-06  Bruno Haible  <bruno@clisp.org>
4141
4142         New module 'wctype'.
4143         * modules/wctype: Change to represent the wctype() substitute.
4144         * lib/wctype.in.h (wctype): New declaration.
4145         * lib/wctype.c: New file.
4146         * lib/wctype-impl.h: New file.
4147         * m4/wctype.m4: New file.
4148         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
4149         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
4150         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
4151         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
4152         * doc/posix-functions/wctype.texi: Mention the new module and the
4153         HP-UX 11.00 problem.
4154
4155 2011-02-06  Bruno Haible  <bruno@clisp.org>
4156
4157         wctype-h: Ensure wctype_t and wctrans_t are defined.
4158         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
4159         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4160         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4161         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
4162         HAVE_WCTRANS_T.
4163         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
4164
4165 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4166
4167         flock: fix license typo
4168
4169         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
4170         omitted.
4171
4172 2011-02-08  Bruno Haible  <bruno@clisp.org>
4173
4174         Split large sed scripts, for HP-UX sed.
4175         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
4176         to avoid HP-UX limit of 99 commands, in the near future.
4177         * modules/stdlib (Makefile.am): Likewise.
4178         * modules/unistd (Makefile.am): Likewise.
4179         * modules/wchar (Makefile.am): Likewise.
4180         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4181         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
4182         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
4183
4184 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4185             Bruno Haible  <bruno@clisp.org>
4186
4187         stdlib: improve random_r modularization
4188         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
4189         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
4190         you also need the random_r module to get this material right.
4191         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
4192         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
4193         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
4194
4195 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4196
4197         stdlib: don't depend on stdint
4198         * lib/stdlib.in.h: Don't include <stdint.h> merely because
4199         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
4200         be independent of whether stdint.h is needed.
4201         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
4202         here, instead of ...
4203         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
4204         struct random_data should be using the random_r module, not just
4205         the stdlib module (which wouldn't make sense: what package needs
4206         just struct random_data without also needing random_r?).
4207         * modules/stdlib (Depends-on): Remove stdint.
4208
4209         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
4210         See the thread rooted at
4211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
4212         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
4213         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
4214         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
4215         __VMS)); previously it was always included (via fcntl--.h).
4216         (getloadavg): Do not use c_strtod.  Instead, approximate it by
4217         hand; this is good enough for load averages.  Also, do not use
4218         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
4219         flags directly if available and don't bother otherwise.  (Packages
4220         that need the extra reliability should use the modules that define
4221         these flags on older platforms that lack them.)
4222         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
4223         fcntl-safer.
4224
4225 2011-02-08  Jim Meyering  <meyering@redhat.com>
4226
4227         di-set.h, ino-map.h: add multiple-inclusion guard
4228         Technically, the guard is required only for ino-map.h, due to its
4229         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
4230         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
4231         * lib/ino-map.h: Likewise.
4232
4233 2011-02-06  Bruno Haible  <bruno@clisp.org>
4234
4235         iswblank: Ensure declaration on glibc systems.
4236         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
4237         * modules/iswblank (Dependencies): Add 'extensions'.
4238         * doc/posix-functions/iswblank.texi: Document the glibc problem.
4239
4240 2011-02-06  Bruno Haible  <bruno@clisp.org>
4241
4242         New module 'iswblank'.
4243         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
4244         * modules/iswblank: New file.
4245         * modules/wctype-h (Files): Remove lib/iswblank.c.
4246         (Makefile.am): Substitute GNULIB_ISWBLANK.
4247         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
4248         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
4249         (gl_WCTYPE_H_DEFAULTS): New macro.
4250         (gl_WCTYPE_H): Require it. Remove iswblank related code.
4251         * modules/iswblank-tests: New file.
4252         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
4253         * tests/test-wctype-h.c (main): Remove iswblank tests.
4254         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
4255         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
4256         of 'wctype-h'.
4257         * NEWS: Mention the change.
4258         * modules/mbchar (Depends-on): Add iswblank.
4259
4260 2011-02-08  Bruno Haible  <bruno@clisp.org>
4261
4262         di-set tests: Refactor.
4263         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
4264         unnecessary includes.
4265         (ASSERT): Remove macro.
4266         (main): Make C90 compliant by avoiding variable declaration after
4267         statement.
4268         * modules/di-set-tests (Files): Add tests/macros.h.
4269
4270 2011-02-08  Bruno Haible  <bruno@clisp.org>
4271
4272         ino-map tests: Refactor.
4273         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
4274         unnecessary includes.
4275         (ASSERT): Remove macro.
4276         (main): Make C90 compliant by avoiding variable declaration after
4277         statement.
4278         * modules/ino-map-tests (Files): Add tests/macros.h.
4279
4280 2011-02-08  Jim Meyering  <meyering@redhat.com>
4281
4282         di-set: add "const" to a cast
4283         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
4284         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
4285
4286 2011-02-06  Bruno Haible  <bruno@clisp.org>
4287
4288         Rename module 'wctype' to 'wctype-h'.
4289         * modules/wctype-h: Renamed from modules/wctype.
4290         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
4291         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
4292         (Files, Depends-on, Makefile.am): Update.
4293         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
4294         (Files, Makefile.am): Update.
4295         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
4296         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
4297         * doc/posix-headers/wctype.texi: Update.
4298         * doc/posix-functions/iswalnum.texi: Update.
4299         * doc/posix-functions/iswalpha.texi: Update.
4300         * doc/posix-functions/iswblank.texi: Update.
4301         * doc/posix-functions/iswcntrl.texi: Update.
4302         * doc/posix-functions/iswdigit.texi: Update.
4303         * doc/posix-functions/iswgraph.texi: Update.
4304         * doc/posix-functions/iswlower.texi: Update.
4305         * doc/posix-functions/iswprint.texi: Update.
4306         * doc/posix-functions/iswpunct.texi: Update.
4307         * doc/posix-functions/iswspace.texi: Update.
4308         * doc/posix-functions/iswupper.texi: Update.
4309         * doc/posix-functions/iswxdigit.texi: Update.
4310         * doc/posix-functions/towlower.texi: Update.
4311         * doc/posix-functions/towupper.texi: Update.
4312         * NEWS: Mention the change.
4313         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
4314         * modules/mbchar (Dependencies): Likewise.
4315         * modules/mbswidth (Dependencies): Likewise.
4316         * modules/quotearg (Dependencies): Likewise.
4317         * modules/regex (Dependencies): Likewise.
4318         * modules/wcscasecmp (Dependencies): Likewise.
4319         * modules/wcsncasecmp (Dependencies): Likewise.
4320         * modules/wcwidth (Dependencies): Likewise.
4321
4322 2011-02-06  Bruno Haible  <bruno@clisp.org>
4323
4324         New module 'wcswidth'.
4325         * modules/wcswidth: New file.
4326         * lib/wchar.in.h (wcswidth): New declaration.
4327         * lib/wcswidth.c: New file.
4328         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
4329         * m4/wcswidth.m4: New file.
4330         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
4331         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
4332         REPLACE_WCSWIDTH.
4333         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
4334         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
4335         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
4336         * doc/posix-functions/wcswidth.texi: Mention the new module.
4337
4338 2011-02-06  Bruno Haible  <bruno@clisp.org>
4339
4340         New module 'wcstok'.
4341         * modules/wcstok: New file.
4342         * lib/wchar.in.h (wcstok): New declaration.
4343         * lib/wcstok.c: New file.
4344         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
4345         * m4/wcstok.m4: New file.
4346         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
4347         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
4348         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
4349         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
4350         * doc/posix-functions/wcstok.texi: Mention the new module.
4351
4352 2011-02-06  Bruno Haible  <bruno@clisp.org>
4353
4354         New module 'wcsstr'.
4355         * modules/wcsstr: New file.
4356         * lib/wchar.in.h (wcsstr): New declaration.
4357         * lib/wcsstr.c: New file.
4358         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
4359         * m4/wcsstr.m4: New file.
4360         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
4361         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
4362         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
4363         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
4364         * doc/posix-functions/wcsstr.texi: Mention the new module.
4365
4366 2011-02-06  Bruno Haible  <bruno@clisp.org>
4367
4368         New module 'wcspbrk'.
4369         * modules/wcspbrk: New file.
4370         * lib/wchar.in.h (wcspbrk): New declaration.
4371         * lib/wcspbrk.c: New file.
4372         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
4373         * m4/wcspbrk.m4: New file.
4374         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
4375         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
4376         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
4377         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
4378         * doc/posix-functions/wcspbrk.texi: Mention the new module.
4379
4380 2011-02-06  Bruno Haible  <bruno@clisp.org>
4381
4382         New module 'wcsspn'.
4383         * modules/wcsspn: New file.
4384         * lib/wchar.in.h (wcsspn): New declaration.
4385         * lib/wcsspn.c: New file.
4386         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
4387         * m4/wcsspn.m4: New file.
4388         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
4389         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
4390         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
4391         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
4392         * doc/posix-functions/wcsspn.texi: Mention the new module.
4393
4394 2011-02-06  Bruno Haible  <bruno@clisp.org>
4395
4396         New module 'wcscspn'.
4397         * modules/wcscspn: New file.
4398         * lib/wchar.in.h (wcscspn): New declaration.
4399         * lib/wcscspn.c: New file.
4400         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
4401         * m4/wcscspn.m4: New file.
4402         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
4403         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
4404         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
4405         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
4406         * doc/posix-functions/wcscspn.texi: Mention the new module.
4407
4408 2011-02-06  Bruno Haible  <bruno@clisp.org>
4409
4410         New module 'wcsrchr'.
4411         * modules/wcsrchr: New file.
4412         * lib/wchar.in.h (wcsrchr): New declaration.
4413         * lib/wcsrchr.c: New file.
4414         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
4415         * m4/wcsrchr.m4: New file.
4416         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
4417         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
4418         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
4419         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
4420         * doc/posix-functions/wcsrchr.texi: Mention the new module.
4421
4422 2011-02-06  Bruno Haible  <bruno@clisp.org>
4423
4424         New module 'wcschr'.
4425         * modules/wcschr: New file.
4426         * lib/wchar.in.h (wcschr): New declaration.
4427         * lib/wcschr.c: New file.
4428         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
4429         * m4/wcschr.m4: New file.
4430         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
4431         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
4432         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
4433         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
4434         * doc/posix-functions/wcschr.texi: Mention the new module.
4435
4436 2011-02-06  Bruno Haible  <bruno@clisp.org>
4437
4438         New module 'wcsdup'.
4439         * modules/wcsdup: New file.
4440         * lib/wchar.in.h (wcsdup): New declaration.
4441         * lib/wcsdup.c: New file.
4442         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
4443         * m4/wcsdup.m4: New file.
4444         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
4445         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
4446         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
4447         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
4448         * doc/posix-functions/wcsdup.texi: Mention the new module.
4449
4450 2011-02-06  Bruno Haible  <bruno@clisp.org>
4451
4452         New module 'wcsxfrm'.
4453         * modules/wcsxfrm: New file.
4454         * lib/wchar.in.h (wcsxfrm): New declaration.
4455         * lib/wcsxfrm.c: New file.
4456         * lib/wcsxfrm-impl.h: New file.
4457         * m4/wcsxfrm.m4: New file.
4458         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
4459         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
4460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
4461         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
4462         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
4463
4464 2011-02-06  Bruno Haible  <bruno@clisp.org>
4465
4466         New module 'wcscoll'.
4467         * modules/wcscoll: New file.
4468         * lib/wchar.in.h (wcscoll): New declaration.
4469         * lib/wcscoll.c: New file.
4470         * lib/wcscoll-impl.h: New file.
4471         * m4/wcscoll.m4: New file.
4472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
4473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
4474         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
4475         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
4476         * doc/posix-functions/wcscoll.texi: Mention the new module.
4477
4478 2011-02-06  Bruno Haible  <bruno@clisp.org>
4479
4480         New module 'wcsncasecmp'.
4481         * modules/wcsncasecmp: New file.
4482         * lib/wchar.in.h (wcsncasecmp): New declaration.
4483         * lib/wcsncasecmp.c: New file.
4484         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
4485         * m4/wcsncasecmp.m4: New file.
4486         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
4487         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
4488         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
4489         HAVE_WCSNCASECMP.
4490         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
4491         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
4492
4493 2011-02-06  Bruno Haible  <bruno@clisp.org>
4494
4495         New module 'wcscasecmp'.
4496         * modules/wcscasecmp: New file.
4497         * lib/wchar.in.h (wcscasecmp): New declaration.
4498         * lib/wcscasecmp.c: New file.
4499         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
4500         * m4/wcscasecmp.m4: New file.
4501         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
4502         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
4503         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
4504         HAVE_WCSCASECMP.
4505         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
4506         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
4507
4508 2011-02-05  Bruno Haible  <bruno@clisp.org>
4509
4510         New module 'wcsncmp'.
4511         * modules/wcsncmp: New file.
4512         * lib/wchar.in.h (wcsncmp): New declaration.
4513         * lib/wcsncmp.c: New file.
4514         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
4515         * m4/wcsncmp.m4: New file.
4516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
4517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
4518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
4519         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
4520         * doc/posix-functions/wcsncmp.texi: Mention the new module.
4521
4522 2011-02-05  Bruno Haible  <bruno@clisp.org>
4523
4524         New module 'wcscmp'.
4525         * modules/wcscmp: New file.
4526         * lib/wchar.in.h (wcscmp): New declaration.
4527         * lib/wcscmp.c: New file.
4528         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
4529         * m4/wcscmp.m4: New file.
4530         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
4531         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
4532         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
4533         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
4534         * doc/posix-functions/wcscmp.texi: Mention the new module.
4535
4536 2011-02-05  Bruno Haible  <bruno@clisp.org>
4537
4538         New module 'wcsncat'.
4539         * modules/wcsncat: New file.
4540         * lib/wchar.in.h (wcsncat): New declaration.
4541         * lib/wcsncat.c: New file.
4542         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
4543         * m4/wcsncat.m4: New file.
4544         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
4545         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
4546         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
4547         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
4548         * doc/posix-functions/wcsncat.texi: Mention the new module.
4549
4550 2011-02-05  Bruno Haible  <bruno@clisp.org>
4551
4552         New module 'wcscat'.
4553         * modules/wcscat: New file.
4554         * lib/wchar.in.h (wcscat): New declaration.
4555         * lib/wcscat.c: New file.
4556         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
4557         * m4/wcscat.m4: New file.
4558         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
4559         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
4560         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
4561         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
4562         * doc/posix-functions/wcscat.texi: Mention the new module.
4563
4564 2011-02-05  Bruno Haible  <bruno@clisp.org>
4565
4566         New module 'wcpncpy'.
4567         * modules/wcpncpy: New file.
4568         * lib/wchar.in.h (wcpncpy): New declaration.
4569         * lib/wcpncpy.c: New file.
4570         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
4571         * m4/wcpncpy.m4: New file.
4572         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
4573         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
4574         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
4575         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
4576         * doc/posix-functions/wcpncpy.texi: Mention the new module.
4577
4578 2011-02-05  Bruno Haible  <bruno@clisp.org>
4579
4580         New module 'wcsncpy'.
4581         * modules/wcsncpy: New file.
4582         * lib/wchar.in.h (wcsncpy): New declaration.
4583         * lib/wcsncpy.c: New file.
4584         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
4585         * m4/wcsncpy.m4: New file.
4586         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
4587         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
4588         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
4589         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
4590         * doc/posix-functions/wcsncpy.texi: Mention the new module.
4591
4592 2011-02-05  Bruno Haible  <bruno@clisp.org>
4593
4594         New module 'wcpcpy'.
4595         * modules/wcpcpy: New file.
4596         * lib/wchar.in.h (wcpcpy): New declaration.
4597         * lib/wcpcpy.c: New file.
4598         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
4599         * m4/wcpcpy.m4: New file.
4600         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
4601         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
4602         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
4603         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
4604         * doc/posix-functions/wcpcpy.texi: Mention the new module.
4605
4606 2011-02-05  Bruno Haible  <bruno@clisp.org>
4607
4608         New module 'wcscpy'.
4609         * modules/wcscpy: New file.
4610         * lib/wchar.in.h (wcscpy): New declaration.
4611         * lib/wcscpy.c: New file.
4612         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
4613         * m4/wcscpy.m4: New file.
4614         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
4615         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
4616         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
4617         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
4618         * doc/posix-functions/wcscpy.texi: Mention the new module.
4619
4620 2011-02-05  Bruno Haible  <bruno@clisp.org>
4621
4622         New module 'wcsnlen'.
4623         * modules/wcsnlen: New file.
4624         * lib/wchar.in.h (wcsnlen): New declaration.
4625         * lib/wcsnlen.c: New file.
4626         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
4627         * m4/wcsnlen.m4: New file.
4628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
4629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
4630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
4631         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
4632         * doc/posix-functions/wcsnlen.texi: Mention the new module.
4633
4634 2011-02-05  Bruno Haible  <bruno@clisp.org>
4635
4636         New module 'wcslen'.
4637         * modules/wcslen: New file.
4638         * lib/wchar.in.h (wcslen): New declaration.
4639         * lib/wcslen.c: New file.
4640         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
4641         * m4/wcslen.m4: New file.
4642         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
4643         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
4644         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
4645         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
4646         * doc/posix-functions/wcslen.texi: Mention the new module.
4647
4648 2011-02-05  Bruno Haible  <bruno@clisp.org>
4649
4650         New module 'wmemset'.
4651         * modules/wmemset: New file.
4652         * lib/wchar.in.h (wmemset): New declaration.
4653         * lib/wmemset.c: New file.
4654         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
4655         * m4/wmemset.m4: New file.
4656         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
4657         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
4658         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
4659         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
4660         * doc/posix-functions/wmemset.texi: Mention the new module.
4661
4662 2011-02-05  Bruno Haible  <bruno@clisp.org>
4663
4664         New module 'wmemmove'.
4665         * modules/wmemmove: New file.
4666         * lib/wchar.in.h (wmemmove): New declaration.
4667         * lib/wmemmove.c: New file.
4668         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
4669         * m4/wmemmove.m4: New file.
4670         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
4671         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
4672         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
4673         HAVE_WMEMMOVE.
4674         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
4675         * doc/posix-functions/wmemmove.texi: Mention the new module.
4676
4677 2011-02-05  Bruno Haible  <bruno@clisp.org>
4678
4679         New module 'wmemcpy'.
4680         * modules/wmemcpy: New file.
4681         * lib/wchar.in.h (wmemcpy): New declaration.
4682         * lib/wmemcpy.c: New file.
4683         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
4684         * m4/wmemcpy.m4: New file.
4685         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
4686         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
4687         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
4688         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
4689         * doc/posix-functions/wmemcpy.texi: Mention the new module.
4690
4691 2011-02-05  Bruno Haible  <bruno@clisp.org>
4692
4693         New module 'wmemcmp'.
4694         * modules/wmemcmp: New file.
4695         * lib/wchar.in.h (wmemcmp): New declaration.
4696         * lib/wmemcmp.c: New file.
4697         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
4698         * m4/wmemcmp.m4: New file.
4699         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
4700         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
4701         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
4702         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
4703         * doc/posix-functions/wmemcmp.texi: Mention the new module.
4704
4705 2011-02-07  Jim Meyering  <meyering@redhat.com>
4706
4707         di-set, ino-map: new modules, from coreutils
4708         * lib/di-set.c: New file.
4709         * lib/di-set.h: Likewise.
4710         * lib/ino-map.c: Likewise.
4711         * lib/ino-map.h: Likewise.
4712         * modules/di-set: Likewise.
4713         * modules/di-set-tests: Likewise.
4714         * modules/ino-map: Likewise.
4715         * modules/ino-map-tests: Likewise.
4716         * tests/test-di-set.c: Likewise.
4717         * tests/test-ino-map.c: Likewise.
4718
4719 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
4720
4721         getloadavg: merge minor changes from Emacs
4722
4723         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
4724         (getloadavg): Use memset, not bzero.
4725
4726         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
4727         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4728         clash (bug#86).
4729
4730 2010-11-14  Bruno Haible  <bruno@clisp.org>
4731
4732         Allow multiple gnulib generated replacements to coexist.
4733         * lib/getopt.in.h (struct option): Avoid identical redefinition.
4734         * lib/inttypes.in.h (imaxdiv_t): Likewise.
4735         * lib/langinfo.in.h (nl_item): Likewise.
4736         * lib/math.in.h (_NaN, NAN): Likewise.
4737         * lib/netdb.in.h (struct addrinfo): Likewise.
4738         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
4739         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
4740         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
4741         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
4742         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
4743         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
4744         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
4745         pthread_mutexattr_init, pthread_mutexattr_settype,
4746         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
4747         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
4748         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
4749         pthread_spin_trylock, pthread_spin_unlock): Likewise.
4750         * lib/sched.in.h (struct sched_param): Likewise.
4751         * lib/se-selinux.in.h (security_class_t, security_context_t,
4752         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
4753         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
4754         lsetfilecon, fsetfilecon, security_check_context,
4755         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
4756         Likewise.
4757         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
4758         Likewise.
4759         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
4760         _gl_function_taking_int_returning_void_t, union sigval,
4761         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
4762         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
4763         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4764         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
4765         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
4766         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
4767         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
4768         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
4769         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
4770         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
4771         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
4772         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
4773         socklen_t, rpl_fd_isset): Likewise.
4774         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
4775         * lib/sys_time.in.h (struct timeval): Likewise.
4776         * lib/sys_times.in.h (struct tms): Likewise.
4777         * lib/sys_utsname.in.h (struct utsname):
4778         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
4779         * lib/unistd.in.h (getpagesize): Likewise.
4780         * lib/wchar.in.h (mbstate_t): Likewise.
4781         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4782         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
4783         towlower, towupper): Likewise.
4784         Reported by Sam Steingold <sds@gnu.org>.
4785
4786 2011-02-05  Eric Blake  <eblake@redhat.com>
4787
4788         unsetenv: work around Haiku issues
4789         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
4790         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
4791
4792 2010-12-30  Bruce Korb  <bkorb@gnu.org>
4793
4794         libposix: avoid calling error() within libposix
4795         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
4796         is defined.
4797
4798 2011-02-05  Eric Blake  <eblake@redhat.com>
4799
4800         strerror_r-posix: port to cygwin
4801         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
4802         implementation.
4803         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
4804         * tests/test-strerror_r.c (main): Fix test.
4805         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4806         issue.
4807
4808 2011-02-05  Bruno Haible  <bruno@clisp.org>
4809
4810         New module 'wmemchr'.
4811         * modules/wmemchr: New file.
4812         * lib/wchar.in.h (wmemchr): New declaration.
4813         * lib/wmemchr.c: New file.
4814         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
4815         * m4/wmemchr.m4: New file.
4816         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
4817         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
4818         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
4819         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
4820         * doc/posix-functions/wmemchr.texi: Mention the new module.
4821
4822 2011-02-04  Eric Blake  <eblake@redhat.com>
4823
4824         fdopendir: detect FreeBSD bug
4825         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
4826         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
4827
4828 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4829
4830         stdbool: do not define HAVE_STDBOOL_H
4831         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
4832         AC_HEADER_STDBOOL.  All uses changed.  Do not define
4833         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
4834         imported from the latest Autoconf git.  It was motivated by Emacs,
4835         which uses gnulib but does not need HAVE_STDBOOL_H.
4836
4837 2011-02-04  Bruno Haible  <bruno@clisp.org>
4838
4839         wcsnrtombs: Prepare for new module wwcsnrtombs.
4840         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
4841         * lib/wcsnrtombs.c: Include it.
4842         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
4843
4844         wcsrtombs: Prepare for new module wwcsrtombs.
4845         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
4846         * lib/wcsrtombs.c: Include it.
4847         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
4848
4849         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
4850         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
4851         * lib/mbsnrtowcs.c: Include it.
4852         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
4853
4854         mbsrtowcs: Prepare for new module mbsrtowwcs.
4855         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
4856         * lib/mbsrtowcs.c: Include it.
4857         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
4858
4859 2011-02-04  Bruno Haible  <bruno@clisp.org>
4860
4861         vasnprintf: Reduce use of malloc for small format strings.
4862         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
4863         (arguments): Add room for the first 7 arguments.
4864         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
4865         (char_directives, u8_directives, u16_directives, u32_directives): Add
4866         room for the first 7 directives.
4867         * lib/printf-parse.c: Include <string.h>.
4868         (PRINTF_PARSE): Change memory handling code so that it uses the first
4869         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
4870         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
4871         Reported by Pádraig Brady <P@draigbrady.com>.
4872
4873 2011-01-31  Eric Blake  <eblake@redhat.com>
4874
4875         dup2: work around Haiku bug
4876         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
4877         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
4878         * doc/posix-functions/dup2.texi (dup2): Document the bug.
4879         * tests/test-dup2.c (main): Enhance test.
4880
4881 2011-01-31  Simon Josefsson  <simon@josefsson.org>
4882
4883         doc: off_t is not available in eglibc 2.11.2 stdio.h.
4884         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
4885         declared by eglibc 2.11.2.
4886         * lib/stdio.in.h: Likewise.
4887
4888 2011-01-31  Eric Blake  <eblake@redhat.com>
4889
4890         ignore-value: add missing test dependency
4891         * tests/test-ignore-value.c: Revert previous change; stdio.h
4892         provides off_t.
4893         * modules/ignore-value-tests (Depends-on): Add missing dependency.
4894
4895 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4896
4897         mktime: clarify long_int width checking
4898         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
4899         the top level, to make it clearer that the assumption about
4900         long_int width is being checked.  See
4901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
4902
4903 2011-01-30  Simon Josefsson  <simon@josefsson.org>
4904
4905         ignore-value: Fix self-test.
4906         * tests/test-ignore-value.c: Include sys/types.h for off_t.
4907
4908 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4909
4910         TYPE_MAXIMUM: avoid theoretically undefined behavior
4911         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
4912         negative number, which the C Standard says has undefined behavior.
4913         In practice this is not a problem, but might as well do it by the book.
4914         Reported by Rich Felker and Eric Blake; see
4915         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
4916         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
4917         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4918         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4919         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
4920         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4921         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
4922
4923         mktime: #undef mktime before #defining it
4924         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
4925
4926         mktime: systematically normalize tm_isdst comparisons
4927         * lib/mktime.c (isdst_differ): New function.
4928         (__mktime_internal): Use it systematically for all isdst comparisons.
4929         This completes the fix for libc BZ #6723, and removes the need for
4930         normalizing tm_isdst.  See
4931         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
4932         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
4933
4934         mktime: fix some integer overflow issues and sidestep the rest
4935
4936         This was prompted by a bug report by Benjamin Lindner for MinGW
4937         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
4938         His bug is due to signed integer overflow (0 - INT_MIN), and I
4939         I scanned through mktime.c looking for other integer overflow
4940         problems, fixing all the bugs I found.
4941
4942         Although the C Standard says the resulting code is still not safe
4943         in the presence of integer overflow, in practice it should be good
4944         enough for all real-world two's-complement implementations, except
4945         for debugging environments that deliberately trap on integer
4946         overflow (e.g., gcc -ftrapv).
4947
4948         * lib/mktime.c (WRAPV): New macro.
4949         (SHR): Also check that long_int and time_t shift right in the
4950         usual way, before using the fast-but-unportable method.
4951         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
4952         used.  The code already assumed two's complement, so there's
4953         no need to test for alternatives.  All uses removed.
4954         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
4955         the C standard.  Problem reported by Rich Felker in
4956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
4957         (twos_complement_arithmetic): Also check long_int and time_t.
4958         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
4959         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
4960         (__mktime_internal): Avoid integer overflow with unary subtraction
4961         in two instances where -1 - X is an adequate replacement for -X,
4962         since the calculations are approximate.
4963
4964 2011-01-29  Eric Blake  <eblake@redhat.com>
4965
4966         mktime: avoid infinite loop
4967         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
4968         type; behavior is still undefined but portable to all known targets.
4969         Reported by Rich Felker.
4970
4971 2011-01-29  Simon Josefsson  <simon@josefsson.org>
4972
4973         rename, unlink, same-inode: Relicense.
4974         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
4975         * modules/unlink (License): Likewise.
4976         * modules/same-inode (License): Likewise.
4977
4978 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4979
4980         mktime: avoid problems on NetBSD 5 / i386
4981         * lib/mktime.c (long_int): New type.  This works around a problem
4982         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
4983         but time_t is 64 bits, and where I expect the existing code is
4984         wrong in some cases.
4985         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
4986         (ydhms_diff): Bring back the compile-time check for wide-enough
4987         year and yday.
4988
4989         mktime: fix misspelling in comment
4990         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
4991         This merges all recent glibc changes of importance.
4992
4993 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4994
4995         move-if-change: cope with concurrent mv of identical file.
4996         * build-aux/move-if-change (CMPPROG): Accept environment
4997         variable as an override for `cmp'.
4998         (usage): Document CMPPROG.
4999         Adjust comparison to drop stdout.  Cope with failure of mv if
5000         the target file exists and is identical to the source, for
5001         parallel builds.
5002         Report from H.J. Lu against binutils in PR binutils/12283.
5003
5004 2011-01-28  Bruce Korb  <bkorb@gnu.org>
5005
5006         * users.txt: Mention sharutils.
5007
5008 2011-01-28  Simon Josefsson  <simon@josefsson.org>
5009
5010         * users.txt: Mention OATH Toolkit.
5011
5012 2011-01-27  Bruno Haible  <bruno@clisp.org>
5013
5014         Prepare for supporting FreeBSD 10.
5015         * build-aux/config.libpath: Remove handling of freebsd1*.
5016
5017 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
5018
5019         Prepare for supporting FreeBSD 10.
5020         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
5021         match FreeBSD 10.0.
5022
5023 2011-01-27  Bruno Haible  <bruno@clisp.org>
5024
5025         vma-iter, get-rusage-as: Add OpenBSD support.
5026         * modules/vma-iter (configure.ac): Test for mquery.
5027         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
5028         * lib/vma-iter.c: Include <sys/mman.h>.
5029         (vma_iterate): Add an implementation based on mquery().
5030         * lib/resource-ext.h (get_rusage_as): Update comments.
5031         * lib/get-rusage-as.c: Likewise.
5032         * lib/get-rusage-data.c: Likewise.
5033
5034 2011-01-26  Karl Berry  <karl@gnu.org>
5035
5036         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
5037         variables to make it easier to override the makeinfo program used.
5038
5039 2011-01-26  Eric Blake  <eblake@redhat.com>
5040
5041         fcntl: work around Haiku F_DUPFD bugs
5042         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
5043         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
5044         cloexec bit on duplication.
5045         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
5046
5047 2011-01-26  Bruno Haible  <bruno@clisp.org>
5048
5049         Enable memory leak tests on AIX.
5050         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
5051         * tests/test-fprintf-posix3.c (main): Likewise.
5052
5053 2011-01-26  Bruno Haible  <bruno@clisp.org>
5054
5055         Tests for module 'get-rusage-data'.
5056         * modules/get-rusage-data-tests: New file.
5057         * tests/test-get-rusage-data.c: New file.
5058
5059         New module 'get-rusage-data'.
5060         * lib/resource-ext.h (get_rusage_data): New declaration.
5061         * lib/get-rusage-data.c: New file.
5062         * modules/get-rusage-data: New file.
5063
5064 2011-01-25  Bruno Haible  <bruno@clisp.org>
5065
5066         get-rusage-as: Allow for easier testing.
5067         * lib/resource-ext.h (get_rusage_as): Add comment.
5068         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
5069         (main): New function for interactive testing.
5070
5071 2011-01-25  Bruno Haible  <bruno@clisp.org>
5072
5073         vma-iter: Treat Haiku like BeOS.
5074         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
5075         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
5076
5077 2011-01-25  Eric Blake  <eblake@redhat.com>
5078
5079         c-stack: fix regression on cygwin when libsigsegv is present
5080         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
5081
5082 2011-01-24  Bruno Haible  <bruno@clisp.org>
5083
5084         vma-iter: Avoid empty intervals.
5085         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
5086         on an empty interval.
5087
5088 2011-01-24  Jim Meyering  <meyering@redhat.com>
5089
5090         u64: remove unnecessary #include
5091         * lib/u64.h: Don't include <stddef.h>.  It was not used.
5092
5093 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5094
5095         Allow the user to avoid the HAVE_RAW_DECL_* macros.
5096         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
5097
5098 2011-01-23  Bruno Haible  <bruno@clisp.org>
5099
5100         New module 'vma-iter'.
5101         * lib/vma-iter.h: New file.
5102         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
5103         * modules/vma-iter: New file.
5104         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
5105         for get_rusage_as_via_iterator.
5106         (vma_iterate_callback): New function.
5107         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
5108         * modules/get-rusage-as (Depends-on): Add vma-iter.
5109
5110 2011-01-23  Bruno Haible  <bruno@clisp.org>
5111
5112         uninorm: Tweak includes.
5113         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
5114         Reported by Jim Meyering.
5115
5116 2011-01-23  Bruno Haible  <bruno@clisp.org>
5117
5118         get-rusage-as: Improve on NetBSD.
5119         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
5120         /proc, like on FreeBSD.
5121
5122 2011-01-23  Jim Meyering  <meyering@redhat.com>
5123
5124         xreadlink.h: remove unnecessary #include
5125         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
5126
5127         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
5128         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
5129
5130 2011-01-23  Bruno Haible  <bruno@clisp.org>
5131
5132         get-rusage-as: Fix bug.
5133         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
5134         original limit when aborting the first loop.
5135
5136 2011-01-23  Bruno Haible  <bruno@clisp.org>
5137
5138         wctype: Ensure valid C syntax.
5139         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
5140         unconditionally, instead of gl_NEXT_HEADERS conditionally.
5141
5142 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5143
5144         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
5145         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
5146         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
5147         as they are needed only for configure's test case.
5148         This removes two unnecessary symbols from config.h.
5149
5150         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
5151         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
5152         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
5153         AC_CHECK_HEADERS_ONCE on a header that we also invoke
5154         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
5155         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
5156         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
5157         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5158         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5159         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5160         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5161         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5162         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5163         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5164         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5165         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5166         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5167         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5168
5169 2011-01-21  Eric Blake  <eblake@redhat.com>
5170
5171         maintainer-makefile: work with older git for submodule check
5172         * top/maint.mk (public-submodule-commit): Rewrite to avoid
5173         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
5174         Reported by Matthias Bolte.
5175
5176         bootstrap: minor portability fixes
5177         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
5178         (usage): Omit leading capital and trailing . on help phrases, per
5179         GNU Coding Standards.
5180         (check_versions, top level): Prefix messages with script name.
5181
5182 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
5183
5184         bootstrap: support --no-git option
5185         * build-aux/bootstrap: Add --no-git option, to be used when
5186         --gnulib-srcdir points to the exact desired checkout.
5187
5188 2011-01-21  Eric Blake  <eblake@redhat.com>
5189
5190         strerror_r-posix: work with glibc 2.13
5191         * lib/strerror_r.c (strerror_r): Fix return type.
5192
5193 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5194             Bruno Haible  <bruno@clisp.org>
5195
5196         uN_strstr: New unit tests.
5197         * modules/unistr/u8-strstr-tests: New file.
5198         * modules/unistr/u16-strstr-tests: New file.
5199         * modules/unistr/u32-strstr-tests: New file.
5200         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
5201         * tests/unistr/test-u8-strstr.c: New file.
5202         * tests/unistr/test-u16-strstr.c: New file.
5203         * tests/unistr/test-u32-strstr.c: New file.
5204
5205 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5206             Bruno Haible  <bruno@clisp.org>
5207
5208         Make uN_strstr functions O(n) worst-case.
5209         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
5210         16-bit and 32-bit unit cases, use the unibyte algorithm from
5211         lib/mbsstr.c.
5212         * lib/unistr/u8-strstr.c: Include <string.h>.
5213         (UNIT_IS_UINT8_T): New macro.
5214         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
5215         (U_STRLEN, U_STRNLEN): New macros.
5216         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
5217         (U_STRLEN, U_STRNLEN): New macros.
5218         * modules/unistr/u8-strstr (Depends-on): Add strstr.
5219         (configure.ac): Update required libunistring version.
5220         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
5221         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
5222         malloca.
5223         (configure.ac): Update required libunistring version.
5224         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
5225         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
5226         malloca.
5227         (configure.ac): Update required libunistring version.
5228
5229 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5230             Bruno Haible  <bruno@clisp.org>
5231
5232         Prepare for faster uN_strstr functions.
5233         * lib/str-kmp.h: Support definable UNITs.
5234         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
5235         needle_len argument.
5236         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
5237         * lib/mbscasestr.c (mbscasestr): Likewise.
5238
5239 2011-01-21  Pádraig Brady <P@draigBrady.com>
5240
5241         malloca-tests: make faster by unsetting MALLOC_PERTURB_
5242         * tests/test-malloca.c (main): Unset the environment variable
5243         to greatly speed up the test.
5244         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
5245         * modules/malloca-tests: Depend on unsetenv.
5246
5247 2011-01-21  Pádraig Brady <P@draigBrady.com>
5248
5249         ignore-value: remove stdint dependency
5250         * lib/ignore-value.h: Remove <stdint.h>
5251         * modules/ignore-value: Remove stdint dependency.
5252
5253 2011-01-21  Jim Meyering  <meyering@redhat.com>
5254
5255         maint.mk: adjust variable name to be consistent with other gl_ vars
5256         * top/maint.mk (gl_public_submodule_commit): Rename the variable
5257         to be lower case.
5258
5259 2011-01-20  Jim Meyering  <meyering@redhat.com>
5260
5261         maint.mk: make "check" depend on public-submodule-commit by default
5262         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
5263
5264 2011-01-20  Bruno Haible  <bruno@clisp.org>
5265
5266         mbfile, mbiter: Complete change from 2008-12-21.
5267         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
5268         * m4/mbiter.m4 (gl_MBITER): Likewise.
5269
5270 2011-01-20  Jim Meyering  <meyering@redhat.com>
5271
5272         init.sh: insert space between each function name and "()"
5273         * tests/init.sh: Make it a little easier to see that a function's
5274         name is "warn_", and not "warn" when looking at the first part of
5275         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
5276
5277 2011-01-20  Jim Meyering  <meyering@redhat.com>
5278
5279         mountlist: clean up code formatting
5280         * lib/mountlist.c (read_file_system_list): Split a long line,
5281         correct bracing style, use NULL in place of "(struct statfs *)0",
5282         don't parenthesize return value, add spaces around "=" and after
5283         ";-in-for-stmt".
5284
5285 2011-01-14  Markus Duft <mduft@gentoo.org>
5286
5287         mountlist: add support for Interix
5288         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
5289         Apply statvfs to all entries of /dev/fs.
5290         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
5291         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
5292
5293 2011-01-20  Jim Meyering  <meyering@redhat.com>
5294
5295         maint.mk: improve the public-submodule-commit rule
5296         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
5297         to suppress printing of its commands... unless V=1.
5298         Add git submodule's --quiet option to suppress printing of e.g.,
5299         "Entering gnulib" output.
5300         "cd" into $(srcdir) before running git submodule.
5301
5302 2011-01-20  Bruno Haible  <bruno@clisp.org>
5303
5304         include_next: Fix bug introduced on 2011-01-18.
5305         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
5306         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
5307         ac_cv_header_... variable if the second argument is not 'check'.
5308         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
5309         gl_NEXT_HEADERS_INTERNAL.
5310
5311 2011-01-20  Bruno Haible  <bruno@clisp.org>
5312
5313         Allow the user to avoid the GNULIB_TEST_* macros.
5314         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
5315         Suggested by Paul Eggert.
5316
5317 2011-01-14  Jim Meyering  <meyering@redhat.com>
5318
5319         bootstrap: avoid failure when there is no .gitmodules file
5320         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
5321         has been assigned to, even when its value is the empty string.
5322         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
5323         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
5324         Reported by John W. Eaton <jwe@gnu.org>.
5325
5326 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
5327
5328         assume <ctype.h>, ..., <time.h> exist
5329         For years gnulib has been assuming the existence of the headers
5330         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
5331         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
5332         them, since they don't appear to be needed.
5333         * README (Portability guidelines): Document this.
5334         * lib/flock.c: Assume <fcntl.h> exists.
5335         * lib/regex_internal.h: Assume <locale.h> exists.
5336         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
5337         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
5338         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
5339         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
5340         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
5341         * m4/regex.m4 (gl_REGEX): Likewise.
5342         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
5343         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
5344         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
5345         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
5346         * tests/test-argp.c: Likewise.
5347         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
5348
5349         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
5350         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
5351         AA_APPLE_UNIVERSAL_BUILD.  See
5352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
5353         * NEWS: Document this.
5354
5355 2011-01-19  Eric Blake  <eblake@redhat.com>
5356
5357         c-stack: assume stack overflow if SA_SIGINFO unsupported
5358         * lib/c-stack.c (SIGACTION_WORKS): Rename...
5359         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
5360         sigaction will work.
5361         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
5362         behavior match Linux.
5363         * tests/test-c-stack.c (main): Prefer NULL for pointers.
5364
5365         stdbool-tests: accomodate Haiku
5366         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
5367
5368         binary-io: fix O_TEXT on Haiku
5369         * modules/binary-io (Depends-on): Add fcntl-h.
5370         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
5371         than blindly undefining O_TEXT.
5372         Reported by Scott McCreary.
5373
5374 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5375
5376         include_next: do not check for standard headers like stddef.h
5377
5378         I found this problem when modifying Emacs to use gnulib.
5379         I noticed that it added HAVE_STDDEF_H to config.h, even though
5380         gnulib always assumes <stddef.h> exists as per README and this
5381         symbol is unnecessary.
5382         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
5383         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
5384         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
5385         faster for headers like stddef.h that are known to exist.
5386         (gl_CHECK_NEXT_HEADERS): Use it.
5387         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
5388         rather than gl_CHECK_NEXT_HEADERS.
5389         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
5390         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
5391
5392 2011-01-18  Eric Blake  <eblake@redhat.com>
5393
5394         ansi-c++-opt: skip C++ dependency style if C++ is unused
5395         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
5396         tests when we know C++ compilation is not desired.
5397         Reported by Scott McCreary.
5398
5399 2011-01-18  Bruno Haible  <bruno@clisp.org>
5400
5401         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
5402         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
5403         (main): Perform test also when getrlimit and setrlimit don't exist or
5404         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
5405         limiting the address space size using setrlimit, compare the address
5406         space size before and after the the test.
5407         * tests/test-dprintf-posix2.c: Likewise.
5408         * tests/test-fprintf-posix3.sh: Update skip messages.
5409         * tests/test-dprintf-posix2.sh: Likewise.
5410         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
5411         * modules/dprintf-posix-tests (Depends-on): Likewise.
5412         Reported by Bruce Korb <bkorb@gnu.org> and
5413         Gary V. Vaughan <gary@gnu.org>.
5414
5415 2011-01-18  Bruno Haible  <bruno@clisp.org>
5416
5417         get-rusage-as: Improvement for Cygwin.
5418         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
5419         areas that are merely reserved.
5420
5421 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5422
5423         strftime: remove dependencies on multibyte modules
5424
5425         strftime depended on mbrlen, mbsinit, and wchar, but these modules
5426         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
5427         only if __osf__ is defined, and I suspect OSF doesn't need these
5428         other modules.  If my guess is wrong, we'll need to come up with a
5429         variant of strftime that doesn't need the multibyte modules.
5430
5431         I discovered this problem when attempting modify Emacs to use the
5432         strftime module.  With the previous gnulib, this caused Emacs to
5433         need 31 new files, ranging from lib/config.charset to
5434         m4/wint_t.m4.  This was overkill and I expect would be offputting
5435         to the Emacs maintainers.  After this change, only 6 new files are
5436         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
5437         stdbool.m4, and tm_gmtoff.m4.
5438
5439         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
5440         Suggested by Bruno Haible in
5441         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
5442         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
5443         and do not check for wchar.h.
5444         * modules/strftime (Files): Remove m4/mbstate_t.m4.
5445         (Depends-on): Remove mbrlen, mbsinit, wchar.
5446
5447 2011-01-18  Bruno Haible  <bruno@clisp.org>
5448
5449         Tests for module 'get-rusage-as'.
5450         * modules/get-rusage-as-tests: New file.
5451         * tests/test-get-rusage-as.c: New file.
5452
5453         New module 'get-rusage-as'.
5454         * modules/get-rusage-as: New file.
5455         * lib/resource-ext.h: New file.
5456         * lib/get-rusage-as.c: New file.
5457
5458 2011-01-17  Eric Blake  <eblake@redhat.com>
5459
5460         sigaction: relax license from LGPLv3+ to LGPLv2+
5461         * modules/sigaction (License): Relax to LGPLv2+.
5462
5463 2011-01-14  Bruno Haible  <bruno@clisp.org>
5464
5465         filemode: Make function declarations usable in C++ mode.
5466         * lib/filemode.h: Enclose function declarations in extern "C" block.
5467         Reported by John W. Eaton <jwe@gnu.org>.
5468
5469 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
5470
5471         save-cwd: no longer include "xgetcwd.h"
5472         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
5473         This avoids a compilation failure in projects that use save-cwd
5474         without also using the xgetcwd module.
5475
5476 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5477
5478         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
5479         This is so that a program like Emacs, which needs only dtoastr,
5480         does not have to bother with distributing and compiling ftoastr
5481         and ldtoastr.
5482         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
5483         * modules/dtoastr, modules/ldtoastr: New files.
5484         * modules/ftoastr: Now works just for 'float'.
5485         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
5486         (Makefile.am): Remove ftoastr.h (not needed and no effect),
5487         dtoastr.c, ldtoastr.c.
5488
5489 2011-01-11  Jim Meyering  <meyering@redhat.com>
5490
5491         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
5492         There is no need to work around the lack of the fchdir function,
5493         since gnulib can now provide a replacement when required.
5494         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
5495         * modules/save-cwd (Depends-on): Add fchdir.
5496
5497 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5498
5499         openat, save-cwd: avoid xmalloc
5500
5501         This removes a direct (but undocumented) dependency of openat on
5502         xalloc, along with an indirect dependency via save-cwd.  It also
5503         removes a dependency of save-cwd on xgetcwd, and thereby
5504         indirectly on xalloc.  This change causes the openat substitute
5505         to fall back on save_cwd when memory is tight, and for save_cwd to
5506         fail instead of dying when memory is tight, but that's good enough.
5507         Problem and initial idea for fix reported by Bastien Roucaries in
5508         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
5509
5510         * lib/openat-proc.c: Include stdlib.h (for malloc), not
5511         xalloc.h (for xmalloc).
5512         (openat_proc_name): Use malloc, not xmalloc.
5513         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
5514         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
5515
5516         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
5517         This avoids heap allocation for file names whose lengths are in
5518         the range 512..1023, with the upper bound increasing to at most
5519         4031 depending on the platform's PATH_MAX.  (We do not want
5520         pathmax.h here as it might supply a non-constant PATH_MAX.)
5521         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
5522         Perhaps they should be moved to malloca.h?
5523         (OPENAT_BUFFER_SIZE): Use them.
5524
5525 2011-01-10  Bruno Haible  <bruno@clisp.org>
5526
5527         doc: Update users.txt.
5528         * users.txt: Add recutils.
5529
5530 2011-01-09  Karl Berry  <karl@gnu.org>
5531
5532         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
5533
5534         * doc/configmake.texi: New file.
5535         * doc/gnulib.texi: Include it.
5536         * modules/configmake: Move documentation from here.
5537
5538 2011-01-09  Bruno Haible  <bruno@clisp.org>
5539
5540         Update to Unicode 6.0.0.
5541         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
5542         (get_lbp): Update for Unicode 6.0.0.
5543         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
5544         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
5545         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
5546         U+11001, U+11038..U+11046. Remove U+06DE.
5547         (uc_width): Fix bounds of planes.
5548         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5549         lib/uniwidth/width.c.
5550         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
5551         trailing whitespace removed.
5552         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
5553         without comments, but with the original copyright notice.
5554         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
5555         * lib/unicase/ignorable.h: Likewise.
5556         * lib/unicase/tocasefold.h: Likewise.
5557         * lib/unicase/tolower.h: Likewise.
5558         * lib/unicase/totitle.h: Likewise.
5559         * lib/unicase/toupper.h: Likewise.
5560         * lib/unictype/bidi_of.h: Likewise.
5561         * lib/unictype/blocks.h: Likewise.
5562         * lib/unictype/categ_C.h: Likewise.
5563         * lib/unictype/categ_Cn.h: Likewise.
5564         * lib/unictype/categ_L.h: Likewise.
5565         * lib/unictype/categ_Ll.h: Likewise.
5566         * lib/unictype/categ_Lm.h: Likewise.
5567         * lib/unictype/categ_Lo.h: Likewise.
5568         * lib/unictype/categ_Lu.h: Likewise.
5569         * lib/unictype/categ_M.h: Likewise.
5570         * lib/unictype/categ_Mc.h: Likewise.
5571         * lib/unictype/categ_Me.h: Likewise.
5572         * lib/unictype/categ_Mn.h: Likewise.
5573         * lib/unictype/categ_N.h: Likewise.
5574         * lib/unictype/categ_Nd.h: Likewise.
5575         * lib/unictype/categ_No.h: Likewise.
5576         * lib/unictype/categ_P.h: Likewise.
5577         * lib/unictype/categ_Po.h: Likewise.
5578         * lib/unictype/categ_S.h: Likewise.
5579         * lib/unictype/categ_Sc.h: Likewise.
5580         * lib/unictype/categ_Sk.h: Likewise.
5581         * lib/unictype/categ_Sm.h: Likewise.
5582         * lib/unictype/categ_So.h: Likewise.
5583         * lib/unictype/categ_of.h: Likewise.
5584         * lib/unictype/combining.h: Likewise.
5585         * lib/unictype/ctype_alnum.h: Likewise.
5586         * lib/unictype/ctype_alpha.h: Likewise.
5587         * lib/unictype/ctype_graph.h: Likewise.
5588         * lib/unictype/ctype_lower.h: Likewise.
5589         * lib/unictype/ctype_print.h: Likewise.
5590         * lib/unictype/ctype_punct.h: Likewise.
5591         * lib/unictype/ctype_upper.h: Likewise.
5592         * lib/unictype/decdigit.h: Likewise.
5593         * lib/unictype/digit.h: Likewise.
5594         * lib/unictype/numeric.h: Likewise.
5595         * lib/unictype/pr_alphabetic.h: Likewise.
5596         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5597         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5598         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5599         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5600         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5601         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5602         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5603         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5604         * lib/unictype/pr_case_ignorable.h: Likewise.
5605         * lib/unictype/pr_cased.h: Likewise.
5606         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
5607         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
5608         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
5609         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
5610         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
5611         * lib/unictype/pr_combining.h: Likewise.
5612         * lib/unictype/pr_composite.h: Likewise.
5613         * lib/unictype/pr_currency_symbol.h: Likewise.
5614         * lib/unictype/pr_decimal_digit.h: Likewise.
5615         * lib/unictype/pr_deprecated.h: Likewise.
5616         * lib/unictype/pr_format_control.h: Likewise.
5617         * lib/unictype/pr_grapheme_base.h: Likewise.
5618         * lib/unictype/pr_grapheme_extend.h: Likewise.
5619         * lib/unictype/pr_grapheme_link.h: Likewise.
5620         * lib/unictype/pr_id_continue.h: Likewise.
5621         * lib/unictype/pr_id_start.h: Likewise.
5622         * lib/unictype/pr_ideographic.h: Likewise.
5623         * lib/unictype/pr_lowercase.h: Likewise.
5624         * lib/unictype/pr_math.h: Likewise.
5625         * lib/unictype/pr_numeric.h: Likewise.
5626         * lib/unictype/pr_other_alphabetic.h: Likewise.
5627         * lib/unictype/pr_other_id_continue.h: Likewise.
5628         * lib/unictype/pr_other_math.h: Likewise.
5629         * lib/unictype/pr_punctuation.h: Likewise.
5630         * lib/unictype/pr_sentence_terminal.h: Likewise.
5631         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5632         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5633         * lib/unictype/pr_unified_ideograph.h: Likewise.
5634         * lib/unictype/pr_uppercase.h: Likewise.
5635         * lib/unictype/pr_xid_continue.h: Likewise.
5636         * lib/unictype/pr_xid_start.h: Likewise.
5637         * lib/unictype/scripts.h: Likewise.
5638         * lib/unictype/scripts_byname.gperf: Likewise.
5639         * lib/unictype/sy_java_ident.h: Likewise.
5640         * lib/unigbrk/gbrkprop.h: Likewise.
5641         * lib/unilbrk/lbrkprop1.h: Likewise.
5642         * lib/unilbrk/lbrkprop2.h: Likewise.
5643         * lib/uninorm/decomposition-table2.h: Likewise.
5644         * lib/uniwbrk/wbrkprop.h: Likewise.
5645         * tests/unicase/test-cased.c: Likewise.
5646         * tests/unicase/test-ignorable.c: Likewise.
5647         * tests/unicase/test-uc_tolower.c: Likewise.
5648         * tests/unicase/test-uc_totitle.c: Likewise.
5649         * tests/unicase/test-uc_toupper.c: Likewise.
5650         * tests/unictype/test-categ_C.c: Likewise.
5651         * tests/unictype/test-categ_Cn.c: Likewise.
5652         * tests/unictype/test-categ_L.c: Likewise.
5653         * tests/unictype/test-categ_Ll.c: Likewise.
5654         * tests/unictype/test-categ_Lm.c: Likewise.
5655         * tests/unictype/test-categ_Lo.c: Likewise.
5656         * tests/unictype/test-categ_Lu.c: Likewise.
5657         * tests/unictype/test-categ_M.c: Likewise.
5658         * tests/unictype/test-categ_Mc.c: Likewise.
5659         * tests/unictype/test-categ_Me.c: Likewise.
5660         * tests/unictype/test-categ_Mn.c: Likewise.
5661         * tests/unictype/test-categ_N.c: Likewise.
5662         * tests/unictype/test-categ_Nd.c: Likewise.
5663         * tests/unictype/test-categ_No.c: Likewise.
5664         * tests/unictype/test-categ_P.c: Likewise.
5665         * tests/unictype/test-categ_Po.c: Likewise.
5666         * tests/unictype/test-categ_S.c: Likewise.
5667         * tests/unictype/test-categ_Sc.c: Likewise.
5668         * tests/unictype/test-categ_Sk.c: Likewise.
5669         * tests/unictype/test-categ_Sm.c: Likewise.
5670         * tests/unictype/test-categ_So.c: Likewise.
5671         * tests/unictype/test-ctype_alnum.c: Likewise.
5672         * tests/unictype/test-ctype_alpha.c: Likewise.
5673         * tests/unictype/test-ctype_graph.c: Likewise.
5674         * tests/unictype/test-ctype_lower.c: Likewise.
5675         * tests/unictype/test-ctype_print.c: Likewise.
5676         * tests/unictype/test-ctype_punct.c: Likewise.
5677         * tests/unictype/test-ctype_upper.c: Likewise.
5678         * tests/unictype/test-decdigit.h: Likewise.
5679         * tests/unictype/test-digit.h: Likewise.
5680         * tests/unictype/test-numeric.h: Likewise.
5681         * tests/unictype/test-pr_alphabetic.c: Likewise.
5682         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5683         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
5684         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
5685         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5686         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5687         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5688         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5689         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5690         * tests/unictype/test-pr_case_ignorable.c: Likewise.
5691         * tests/unictype/test-pr_cased.c: Likewise.
5692         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
5693         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
5694         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
5695         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
5696         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
5697         * tests/unictype/test-pr_combining.c: Likewise.
5698         * tests/unictype/test-pr_composite.c: Likewise.
5699         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5700         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5701         * tests/unictype/test-pr_deprecated.c: Likewise.
5702         * tests/unictype/test-pr_format_control.c: Likewise.
5703         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5704         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5705         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5706         * tests/unictype/test-pr_id_continue.c: Likewise.
5707         * tests/unictype/test-pr_id_start.c: Likewise.
5708         * tests/unictype/test-pr_ideographic.c: Likewise.
5709         * tests/unictype/test-pr_lowercase.c: Likewise.
5710         * tests/unictype/test-pr_math.c: Likewise.
5711         * tests/unictype/test-pr_numeric.c: Likewise.
5712         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5713         * tests/unictype/test-pr_other_id_continue.c: Likewise.
5714         * tests/unictype/test-pr_other_math.c: Likewise.
5715         * tests/unictype/test-pr_punctuation.c: Likewise.
5716         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5717         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5718         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5719         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5720         * tests/unictype/test-pr_uppercase.c: Likewise.
5721         * tests/unictype/test-pr_xid_continue.c: Likewise.
5722         * tests/unictype/test-pr_xid_start.c: Likewise.
5723         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5724         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5725         changes.
5726         * lib/unictype/categ_Cc.h: Likewise.
5727         * lib/unictype/categ_Cf.h: Likewise.
5728         * lib/unictype/categ_Co.h: Likewise.
5729         * lib/unictype/categ_Cs.h: Likewise.
5730         * lib/unictype/categ_Lt.h: Likewise.
5731         * lib/unictype/categ_Nl.h: Likewise.
5732         * lib/unictype/categ_Pc.h: Likewise.
5733         * lib/unictype/categ_Pd.h: Likewise.
5734         * lib/unictype/categ_Pe.h: Likewise.
5735         * lib/unictype/categ_Pf.h: Likewise.
5736         * lib/unictype/categ_Pi.h: Likewise.
5737         * lib/unictype/categ_Ps.h: Likewise.
5738         * lib/unictype/categ_Z.h: Likewise.
5739         * lib/unictype/categ_Zl.h: Likewise.
5740         * lib/unictype/categ_Zp.h: Likewise.
5741         * lib/unictype/categ_Zs.h: Likewise.
5742         * lib/unictype/ctype_blank.h: Likewise.
5743         * lib/unictype/ctype_cntrl.h: Likewise.
5744         * lib/unictype/ctype_digit.h: Likewise.
5745         * lib/unictype/ctype_space.h: Likewise.
5746         * lib/unictype/ctype_xdigit.h: Likewise.
5747         * lib/unictype/mirror.h: Likewise.
5748         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5749         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5750         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5751         * lib/unictype/pr_bidi_control.h: Likewise.
5752         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5753         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5754         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5755         * lib/unictype/pr_bidi_pdf.h: Likewise.
5756         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5757         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5758         * lib/unictype/pr_dash.h: Likewise.
5759         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5760         * lib/unictype/pr_diacritic.h: Likewise.
5761         * lib/unictype/pr_extender.h: Likewise.
5762         * lib/unictype/pr_hex_digit.h: Likewise.
5763         * lib/unictype/pr_hyphen.h: Likewise.
5764         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5765         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5766         * lib/unictype/pr_ignorable_control.h: Likewise.
5767         * lib/unictype/pr_iso_control.h: Likewise.
5768         * lib/unictype/pr_join_control.h: Likewise.
5769         * lib/unictype/pr_left_of_pair.h: Likewise.
5770         * lib/unictype/pr_line_separator.h: Likewise.
5771         * lib/unictype/pr_logical_order_exception.h: Likewise.
5772         * lib/unictype/pr_non_break.h: Likewise.
5773         * lib/unictype/pr_not_a_character.h: Likewise.
5774         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5775         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5776         * lib/unictype/pr_other_id_start.h: Likewise.
5777         * lib/unictype/pr_other_lowercase.h: Likewise.
5778         * lib/unictype/pr_other_uppercase.h: Likewise.
5779         * lib/unictype/pr_paired_punctuation.h: Likewise.
5780         * lib/unictype/pr_paragraph_separator.h: Likewise.
5781         * lib/unictype/pr_pattern_syntax.h: Likewise.
5782         * lib/unictype/pr_pattern_white_space.h: Likewise.
5783         * lib/unictype/pr_private_use.h: Likewise.
5784         * lib/unictype/pr_quotation_mark.h: Likewise.
5785         * lib/unictype/pr_radical.h: Likewise.
5786         * lib/unictype/pr_soft_dotted.h: Likewise.
5787         * lib/unictype/pr_space.h: Likewise.
5788         * lib/unictype/pr_titlecase.h: Likewise.
5789         * lib/unictype/pr_variation_selector.h: Likewise.
5790         * lib/unictype/pr_white_space.h: Likewise.
5791         * lib/unictype/pr_zero_width.h: Likewise.
5792         * lib/unictype/sy_c_ident.h: Likewise.
5793         * lib/unictype/sy_c_whitespace.h: Likewise.
5794         * lib/unictype/sy_java_whitespace.h: Likewise.
5795         * lib/uninorm/composition-table.gperf: Likewise.
5796         * lib/uninorm/decomposition-table1.h: Likewise.
5797         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
5798         LB8.
5799         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5800         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5801         * modules/unictype/*: Bump version number of expected libunistring
5802         version.
5803
5804 2011-01-09  Bruno Haible  <bruno@clisp.org>
5805
5806         Update to Unicode 5.2.0.
5807         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
5808         trailing whitespace removed.
5809
5810 2011-01-09  Bruno Haible  <bruno@clisp.org>
5811
5812         New Unicode character properties, from Unicode 5.2.0.
5813         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
5814         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
5815         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
5816         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
5817         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
5818         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
5819         uc_is_property_cased, uc_is_property_case_ignorable,
5820         uc_is_property_changes_when_lowercased,
5821         uc_is_property_changes_when_uppercased,
5822         uc_is_property_changes_when_titlecased,
5823         uc_is_property_changes_when_casefolded,
5824         uc_is_property_changes_when_casemapped): New declarations.
5825         * lib/unictype/pr_byname.gperf: Add the new properties.
5826         * modules/unictype/property-byname (Depends-on): Depend on the new
5827         properties modules.
5828         * modules/unictype/property-all (Depends-on): Likewise.
5829         * MODULES.html.sh (Unicode string functions): Add
5830         unictype/property-case-ignorable, unictype/property-cased,
5831         unictype/property-changes-when-casefolded,
5832         unictype/property-changes-when-casemapped,
5833         unictype/property-changes-when-lowercased,
5834         unictype/property-changes-when-titlecased,
5835         unictype/property-changes-when-uppercased.
5836
5837         New module 'unictype/property-changes-when-casemapped'.
5838         * modules/unictype/property-changes-when-casemapped: New file.
5839         * lib/unictype/pr_changes_when_casemapped.c: New file.
5840         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
5841         generated by gen-uni-tables.
5842         * modules/unictype/property-changes-when-casemapped-tests: New file.
5843         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
5844         automatically generated by gen-uni-tables.
5845
5846         New module 'unictype/property-changes-when-casefolded'.
5847         * modules/unictype/property-changes-when-casefolded: New file.
5848         * lib/unictype/pr_changes_when_casefolded.c: New file.
5849         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
5850         generated by gen-uni-tables.
5851         * modules/unictype/property-changes-when-casefolded-tests: New file.
5852         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
5853         automatically generated by gen-uni-tables.
5854
5855         New module 'unictype/property-changes-when-titlecased'.
5856         * modules/unictype/property-changes-when-titlecased: New file.
5857         * lib/unictype/pr_changes_when_titlecased.c: New file.
5858         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
5859         generated by gen-uni-tables.
5860         * modules/unictype/property-changes-when-titlecased-tests: New file.
5861         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
5862         automatically generated by gen-uni-tables.
5863
5864         New module 'unictype/property-changes-when-uppercased'.
5865         * modules/unictype/property-changes-when-uppercased: New file.
5866         * lib/unictype/pr_changes_when_uppercased.c: New file.
5867         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
5868         generated by gen-uni-tables.
5869         * modules/unictype/property-changes-when-uppercased-tests: New file.
5870         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
5871         automatically generated by gen-uni-tables.
5872
5873         New module 'unictype/property-changes-when-lowercased'.
5874         * modules/unictype/property-changes-when-lowercased: New file.
5875         * lib/unictype/pr_changes_when_lowercased.c: New file.
5876         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
5877         generated by gen-uni-tables.
5878         * modules/unictype/property-changes-when-lowercased-tests: New file.
5879         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
5880         automatically generated by gen-uni-tables.
5881
5882         New module 'unictype/property-case-ignorable'.
5883         * modules/unictype/property-case-ignorable: New file.
5884         * lib/unictype/pr_case_ignorable.c: New file.
5885         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
5886         by gen-uni-tables.
5887         * modules/unictype/property-case-ignorable-tests: New file.
5888         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
5889         generated by gen-uni-tables.
5890
5891         New module 'unictype/property-cased'.
5892         * modules/unictype/property-cased: New file.
5893         * lib/unictype/pr_cased.c: New file.
5894         * lib/unictype/pr_cased.h: New file, automatically generated by
5895         gen-uni-tables.
5896         * modules/unictype/property-cased-tests: New file.
5897         * tests/unictype/test-pr_cased.c: New file, automatically generated by
5898         gen-uni-tables.
5899
5900 2011-01-09  Bruno Haible  <bruno@clisp.org>
5901
5902         Update to Unicode 5.2.0.
5903         * lib/gen-uni-tables.c (output_predicate, output_category,
5904         output_combclass, output_bidi_category, output_decimal_digit_test,
5905         output_decimal_digit, output_digit_test, output_digit,
5906         output_numeric_test, output_numeric, output_mirror, output_scripts,
5907         output_scripts_byname, output_blocks, output_ident_category): Fix
5908         comment header.
5909         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
5910         get_wbp.
5911         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
5912         items.
5913         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
5914         Changes_When_Lowercased, Changes_When_Uppercased,
5915         Changes_When_Titlecased, Changes_When_Casefolded,
5916         Changes_When_Casemapped.
5917         (is_property_alphabetic, is_property_default_ignorable_code_point):
5918         Update for Unicode 5.2.0.
5919         (is_property_cased, is_property_case_ignorable,
5920         is_property_changes_when_lowercased,
5921         is_property_changes_when_uppercased,
5922         is_property_changes_when_titlecased,
5923         is_property_changes_when_casefolded,
5924         is_property_changes_when_casemapped): New functions.
5925         (output_properties): Output also the properties cased, case_ignorable,
5926         changes_when_lowercased, changes_when_uppercased,
5927         changes_when_titlecased, changes_when_casefolded,
5928         changes_when_casemapped.
5929         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
5930         Unicode TR#11 revision 17 -> 19.
5931         (LBP_CP): New enumeration value.
5932         (LBP_*): Adjust values accordingly.
5933         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5934         TR#14 revision 22 -> 24.
5935         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
5936         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
5937         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5938         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
5939         is_WBP_MIDLETTER.
5940         (output_composition_tables): Allow for 24 bits instead of 16 bits in
5941         the code1 and code2 of each composition rule.
5942         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
5943         * lib/unicase/ignorable.h: Likewise.
5944         * lib/unicase/tocasefold.h: Likewise.
5945         * lib/unicase/tolower.h: Likewise.
5946         * lib/unicase/totitle.h: Likewise.
5947         * lib/unicase/toupper.h: Likewise.
5948         * lib/unictype/bidi_of.h: Likewise.
5949         * lib/unictype/blocks.h: Likewise.
5950         * lib/unictype/categ_C.h: Likewise.
5951         * lib/unictype/categ_Cf.h: Likewise.
5952         * lib/unictype/categ_Cn.h: Likewise.
5953         * lib/unictype/categ_L.h: Likewise.
5954         * lib/unictype/categ_Ll.h: Likewise.
5955         * lib/unictype/categ_Lm.h: Likewise.
5956         * lib/unictype/categ_Lo.h: Likewise.
5957         * lib/unictype/categ_Lu.h: Likewise.
5958         * lib/unictype/categ_M.h: Likewise.
5959         * lib/unictype/categ_Mc.h: Likewise.
5960         * lib/unictype/categ_Mn.h: Likewise.
5961         * lib/unictype/categ_N.h: Likewise.
5962         * lib/unictype/categ_Nd.h: Likewise.
5963         * lib/unictype/categ_Nl.h: Likewise.
5964         * lib/unictype/categ_No.h: Likewise.
5965         * lib/unictype/categ_P.h: Likewise.
5966         * lib/unictype/categ_Pd.h: Likewise.
5967         * lib/unictype/categ_Po.h: Likewise.
5968         * lib/unictype/categ_S.h: Likewise.
5969         * lib/unictype/categ_Sc.h: Likewise.
5970         * lib/unictype/categ_So.h: Likewise.
5971         * lib/unictype/categ_of.h: Likewise.
5972         * lib/unictype/combining.h: Likewise.
5973         * lib/unictype/ctype_alnum.h: Likewise.
5974         * lib/unictype/ctype_alpha.h: Likewise.
5975         * lib/unictype/ctype_graph.h: Likewise.
5976         * lib/unictype/ctype_lower.h: Likewise.
5977         * lib/unictype/ctype_print.h: Likewise.
5978         * lib/unictype/ctype_punct.h: Likewise.
5979         * lib/unictype/ctype_upper.h: Likewise.
5980         * lib/unictype/decdigit.h: Likewise.
5981         * lib/unictype/digit.h: Likewise.
5982         * lib/unictype/numeric.h: Likewise.
5983         * lib/unictype/pr_alphabetic.h: Likewise.
5984         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5985         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5986         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5987         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5988         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5989         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5990         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5991         * lib/unictype/pr_combining.h: Likewise.
5992         * lib/unictype/pr_composite.h: Likewise.
5993         * lib/unictype/pr_currency_symbol.h: Likewise.
5994         * lib/unictype/pr_dash.h: Likewise.
5995         * lib/unictype/pr_decimal_digit.h: Likewise.
5996         * lib/unictype/pr_deprecated.h: Likewise.
5997         * lib/unictype/pr_diacritic.h: Likewise.
5998         * lib/unictype/pr_extender.h: Likewise.
5999         * lib/unictype/pr_grapheme_base.h: Likewise.
6000         * lib/unictype/pr_grapheme_extend.h: Likewise.
6001         * lib/unictype/pr_grapheme_link.h: Likewise.
6002         * lib/unictype/pr_id_continue.h: Likewise.
6003         * lib/unictype/pr_id_start.h: Likewise.
6004         * lib/unictype/pr_ideographic.h: Likewise.
6005         * lib/unictype/pr_ignorable_control.h: Likewise.
6006         * lib/unictype/pr_logical_order_exception.h: Likewise.
6007         * lib/unictype/pr_lowercase.h: Likewise.
6008         * lib/unictype/pr_numeric.h: Likewise.
6009         * lib/unictype/pr_other_alphabetic.h: Likewise.
6010         * lib/unictype/pr_punctuation.h: Likewise.
6011         * lib/unictype/pr_sentence_terminal.h: Likewise.
6012         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6013         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6014         * lib/unictype/pr_unified_ideograph.h: Likewise.
6015         * lib/unictype/pr_uppercase.h: Likewise.
6016         * lib/unictype/pr_xid_continue.h: Likewise.
6017         * lib/unictype/pr_xid_start.h: Likewise.
6018         * lib/unictype/pr_zero_width.h: Likewise.
6019         * lib/unictype/scripts.h: Likewise.
6020         * lib/unictype/scripts_byname.gperf: Likewise.
6021         * lib/unictype/sy_java_ident.h: Likewise.
6022         * lib/unigbrk/gbrkprop.h: Likewise.
6023         * lib/unilbrk/lbrkprop1.h: Likewise.
6024         * lib/unilbrk/lbrkprop2.h: Likewise.
6025         * lib/unilbrk/lbrktables.h: Likewise.
6026         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
6027         LBP_CP. Implement rule LB30.
6028         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
6029         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
6030         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
6031         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
6032         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
6033         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
6034         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
6035         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
6036         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
6037         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
6038         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
6039         bits instead of 16 bits in the code1 and code2 of each composition
6040         rule.
6041         (uc_composition): Update for Unicode 5.2.0.
6042         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
6043         * lib/uninorm/decomposition-table2.h: Likewise.
6044         * lib/uniwbrk/wbrkprop.h: Likewise.
6045         * tests/unicase/test-cased.c: Likewise.
6046         * tests/unicase/test-ignorable.c: Likewise.
6047         * tests/unicase/test-uc_tolower.c: Likewise.
6048         * tests/unicase/test-uc_totitle.c: Likewise.
6049         * tests/unicase/test-uc_toupper.c: Likewise.
6050         * tests/unictype/test-categ_C.c: Likewise.
6051         * tests/unictype/test-categ_Cf.c: Likewise.
6052         * tests/unictype/test-categ_Cn.c: Likewise.
6053         * tests/unictype/test-categ_L.c: Likewise.
6054         * tests/unictype/test-categ_Ll.c: Likewise.
6055         * tests/unictype/test-categ_Lm.c: Likewise.
6056         * tests/unictype/test-categ_Lo.c: Likewise.
6057         * tests/unictype/test-categ_Lu.c: Likewise.
6058         * tests/unictype/test-categ_M.c: Likewise.
6059         * tests/unictype/test-categ_Mc.c: Likewise.
6060         * tests/unictype/test-categ_Mn.c: Likewise.
6061         * tests/unictype/test-categ_N.c: Likewise.
6062         * tests/unictype/test-categ_Nd.c: Likewise.
6063         * tests/unictype/test-categ_Nl.c: Likewise.
6064         * tests/unictype/test-categ_No.c: Likewise.
6065         * tests/unictype/test-categ_P.c: Likewise.
6066         * tests/unictype/test-categ_Pd.c: Likewise.
6067         * tests/unictype/test-categ_Po.c: Likewise.
6068         * tests/unictype/test-categ_S.c: Likewise.
6069         * tests/unictype/test-categ_Sc.c: Likewise.
6070         * tests/unictype/test-categ_So.c: Likewise.
6071         * tests/unictype/test-ctype_alnum.c: Likewise.
6072         * tests/unictype/test-ctype_alpha.c: Likewise.
6073         * tests/unictype/test-ctype_graph.c: Likewise.
6074         * tests/unictype/test-ctype_lower.c: Likewise.
6075         * tests/unictype/test-ctype_print.c: Likewise.
6076         * tests/unictype/test-ctype_punct.c: Likewise.
6077         * tests/unictype/test-ctype_upper.c: Likewise.
6078         * tests/unictype/test-decdigit.h: Likewise.
6079         * tests/unictype/test-digit.h: Likewise.
6080         * tests/unictype/test-numeric.h: Likewise.
6081         * tests/unictype/test-pr_alphabetic.c: Likewise.
6082         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6083         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6084         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6085         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6086         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6087         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6088         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6089         * tests/unictype/test-pr_combining.c: Likewise.
6090         * tests/unictype/test-pr_composite.c: Likewise.
6091         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6092         * tests/unictype/test-pr_dash.c: Likewise.
6093         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6094         * tests/unictype/test-pr_deprecated.c: Likewise.
6095         * tests/unictype/test-pr_diacritic.c: Likewise.
6096         * tests/unictype/test-pr_extender.c: Likewise.
6097         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6098         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6099         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6100         * tests/unictype/test-pr_id_continue.c: Likewise.
6101         * tests/unictype/test-pr_id_start.c: Likewise.
6102         * tests/unictype/test-pr_ideographic.c: Likewise.
6103         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6104         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6105         * tests/unictype/test-pr_lowercase.c: Likewise.
6106         * tests/unictype/test-pr_numeric.c: Likewise.
6107         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6108         * tests/unictype/test-pr_punctuation.c: Likewise.
6109         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6110         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6111         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6112         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6113         * tests/unictype/test-pr_uppercase.c: Likewise.
6114         * tests/unictype/test-pr_xid_continue.c: Likewise.
6115         * tests/unictype/test-pr_xid_start.c: Likewise.
6116         * tests/unictype/test-pr_zero_width.c: Likewise.
6117         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6118         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
6119         changed behaviour: line breaking is now disallowed between a letter
6120         or '=' and '('.
6121         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6122         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6123         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
6124         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
6125         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6126         lib/uniwidth/width.c.
6127         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
6128         without comments, but with the original copyright notice.
6129         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6130         changes.
6131         * lib/unictype/categ_Cc.h: Likewise.
6132         * lib/unictype/categ_Co.h: Likewise.
6133         * lib/unictype/categ_Cs.h: Likewise.
6134         * lib/unictype/categ_Lt.h: Likewise.
6135         * lib/unictype/categ_Me.h: Likewise.
6136         * lib/unictype/categ_Pc.h: Likewise.
6137         * lib/unictype/categ_Pe.h: Likewise.
6138         * lib/unictype/categ_Pf.h: Likewise.
6139         * lib/unictype/categ_Pi.h: Likewise.
6140         * lib/unictype/categ_Ps.h: Likewise.
6141         * lib/unictype/categ_Sk.h: Likewise.
6142         * lib/unictype/categ_Sm.h: Likewise.
6143         * lib/unictype/categ_Z.h: Likewise.
6144         * lib/unictype/categ_Zl.h: Likewise.
6145         * lib/unictype/categ_Zp.h: Likewise.
6146         * lib/unictype/categ_Zs.h: Likewise.
6147         * lib/unictype/ctype_blank.h: Likewise.
6148         * lib/unictype/ctype_cntrl.h: Likewise.
6149         * lib/unictype/ctype_digit.h: Likewise.
6150         * lib/unictype/ctype_space.h: Likewise.
6151         * lib/unictype/ctype_xdigit.h: Likewise.
6152         * lib/unictype/mirror.h: Likewise.
6153         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6154         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6155         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6156         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6157         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6158         * lib/unictype/pr_bidi_control.h: Likewise.
6159         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6160         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6161         * lib/unictype/pr_bidi_pdf.h: Likewise.
6162         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6163         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6164         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6165         * lib/unictype/pr_format_control.h: Likewise.
6166         * lib/unictype/pr_hex_digit.h: Likewise.
6167         * lib/unictype/pr_hyphen.h: Likewise.
6168         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6169         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6170         * lib/unictype/pr_iso_control.h: Likewise.
6171         * lib/unictype/pr_join_control.h: Likewise.
6172         * lib/unictype/pr_left_of_pair.h: Likewise.
6173         * lib/unictype/pr_line_separator.h: Likewise.
6174         * lib/unictype/pr_math.h: Likewise.
6175         * lib/unictype/pr_non_break.h: Likewise.
6176         * lib/unictype/pr_not_a_character.h: Likewise.
6177         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6178         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6179         * lib/unictype/pr_other_id_continue.h: Likewise.
6180         * lib/unictype/pr_other_id_start.h: Likewise.
6181         * lib/unictype/pr_other_lowercase.h: Likewise.
6182         * lib/unictype/pr_other_math.h: Likewise.
6183         * lib/unictype/pr_other_uppercase.h: Likewise.
6184         * lib/unictype/pr_paired_punctuation.h: Likewise.
6185         * lib/unictype/pr_paragraph_separator.h: Likewise.
6186         * lib/unictype/pr_pattern_syntax.h: Likewise.
6187         * lib/unictype/pr_pattern_white_space.h: Likewise.
6188         * lib/unictype/pr_private_use.h: Likewise.
6189         * lib/unictype/pr_quotation_mark.h: Likewise.
6190         * lib/unictype/pr_radical.h: Likewise.
6191         * lib/unictype/pr_soft_dotted.h: Likewise.
6192         * lib/unictype/pr_space.h: Likewise.
6193         * lib/unictype/pr_titlecase.h: Likewise.
6194         * lib/unictype/pr_variation_selector.h: Likewise.
6195         * lib/unictype/pr_white_space.h: Likewise.
6196         * lib/unictype/sy_c_ident.h: Likewise.
6197         * lib/unictype/sy_c_whitespace.h: Likewise.
6198         * lib/unictype/sy_java_whitespace.h: Likewise.
6199         * modules/uni*/*: Bump version number of expected libunistring version.
6200         Reported by Simon Josefsson.
6201
6202 2011-01-09  Karl Heuer  <kwzh@gnu.org>
6203
6204         useless-if-before-free: fix typo in --help and make the internal,
6205         automatic version date update process work once again.
6206         --help output contained a NUL character instead of the
6207         backslash-zero that was intended.  Also, the "must lie within
6208         the first 8 lines" line is on line 9, and hence not getting
6209         automatically updated.
6210         * build-aux/useless-if-before-free: Fix the former by adding a
6211         backslash, and the latter by condensing the three lines of what-it-does
6212         to a single line, leaving one line of slack for the future.
6213
6214 2011-01-09  Bruno Haible  <bruno@clisp.org>
6215
6216         uniwidth/width: Fix width of U+1D173..U+1D17A.
6217         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
6218         symbolic_width, output_width_property_test): New functions.
6219         (main): Invoke output_nonspacing_property, output_width_property_test.
6220         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
6221         U+1D173..U+1D17A.
6222         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
6223         1.
6224         * modules/uniwidth/*: Bump version number of expected libunistring
6225         version.
6226         * modules/unilbrk/*: Likewise.
6227
6228 2011-01-08  Bruno Haible  <bruno@clisp.org>
6229
6230         uninorm tests: Preserve copyright of Unicode data file.
6231         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
6232         Mention modifications.
6233
6234 2011-01-08  Bruno Haible  <bruno@clisp.org>
6235
6236         gen-uni-tables: Prepare for Unicode 5.2.0.
6237         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
6238         (debug_output_lbp, output_lbp): Update.
6239
6240 2011-01-08  Bruno Haible  <bruno@clisp.org>
6241
6242         unilbrk: Clarify gen-uni-tables.c code.
6243         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
6244         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
6245         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
6246
6247 2011-01-07  Bruno Haible  <bruno@clisp.org>
6248
6249         strtod: Restore errno when successfully parsing Infinity or NaN.
6250         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
6251         restore the original errno.
6252
6253 2011-01-07  Bruno Haible  <bruno@clisp.org>
6254
6255         remove test: Avoid failure on HP-UX 11.
6256         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
6257
6258 2011-01-07  Bruno Haible  <bruno@clisp.org>
6259
6260         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
6261         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
6262         error code.
6263
6264 2011-01-07  Pádraig Brady <P@draigBrady.com>
6265
6266         ignore-value: fixup comments, and add Eric Blake
6267         as an author since he rewrote the macros.
6268         * lib/ignore-value.h (ignore_value):  State that
6269         we now support aggregates.  Also specify exactly
6270         when the GCC warn_unused_result feature was added.
6271
6272 2011-01-06  Eric Blake  <eblake@redhat.com>
6273
6274         ignore-value: support aggregate types
6275         * lib/ignore-value.h (ignore_value): Provide separate gcc
6276         definition.
6277         * modules/ignore-value-tests: New test module.
6278         * tests/test-ignore-value.c: New test.
6279
6280         maint.mk: improve sc_prohibit_strcmp regex
6281         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
6282         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
6283         definition of STRNEQ.
6284
6285         signal: work around Haiku issue with SIGBUS
6286         * lib/siglist.h: Add comment.
6287         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
6288         strsignal's favoring of SIGSEGV.
6289         * tests/test-signal.c (main): Avoid test failure.
6290         * doc/posix-headers/signal.texi (signal.h): Document the issue.
6291         Reported by Scott McCreary.
6292
6293         maint.mk: add pre-release check to ensure submodule commits are public
6294         * top/maint.mk (public-submodule-commit): New rule.
6295         (submodule-checks): New variable.
6296         (alpha beta stable): Depend on the variable.
6297
6298 2011-01-05  Pádraig Brady <P@draigBrady.com>
6299         and Jim Meyering  <meyering@redhat.com>
6300
6301         ignore-value: make ignore_value more generic; deprecate ignore_ptr
6302         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
6303         (ATTRIBUTE_DEPRECATED): Define.
6304         (_ignore_case): New function.
6305         (ignore_value): New macro, to replace the old function.
6306         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
6307         * modules/ignore-value (Depends-on): Add stdint.
6308
6309 2011-01-04  Eric Blake  <eblake@redhat.com>
6310
6311         doc: regenerate INSTALL
6312         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
6313         @firstparagraphindent support, now that autoconf dropped it.
6314         (INSTALL_PRELUDE): Reinstate old macro.
6315         * doc/install.texi: Resync from autoconf.
6316         * doc/INSTALL: Reflect recent autoconf update.
6317         * doc/INSTALL.ISO: Likewise.
6318         * doc/INSTALL.UTF-8: Likewise.
6319         Reported by Karl Berry.
6320
6321 2011-01-04  Bruce Korb  <address@hidden>
6322
6323         git-version-gen: avoid a sub-shell
6324         * build-aux/git-version-gen: Redirect stderr in `...` via
6325         "exec 2>...", rather than via an added sub-shell.
6326
6327 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
6328
6329         git-version-gen: use (...) rather than sh -c '...'
6330         * build-aux/git-version-gen: Rather than hard-coding a shell's name
6331         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
6332
6333 2011-01-03  Jim Meyering  <meyering@redhat.com>
6334
6335         git-version-gen: convert leading TABs to spaces
6336         * build-aux/git-version-gen: Expand leading TABs.
6337
6338         git-version-gen: handle failed "git rev-list"
6339         * build-aux/git-version-gen: Rather than leaking a "fatal" error
6340         from git and proceeding as if it had succeeded but printed no SHA1
6341         checksums, suppress the diagnostic and handle the failure.
6342         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
6343
6344         git-version-gen: include command name in one more diagnostic
6345         * build-aux/git-version-gen: When the required .tarball-version file
6346         was missing or unreadable, you might see the diagnostic from "cat",
6347         but no trace of the name of the invoking script.  Now, you still see
6348         the diagnostic from cat, but also get one from "git-version-gen: ".
6349         Inspired by a patch from Bruce Korb.
6350
6351         update-copyright: adjust test to match changed code
6352         * tests/test-update-copyright.sh: Change test's expected output
6353         to match new actual output.
6354
6355 2011-01-02  Bruno Haible  <bruno@clisp.org>
6356
6357         getlogin_r: Avoid test failure on HP-UX 11.
6358         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
6359         ERANGE when the second argument is zero.
6360         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
6361         portability problem.
6362
6363 2011-01-02  Bruce Korb  <bkorb@gnu.org>
6364
6365         * build-aux/update-copyright: doc Simon's changes
6366
6367 2011-01-02  Simon Josefsson  <simon@josefsson.org>
6368
6369         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
6370         environment variable.
6371
6372 2011-01-02  Bruno Haible  <bruno@clisp.org>
6373
6374         unigbrk: Avoid gcc warnings.
6375         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
6376         unused variable.
6377         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
6378         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
6379         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
6380         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
6381         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
6382         Change type of first argument to 'const char *'.
6383         (main): Remove unused variable.
6384         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
6385         type of first argument to 'const char *'.
6386         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
6387         Likewise.
6388         (main): Change type of variable 's'.
6389         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
6390         to 'int'.
6391
6392 2011-01-02  Bruno Haible  <bruno@clisp.org>
6393
6394         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
6395         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
6396         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
6397         bug.
6398         * lib/pwrite.c: Undo 2010-12-31 patch.
6399         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
6400
6401 2011-01-02  Bruno Haible  <bruno@clisp.org>
6402
6403         pread: Fix test whether it works.
6404         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
6405
6406 2011-01-02  Bruno Haible  <bruno@clisp.org>
6407
6408         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
6409         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
6410         ends in "6". Don't require a specific month name. Try also the locale
6411         names found on HP-UX 11 and Solaris 7.
6412
6413 2011-01-02  Bruno Haible  <bruno@clisp.org>
6414
6415         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
6416         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
6417         C linkage.
6418         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
6419
6420 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6421
6422         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
6423         for consistency, since the "cluster" term is not used elsewhere.
6424         * lib/unigbrk.in.h: Update name.
6425         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
6426         * lib/unigbrk/u16-grapheme-next.c: Update name.
6427         * lib/unigbrk/u16-grapheme-prev.c: Update name.
6428         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
6429         * lib/unigbrk/u32-grapheme-next.c: Update name.
6430         * lib/unigbrk/u32-grapheme-prev.c: Update name.
6431         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
6432         * lib/unigbrk/u8-grapheme-next.c: Update name.
6433         * lib/unigbrk/u8-grapheme-prev.c: Update name.
6434         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
6435         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
6436         Suggested by Bruno Haible.
6437
6438 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6439
6440         Remove module 'u8-grapheme-len' as too redundant with
6441         'u8-grapheme-next'.
6442         * modules/unigbrk/u8-grapheme-len: Delete file.
6443         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
6444         * lib/unigbrk.in.h: Remove prototype for deleted function.
6445         * lib/unigbrk/u8-grapheme-len.c: Delete file.
6446         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
6447
6448         Remove module 'u16-grapheme-len' as too redundant with
6449         'u16-grapheme-next'.
6450         * modules/unigbrk/u16-grapheme-len: Delete file.
6451         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
6452         * lib/unigbrk.in.h: Remove prototype for deleted function.
6453         * lib/unigbrk/u16-grapheme-len.c: Delete file.
6454         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
6455
6456         Remove module 'u32-grapheme-len' as too redundant with
6457         'u32-grapheme-next'.
6458         * modules/unigbrk/u32-grapheme-len: Delete file.
6459         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
6460         * lib/unigbrk.in.h: Remove prototype for deleted function.
6461         * lib/unigbrk/u32-grapheme-len.c: Delete file.
6462         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
6463
6464         Suggested by Bruno Haible.
6465
6466 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6467
6468         * unigbrk.in.h: Fix typo: "ben" => "been".
6469         Reported by Bruno Haible.
6470
6471 2011-01-01  Jim Meyering  <meyering@redhat.com>
6472
6473         maint: update almost all copyright ranges to include 2011
6474         Run the new "make update-copyright" rule.
6475
6476 2011-01-01  Jim Meyering  <meyering@redhat.com>
6477
6478         maint: update-copyright: exempt doc/INSTALL*
6479         * Makefile (update-copyright): Also exclude doc/INSTALL*,
6480         since they are generated.  Suggested by Bruno Haible.
6481
6482 2011-01-01  Jim Meyering  <meyering@redhat.com>
6483
6484         maint: refine the update-copyright rule
6485         * Makefile (update-copyright): Also exclude any file that includes
6486         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
6487         code that merely generates the comment.
6488
6489 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6490
6491         New module 'u8-grapheme-len'.
6492         * modules/unigbrk/u8-grapheme-len: New file.
6493         * modules/unigbrk/u8-grapheme-len-tests: New file.
6494         * lib/unigbrk.in.h: Add prototype for new function.
6495         * lib/unigbrk/u8-grapheme-len.c: New file.
6496         * tests/unigbrk/test-u8-grapheme-len.c: New file.
6497
6498         New module 'u16-grapheme-len'.
6499         * modules/unigbrk/u16-grapheme-len: New file.
6500         * modules/unigbrk/u16-grapheme-len-tests: New file.
6501         * lib/unigbrk.in.h: Add prototype for new function.
6502         * lib/unigbrk/u16-grapheme-len.c: New file.
6503         * tests/unigbrk/test-u16-grapheme-len.c: New file.
6504
6505         New module 'u32-grapheme-len'.
6506         * modules/unigbrk/u32-grapheme-len: New file.
6507         * modules/unigbrk/u32-grapheme-len-tests: New file.
6508         * lib/unigbrk.in.h: Add prototype for new function.
6509         * lib/unigbrk/u32-grapheme-len.c: New file.
6510         * tests/unigbrk/test-u32-grapheme-len.c: New file.
6511
6512         New module 'u8-grapheme-next'.
6513         * modules/unigbrk/u8-grapheme-next: New file.
6514         * modules/unigbrk/u8-grapheme-next-tests: New file.
6515         * lib/unigbrk.in.h: Add prototype for new function.
6516         * lib/unigbrk/u8-grapheme-next.c: New file.
6517         * tests/unigbrk/test-u8-grapheme-next.c: New file.
6518
6519         New module 'u16-grapheme-next'.
6520         * modules/unigbrk/u16-grapheme-next: New file.
6521         * modules/unigbrk/u16-grapheme-next-tests: New file.
6522         * lib/unigbrk.in.h: Add prototype for new function.
6523         * lib/unigbrk/u16-grapheme-next.c: New file.
6524         * tests/unigbrk/test-u16-grapheme-next.c: New file.
6525
6526         New module 'u32-grapheme-next'.
6527         * modules/unigbrk/u32-grapheme-next: New file.
6528         * modules/unigbrk/u32-grapheme-next-tests: New file.
6529         * lib/unigbrk.in.h: Add prototype for new function.
6530         * lib/unigbrk/u32-grapheme-next.c: New file.
6531         * tests/unigbrk/test-u32-grapheme-next.c: New file.
6532
6533         New module 'u8-grapheme-prev'.
6534         * modules/unigbrk/u8-grapheme-prev: New file.
6535         * modules/unigbrk/u8-grapheme-prev-tests: New file.
6536         * lib/unigbrk.in.h: Add prototype for new function.
6537         * lib/unigbrk/u8-grapheme-prev.c: New file.
6538         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
6539
6540         New module 'u16-grapheme-prev'.
6541         * modules/unigbrk/u16-grapheme-prev: New file.
6542         * modules/unigbrk/u16-grapheme-prev-tests: New file.
6543         * lib/unigbrk.in.h: Add prototype for new function.
6544         * lib/unigbrk/u16-grapheme-prev.c: New file.
6545         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
6546
6547         New module 'u32-grapheme-prev'.
6548         * modules/unigbrk/u32-grapheme-prev: New file.
6549         * modules/unigbrk/u32-grapheme-prev-tests: New file.
6550         * lib/unigbrk.in.h: Add prototype for new function.
6551         * lib/unigbrk/u32-grapheme-prev.c: New file.
6552         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
6553
6554         New module 'u8-grapheme-breaks'.
6555         * modules/unigbrk/u8-grapheme-breaks: New file.
6556         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
6557         * lib/unigbrk.in.h: Add prototype for new function.
6558         * lib/unigbrk/u8-grapheme-breaks.c: New file.
6559         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
6560
6561         New module 'u16-grapheme-breaks'.
6562         * modules/unigbrk/u16-grapheme-breaks: New file.
6563         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
6564         * lib/unigbrk.in.h: Add prototype for new function.
6565         * lib/unigbrk/u16-grapheme-breaks.c: New file.
6566         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
6567
6568         New module 'u32-grapheme-breaks'.
6569         * modules/unigbrk/u32-grapheme-breaks: New file.
6570         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
6571         * lib/unigbrk.in.h: Add prototype for new function.
6572         * lib/unigbrk/u32-grapheme-breaks.c: New file.
6573         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
6574
6575         New module 'ulc-grapheme-breaks'.
6576         * modules/unigbrk/ulc-grapheme-breaks: New file.
6577         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
6578         * m4/locale-ar.m4: New file.
6579         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
6580         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
6581         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
6582
6583 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6584
6585         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
6586         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
6587         modified how this file was generated before I initially submitted
6588         the module, but failed to regenerate it.  This meant that several
6589         of the level2 entries were wrong.
6590         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
6591         Remove the division-by-2 that is folded into the table now that
6592         gbrkprop.h has been regenerated properly.  Now -1 entries are
6593         handled correctly.
6594
6595         New module 'unigbrk/uc-gbrk-prop-tests'.
6596         * modules/unigbrk/uc-gbrk-prop-tests: New file.
6597         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
6598         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
6599         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
6600
6601 2011-01-01  Bruno Haible  <bruno@clisp.org>
6602
6603         Avoid use of hexadecimal escapes.
6604         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
6605         instead of hexadecimal escapes.
6606
6607 2011-01-01  Jim Meyering  <meyering@redhat.com>
6608
6609         maint: new rule to update copyright year ranges
6610         * Makefile (update-copyright): New rule.
6611
6612         maint: indent with TABs in Makefile
6613         * Makefile: Expand leading sequences of spaces to TABs
6614
6615         version-etc: update the copyright year it reports
6616         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
6617
6618 2010-12-31  Bruno Haible  <bruno@clisp.org>
6619
6620         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
6621         * lib/isfinite.c (zerof, zerod, zerol): New variables.
6622         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
6623         zero.
6624
6625 2010-12-31  Bruno Haible  <bruno@clisp.org>
6626
6627         pwrite: Work around HP-UX 11.11 bug.
6628         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
6629         works and set REPLACE_PWRITE if not.
6630         * lib/pwrite.c (pwrite): Add an implementation that uses the system
6631         function.
6632         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
6633
6634 2010-12-31  Bruno Haible  <bruno@clisp.org>
6635
6636         pread: Work around HP-UX 11 bugs.
6637         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
6638         and set REPLACE_PREAD if not.
6639         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
6640
6641 2010-12-31  Eric Blake  <eblake@redhat.com>
6642
6643         nl_langinfo: fix YESEXPR on Irix 6.5
6644         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
6645         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
6646         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
6647         it.
6648
6649 2010-12-31  Bruno Haible  <bruno@clisp.org>
6650
6651         iconv: Document HP-UX 11 bug.
6652         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
6653
6654 2010-12-31  Bruno Haible  <bruno@clisp.org>
6655
6656         ldexpl: Fix link error on HP-UX 11.
6657         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
6658         LDEXPL_LIBM, using $ISNANL_LIBM.
6659
6660 2010-12-31  Eric Blake  <eblake@redhat.com>
6661
6662         ftello: avoid compilation failure with SunStudio c89
6663         * lib/ftello.c (ftello): Use lseek, not llseek.
6664
6665         tests: avoid failing coreutils tests on cygwin
6666         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
6667         (create_exe_shims_): Return 0 when skipping.
6668
6669 2010-12-31  Bruno Haible  <bruno@clisp.org>
6670
6671         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
6672         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
6673
6674 2010-12-31  Bruno Haible  <bruno@clisp.org>
6675
6676         waitpid: Fix link error in C++ mode.
6677         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
6678
6679 2010-12-31  Bruno Haible  <bruno@clisp.org>
6680
6681         isnan: Use GCC built-ins when possible.
6682         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
6683         __builtin_isnan.
6684         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
6685         (isnan): Define using GCC built-ins for GCC >= 4.0.
6686
6687 2010-12-31  Bruno Haible  <bruno@clisp.org>
6688
6689         isnand: Fix mistake.
6690         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
6691         __builtin_isnand.
6692
6693 2010-12-31  Bruno Haible  <bruno@clisp.org>
6694
6695         open: Avoid C++ error on HP-UX 11.
6696         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
6697
6698 2010-12-31  Bruno Haible  <bruno@clisp.org>
6699
6700         time_r: Add missing declarations on HP-UX 11.
6701         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
6702         instead of HAVE_LOCALTIME_R.
6703         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
6704         HAVE_LOCALTIME_R always.
6705         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
6706         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
6707         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
6708         HAVE_LOCALTIME_R.
6709         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
6710         * doc/posix-functions/localtime_r.texi: Likewise.
6711
6712 2010-12-29  Eric Blake  <eblake@redhat.com>
6713
6714         mountlist: tweak previous commit
6715         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
6716         Reported by Paul Eggert.
6717
6718         mountlist: fix local drive detection on cygwin
6719         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
6720         that works for cygwin.
6721
6722 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6723
6724         ftoastr, snprintf: ftoastr + snprintf module
6725         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
6726         since the snprintf module now should be good enough here.
6727         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
6728         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
6729         and gl_MODULE_INDICATOR([snprintf]), but the former enables
6730         GNULIB_SNPRINTF only for the test directory, and the latter
6731         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
6732         seems to suffice by itself.
6733
6734 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
6735
6736         alloca: one step towards thread-safety
6737         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
6738         need for a static variable.  All callers changed.  This does not
6739         make the alloca replacement thread-safe, but it's one step.
6740
6741         tests: minor indenting change
6742         * tests/init.sh: Sync from coreutils housekeeping patch
6743         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
6744         to keep lines within 80 columns.
6745
6746 2010-12-28  Jim Meyering  <meyering@redhat.com>
6747
6748         regex: don't infloop on persistent failing calloc
6749         * lib/regexec.c (build_trtable): Return failure indication upon
6750         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
6751         In glibc, this was fixed for version 2.13:
6752         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
6753
6754 2010-12-28  Bruno Haible  <bruno@clisp.org>
6755             Paul Eggert <eggert@cs.ucla.edu>
6756
6757         linkat: Make implementation robust against system behaviour variations.
6758         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
6759         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
6760         way, and to -2 if it needs a generic runtime test.
6761         * lib/linkat.c (solaris_optimized_link_immediate,
6762         solaris_optimized_link_follow): New functions.
6763         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
6764         (check_same_link): Use it.
6765
6766 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
6767
6768         New module 'unigbrk/base'.
6769         * modules/unigbrk/base: New file.
6770         * lib/unigbrk.in.h: New file.
6771
6772         New module 'unigbrk/uc-gbrk-prop'.
6773         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
6774         * modules/unigbrk/uc-gbrk-prop: New file.
6775         * lib/unigbrk/gbrkprop.h: New file.
6776         * lib/unigbrk/uc-gbrk-prop.c: New file.
6777
6778         New module 'unigbrk/uc-is-grapheme-break'.
6779         * modules/unigbrk/uc-is-grapheme-break: New file.
6780         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
6781         * lib/unigbrk/uc-is-grapheme-break.c: New file.
6782         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
6783         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
6784         * tests/unigbrk/GraphemeBreakTest.txt: New file.
6785
6786         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
6787
6788 2010-12-27  Bruno Haible  <bruno@clisp.org>
6789
6790         linkat test: Avoid failure on Solaris 11 2010-11.
6791         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
6792
6793 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6794
6795         utimens: work around glibc rounding bug on more platforms
6796         * lib/utimens.c (fdutimens): Work around rounding bug even if
6797         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
6798         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
6799
6800 2010-12-27  Bruno Haible  <bruno@clisp.org>
6801
6802         select tests: Improve comments.
6803         * tests/test-select.c (do_select): Add comments.
6804
6805 2010-12-27  Bruno Haible  <bruno@clisp.org>
6806
6807         select tests: Safer way of handling timeout.
6808         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
6809         at every invocation.
6810
6811 2010-12-27  Bruno Haible  <bruno@clisp.org>
6812
6813         select tests: Use 'bool' where appropriate.
6814         * tests/test-select.c (connect_to_socket): Change argument type to
6815         'bool'.
6816
6817 2010-12-27  Bruno Haible  <bruno@clisp.org>
6818
6819         select tests: Use existing modules.
6820         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
6821         (configure.ac): Don't test for unistd.h.
6822         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
6823         declared in <unistd.h>.
6824
6825 2010-12-27  Bruno Haible  <bruno@clisp.org>
6826
6827         mbrtowc: Work around a Solaris 7 bug.
6828         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
6829         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
6830         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
6831         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
6832         MBRTOWC_NULL_ARG1_BUG.
6833         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
6834         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
6835         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
6836         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
6837
6838 2010-12-27  Jim Meyering  <meyering@redhat.com>
6839
6840         read-file.c: tweak syntax
6841         * lib/read-file.c (fread_file): Remove space after "*" in function
6842         definitions.
6843
6844 2010-12-27  Bruno Haible  <bruno@clisp.org>
6845
6846         times test: Avoid gcc warnings on OSF/1.
6847         * tests/test-times.c (main): Cast printf arguments from clock_t to
6848         'long int'.
6849
6850 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6851
6852         utimens: work around glibc rounding bug on older Linux kernels
6853         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
6854         on Linux with a glibc whose utimes might not work, then work
6855         around a longstanding glibc bug involving rounding rather than
6856         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
6857         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6858
6859 2010-12-26  Bruno Haible  <bruno@clisp.org>
6860
6861         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
6862         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
6863         _GL_CXXALIAS_SYS.
6864         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6865
6866 2010-12-26  Bruno Haible  <bruno@clisp.org>
6867
6868         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
6869         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
6870         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6871         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
6872         looking for the declaration.
6873         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6874         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
6875         problem.
6876         * doc/posix-functions/inet_pton.texi: Likewise.
6877
6878 2010-12-26  Bruno Haible  <bruno@clisp.org>
6879
6880         arpa_inet: Use the common idioms with C++ support.
6881         * lib/arpa_inet.in.h: Include c++defs.h.
6882         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
6883         support.
6884         * modules/arpa_inet (Depends-on): Add c++defs.
6885         (Makefile.am): Substitute the contents of c++defs.h.
6886         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
6887         * modules/arpa_inet-c++-tests: New file.
6888         * tests/test-arpa_inet-c++.cc: New file.
6889
6890 2010-12-25  Bruno Haible  <bruno@clisp.org>
6891
6892         Fix more C++ link errors on Solaris 8.
6893         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
6894         $(LIB_EACCESS).
6895         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
6896         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
6897         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
6898         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
6899         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
6900
6901 2010-12-25  Bruno Haible  <bruno@clisp.org>
6902
6903         printf-posix: Fix link error when a non-GCC compiler is used.
6904         * lib/stdio.in.h (printf): When not using GCC, override printf
6905         correctly.
6906         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6907
6908 2010-12-25  Bruno Haible  <bruno@clisp.org>
6909
6910         strerror_r-posix: Update doc.
6911         * doc/posix-functions/strerror_r.texi: Update doc about the return
6912         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
6913
6914 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6915
6916         utimens: simplify the logic of the previous change
6917         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
6918         This should not affect whether the test succeeds or fails.
6919
6920         utimens: configure better on hosts with NFS clock skew
6921         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
6922         uses the clock of the local host.  It might use the clock of the
6923         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
6924         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6925
6926 2010-12-25  Bruno Haible  <bruno@clisp.org>
6927
6928         ptsname test: Avoid failure on Solaris.
6929         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
6930         open a pseudo-terminal; don't use BSD-style ptys.
6931         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
6932
6933 2010-12-25  Bruno Haible  <bruno@clisp.org>
6934
6935         ptsname: Avoid ERANGE failure on some systems.
6936         * lib/ptsname.c (buffer): Increase size.
6937
6938 2010-12-25  Bruno Haible  <bruno@clisp.org>
6939
6940         rename, renameat: Avoid test failures at NFS mounted locations.
6941         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
6942         so that subsequent mkdir calls succeed.
6943
6944 2010-12-25  Bruno Haible  <bruno@clisp.org>
6945
6946         iswblank: Fix C++ link error on Solaris 8.
6947         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
6948         _GL_FUNCDECL_SYS.
6949
6950 2010-12-25  Bruno Haible  <bruno@clisp.org>
6951
6952         unistd: Fix C++ link error on Solaris 8.
6953         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
6954
6955 2010-12-25  Bruno Haible  <bruno@clisp.org>
6956
6957         readlink doc: Mention an old glibc bug.
6958         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
6959
6960 2010-12-25  Bruno Haible  <bruno@clisp.org>
6961
6962         fcntl-h: Fix for use of C++ on glibc systems.
6963         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6964         also on glibc systems in C++ mode.
6965         Reported by Gary V. Vaughan <gary@gnu.org>.
6966
6967 2010-12-25  Bruno Haible  <bruno@clisp.org>
6968
6969         roundl-ieee: Make it work on OSF/1 5.1 with cc.
6970         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
6971
6972 2010-12-25  Bruno Haible  <bruno@clisp.org>
6973
6974         truncl-ieee: Make it work on OSF/1 5.1 with cc.
6975         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
6976         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
6977         test whether truncl works according to ISO C 99 with IEC 60559.
6978         * m4/truncl-ieee.m4: New file.
6979         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
6980         m4/signbit.m4.
6981         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
6982
6983 2010-12-25  Bruno Haible  <bruno@clisp.org>
6984
6985         ceill-ieee: Make it work on OSF/1 5.1 with cc.
6986         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
6987         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
6988         test whether ceill works according to ISO C 99 with IEC 60559.
6989         * m4/ceill-ieee.m4: New file.
6990         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
6991         m4/signbit.m4.
6992         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
6993
6994 2010-12-25  Bruno Haible  <bruno@clisp.org>
6995
6996         Ensure all prerequisites of <wchar.h> are included.
6997         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
6998         before <wchar.h>.
6999         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
7000         gl_MBRLEN_NUL_RETVAL): Likewise.
7001         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
7002         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
7003         AC_FUNC_MBRTOWC): Likewise.
7004         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7005         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
7006         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7007         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
7008         Likewise.
7009         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7010         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
7011         (gl_WCHAR_H): Improve comments.
7012         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7013
7014 2010-12-25  Bruno Haible  <bruno@clisp.org>
7015
7016         strtok_r: Fix C syntax error in autoconf macro.
7017         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
7018         characters in test program.
7019
7020 2010-12-24  Bruno Haible  <bruno@clisp.org>
7021
7022         ceil, trunc, round: Fix gcc warnings.
7023         * lib/ceil.c (MIN): Undefine before redefining.
7024         * lib/trunc.c (MIN): Likewise.
7025         * lib/round.c (MIN): Likewise.
7026         Include <math.h> first.
7027
7028 2010-12-24  Bruno Haible  <bruno@clisp.org>
7029
7030         select tests: Avoid failures on OSF/1 5.1.
7031         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
7032         failure of closing the last socket; it may fail with ECONNRESET.
7033
7034 2010-12-24  Eric Blake  <eblake@redhat.com>
7035
7036         stdint: avoid HP-UX 10.20 preprocessor bug
7037         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
7038         than #if.
7039         * tests/test-floor2.c (main): Likewise.
7040         Reported by Peter O'Gorman.
7041
7042         pipe: make obsoletion transition easier
7043         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
7044         * modules/pipe (Files): Include revived file.
7045         (Include): Drop reference, to mirror getdate's behavior.
7046
7047 2010-12-24  Bruno Haible  <bruno@clisp.org>
7048
7049         sys_socket: Hide mismatch of declarations on NonStop Kernel.
7050         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
7051         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7052         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7053
7054 2010-12-24  Bruno Haible  <bruno@clisp.org>
7055
7056         gethostname: Ensure declaration on NonStop Kernel.
7057         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
7058         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7059
7060 2010-12-24  Bruno Haible  <bruno@clisp.org>
7061
7062         sys_select: Ensure all necessary types on NonStop Kernel.
7063         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
7064         include <sys/time.h>.
7065         * doc/posix-headers/sys_select.texi: Mention that it's missing on
7066         NonStop Kernel.
7067         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7068
7069 2010-12-24  Bruno Haible  <bruno@clisp.org>
7070
7071         sys_select: Remove unneeded include.
7072         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
7073         have <sys/select.h>.
7074
7075 2010-12-24  Bruno Haible  <bruno@clisp.org>
7076
7077         gethostname: Provide a fallback for HOST_NAME_MAX.
7078         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
7079         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
7080         instead.
7081         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7082
7083 2010-12-24  Bruno Haible  <bruno@clisp.org>
7084
7085         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
7086         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
7087         (SA_RESTART): Likewise.
7088         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7089
7090 2010-12-24  Bruno Haible  <bruno@clisp.org>
7091
7092         signal: Define NSIG.
7093         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
7094         * tests/test-signal.c (nsig): New variable.
7095         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7096
7097 2010-12-24  Bruno Haible  <bruno@clisp.org>
7098
7099         rename, renameat: Avoid test failures on OSF/1 5.1.
7100         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
7101         alternative error codes.
7102         * tests/test-renameat.c (main): Likewise.
7103
7104 2010-12-24  Bruno Haible  <bruno@clisp.org>
7105
7106         *printf: Detect large precisions bug on Solaris 10/SPARC.
7107         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
7108         by Paul Eggert.
7109         * tests/test-snprintf-posix.h (test_function): Add this test code here
7110         too.
7111         * tests/test-sprintf-posix.h (test_function): Likewise.
7112         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7113         * tests/test-vasprintf-posix.c (test_function): Likewise.
7114         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
7115         around by gnulib.
7116         * doc/posix-functions/printf.texi: Likewise.
7117         * doc/posix-functions/snprintf.texi: Likewise.
7118         * doc/posix-functions/sprintf.texi: Likewise.
7119         * doc/posix-functions/vfprintf.texi: Likewise.
7120         * doc/posix-functions/vprintf.texi: Likewise.
7121         * doc/posix-functions/vsnprintf.texi: Likewise.
7122         * doc/posix-functions/vsprintf.texi: Likewise.
7123         * doc/posix-functions/dprintf.texi: Undo last commit.
7124         * doc/posix-functions/vdprintf.texi: Likewise.
7125
7126 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7127
7128         tests: port test-fdutimensat.c to Solaris 8
7129         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
7130         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
7131         On Solaris 8, it fails with errno == ENOSYS, because there is no
7132         futimens (so it can't use the fd), and there is no lutimens (so it
7133         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
7134
7135         vsnprintf: make more consistent with snprintf; doc fixes
7136
7137         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
7138         the byte count return problem was promoted from the snprintf-posix
7139         to the snprintf module.
7140         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7141         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
7142         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
7143         * tests/test-snprintf.c (main): Check the byte count returned.
7144         * tests/test-vsnprintf.c (main): Likewise.
7145
7146 2010-12-23  Eric Blake  <eblake@redhat.com>
7147
7148         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
7149         * modules/sigpipe (License): Relax license.
7150
7151 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7152
7153         doc: document Solaris printf bug with large float precisions
7154         * doc/posix-functions/dprintf.texi (dprintf):
7155         * doc/posix-functions/fprintf.texi (fprintf):
7156         * doc/posix-functions/printf.texi (printf):
7157         * doc/posix-functions/snprintf.texi (snprintf):
7158         * doc/posix-functions/sprintf.texi (sprintf):
7159         * doc/posix-functions/vdprintf.texi (vdprintf):
7160         * doc/posix-functions/vfprintf.texi (vfprintf):
7161         * doc/posix-functions/vprintf.texi (vprintf):
7162         * doc/posix-functions/vsnprintf.texi (vsnprintf):
7163         * doc/posix-functions/vsprintf.texi (vsprintf):
7164         Mention that these functions mishandle large floating point
7165         precisions on Solaris 10.  The same bug is also present in Solaris
7166         8, and I assume earlier.  This causes "cd gnulib-tests; make
7167         check" to fail on Solaris 8 (and I assume, later) when building
7168         the latest coreutils, in test-vasprintf-posix's call to
7169         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
7170         the wide flavors (e.g., wprintf) so this patch just updates the
7171         documentation for the narrow ones.
7172
7173         test-posixtm.c: add two tests
7174         * tests/test-posixtm.c: Add two tests, to highlight the
7175         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
7176         around this bug; this is merely to document it.
7177
7178 2010-12-22  Bruno Haible  <bruno@clisp.org>
7179
7180         getlogin_r: Work around portability problem on OSF/1.
7181         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
7182         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
7183         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
7184         test for a truncated result.
7185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
7186         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
7187         * modules/getlogin_r (Depends-on): Add memchr.
7188         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
7189
7190 2010-12-22  Bruno Haible  <bruno@clisp.org>
7191
7192         ptsname: Avoid test failure on OSF/1 5.1.
7193         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
7194         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
7195         (same_slave): New function.
7196         (main): Use it to compare ptsname's result with the expected file name.
7197
7198 2010-12-22  Bruno Haible  <bruno@clisp.org>
7199
7200         Port extended stdio modules to HP NonStop Kernel.
7201         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
7202         macros.
7203         * lib/fbufmode.c: Update comments.
7204         * lib/fflush.c: Likewise.
7205         * lib/fpurge.c: Likewise.
7206         * lib/freadable.c: Likewise.
7207         * lib/freadahead.c: Likewise.
7208         * lib/freading.c: Likewise.
7209         * lib/freadptr.c: Likewise.
7210         * lib/freadseek.c: Likewise.
7211         * lib/fseeko.c: Likewise.
7212         * lib/fseterr.c: Likewise.
7213         * lib/fwritable.c: Likewise.
7214         * lib/fwriting.c: Likewise.
7215         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7216
7217 2010-12-22  Bruno Haible  <bruno@clisp.org>
7218
7219         ttyname_r: Work around bug on OSF/1 5.1.
7220         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
7221         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
7222         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
7223         present.
7224         * lib/ttyname_r.c (ttyname_r): Update comments.
7225
7226 2010-12-22  Bruno Haible  <bruno@clisp.org>
7227
7228         round: Implement result sign according to IEEE 754.
7229         * lib/round.c (MIN, MINUS_ZERO): New macros.
7230         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
7231         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
7232         * tests/test-round-ieee.c (main): Likewise.
7233         * tests/test-roundl-ieee.c (main): Likewise.
7234
7235         trunc: Implement result sign according to IEEE 754.
7236         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
7237         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
7238         * tests/test-trunc2.c: Include minus-zero.h.
7239         (MINUS_ZERO): New macro.
7240         (trunc_reference): Keep in sync with lib/trunc.c.
7241         * tests/test-truncf2.c: Include minus-zero.h.
7242         (MINUS_ZERO): New macro.
7243         (truncf_reference): Keep in sync with lib/trunc.c.
7244         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
7245         * tests/test-trunc-ieee.c (main): Likewise.
7246         * tests/test-truncl-ieee.c (main): Likewise.
7247
7248         ceil: Implement result sign according to IEEE 754.
7249         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
7250         (FUNC): Return -0.0 for -1 < x < 0.
7251         * tests/test-ceil2.c: Include minus-zero.h.
7252         (MINUS_ZERO): New macro.
7253         (ceil_reference): Keep in sync with lib/ceil.c.
7254         * tests/test-ceilf2.c: Include minus-zero.h.
7255         (MINUS_ZERO): New macro.
7256         (ceilf_reference): Keep in sync with lib/ceil.c.
7257         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
7258         * tests/test-ceil-ieee.c (main): Likewise.
7259         * tests/test-ceill-ieee.c (main): Likewise.
7260
7261         floor: Implement result sign according to IEEE 754.
7262         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
7263         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
7264         * tests/test-floorf2.c (floorf_reference): Likewise.
7265         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
7266         * tests/test-floor-ieee.c (main): Likewise.
7267         * tests/test-floorl-ieee.c (main): Likewise.
7268
7269 2010-12-22  Bruno Haible  <bruno@clisp.org>
7270
7271         getaddrinfo: Update doc.
7272         * doc/posix-functions/gai_strerror.texi: Return type is also different
7273         on AIX and HP-UX.
7274
7275 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7276
7277         getaddrinfo, inet_ntop: Update doc for Solaris.
7278         * doc/posix-functions/gai_strerror.texi: Return type is also an
7279         issue on Solaris 9 and earlier.
7280         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
7281         on Solaris 10 and earlier.
7282
7283 2010-12-21  Bruno Haible  <bruno@clisp.org>
7284
7285         New module 'roundl-ieee'.
7286         * modules/roundl-ieee: New file.
7287         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
7288         test whether roundl works according to ISO C 99 with IEC 60559.
7289         * m4/roundl-ieee.m4: New file.
7290         * modules/roundl-ieee-tests: New file.
7291         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
7292         * tests/test-roundl.c (main): Remove signbit tests.
7293         * modules/roundl-tests (Depends-on): Remove signbit.
7294         * doc/posix-functions/roundl.texi: Mention the new module.
7295
7296 2010-12-21  Bruno Haible  <bruno@clisp.org>
7297
7298         New module 'truncl-ieee'.
7299         * modules/truncl-ieee: New file.
7300         * modules/truncl-ieee-tests: New file.
7301         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
7302         * tests/test-truncl.c (main): Remove signbit tests.
7303         * modules/truncl-tests (Depends-on): Remove signbit.
7304         * doc/posix-functions/truncl.texi: Mention the new module.
7305
7306 2010-12-21  Bruno Haible  <bruno@clisp.org>
7307
7308         New module 'ceill-ieee'.
7309         * modules/ceill-ieee: New file.
7310         * modules/ceill-ieee-tests: New file.
7311         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
7312         * tests/test-ceill.c (main): Remove signbit tests.
7313         * modules/ceill-tests (Depends-on): Remove signbit.
7314         * doc/posix-functions/ceill.texi: Mention the new module.
7315
7316 2010-12-21  Bruno Haible  <bruno@clisp.org>
7317
7318         New module 'floorl-ieee'.
7319         * modules/floorl-ieee: New file.
7320         * modules/floorl-ieee-tests: New file.
7321         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
7322         * tests/test-floorl.c (main): Remove signbit tests.
7323         * modules/floorl-tests (Depends-on): Remove signbit.
7324         * doc/posix-functions/floorl.texi: Mention the new module.
7325
7326 2010-12-21  Bruno Haible  <bruno@clisp.org>
7327
7328         New module 'round-ieee'.
7329         * modules/round-ieee: New file.
7330         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
7331         whether round works according to ISO C 99 with IEC 60559.
7332         * m4/round-ieee.m4: New file.
7333         * modules/round-ieee-tests: New file.
7334         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
7335         * tests/test-round1.c (main): Remove signbit tests.
7336         * modules/round-tests (Depends-on): Remove 'signbit'.
7337         * doc/posix-functions/round.texi: Mention the new module.
7338
7339 2010-12-21  Bruno Haible  <bruno@clisp.org>
7340
7341         New module 'trunc-ieee'.
7342         * modules/trunc-ieee: New file.
7343         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
7344         whether trunc works according to ISO C 99 with IEC 60559.
7345         * m4/trunc-ieee.m4: New file.
7346         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
7347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
7348         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
7349         * modules/trunc-ieee-tests: New file.
7350         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
7351         * tests/test-trunc1.c (main): Remove signbit tests.
7352         * modules/trunc-tests (Depends-on): Remove 'signbit'.
7353         * doc/posix-functions/trunc.texi: Mention the new module.
7354
7355 2010-12-21  Bruno Haible  <bruno@clisp.org>
7356
7357         New module 'ceil-ieee'.
7358         * modules/ceil-ieee: New file.
7359         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
7360         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
7361         ISO C 99 with IEC 60559.
7362         * m4/ceil-ieee.m4: New file.
7363         * modules/ceil (Files): Add lib/ceil.c.
7364         (Depends-on): Add 'float'.
7365         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7366         * lib/math.in.h (ceil): New declaration.
7367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
7368         REPLACE_CEIL.
7369         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
7370         * modules/ceil-ieee-tests: New file.
7371         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
7372         * tests/test-math-c++.cc: Check the signature of 'ceil'.
7373         * doc/posix-functions/ceil.texi: Mention the new module.
7374
7375 2010-12-21  Bruno Haible  <bruno@clisp.org>
7376
7377         New module 'floor-ieee'.
7378         * modules/floor-ieee: New file.
7379         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
7380         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
7381         ISO C 99 with IEC 60559.
7382         * m4/floor-ieee.m4: New file.
7383         * modules/floor (Files): Add lib/floor.c.
7384         (Depends-on): Add 'float'.
7385         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7386         * lib/math.in.h (floor): New declaration.
7387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
7388         REPLACE_FLOOR.
7389         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
7390         * modules/floor-ieee-tests: New file.
7391         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
7392         * tests/test-math-c++.cc: Check the signature of 'floor'.
7393         * doc/posix-functions/floor.texi: Mention the new module.
7394
7395 2010-12-21  Bruno Haible  <bruno@clisp.org>
7396
7397         New module 'roundf-ieee'.
7398         * modules/roundf-ieee: New file.
7399         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
7400         test whether roundf works according to ISO C 99 with IEC 60559.
7401         * m4/roundf-ieee.m4: New file.
7402         * modules/roundf-ieee-tests: New file.
7403         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
7404         * tests/test-roundf1.c (main): Remove signbit tests.
7405         * modules/roundf-tests (Depends-on): Remove 'signbit'.
7406         * doc/posix-functions/roundf.texi: Mention the new module.
7407
7408 2010-12-21  Bruno Haible  <bruno@clisp.org>
7409
7410         New module 'truncf-ieee'.
7411         * modules/truncf-ieee: New file.
7412         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
7413         test whether truncf works according to ISO C 99 with IEC 60559.
7414         * m4/truncf-ieee.m4: New file.
7415         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
7416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
7417         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
7418         * modules/truncf-ieee-tests: New file.
7419         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
7420         * tests/test-truncf1.c (main): Remove signbit tests.
7421         * modules/truncf-tests (Depends-on): Remove 'signbit'.
7422         * doc/posix-functions/truncf.texi: Mention the new module.
7423
7424 2010-12-21  Bruno Haible  <bruno@clisp.org>
7425
7426         New module 'ceilf-ieee'.
7427         * modules/ceilf-ieee: New file.
7428         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
7429         test whether ceilf works according to ISO C 99 with IEC 60559.
7430         * m4/ceilf-ieee.m4: New file.
7431         * modules/ceilf-ieee-tests: New file.
7432         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
7433         * tests/test-ceilf1.c (main): Remove signbit tests.
7434         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
7435         * doc/posix-functions/ceilf.texi: Mention the new module.
7436
7437 2010-12-21  Bruno Haible  <bruno@clisp.org>
7438
7439         New module 'floorf-ieee'.
7440         * modules/floorf-ieee: New file.
7441         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
7442         test whether floorf works according to ISO C 99 with IEC 60559.
7443         * m4/floorf-ieee.m4: New file.
7444         * modules/floorf-ieee-tests: New file.
7445         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
7446         * tests/test-floorf1.c (main): Remove signbit tests.
7447         * modules/floorf-tests (Depends-on): Remove 'signbit'.
7448         * doc/posix-functions/floorf.texi: Mention the new module.
7449
7450 2010-12-21  Bruno Haible  <bruno@clisp.org>
7451
7452         Support for minus zero in autoconf macros.
7453         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
7454         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
7455         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
7456         * tests/minus-zero.h: Update comments.
7457
7458 2010-12-21  Bruno Haible  <bruno@clisp.org>
7459
7460         Tests for module 'ceil'.
7461         * modules/ceil-tests: New file.
7462         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
7463         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
7464
7465 2010-12-21  Bruno Haible  <bruno@clisp.org>
7466
7467         Tests for module 'floor'.
7468         * modules/floor-tests: New file.
7469         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
7470         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
7471
7472 2010-12-21  Bruno Haible  <bruno@clisp.org>
7473
7474         math: Fix indentation.
7475         * lib/math.in.h (floorf): Fix indentation.
7476
7477 2010-12-21  Bruno Haible  <bruno@clisp.org>
7478
7479         Fix cross-compilation guesses on Solaris.
7480         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
7481         not match "solaris2.10".
7482         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7483         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
7484         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
7485
7486 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
7487
7488         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
7489         This fixes a problem observed with the latest coreutils snapshot
7490         that caused a test to fail on Solaris 8.  src/csplit.c's call
7491         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
7492         earlier, instead of returning the number of bytes that would have
7493         been generated; this causes csplit to incorrectly report memory
7494         exhaustion.
7495         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
7496         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
7497         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
7498         comments to match.
7499         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
7500         Fix typo in matching older versions of Solaris: "solaris2.10"
7501         is matched by the shell pattern "solaris2.[0-9]*".  This matters
7502         only for guessing while cross-compiling.
7503         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
7504
7505 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
7506
7507         ftoastr: fix comment again
7508         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7509         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
7510         Also, simplify example a bit by using flags = 0.
7511
7512 2010-12-20  Bruno Haible  <bruno@clisp.org>
7513
7514         round*, trunc*: Update documentation regarding glibc.
7515         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
7516         * doc/posix-functions/round.texi: Likewise.
7517         * doc/posix-functions/roundl.texi: Likewise.
7518         * doc/posix-functions/truncf.texi: Likewise.
7519         * doc/posix-functions/trunc.texi: Likewise.
7520         * doc/posix-functions/truncl.texi: Likewise.
7521
7522 2010-12-20  Bruno Haible  <bruno@clisp.org>
7523
7524         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
7525         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
7526         * doc/posix-functions/round.texi: Likewise.
7527         * doc/posix-functions/roundl.texi: Likewise.
7528
7529 2010-12-20  Bruno Haible  <bruno@clisp.org>
7530
7531         ttyname_r: Add missing declaration on HP-UX 11.
7532         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
7533         HAVE_TTYNAME_R.
7534         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
7535         declared. Set HAVE_TTYNAME_R always.
7536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7537         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
7538         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
7539         HAVE_TTYNAME_R.
7540         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
7541
7542 2010-12-20  Bruno Haible  <bruno@clisp.org>
7543
7544         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
7545         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
7546         * doc/posix-functions/getlogin_r.texi: Likewise.
7547         * tests/test-getlogin.c: Include <errno.h>.
7548         (main): Avoid test failure on HP-UX 11.11.
7549         * tests/test-getlogin_r.c (main): Likewise.
7550
7551 2010-12-20  Bruno Haible  <bruno@clisp.org>
7552
7553         getlogin_r: Add missing declaration on HP-UX 11.
7554         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
7555         declared also when it exists as a function.
7556         * doc/posix-functions/getlogin_r.texi: Document this workaround.
7557
7558 2010-12-20  Bruno Haible  <bruno@clisp.org>
7559
7560         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
7561         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
7562         through wcrtomb.
7563
7564 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7565
7566         ftoastr: fix comment
7567         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7568         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
7569
7570 2010-12-19  Bruno Haible  <bruno@clisp.org>
7571
7572         isnan: Ensure it is a macro.
7573         * lib/math.in.h (isnan): Define as a macro if not already a macro.
7574         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
7575         Solaris.
7576
7577 2010-12-19  Bruno Haible  <bruno@clisp.org>
7578
7579         ldexpl test: Fix link error on OSF/1 5.1.
7580         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
7581
7582 2010-12-19  Bruno Haible  <bruno@clisp.org>
7583
7584         wctype: Make it work in C++ mode on OSF/1 5.1.
7585         * lib/wctype.in.h (iswblank): Declare but not define here.
7586         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
7587         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
7588         * modules/wctype (Files): Add lib/iswblank.c.
7589
7590 2010-12-19  Bruno Haible  <bruno@clisp.org>
7591
7592         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
7593         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
7594         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
7595
7596 2010-12-19  Bruno Haible  <bruno@clisp.org>
7597
7598         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
7599         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
7600         _POSIX_PII_SOCKET.
7601         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
7602         * doc/posix-functions/recvfrom.texi: Likewise.
7603         * doc/posix-functions/send.texi: Likewise.
7604         * doc/posix-functions/sendto.texi: Likewise.
7605
7606 2010-12-19  Bruno Haible  <bruno@clisp.org>
7607
7608         tcgetsid: Add missing declaration on OSF/1 5.1.
7609         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
7610         HAVE_TCGETSID.
7611         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
7612         Don't set HAVE_TCGETSID.
7613         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
7614         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
7615         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
7616         HAVE_TCGETSID.
7617         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
7618
7619 2010-12-19  Bruno Haible  <bruno@clisp.org>
7620
7621         stdio: Fix problem with popen() declaration on OSF/1 5.1.
7622         * lib/stdio.in.h: During the include_next statement, let recursive
7623         includes of this file include only the system header file.
7624
7625 2010-12-19  Bruno Haible  <bruno@clisp.org>
7626
7627         iconv_open: Fix regression from 2010-12-04.
7628         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
7629         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
7630
7631 2010-12-19  Bruno Haible  <bruno@clisp.org>
7632
7633         stdbool test: Avoid a gcc warning.
7634         * tests/test-stdbool.c (main): Fail if e1 is false.
7635         Reported by Jim Meyering.
7636
7637 2010-12-19  Jim Meyering  <meyering@redhat.com>
7638
7639         setenv: restore to working order
7640         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
7641         mistakenly removed.
7642         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
7643         HAVE_SETENV.
7644         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
7645         HAVE_SETENV.
7646
7647 2010-12-19  Bruno Haible  <bruno@clisp.org>
7648
7649         Document some different function declarations on OSF/1 5.1.
7650         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
7651         * doc/posix-functions/inet_ntop.texi: Likewise.
7652         * doc/posix-functions/gethostname.texi: Likewise.
7653         * lib/unistd.in.h (gethostname): Update comment.
7654
7655 2010-12-19  Bruno Haible  <bruno@clisp.org>
7656
7657         doc: Mention vasprintf-posix module.
7658         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
7659         the 'vasprintf-posix' module.
7660         * doc/glibc-functions/vasprintf.texi: Likewise.
7661
7662 2010-12-19  Bruno Haible  <bruno@clisp.org>
7663
7664         unsetenv: Add missing declaration on OSF/1 5.1.
7665         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
7666         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
7667         Don't set HAVE_UNSETENV. In the test program, set _BSD.
7668         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
7669         not HAVE_UNSETENV.
7670         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
7671         HAVE_UNSETENV.
7672         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
7673
7674 2010-12-19  Bruno Haible  <bruno@clisp.org>
7675
7676         setenv: Add missing declaration on OSF/1 5.1.
7677         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
7678         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
7679         declared. Don't set HAVE_SETENV.
7680         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
7681         not HAVE_SETENV.
7682         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
7683         HAVE_SETENV.
7684         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
7685
7686 2010-12-19  Bruno Haible  <bruno@clisp.org>
7687
7688         nl_langinfo tests: Avoid gcc warning.
7689         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
7690
7691 2010-12-19  Bruno Haible  <bruno@clisp.org>
7692
7693         mknod: Avoid error in C++ mode on OSF/1 with GCC.
7694         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
7695         _GL_CXXALIAS_SYS.
7696
7697 2010-12-19  Bruno Haible  <bruno@clisp.org>
7698
7699         stdbool: Relax test.
7700         * tests/test-stdbool.c (e): Don't require that casts from a variable's
7701         address to 'bool' work in static initializer, for compilers other than
7702         GCC.
7703
7704 2010-12-19  Bruno Haible  <bruno@clisp.org>
7705
7706         ftello: Add missing declaration on OSF/1 5.1.
7707         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
7708         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
7709         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
7710         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
7711         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
7712
7713 2010-12-19  Bruno Haible  <bruno@clisp.org>
7714
7715         fseeko: Add missing declaration on OSF/1 5.1.
7716         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
7717         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
7718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
7719         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
7720         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
7721
7722 2010-12-19  Bruno Haible  <bruno@clisp.org>
7723
7724         fchdir: Add missing declaration on OSF/1 5.1.
7725         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
7726         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
7727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
7728         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
7729         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
7730
7731 2010-12-19  Bruno Haible  <bruno@clisp.org>
7732
7733         relocatable-prog-wrapper: Separate from relocatable-prog.
7734         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
7735         uninstall-relocwrapper rule here.
7736         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
7737         Reported by Ian Beckwith <ianb@erislabs.net>.
7738
7739 2010-12-19  Bruno Haible  <bruno@clisp.org>
7740
7741         unistr/u8-mbsnlen: Add missing dependency.
7742         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
7743         Reported by Ian Beckwith <ianb@erislabs.net>.
7744
7745 2010-12-19  Bruno Haible  <bruno@clisp.org>
7746
7747         iconv: Make it possible again to use this module without 'iconv-h'.
7748         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
7749         if it is not defined.
7750         Reported by Ian Beckwith <ianb@erislabs.net>.
7751
7752 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7753
7754         acl: port to Solaris 8 when copying from tmpfs to ufs
7755         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
7756         error number.  Problem observed on Solaris 8 with latest
7757         coreutils, with "mv A B", where A is on a tmpfs file system and B
7758         is on a ufs file system.  This caused coreutils' mv/part-symlink
7759         test to fail.
7760
7761         tests: set fail=0 at start
7762         * tests/init.sh (setup_): Move fail=0 initialization here ...
7763         (mktempd_): ... from here, so that tests can rely on fail being
7764         set to 0 initially.  This fixes a problem in coreutils; see:
7765         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
7766
7767 2010-12-18  Bruno Haible  <bruno@clisp.org>
7768
7769         memmem-simple: Stylistic changes.
7770         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
7771         Fix preprocessor directive indentation.
7772
7773 2010-12-15  Pádraig Brady <P@draigBrady.com>
7774
7775         memmem, memmem-simple: reorganize and expand empty needle check
7776         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
7777         functional checks to memmem-simple so that one has a fully functional
7778         memmem by using just this module.
7779         Restrict the performance only check to the memmem module.
7780         Also expand the empty needle check to ensure the correct
7781         pointer is returned, not just a non NULL pointer.
7782         * doc/glibc-functions/memmem.texi: Rearrange the portability
7783         documentation to correlate with the rearranged checks.
7784         Clarify exactly how the memmem and memmem-simple modules
7785         relate to each other.
7786
7787 2010-12-15  Pádraig Brady <P@draigBrady.com>
7788             Bruno Haible  <bruno@clisp.org>
7789
7790         Improve cross-compilation guesses for uClibc.
7791         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
7792         that uClibc does not have the glibc bug.
7793         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
7794         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
7795
7796 2010-12-14  Eric Blake  <eblake@redhat.com>
7797
7798         configmake: provide fallbacks for oldest supported autotools
7799         * m4/configmake.m4: New file.
7800         * modules/configmake (Files): Ship it.
7801         (configure.ac): Use it to guarantee fallbacks.
7802
7803 2010-12-13  Pádraig Brady <P@draigBrady.com>
7804
7805         read-file: Improve handling of large files
7806         * lib/read-file.c (fread_file): Minimize realloc()s
7807         for regular files, and better manage sizes around SIZE_MAX.
7808
7809 2010-12-13  Eric Blake  <eblake@redhat.com>
7810
7811         cloexec, fcntl: relax license
7812         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
7813         consent from all contributors.
7814         * modules/fcntl (License): Likewise.
7815
7816 2010-12-10  Bruno Haible  <bruno@clisp.org>
7817
7818         Tests for module 'pipe-posix'.
7819         * modules/pipe-posix-tests: New file.
7820         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
7821
7822 2010-12-10  Bruno Haible  <bruno@clisp.org>
7823
7824         pipe-posix: Make it work in C++ mode.
7825         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
7826         (pipe): Use common idiom, not a macro definition.
7827         * lib/pipe.c: New file.
7828         * m4/pipe.m4: New file.
7829         * modules/pipe-posix (Description): Enhance.
7830         (Files): Add lib/pipe.c, m4/pipe.m4.
7831         (configure.ac): Invoke gl_FUNC_PIPE.
7832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
7833         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
7834         * tests/test-unistd-c++.cc: Check the signature of pipe.
7835
7836 2010-12-10  Bruno Haible  <bruno@clisp.org>
7837
7838         Rename module 'pipe' to 'spawn-pipe'.
7839         * modules/spawn-pipe: New file, renamed from modules/pipe.
7840         (Files, configure.ac, Makefile.am): Update.
7841         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
7842         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
7843         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
7844         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
7845         "spawn-pipe.h" instead of "pipe.h".
7846         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
7847         to gl_SPAWN_PIPE.
7848         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
7849         (Files, Makefile.am): Update.
7850         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
7851         Update.
7852         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
7853         Include "spawn-pipe.h" instead of "pipe.h".
7854         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
7855         * lib/javacomp.c: Likewise.
7856         * lib/javaversion.c: Likewise.
7857         * lib/pipe-filter-gi.c: Likewise.
7858         * lib/pipe-filter-ii.c: Likewise.
7859         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
7860         * modules/javacomp (Depends-on): Likewise.
7861         * modules/javaversion (Depends-on): Likewise.
7862         * modules/pipe-filter-gi (Depends-on): Likewise.
7863         * modules/pipe-filter-ii (Depends-on): Likewise.
7864         * MODULES.html.sh (Executing programs): Update.
7865         * NEWS: Mention the change.
7866
7867 2010-12-10  Eric Blake  <eblake@redhat.com>
7868
7869         pipe-posix: new module
7870         * modules/pipe-posix: New file.
7871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
7872         (gl_UNISTD_H): Check for declaration.
7873         * modules/unistd (Makefile.am): Substitute it.
7874         * lib/unistd.in.h (pipe): Provide it for mingw.
7875         * doc/posix-functions/pipe.texi (pipe): Update documentation.
7876         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
7877
7878 2010-12-07  Bruno Haible  <bruno@clisp.org>
7879
7880         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
7881         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
7882         u8_strcmp_gnu.
7883         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
7884
7885 2010-12-06  Bruno Haible  <bruno@clisp.org>
7886
7887         Update internal documentation.
7888         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
7889
7890 2010-12-04  Bruno Haible  <bruno@clisp.org>
7891
7892         Put more information about failed tests into the test return codes.
7893         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
7894         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
7895         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7896         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7897         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7898         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7899         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7900         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7901         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
7902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7903         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
7904         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
7905         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7906         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7907         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
7908         returns a bit mask.
7909         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
7910         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
7911         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
7912         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
7913         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7914         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7915         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7916         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7917         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7918         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7919         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7920         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7921         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7922         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7923         * m4/link.m4 (gl_FUNC_LINK): Likewise.
7924         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7925         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
7926         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
7927         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7928         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
7929         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7930         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7931         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
7932         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7933         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7934         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7935         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
7936         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7937         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7938         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
7939         gl_PRINTF_PRECISION): Likewise.
7940         * m4/regex.m4 (gl_REGEX): Likewise.
7941         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7942         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7943         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
7944         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7945         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7946         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7947         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7948         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
7949         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7950         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7951         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7952         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7953         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7954         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7955         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7956         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7957         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7958         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7959         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7960         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
7961         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
7962         enumerated value.
7963         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
7964
7965 2010-12-04  Bruno Haible  <bruno@clisp.org>
7966
7967         Update for Solaris 11 2010-11.
7968         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
7969         Express, released in November 2010.
7970
7971 2010-12-04  Bruno Haible  <bruno@clisp.org>
7972
7973         nproc: Relax license.
7974         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
7975         and Paul Eggert.
7976         Requested by Ludovic Courtès <ludo@gnu.org>.
7977
7978 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7979
7980         utimecmp: fine-grained src to nearby coarse-grained dest
7981
7982         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
7983         and the source is on a file system with higher-resolution time
7984         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
7985         not work, and the time stamps are close together, the algorithm to
7986         determine the exact resolution from the read-back mtime was buggy:
7987         it had a "!=" where it should have had an "==".  This bug has been
7988         in the code ever since it was introduced to gnulib.
7989         Problem reported by Dan Jacobson in
7990         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
7991
7992 2010-11-30  Bruno Haible  <bruno@clisp.org>
7993
7994         strerror_r-posix: Fix autoconf test.
7995         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
7996
7997 2010-11-28  Bruno Haible  <bruno@clisp.org>
7998             Paul Eggert  <eggert@cs.ucla.edu>
7999
8000         Tests for module 'getdomainname'.
8001         * modules/getdomainname-tests: New file.
8002         * tests/test-getdomainname.c: New file, based on
8003         tests/test-gethostname.c.
8004
8005 2010-11-28  Bruno Haible  <bruno@clisp.org>
8006             Paul Eggert  <eggert@cs.ucla.edu>
8007
8008         getdomainname: Use the system function when possible.
8009         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
8010         (getdomainname): Replace if needed. Provide the declaration if it is
8011         missing. Don't use _GL_CXXALIAS_SYS_CAST.
8012         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
8013         (getdomainname): When the system has getdomainname, call the system
8014         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
8015         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
8016         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
8017         found in libnsl. Look for the declaration also in <netdb.h>. Replace
8018         the function if its second argument is of type 'int' or if it is found
8019         in libnsl.
8020         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
8021         <sys/systeminfo.h> and sysinfo().
8022         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
8023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8024         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
8025         HAVE_GETDOMAINNAME.
8026         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
8027         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
8028         * doc/glibc-functions/getdomainname.texi: Document the problems with
8029         the getdomainname declaration.
8030
8031 2010-11-28  Bruno Haible  <bruno@clisp.org>
8032
8033         sys_socket: Ensure ss_family field on AIX.
8034         * lib/sys_socket.in.h (ss_family): New macro definition.
8035         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
8036         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
8037         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8038         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8039         * modules/sys_socket (Makefile.am): Substitute
8040         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8041         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
8042
8043 2010-11-27  Bruno Haible  <bruno@clisp.org>
8044
8045         readline: Improve configure output.
8046         * m4/readline.m4 (gl_FUNC_READLINE): Make the
8047         "checking for readline..." result understandable.
8048
8049 2010-11-27  Bruno Haible  <bruno@clisp.org>
8050
8051         *printf-posix: Detect a bug on Solaris 10/x86.
8052         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
8053         for floating-point output.
8054         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
8055         directive.
8056         * tests/test-snprintf-posix.h (test_function): Likewise.
8057         * tests/test-sprintf-posix.h (test_function): Likewise.
8058         * tests/test-vasprintf-posix.c (test_function): Likewise.
8059         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
8060         * doc/posix-functions/printf.texi: Likewise.
8061         * doc/posix-functions/snprintf.texi: Likewise.
8062         * doc/posix-functions/sprintf.texi: Likewise.
8063         * doc/posix-functions/vfprintf.texi: Likewise.
8064         * doc/posix-functions/vprintf.texi: Likewise.
8065         * doc/posix-functions/vsnprintf.texi: Likewise.
8066         * doc/posix-functions/vsprintf.texi: Likewise.
8067         * doc/glibc-functions/obstack_printf.texi: Likewise.
8068         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8069
8070 2010-11-27  Bruno Haible  <bruno@clisp.org>
8071
8072         Fix link error when module libunistring-optional is in use.
8073         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
8074         * modules/striconveha-tests (Makefile.am): Likewise.
8075
8076 2010-11-27  Bruno Haible  <bruno@clisp.org>
8077
8078         regex: Mention link dependencies.
8079         * modules/regex (Link): New section.
8080         * modules/rpmatch (Link): Likewise.
8081         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
8082
8083 2010-11-27  Bruno Haible  <bruno@clisp.org>
8084
8085         ftoastr: Fix compilation error on Solaris.
8086         * lib/ftoastr.c: Include <config.h>.
8087
8088 2010-11-27  Bruno Haible  <bruno@clisp.org>
8089
8090         getloadavg: Update documentation.
8091         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
8092
8093 2010-11-27  Bruno Haible  <bruno@clisp.org>
8094
8095         sys_socket: Fix test whether the functions are declared.
8096         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
8097         not <sys/select.h>.
8098
8099 2010-11-27  Bruno Haible  <bruno@clisp.org>
8100
8101         getpass: Make sure to get system declaration on some platforms.
8102         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
8103         gl_USE_SYSTEM_EXTENSIONS.
8104         * modules/getpass (Depends-on): Add extensions.
8105
8106 2010-11-26  Bruno Haible  <bruno@clisp.org>
8107
8108         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
8109         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
8110         'iconv' module is present.
8111         (ICONV_CONST): New macro.
8112         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
8113         ICONV_CONST.
8114         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
8115         set ICONV_CONST.
8116         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
8117         here.
8118         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
8119         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
8120         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
8121         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
8122         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
8123         present.
8124
8125 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8126
8127         ftoastr: comment fix
8128         * lib/ftoastr.c: "little" -> "little or no" in comment
8129
8130 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
8131
8132         stdint: port to GCC 4.3 + OSX + Octave
8133         On this platform, stdint.h is buggy and defines int64_t to long
8134         long int.  The replacement defined it to long int, causing
8135         problems with C++ style name mangling.  Instead, trust the system
8136         definition if INT64_MAX is defined, and likewise for the unsigned
8137         variant.   Problem reported by Jarno Rajahalme in
8138         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
8139         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
8140         and don't mess with int64_t and INT64_MAX in this case.
8141         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
8142
8143 2010-11-24  Bruno Haible  <bruno@clisp.org>
8144
8145         doc: Corrections regarding MacOS X 10.4 and 10.5.
8146         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
8147         MacOS X.
8148         Reported by Simon Josefsson.
8149
8150 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
8151
8152         Uninstall ".bin" files installed by relocwrapper.
8153         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
8154         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
8155         unless it is already there.
8156
8157 2010-11-21  Bruno Haible  <bruno@clisp.org>
8158
8159         Update for NetBSD 5.0.
8160         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8161         NetBSD; the test fails on NetBSD 5.0.
8162         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8163         about NetBSD.
8164
8165 2010-11-21  Bruno Haible  <bruno@clisp.org>
8166
8167         Update for HP-UX 11.23 and HP-UX 11.31.
8168         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
8169         HP-UX.
8170
8171 2010-11-21  Bruno Haible  <bruno@clisp.org>
8172
8173         Update for MacOS X 10.5.
8174         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8175         MacOS X; the test fails on MacOS X 10.5.8.
8176         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8177         about MacOS X.
8178
8179 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
8180
8181         bootstrap: add bootstrap_sync option.
8182         See discussion at
8183         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
8184         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
8185         * build-aux/bootstrap: Accept --bootstrap-sync to update
8186         bootstrap if it is not identical to the local gnulib's
8187         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
8188         enable this by default.  Accept --no-bootstrap-sync to disable
8189         it.
8190
8191 2010-11-20  Bruno Haible  <bruno@clisp.org>
8192
8193         Ensure that <features.h> is included before __GLIBC__ is tested.
8194         * lib/printf-parse.h: Include <features.h>.
8195         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
8196         Reported by Mike Frysinger <vapier@gentoo.org>.
8197
8198         Ensure that <features.h> is included before __GLIBC__ is tested.
8199         * lib/wchar.in.h: Include <features.h>.
8200         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
8201         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
8202         Reported by Mike Frysinger <vapier@gentoo.org>.
8203
8204         Ensure that <features.h> is included before __GLIBC__ is tested.
8205         * lib/arpa_inet.in.h: Include <features.h>.
8206         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
8207         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
8208         Reported by Mike Frysinger <vapier@gentoo.org>.
8209
8210         Ensure that <features.h> is included before __GLIBC__ is tested.
8211         * build-aux/link-warning.h: Include <features.h>.
8212         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
8213         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
8214         Reported by Mike Frysinger <vapier@gentoo.org>.
8215
8216         Ensure that <features.h> is included before __GLIBC__ is tested.
8217         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
8218         Reported by Mike Frysinger <vapier@gentoo.org>.
8219
8220 2010-11-20  Bruno Haible  <bruno@clisp.org>
8221
8222         memmem: Fix autoconf test.
8223         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
8224
8225 2010-11-20  Bruno Haible  <bruno@clisp.org>
8226
8227         Port to uClibc.
8228         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
8229         * lib/fcntl.in.h: Likewise.
8230         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
8231         * lib/mbrtowc.c (mbrtowc): Likewise.
8232         * lib/relocatable.c (find_shared_library_fullname): Likewise.
8233         * lib/strerror_r.c: Likewise.
8234         * lib/unistr/u8-strnlen.c: Likewise.
8235         * lib/vasnprintf.c (decimal_point_char): Likewise.
8236         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8237         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8238         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8239         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8240         * tests/test-sigaction.c (handler, main): Likewise.
8241         * lib/freading.h: Treat uClibc like a non-glibc platform.
8242         * lib/freading.c: Likewise.
8243         * lib/gettext.h: Likewise.
8244         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
8245         Likewise.
8246         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
8247         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8248         * lib/propername.c (proper_name_utf8): Likewise.
8249         * lib/spawn.in.h: Likewise.
8250         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
8251         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
8252         mem_cd_iconveh_internal): Likewise.
8253         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
8254         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8255         strstr, strcasestr): Likewise.
8256         * lib/unicodeio.c (unicode_to_mb): Likewise.
8257         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
8258         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
8259         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
8260         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
8261         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
8262         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
8263         * lib/unistr/u8-stpncpy.c: Likewise.
8264         * lib/vasnprintf.c (VASNPRINTF): Likewise.
8265         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
8266         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8267         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8268         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8269         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
8270         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
8271         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
8272         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8273         Likewise.
8274         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8275         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8276         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8277         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8278         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8279         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8280         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8281         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8282         * tests/test-getopt.h (OPTIND_MIN): Likewise.
8283         * tests/test-striconveha.c (main): Likewise.
8284         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8285         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
8286         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
8287         * doc/posix-functions/getline.texi: Likewise.
8288         Reported by Mike Frysinger <vapier@gentoo.org>.
8289
8290 2010-11-20  Bruno Haible  <bruno@clisp.org>
8291
8292         nproc: Fix condition.
8293         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
8294         HAVE_PTHREAD_AFFINITY_NP.
8295
8296 2010-11-20  Bruno Haible  <bruno@clisp.org>
8297
8298         Fix a comment.
8299         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
8300
8301 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8302
8303         ftoastr: don't assume snprintf
8304         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
8305         Implement a subset of snprintf here, by using sprintf safely.
8306         * modules/ftoastr (Depends-on): Remove snprintf.
8307
8308 2010-11-19  Jim Meyering  <meyering@redhat.com>
8309
8310         test-rename.h: fix compilation failure
8311         * tests/test-rename.h (test_rename): Add omitted "}".
8312
8313 2010-11-17  Jim Meyering  <meyering@redhat.com>
8314
8315         maint.mk: add a URL discussing the no-@acronym policy
8316         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
8317
8318 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8319
8320         ftoastr: depend on snprintf, improve comments
8321         * lib/ftoastr.c: Also mention Loitsch's draft.
8322         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
8323         needed in the current implementation, but it might simplify
8324         speeding up the code later.
8325         * modules/ftoastr: Depend on snprintf; this improves portability.
8326         Suggested by Bruno Haible in the same email.
8327
8328         ftoastr: port to hosts lacking strtof and strtold
8329         Problem reported by Bruno Haible in
8330         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
8331         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
8332         environment and strtold (and presumably strtof) are not available.
8333         * modules/ftoastr (Files): Add m4/c-strtod.m4.
8334         (configure.ac): Require gl_C99_STRTOLD.
8335
8336 2010-11-18  Bruno Haible  <bruno@clisp.org>
8337
8338         c-strtold: Avoid link error on AIX 7.
8339         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
8340         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
8341         (gl_C_STRTOLD): Test whether strtold_l exists.
8342         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8343
8344 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8345
8346         intprops: new macro INT_BITS_STRLEN_BOUND
8347         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
8348         ftoastr.h.  This exposes an internal of intprops.h that was formerly
8349         not exposed.  Also, it uses a slightly tighter bound than before;
8350         though this makes no practical difference, we might as well be as
8351         tight as we easily can.
8352
8353         ftoastr: new module, for lossless conversion of floats to short strings
8354         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
8355         * modules/ftoastr: New files.
8356
8357 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8358
8359         bootstrap: port to Solaris sed
8360         * build-aux/bootstrap (get_version): Port to Solaris sed.
8361         See Ralf Wildenhues's note in
8362         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
8363
8364 2010-11-14  Jim Meyering  <meyering@redhat.com>
8365
8366         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
8367         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
8368         and move definition closer to sole use.
8369
8370 2010-11-13  Jim Meyering  <meyering@redhat.com>
8371
8372         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
8373         Now we require at least autoconf-2.59, which means the work-around
8374         is no longer needed.
8375         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
8376         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8377         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8378         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
8379         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8380
8381 2010-11-13  Bruno Haible  <bruno@clisp.org>
8382
8383         rename, renameat: Avoid test failures at NFS mounted locations.
8384         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
8385         functions.
8386         (test_rename): Use assert_nonexistent.
8387         * tests/test-rename.c: Include <dirent.h>.
8388         * tests/test-renameat.c: Likewise.
8389         Reported by Gary V. Vaughan <gary@gnu.org>.
8390
8391         rename, renameat: Document Linux bug with NFS
8392         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
8393         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
8394         * doc/posix-functions/renameat.texi: Likewise.
8395         Suggested by Eric Blake.
8396
8397 2010-11-13  Bruno Haible  <bruno@clisp.org>
8398
8399         rename test: Add comments.
8400         * tests/test-rename.h (test_rename): Add structure and comments.
8401
8402 2010-11-13  Eric Blake  <eblake@redhat.com>
8403
8404         maintainer-makefile: cover a few more files
8405         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
8406         scripts generated within C files, for libvirt.
8407
8408 2010-11-13  Bruno Haible  <bruno@clisp.org>
8409
8410         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
8411         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
8412         character, return the number of bytes that belong together, not always
8413         1.
8414         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
8415         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8416         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
8417         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
8418         number of bytes of an invalid character.
8419         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
8420         (main): Invoke it.
8421         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
8422         results.
8423         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
8424         malformed byte sequences.
8425         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
8426         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
8427         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
8428         Reported by Ben Pfaff and Paolo Bonzini.
8429
8430 2010-11-13  Bruno Haible  <bruno@clisp.org>
8431
8432         openat: Work around glibc bug with fchownat() and empty file names.
8433         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
8434         (gl_FUNC_FCHOWNAT): Invoke it.
8435         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
8436         * doc/posix-functions/fchownat.texi: Document the glibc bug.
8437         Reported by Gary V. Vaughan <gary@gnu.org>.
8438
8439 2010-11-13  Bruno Haible  <bruno@clisp.org>
8440
8441         openat: Ensure autoconf macro ordering.
8442         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
8443         gl_USE_SYSTEM_EXTENSIONS.
8444         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
8445
8446 2010-11-13  Bruno Haible  <bruno@clisp.org>
8447
8448         Update comments.
8449         * lib/unistr/u8-check.c: Update file name in comments.
8450         * lib/unistr/u8-mblen.c: Likewise.
8451         * lib/unistr/u8-prev.c: Likewise.
8452         * lib/unistr/u8-strmblen.c: Likewise.
8453         * lib/unistr/u8-strmbtouc.c: Likewise.
8454
8455 2010-11-13  Jim Meyering  <meyering@redhat.com>
8456
8457         tests: avoid test failure on Solaris 10 due to lack of PATH export
8458         * tests/test-update-copyright.sh: Don't forget to export PATH.
8459
8460         init.sh: ensure that IFS is defined, just in case...
8461         * tests/init.sh (setup_): Ensure that IFS is defined,
8462         so that saving and restoring it works as expected.  This
8463         appears to be useful at least for an old version of dash
8464         from a long time ago (RH 6).  See here for details:
8465         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
8466
8467         maint.mk: tighten "test a == b" check
8468         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
8469         test to files that contain something like #!/bin/sh.
8470         Without this, coreutils would get two false positives in
8471         the comments of C source files.
8472
8473 2010-11-12  Eric Blake  <eblake@redhat.com>
8474
8475         bootstrap: fix typo in previous attempt
8476         * build-aux/bootstrap (buildreq): Correct the grouping.
8477         Reported by Paul Eggert.
8478
8479         maintainer-makefile: prohibit test x == x
8480         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
8481         Based on a report by Matthias Bolte.
8482
8483         bootstrap: allow FreeBSD gzip
8484         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
8485         which has no '.' and goes to stderr.
8486         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
8487         Reported by Matthias Bolte.
8488
8489         maintainer-makefile: check for i18n setup
8490         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
8491         will likely work.
8492
8493 2010-11-12  Bruno Haible  <bruno@clisp.org>
8494
8495         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
8496         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
8497         * lib/nanosleep.c (nanosleep): Likewise.
8498
8499 2010-11-11  Bruno Haible  <bruno@clisp.org>
8500
8501         fcntl-h: Fix for use of C++ on glibc systems.
8502         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8503         also on glibc systems in C++ mode.
8504         Reported by Gary V. Vaughan <gary@gnu.org>.
8505
8506 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8507
8508         mknod: avoid false failure with dash
8509         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
8510
8511 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
8512
8513         unlink: Fix "is it should" typo in diagnostic.
8514         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
8515         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
8516
8517 2010-11-11  Bruno Haible  <bruno@clisp.org>
8518
8519         Tests for module 'strerror_r-posix'.
8520         * modules/strerror_r-posix-tests: New file.
8521         * tests/test-strerror_r.c: New file.
8522         * tests/test-string-c++.cc: Check the signature of strerror_r.
8523
8524         New module 'strerror_r-posix'.
8525         * lib/string.in.h (strerror_r): New declaration.
8526         * lib/strerror_r.c: New file.
8527         * m4/strerror_r.m4: New file.
8528         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
8529         of strerror_r.
8530         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
8531         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8532         * modules/strerror_r-posix: New file.
8533         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
8534         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8535         * doc/posix-functions/strerror_r.texi: Mention the new module and the
8536         portability problems.
8537
8538 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
8539
8540         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
8541         line is also considered for output. Quoted function name in shell
8542         command, so temporary files for functions like MyClass::operator()
8543         are removed correctly without errors.
8544
8545 2010-11-09  Bruno Haible  <bruno@clisp.org>
8546
8547         * doc/posix-functions/strerror.texi: List more failing platforms.
8548
8549         * doc/posix-functions/strerror.texi: Add a comment.
8550
8551 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8552
8553         fdopendir: fix bug on MacOS X when low on file descriptors
8554
8555         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
8556         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
8557         All callers changed.
8558         (fdopendir): Invoke save_cwd at the top level, not after using
8559         multiple dup() calls to use up file descriptors.  Then retry
8560         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
8561         less than the maximum number of open file descriptors, because
8562         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
8563         on Mac OS X 10.6.4 for tar 1.24
8564         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
8565         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
8566         and for tar 1.25
8567         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
8568
8569 2010-11-07  Bruno Haible  <bruno@clisp.org>
8570
8571         vasnprintf: Support I flag on glibc systems.
8572         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
8573         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
8574         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
8575         snprintf function.
8576         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
8577         glibc systems.
8578         * tests/test-vasnprintf-posix3.c: New file.
8579         * modules/vasnprintf-posix-tests (Files): Add it.
8580         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
8581
8582 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8583
8584         [html] Fix copy/paste bug: Use unique name for compiler warnings.
8585         * MODULES.html.sh: For compiler warnings, use name
8586         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
8587
8588 2010-11-05  Eric Blake  <eblake@redhat.com>
8589
8590         ceil, floor: avoid spurious failure with icc
8591         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
8592         [denormals-as-zero] when optimizing without -mieee-fp option.
8593         * tests/test-floorf2.c (floorf_reference): Likewise.
8594         * tests/test-ceilf1.c (dummy): New function.
8595         (main): Use it to outsmart icc's optimization.
8596         * tests/test-floorf1.c (dummy, main): Likewise.
8597
8598         tests: require working signbit
8599         * modules/ceilf-tests (Depends-on): Add signbit.
8600         * modules/ceill-tests (Depends-on): Likewise.
8601         * modules/floorf-tests (Depends-on): Likewise.
8602         * modules/floorl-tests (Depends-on): Likewise.
8603         * modules/round-tests (Depends-on): Likewise.
8604         * modules/roundf-tests (Depends-on): Likewise.
8605         * modules/roundl-tests (Depends-on): Likewise.
8606         * modules/trunc-tests (Depends-on): Likewise.
8607         * modules/truncf-tests (Depends-on): Likewise.
8608         * modules/truncl-tests (Depends-on): Likewise.
8609
8610         strtod: work around icc bug
8611         * lib/strtod.c (minus_zero): Define to working value.
8612         (strtod): Use it to avoid icc bug.
8613
8614         copysign: enhance tests
8615         * modules/copysign-tests (Files): Add minus-zero.h.
8616         * tests/test-copysign.c (main): Also test zeros.
8617
8618 2010-11-04  Eric Blake  <eblake@redhat.com>
8619
8620         ceil, floor, round, trunc: enhance tests of -0
8621         * tests/test-ceilf1.c (main): Ensure correct sign of result.
8622         * tests/test-ceill.c (main): Likewise.
8623         * tests/test-floorf1.c (main): Likewise.
8624         * tests/test-floorl.c (main): Likewise.
8625         * tests/test-round1.c (main): Likewise.
8626         * tests/test-roundf1.c (main): Likewise.
8627         * tests/test-roundl.c (main): Likewise.
8628         * tests/test-trunc1.c (main): Likewise.
8629         * tests/test-truncf1.c (main): Likewise.
8630         * tests/test-truncl.c (main): Likewise.
8631
8632 2010-11-04  Eric Blake  <eblake@redhat.com>
8633
8634         frexp, tests: work around ICC bug with -zero
8635         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
8636         works with more compilers.
8637         * tests/minus-zero.h: New file.
8638         * modules/ceilf-tests (Files): Include it.
8639         * modules/ceill-tests (Files): Likewise.
8640         * modules/floorf-tests (Files): Likewise.
8641         * modules/floorl-tests (Files): Likewise.
8642         * modules/frexp-nolibm-tests (Files): Likewise.
8643         * modules/frexp-tests (Files): Likewise.
8644         * modules/frexpl-nolibm-tests (Files): Likewise.
8645         * modules/frexpl-tests (Files): Likewise.
8646         * modules/isnan-tests (Files): Likewise.
8647         * modules/isnand-nolibm-tests (Files): Likewise.
8648         * modules/isnand-tests (Files): Likewise.
8649         * modules/isnanf-nolibm-tests (Files): Likewise.
8650         * modules/isnanf-tests (Files): Likewise.
8651         * modules/isnanl-nolibm-tests (Files): Likewise.
8652         * modules/isnanl-tests (Files): Likewise.
8653         * modules/round-tests (Files): Likewise.
8654         * modules/roundf-tests (Files): Likewise.
8655         * modules/roundl-tests (Files): Likewise.
8656         * modules/ldexpl-tests (Files): Likewise.
8657         * modules/signbit-tests (Files): Likewise.
8658         * modules/snprintf-posix-tests (Files): Likewise.
8659         * modules/sprintf-posix-tests (Files): Likewise.
8660         * modules/strtod-tests (Files): Likewise.
8661         * modules/trunc-tests (Files): Likewise.
8662         * modules/truncf-tests (Files): Likewise.
8663         * modules/truncl-tests (Files): Likewise.
8664         * modules/vsnprintf-posix-tests (Files): Likewise.
8665         * modules/vsprintf-posix-tests (Files): Likewise.
8666         * modules/vasnprintf-posix-tests (Files): Likewise.
8667         * modules/vasprintf-posix-tests (Files): Likewise.
8668         * tests/test-ceilf1.c (main): Use it.
8669         * tests/test-ceill.c (main): Likewise.
8670         * tests/test-floorf1.c (main): Likewise.
8671         * tests/test-floorl.c (main): Likewise.
8672         * tests/test-frexp.c (main): Likewise.
8673         * tests/test-frexpl.c (main): Likewise.
8674         * tests/test-isnan.c (main): Likewise.
8675         * tests/test-isnand.h (main): Likewise.
8676         * tests/test-isnanf.h (main): Likewise.
8677         * tests/test-isnanl.h (main): Likewise.
8678         * tests/test-ldexpl.c (main): Likewise.
8679         * tests/test-round.c (main): Likewise.
8680         * tests/test-roundf.c (main): Likewise.
8681         * tests/test-roundl.c (main): Likewise.
8682         * tests/test-signbit.c (test_signbitf, test_signbitd)
8683         (test_signbitl): Likewise.
8684         * tests/test-snprintf-posix.h (test_function): Likewise.
8685         * tests/test-sprintf-posix.h (test_function): Likewise.
8686         * tests/test-strtod.c (main): Likewise.
8687         * tests/test-trunc1.c (main): Likewise.
8688         * tests/test-truncf1.c (main): Likewise.
8689         * tests/test-truncl.c (main): Likewise.
8690
8691         isnanl: work around icc bug
8692         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
8693
8694 2010-11-03  Eric Blake  <eblake@redhat.com>
8695
8696         tests: fix compiler warnings
8697         * tests/test-getopt.h (test_getopt): Fix condition.
8698         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8699         * tests/test-pipe2.c (main): Likewise.
8700         * tests/test-quotearg-simple.c (main): Avoid icc warning.
8701
8702         utimens: fix broken m4 test
8703         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
8704
8705 2010-10-28  Bruno Haible  <bruno@clisp.org>
8706
8707         posix_spawn*, getdtablesize: Relax license.
8708         * modules/posix_spawn (License): Change to LGPLv2+.
8709         * modules/posix_spawnp (License): Likewise.
8710         * modules/posix_spawn-internal (License): Likewise.
8711         * modules/posix_spawnattr_init (License): Likewise.
8712         * modules/posix_spawnattr_getflags (License): Likewise.
8713         * modules/posix_spawnattr_setflags (License): Likewise.
8714         * modules/posix_spawnattr_getpgroup (License): Likewise.
8715         * modules/posix_spawnattr_setpgroup (License): Likewise.
8716         * modules/posix_spawnattr_getschedparam (License): Likewise.
8717         * modules/posix_spawnattr_setschedparam (License): Likewise.
8718         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
8719         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
8720         * modules/posix_spawnattr_getsigdefault (License): Likewise.
8721         * modules/posix_spawnattr_setsigdefault (License): Likewise.
8722         * modules/posix_spawnattr_getsigmask (License): Likewise.
8723         * modules/posix_spawnattr_setsigmask (License): Likewise.
8724         * modules/posix_spawnattr_destroy (License): Likewise.
8725         * modules/posix_spawn_file_actions_init (License): Likewise.
8726         * modules/posix_spawn_file_actions_addclose (License): Likewise.
8727         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
8728         * modules/posix_spawn_file_actions_addopen (License): Likewise.
8729         * modules/posix_spawn_file_actions_destroy (License): Likewise.
8730         * modules/getdtablesize (License): Likewise.
8731         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
8732
8733 2010-10-26  Bruno Haible  <bruno@clisp.org>
8734
8735         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
8736         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
8737         Cygwin and mingw.
8738         Suggested by Eric Blake.
8739
8740 2010-10-26  Bruno Haible  <bruno@clisp.org>
8741
8742         stdio: Work around compilation error due to renameat() on Solaris 10.
8743         * lib/stdio.in.h: Include <unistd.h> on Solaris.
8744         * lib/renameat.c: Don't include <unistd.h> here.
8745         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
8746         Reported by Paul Eggert and Eric Blake.
8747
8748 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8749
8750         renameat: port to Solaris 10, which declares renameat in unistd.h
8751
8752         * lib/renameat.c: Include unistd.h before stdio.h, because
8753         Solaris 10 declares renameat in unistd.h.  Problem encountered
8754         when building GNU tar 1.24 on Solaris 10.
8755
8756 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8757
8758         fdopendir: fix C89 compilation
8759         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
8760         compilers.
8761
8762 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8763
8764         inttostr: simplify by removing unnecessary redundancy
8765         * lib/anytostr.c: Don't include verify.h.
8766         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
8767         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
8768         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
8769         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
8770         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
8771         Likewise.
8772         * modules/inttostr (Depends-on): Remove 'verify'.
8773
8774 2010-10-23  Bruno Haible  <bruno@clisp.org>
8775
8776         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
8777         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
8778         Reported by Eric Blake.
8779
8780 2010-10-23  Bruno Haible  <bruno@clisp.org>
8781
8782         Tests: Fix LOCALE_JA on MirBSD 10.
8783         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
8784         to an UTF-8 locale.
8785         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
8786         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8787         Reported by Eric Blake.
8788
8789 2010-10-21  Bruno Haible  <bruno@clisp.org>
8790
8791         nl_langinfo test: Avoid test failure on NetBSD 5.
8792         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
8793         Reported by Eric Blake.
8794
8795 2010-10-21  Eric Blake  <eblake@redhat.com>
8796
8797         c-stack: work around libsigsegv 2.8 bug
8798         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
8799         overflow on at least PowerPC64.
8800
8801 2010-10-17  Bruno Haible  <bruno@clisp.org>
8802
8803         userspec: Drop redundant file.
8804         * modules/userspec (Files): Remove lib/inttostr.h.
8805
8806 2010-10-17  Bruno Haible  <bruno@clisp.org>
8807
8808         nl_langinfo tests: Silence some warnings.
8809         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
8810         Reported by Jim Meyering.
8811
8812 2010-10-17  Bruno Haible  <bruno@clisp.org>
8813
8814         Make use of GCC's attribute __alloc_size__.
8815         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
8816         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
8817         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
8818         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
8819         __alloc_size__.
8820         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
8821         Suggested by Jim Meyering.
8822
8823 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
8824
8825         bootstrap: anchor .gitignore entries.
8826         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
8827         with...
8828         (insert_vc_ignore): ... this new function, which prepends `/' to
8829         all .gitignore entries before passing them to
8830         insert_sorted_if_absent.
8831
8832 2010-10-16  Bruno Haible  <bruno@clisp.org>
8833
8834         nextafter: Fix configure check.
8835         * modules/nextafter (configure.ac): Correct expected prototype.
8836
8837 2010-10-16  Bruno Haible  <bruno@clisp.org>
8838
8839         termios: Update documentation.
8840         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
8841
8842 2010-10-16  Bruno Haible  <bruno@clisp.org>
8843
8844         tests: Make them compile with TinyCC.
8845         * tests/test-strstr.c (main): Remove parentheses around array
8846         initializer.
8847
8848 2010-10-15  Eric Blake  <eblake@redhat.com>
8849
8850         ignore-value: make header idempotent
8851         * lib/ignore-value.h: Add double-inclusion guards.
8852         Reported by Stefan Berger.
8853
8854 2010-10-15  Jim Meyering  <meyering@redhat.com>
8855
8856         GNUmakefile: handle "stable" target, not "major"
8857         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
8858         lists in maint.mk and announce-gen.  Without this, "make stable"
8859         would fail to ensure that $(VERSION) is up to date.
8860
8861 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
8862
8863         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
8864         & co.
8865
8866 2010-10-14  Bruno Haible  <bruno@clisp.org>
8867
8868         vasnprintf: Don't set errno to 0.
8869         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
8870         block that sets it to 0.
8871         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
8872
8873 2010-10-14  Bruno Haible  <bruno@clisp.org>
8874
8875         socketlib: Fix.
8876         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
8877         gl_PREREQ_SYS_H_WINSOCK2.
8878         Reported by Ian Beckwith <ianb@erislabs.net>.
8879
8880 2010-10-13  Jim Meyering  <meyering@redhat.com>
8881
8882         test-select-stdin.c: avoid warn_unused_result warnings
8883         * tests/test-select-stdin.c: Include "macros.h".
8884         ASSERT that read and fflush succeed.
8885
8886 2010-10-13  Jim Meyering  <meyering@redhat.com>
8887
8888         git-version-gen: do require git-VC'd files in cwd
8889         * build-aux/git-version-gen: Reject a git version string
8890         if there are no commits associated with the current directory.
8891         This avoids an unlikely false-positive (unrelated dir whose parent
8892         repository also contains a tag matching v*), as pointed out
8893         by Giuseppe Scrivano in
8894         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
8895
8896 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8897
8898         argv-iter: omit nonconforming declaration
8899         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
8900         enum arg_iter_err declaration, which doesn't conform to C99.
8901         Solaris 10 cc warns about this.
8902
8903 2010-10-13  Eric Blake  <eblake@redhat.com>
8904
8905         termios: fix compilation on mingw
8906         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
8907         (gl_TERMIOS_H): Adjust it on mingw.
8908         * modules/termios (Makefile.am): Substitute new key.
8909         * lib/termios.in.h (includes): Make include_next conditional.
8910         * doc/posix-headers/termios.texi (termios.h): Update
8911         documentation.
8912         Reported by Daniel P. Berrange.
8913
8914 2010-10-13  Jim Meyering  <meyering@redhat.com>
8915
8916         git-version-gen: don't require that .git/ be in the current dir
8917         * build-aux/git-version-gen: Adjust this script so that it works
8918         when run from any working directory beneath the top-level .git/-
8919         containing directory.  Inspired by a patch from Giuseppe Scrivano,
8920         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
8921
8922         test-select: avoid warn_unused_result warnings
8923         * tests/test-select.c: Include "macros.h".
8924         ASSERT that each call to read, write, and pipe succeeds.
8925         While not technically required, also check each "close".
8926         * modules/select-tests (Files): Add tests/macros.h.
8927
8928         test-symlinkat: remove declaration of unused local
8929         * tests/test-symlinkat.c (main): Remove unused local, "buf".
8930
8931         test-inttostr: avoid shadowing warnings
8932         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
8933         and use malloc rather than the stack for the same reason as
8934         mentioned in the comment justifying the other allocation.
8935
8936 2010-10-11  Bruno Haible  <bruno@clisp.org>
8937
8938         stdlib: Allow multiple gnulib generated replacements to coexist.
8939         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
8940         Reported by Sam Steingold <sds@gnu.org>.
8941
8942 2010-10-11  Jim Meyering  <meyering@redhat.com>
8943
8944         fix a documentation typo
8945         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
8946
8947 2010-10-11  Eric Blake  <eblake@redhat.com>
8948
8949         futimens: work around Solaris 11 bug
8950         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
8951         * tests/test-futimens.h (test_futimens): Enhance, rather than
8952         weaken test.
8953         * doc/posix-functions/futimens.texi (futimens): Document the bug.
8954
8955 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8956
8957         Indentation.
8958         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
8959         higher-level operators more to the left.
8960
8961 2010-10-11  Jim Meyering  <meyering@redhat.com>
8962
8963         test-futimens: avoid unwarranted test failure on Solaris 5.11
8964         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
8965         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
8966         because it tries to dereference the NULL name argument.
8967
8968 2010-10-11  Bruno Haible  <bruno@clisp.org>
8969
8970         Indentation.
8971         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
8972         indentation.
8973
8974 2010-10-11  Jim Meyering  <meyering@redhat.com>
8975
8976         spawn.in.h: make indentation consistent with parentheses
8977         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
8978         Make indentation consistent with parentheses.
8979
8980 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
8981
8982         Fix mismatched parens in previous commit
8983         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
8984         parens.
8985
8986 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8987
8988         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
8989
8990         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
8991         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
8992         * lib/malloca.c: Include "verify.h".
8993         (verify1): Remove, replacing with a verify call.
8994         * lib/relocwrapper.c (verify1): Likewise.
8995         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
8996         Likewise.
8997         * modules/malloca (Depends-on): Add 'verify'.
8998         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
8999         * modules/vasnprintf (Depends-on): Add 'verify'.
9000         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9001         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9002         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9003         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9004         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9005         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9006         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9007
9008         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
9009
9010         Formerly the style was sometimes 2*X - 1, because the C standard
9011         was wrongly thought to disallow ?: in integral constant expressions.
9012         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
9013         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
9014         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9015         * lib/stdint.in.h (_verify_intmax_size): Likewise.
9016         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
9017         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
9018         verify that time_t cannot be floating.
9019
9020 2010-10-08  Eric Blake  <eblake@redhat.com>
9021
9022         time: enforce recent POSIX ruling that time_t is integral
9023         * lib/time.in.h (__time_t_must_be_integral): Detect any
9024         problematic systems, allowing the rest of gnulib to assume POSIX.
9025
9026 2010-10-08  Jim Meyering  <meyering@redhat.com>
9027
9028         fdopendir: fix a bug on systems lacking openat and /proc support
9029         OpenBSD 4.7 is one such system.  The most noticeable effect was
9030         failure of any application making nontrivial use of fts: rm, du,
9031         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
9032           ./rm: traversal failed: `a': Bad file descriptor
9033         Debugging that, you see that even though FD 6 was closed just
9034         prior to the opendir call in fd_clone_opendir, its resulting
9035         dir->dd_fd was 8, rather than the expected value of 6:
9036
9037         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
9038         93                close (fd);
9039         (gdb) n
9040         94                dir = fd_clone_opendir (dupfd);
9041         (gdb) n
9042         95                saved_errno = errno;
9043         (gdb) p dir->dd_fd
9044         $11 = 8
9045
9046         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
9047         The problem is that on OpenBSD, fd_clone_opendir has to resort
9048         to using the old-style save/restore CWD mechanism, due to its
9049         lack of openat/proc support, and *that* would steal the FD (6)
9050         that opendir was supposed to use.
9051
9052         The fix is to squirrel away the desired FD so that save_cwd uses a
9053         different one, and then free the dest FD right before calling opendir.
9054         That guarantees opendir will use the required file descriptor.
9055
9056         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
9057
9058 2010-10-08  Bruno Haible  <bruno@clisp.org>
9059
9060         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
9061         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
9062
9063 2010-10-08  Bruno Haible  <bruno@clisp.org>
9064
9065         nanosleep: Make replacement POSIX compliant.
9066         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
9067         is out of range.
9068         Reported by Jim Meyering.
9069
9070 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9071
9072         bootstrap: add hook for altering gnulib.mk, for Bison
9073         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
9074         the Bison bootstrapping process can rewrite file names and variables
9075         in this file before later parts of 'bootstrap' use the file.
9076         Bison wants to include lib/gnulib.mk from the top-level makefile,
9077         so it needs the file names in this file to be relative to the top
9078         level, not relative to lib; plus it needs variable names to be
9079         rewritten.
9080         (slurp): Use the new function.
9081
9082         bootstrap: reformat for readability
9083         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
9084
9085 2010-10-08  Eric Blake  <eblake@redhat.com>
9086
9087         docs: update cygwin progress
9088         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
9089         1.7.7.
9090         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
9091         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
9092         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
9093         * doc/posix-functions/carg.texi (carg): Likewise.
9094         * doc/posix-functions/cargf.texi (cargf): Likewise.
9095         * doc/posix-functions/casin.texi (casin): Likewise.
9096         * doc/posix-functions/casinf.texi (casinf): Likewise.
9097         * doc/posix-functions/casinh.texi (casinh): Likewise.
9098         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
9099         * doc/posix-functions/catan.texi (catan): Likewise.
9100         * doc/posix-functions/catanf.texi (catanf): Likewise.
9101         * doc/posix-functions/catanh.texi (catanh): Likewise.
9102         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
9103         * doc/posix-functions/ccos.texi (ccos): Likewise.
9104         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
9105         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
9106         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
9107         * doc/posix-functions/cexp.texi (cexp): Likewise.
9108         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
9109         * doc/posix-functions/cimag.texi (cimag): Likewise.
9110         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
9111         * doc/posix-functions/clog.texi (clog): Likewise.
9112         * doc/posix-functions/clogf.texi (clogf): Likewise.
9113         * doc/posix-functions/conj.texi (conj): Likewise.
9114         * doc/posix-functions/conjf.texi (conjf): Likewise.
9115         * doc/posix-functions/cpow.texi (cpow): Likewise.
9116         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
9117         * doc/posix-functions/cproj.texi (cproj): Likewise.
9118         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
9119         * doc/posix-functions/creal.texi (creal): Likewise.
9120         * doc/posix-functions/crealf.texi (crealf): Likewise.
9121         * doc/posix-functions/csin.texi (csin): Likewise.
9122         * doc/posix-functions/csinf.texi (csinf): Likewise.
9123         * doc/posix-functions/csinh.texi (csinh): Likewise.
9124         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
9125         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
9126         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
9127         * doc/posix-functions/ctan.texi (ctan): Likewise.
9128         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
9129         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
9130         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
9131         * doc/posix-headers/complex.texi (complex.h): Likewise.
9132
9133 2010-10-07  Jim Meyering  <meyering@redhat.com>
9134
9135         parse-datetime: avoid compilation failure on OpenBSD 4.7
9136         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
9137         This works around a compilation failure on OpenBSD 4.7:
9138         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
9139
9140 2010-10-07  Eric Blake  <eblake@redhat.com>
9141
9142         docs: update cygwin progress
9143         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
9144         1.7.6.
9145         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9146         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
9147         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
9148         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
9149         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
9150         Likewise.
9151         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
9152         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
9153         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
9154         Likewise.
9155         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
9156         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
9157         Likewise.
9158         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
9159         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
9160         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
9161         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
9162         Likewise.
9163         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
9164         Likewise.
9165         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
9166
9167         docs: update parse-datetime history
9168         * doc/parse-datetime.texi (Authors of parse_datetime): Better
9169         documentation of this function's history and alternatives.
9170
9171         cygwin: use more robust version check
9172         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
9173         exclude an eventual cygwin 1.9.1.
9174         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9175         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9176         (gl_FUNC_STRCASESTR): Likewise.
9177         Reported by Bruno Haible.
9178
9179 2010-10-06  Bruno Haible  <bruno@clisp.org>
9180
9181         string, sys_select: Avoid #including large headers unless necessary.
9182         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
9183         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
9184         OSF/1, BeOS, Haiku.
9185         Reported by Jim Meyering.
9186
9187 2010-10-05  Eric Blake  <eblake@redhat.com>
9188
9189         memmem, strstr, strcasestr: fix bug with long periodic needle
9190         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
9191         periodic needle having false positive.
9192         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
9193         and cygwin 1.7.7.
9194         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
9195         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9196         (gl_FUNC_STRCASESTR): Likewise.
9197         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9198         * tests/test-memmem.c (main): Expose the bug.
9199         * tests/test-strcasestr.c (main): Likewise.
9200         * tests/test-strstr.c (main): Likewise.
9201         * tests/test-c-strcasestr.c (main): Likewise.
9202         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
9203         * doc/posix-functions/strstr.texi (strstr): Likewise.
9204         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9205         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
9206
9207 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9208
9209         parse-datetime: do some more renaming
9210         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
9211         parse_datetime, not get_date.  Mention the renaming.
9212         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
9213         in comments.
9214         * m4/bison.m4: Likewise.
9215
9216 2010-10-05  Eric Blake  <eblake@redhat.com>
9217
9218         parse-datetime: better name than get_date
9219         * NEWS: Reword the deprecation notice.
9220         * modules/get_date: Rename to modules/parse-datetime.
9221         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
9222         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
9223         * lib/get_date.y: Rename to lib/parse-datetime.y.
9224         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
9225         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
9226         * doc/getdate.texi: Provide fallback wrapper.
9227         * lib/getdate.h: Move guts, and wrap...
9228         * lib/parse-datetime.h: ...new file.
9229         * lib/parse-datetime.y (get_date): Rename...
9230         (parse_datetime): ...to this.
9231         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
9232         (gl_PARSE_DATETIME): ...to this.
9233         * doc/posix-functions/getdate.texi (get_date): Provide fallback
9234         documentation.
9235         * modules/getdate (Files): Provide fallback docs and header.
9236         (Notice, Depends-on): Update references.
9237         * tests/test-parse-datetime.c: Likewise.
9238         * DEPENDENCIES: Likewise.
9239         * MODULES.html.sh (Date and time <time.h>): Likewise.
9240         * doc/parse-datetime.texi (Date input formats)
9241         (Authors of parse_datetime): Likewise.
9242         * modules/parse-datetime (Files, configure.ac, Makefile.am)
9243         (Include): Likewise.
9244         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
9245         * gnulib-tool: Likewise.
9246         * m4/bison.m4 (gl_BISON): Likewise.
9247         Suggested by Bruno Haible.
9248
9249 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9250
9251         more ports to Solaris tr, which needs [] around ranges
9252         * gnulib-tool: Solaris tr needs [] around ranges.
9253         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9254         * tests/test-pipe-filter-gi1.c (main): Likewise.
9255         * tests/test-pipe-filter-ii1.c (main): Likewise.
9256
9257 2010-10-05  Eric Blake  <eblake@redhat.com>
9258
9259         bootstrap: fix Solaris regression
9260         * build-aux/bootstrap (check_versions): Solaris tr still needs []
9261         around ranges.
9262         Reported by Pádraig Brady.
9263
9264         bootstrap: work with pkg-config
9265         * build-aux/bootstrap (check_versions): Also transliterate - in
9266         prerequisite name.
9267         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
9268         prerequisites that were already found, to avoid confusion.
9269         Reported by Justin Clift.
9270
9271         faccessat: remove unused wrappers
9272         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
9273         presence of these wrappers dragged in -lgen on Solaris.
9274         Reported by Clemens Brogi; fix suggested by Paul Eggert.
9275
9276 2010-10-05  Jim Meyering  <meyering@redhat.com>
9277
9278         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
9279         * Makefile (sc_pragma_columns): New syntax-check rule.
9280
9281 2010-10-04  Bruno Haible  <bruno@clisp.org>
9282
9283         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
9284         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
9285         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
9286         Reported by Bruce Korb and Eric Blake.
9287
9288 2010-10-04  Bruno Haible  <bruno@clisp.org>
9289
9290         threadlib: Make option --with-libpth-prefix work.
9291         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
9292         use $LIBPTH, not just -lpth.
9293
9294 2010-10-04  Bruno Haible  <bruno@clisp.org>
9295
9296         Avoid line length limitation from HP NonStop system header files.
9297         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
9298         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
9299         * lib/ctype.in.h: Likewise.
9300         * lib/dirent.in.h: Likewise.
9301         * lib/errno.in.h: Likewise.
9302         * lib/fcntl.in.h: Likewise.
9303         * lib/float.in.h: Likewise.
9304         * lib/getopt.in.h: Likewise.
9305         * lib/iconv.in.h: Likewise.
9306         * lib/inttypes.in.h: Likewise.
9307         * lib/langinfo.in.h: Likewise.
9308         * lib/locale.in.h: Likewise.
9309         * lib/math.in.h: Likewise.
9310         * lib/netdb.in.h: Likewise.
9311         * lib/netinet_in.in.h: Likewise.
9312         * lib/poll.in.h: Likewise.
9313         * lib/pthread.in.h: Likewise.
9314         * lib/pty.in.h: Likewise.
9315         * lib/sched.in.h: Likewise.
9316         * lib/se-selinux.in.h: Likewise.
9317         * lib/search.in.h: Likewise.
9318         * lib/signal.in.h: Likewise.
9319         * lib/spawn.in.h: Likewise.
9320         * lib/stdarg.in.h: Likewise.
9321         * lib/stddef.in.h: Likewise.
9322         * lib/stdint.in.h: Likewise.
9323         * lib/stdio.in.h: Likewise.
9324         * lib/stdlib.in.h: Likewise.
9325         * lib/string.in.h: Likewise.
9326         * lib/strings.in.h: Likewise.
9327         * lib/sys_file.in.h: Likewise.
9328         * lib/sys_ioctl.in.h: Likewise.
9329         * lib/sys_select.in.h: Likewise.
9330         * lib/sys_socket.in.h: Likewise.
9331         * lib/sys_stat.in.h: Likewise.
9332         * lib/sys_time.in.h: Likewise.
9333         * lib/sys_times.in.h: Likewise.
9334         * lib/sys_utsname.in.h: Likewise.
9335         * lib/sys_wait.in.h: Likewise.
9336         * lib/sysexits.in.h: Likewise.
9337         * lib/termios.in.h: Likewise.
9338         * lib/time.in.h: Likewise.
9339         * lib/unistd.in.h: Likewise.
9340         * lib/wchar.in.h: Likewise.
9341         * lib/wctype.in.h: Likewise.
9342         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
9343         * modules/ctype (Makefile.am): Likewise.
9344         * modules/dirent (Makefile.am): Likewise.
9345         * modules/errno (Makefile.am): Likewise.
9346         * modules/fcntl-h (Makefile.am): Likewise.
9347         * modules/float (Makefile.am): Likewise.
9348         * modules/getopt-posix (Makefile.am): Likewise.
9349         * modules/iconv-h (Makefile.am): Likewise.
9350         * modules/inttypes (Makefile.am): Likewise.
9351         * modules/langinfo (Makefile.am): Likewise.
9352         * modules/locale (Makefile.am): Likewise.
9353         * modules/math (Makefile.am): Likewise.
9354         * modules/netdb (Makefile.am): Likewise.
9355         * modules/netinet_in (Makefile.am): Likewise.
9356         * modules/poll-h (Makefile.am): Likewise.
9357         * modules/pthread (Makefile.am): Likewise.
9358         * modules/pty (Makefile.am): Likewise.
9359         * modules/sched (Makefile.am): Likewise.
9360         * modules/search (Makefile.am): Likewise.
9361         * modules/selinux-h (Makefile.am): Likewise.
9362         * modules/signal (Makefile.am): Likewise.
9363         * modules/spawn (Makefile.am): Likewise.
9364         * modules/stdarg (Makefile.am): Likewise.
9365         * modules/stddef (Makefile.am): Likewise.
9366         * modules/stdint (Makefile.am): Likewise.
9367         * modules/stdio (Makefile.am): Likewise.
9368         * modules/stdlib (Makefile.am): Likewise.
9369         * modules/string (Makefile.am): Likewise.
9370         * modules/strings (Makefile.am): Likewise.
9371         * modules/sys_file (Makefile.am): Likewise.
9372         * modules/sys_ioctl (Makefile.am): Likewise.
9373         * modules/sys_select (Makefile.am): Likewise.
9374         * modules/sys_socket (Makefile.am): Likewise.
9375         * modules/sys_stat (Makefile.am): Likewise.
9376         * modules/sys_time (Makefile.am): Likewise.
9377         * modules/sys_times (Makefile.am): Likewise.
9378         * modules/sys_utsname (Makefile.am): Likewise.
9379         * modules/sys_wait (Makefile.am): Likewise.
9380         * modules/sysexits (Makefile.am): Likewise.
9381         * modules/termios (Makefile.am): Likewise.
9382         * modules/time (Makefile.am): Likewise.
9383         * modules/unistd (Makefile.am): Likewise.
9384         * modules/wchar (Makefile.am): Likewise.
9385         * modules/wctype (Makefile.am): Likewise.
9386
9387 2010-10-04  Bruno Haible  <bruno@clisp.org>
9388
9389         read-file tests: Avoid a test failure on NonStop Kernel.
9390         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
9391         a regular file.
9392         Reported by Joachim Schmitz <schmitz@hp.com>.
9393
9394 2010-10-03  Bruno Haible  <bruno@clisp.org>
9395
9396         gnulib-tool: Fixes for --create-testdir with --libtool.
9397         * gnulib-tool (func_get_automake_snippet): Don't augment
9398         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
9399         an executable.
9400         (func_create_testdir): Handle module 'alloca' like func_import.
9401         Reported by Bruce Korb <bruce.korb@gmail.com>.
9402
9403 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
9404
9405         Avoid some lines longer than 80 characters.
9406         * lib/stdint.in.h: Break long comment lines.
9407         * lib/math.in.h: Likewise.
9408         (_GL_NUM_UINT_WORDS): New macro, for readability.
9409         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
9410         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
9411         * lib/stdlib.in.h: Likewise.
9412         * lib/spawn.in.h: Likewise.
9413         * lib/sys_socket.in.h: Update an URL.
9414         * lib/sys_stat.in.h: Break long line.
9415
9416 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
9417
9418         Improve pmccabe2html.
9419         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
9420         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
9421         when the sources change. Remove the line in the HTML about "Used
9422         ranges" (which implied that there might be other unused ranges),
9423         rename "Resume" to "Summary" (easier to understand for more users).
9424         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
9425         styles, and some unnecessary blank lines.
9426
9427 2010-10-03  Bruno Haible  <bruno@clisp.org>
9428             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9429
9430         acl: Add support for ACLs on NonStop Kernel.
9431         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
9432         Check whether the function aclsort() exists.
9433         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
9434         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
9435         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9436         (acl_nontrivial [HAVE_ACLSORT]: New function.
9437         (file_has_acl): Implement for NonStop Kernel.
9438         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9439         (qset_acl): Implement for NonStop Kernel.
9440         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
9441         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9442         (main): Implement for NonStop Kernel.
9443         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
9444         Kernel. Handle this flavor.
9445         * tests/test-set-mode-acl.sh: Likewise.
9446         * tests/test-copy-acl.sh: Likewise.
9447         * tests/test-copy-file.sh: Likewise.
9448
9449 2010-10-03  Bruno Haible  <bruno@clisp.org>
9450
9451         Info about ACLs on NonStop Kernel.
9452         * doc/acl-resources.txt: Add info about NonStop Kernel.
9453         References by Joachim Schmitz <schmitz@hp.com>.
9454
9455 2010-10-02  Bruno Haible  <bruno@clisp.org>
9456
9457         Define missing EDQUOT on NonStop Kernel.
9458         * lib/errno.in.h (EDQUOT): Assign a value if missing.
9459         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
9460         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
9461         missing.
9462         * doc/posix-headers/errno.texi: Mention the NSK bug.
9463         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
9464         Reported by Joachim Schmitz <schmitz@hp.com>.
9465
9466 2010-10-02  Bruno Haible  <bruno@clisp.org>
9467
9468         Update doc for POSIX:2008.
9469         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
9470         Update URL of POSIX specification.
9471
9472 2010-10-02  Bruno Haible  <bruno@clisp.org>
9473
9474         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
9475         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
9476         from gnulib, not from Automake.
9477
9478 2010-10-02  Bruno Haible  <bruno@clisp.org>
9479
9480         New module 'system-posix'.
9481         * modules/system-posix: New file.
9482         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
9483         module is present.
9484         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9485         GNULIB_SYSTEM_POSIX.
9486         * modules/stdlib (Depends-on): Remove sys_wait.
9487         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
9488         * doc/posix-functions/system.texi: Mention the new module.
9489         * doc/posix-headers/stdlib.texi: Likewise.
9490         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
9491         define test_sys_wait_macros to a no-op.
9492         Reported by Sam Steingold <sds@gnu.org>.
9493
9494 2010-09-30  Bruno Haible  <bruno@clisp.org>
9495
9496         More renaming from 'getdate' to 'get_date'.
9497         * doc/get_date.texi: Renamed from doc/getdate.texi.
9498         * modules/get_date (Files): Update.
9499         * MODULES.html.sh (Date and time <time.h>): Update.
9500         * DEPENDENCIES: Update.
9501         * gnulib-tool: Update comment.
9502         * m4/bison.m4 (gl_BISON): Likewise.
9503         * m4/get_date.m4 (gl_GET_DATE): Likewise.
9504
9505 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
9506
9507         bootstrap: support ACLOCAL_FLAGS during aclocal
9508         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
9509         can add additional -I dir for third-party .m4 files.
9510
9511 2010-09-30  Eric Blake  <eblake@redhat.com>
9512
9513         bootstrap: use glibtoolize on MacOS
9514         * build-aux/bootstrap (check_versions): Convert libtool into
9515         libtoolize.
9516         (tool search): Move libtool check earlier, and look for
9517         glibtoolize for MacOS.
9518         (gnulib_tool_options): Auto-add --libtool when appropriate.
9519         Reported by Justin Clift.
9520
9521         poll: fix typo that broke test on MacOS
9522         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
9523         Reported by Justin Clift.
9524
9525         getdate: rename to get_date
9526         Note: getdate.h is not renamed, to minimize client impact.
9527         * modules/getdate: Mark obsolete.  Move old contents...
9528         * modules/get_date: ...to new module name.
9529         * modules/getdate-tests: Move...
9530         * modules/get_date-tests: ...here.
9531         * m4/getdate.m4: Move...
9532         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
9533         * lib/getdate.y: Move...
9534         * lib/get_date.y: ...here.
9535         * tests/test-getdate.c: Move...
9536         * tests/test-get_date.c: ...here.
9537         * doc/posix-functions/getdate.texi (getdate): Update name.
9538         * NEWS: Mention the change.
9539
9540 2010-09-29  Bruno Haible  <bruno@clisp.org>
9541
9542         Separate the module 'waitpid' from the module 'sys_wait'.
9543         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
9544         present.
9545         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
9546         gl_MODULE_INDICATOR_FOR_TESTS.
9547         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
9548         * modules/sys_wait (Depends-on): Remove waitpid.
9549         (Makefile.am): Substitute GNULIB_WAITPID.
9550         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
9551         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
9552         signature only if the 'waitpid' module is present.
9553         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
9554         * NEWS: Mention the change.
9555         * modules/grantpt (Depends-on): Add waitpid.
9556         * modules/wait-process (Depends-on): Likewise.
9557
9558 2010-09-29  Bruno Haible  <bruno@clisp.org>
9559
9560         More tests for module 'sys_wait'.
9561         * modules/sys_wait-c++-tests: New file.
9562         * tests/test-sys_wait-c++.cc: New file.
9563         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
9564         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9565
9566 2010-09-29  Bruno Haible  <bruno@clisp.org>
9567
9568         New module 'waitpid'.
9569         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
9570         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
9571         Don't include <process.h>.
9572         (waitpid): Declare only, using modern idiom.
9573         * m4/waitpid.m4: New file.
9574         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
9575         * modules/waitpid: New file.
9576         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
9577         (Makefile.am): Update.
9578         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9579
9580 2010-09-28  Bruno Haible  <bruno@clisp.org>
9581
9582         poll: Assume ANSI C.
9583         * lib/poll.c (poll): Use an ANSI C declaration.
9584
9585 2010-09-28  Bruno Haible  <bruno@clisp.org>
9586
9587         poll-h: Create poll.h on all platforms.
9588         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
9589         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
9590         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
9591         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
9592         (gl_REPLACE_POLL_H): Don't set POLL_H.
9593         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
9594         * modules/poll-h (Depends-on): Add include_next.
9595         (Makefile.am): Create poll.h unconditionally. Substitute also
9596         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
9597
9598 2010-09-28  Bruno Haible  <bruno@clisp.org>
9599
9600         Tests for module 'poll-h'.
9601         * modules/poll-h-c++-tests: New file.
9602         * tests/test-poll-h-c++.cc: New file.
9603
9604         Tests for module 'poll-h'.
9605         * modules/poll-h-tests: New file.
9606         * tests/test-poll-h.c: New file.
9607
9608 2010-09-28  Bruno Haible  <bruno@clisp.org>
9609
9610         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
9611         * modules/poll-h (Depends-on): Add 'extensions'.
9612
9613 2010-09-28  Bruno Haible  <bruno@clisp.org>
9614
9615         New module 'poll-h'.
9616         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
9617         (poll): Use modern idiom.
9618         * modules/poll-h: New file.
9619         * modules/poll (Files): Remove lib/poll.in.h.
9620         (Depends-on): Add poll-h.
9621         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
9622         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
9623         * m4/poll_h.m4: New file.
9624         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
9625         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
9626         and invoke gl_REPLACE_POLL_H.
9627         * lib/poll.c: Use common idiom.
9628         * tests/test-poll.c: Likewise.
9629         * doc/posix-headers/poll.texi: Mention the poll-h module.
9630         Suggested by Eric Blake.
9631
9632 2010-09-26  Bruno Haible  <bruno@clisp.org>
9633
9634         sys_wait: Implement WSTOPSIG.
9635         * lib/sys_wait.in.h (WSTOPSIG): New macro.
9636         Reported by Simon Josefsson.
9637
9638 2010-09-26  Simon Josefsson  <simon@josefsson.org>
9639
9640         stdlib, sys_wait: Avoid compilation error on mingw.
9641         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
9642
9643 2010-09-26  Bruno Haible  <bruno@clisp.org>
9644
9645         stdlib tests: Avoid code duplication.
9646         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
9647         * modules/sys_wait-tests (Files): Likewise.
9648         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
9649         * tests/test-stdlib.c: Include test-sys_wait.h.
9650         (main): Invoke test_sys_wait_macros.
9651         * tests/test-sys_wait.c: Include test-sys_wait.h.
9652         (main): Invoke test_sys_wait_macros.
9653
9654 2010-09-25  Simon Josefsson  <simon@josefsson.org>
9655
9656         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
9657         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
9658         sure Windows sockets are working before calling getaddrinfo.
9659         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
9660         * doc/gnulib.texi (Windows sockets): Fix typo.
9661
9662 2010-09-25  Bruno Haible  <bruno@clisp.org>
9663
9664         Tests for module 'regex-quote'.
9665         * modules/regex-quote-tests: New file.
9666         * tests/test-regex-quote.c: New file.
9667
9668         New module 'regex-quote'.
9669         * lib/regex-quote.h: New file.
9670         * lib/regex-quote.c: New file.
9671         * modules/regex-quote: New file.
9672         Suggested by Reuben Thomas <rrt@sc3d.org>.
9673
9674 2010-09-24  Bruno Haible  <bruno@clisp.org>
9675
9676         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
9677         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
9678
9679 2010-09-23  Bruno Haible  <bruno@clisp.org>
9680
9681         setenv: Relax license.
9682         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
9683         Blake.
9684         Requested by Eric Blake.
9685
9686 2010-09-22  Bruno Haible  <bruno@clisp.org>
9687
9688         termios: Relax license.
9689         * modules/termios (License): Change to LGPLv2+.
9690         Requested by Eric Blake.
9691
9692 2010-09-22  Bruno Haible  <bruno@clisp.org>
9693
9694         threadlib: Allow the package to change the default to 'no'.
9695         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
9696         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
9697         Reported by Paul Eggert.
9698
9699 2010-09-22  Pádraig Brady  <P@draigbrady.com>
9700             Bruno Haible  <bruno@clisp.org>
9701
9702         Fix endless loop in mbmemcasecoll.
9703         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
9704         byte.
9705         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
9706
9707 2010-09-22  Bruno Haible  <bruno@clisp.org>
9708
9709         Tests for module 'memcoll'.
9710         * modules/memcoll-tests: New file.
9711         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
9712
9713         memcoll, xmemcoll: Clarify size vs. length.
9714         * modules/memcoll.c (memcoll0): Clarify specification.
9715         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
9716         passed to collate_error.
9717
9718 2010-09-22  Bruno Haible  <bruno@clisp.org>
9719
9720         Tests for module 'memcasecmp'.
9721         * modules/memcasecmp-tests: New file.
9722         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
9723
9724 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9725
9726         * lib/pthread.in.h: Add split double-inclusion guard, and include
9727         system <pthread.h> if there is one.  Use @@-style as in other
9728         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
9729         pthread.h doesn't.
9730         (pthread_mutexattr_destroy, pthread_mutexattr_init):
9731         (pthread_mutexattr_settype, pthread_mutex_trylock):
9732         New static inline functions, if there's no system <pthread.h>.
9733         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
9734         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
9735         Approximate with mutexes if the system lacks spinlocks, as in
9736         MacOS.
9737         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
9738         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
9739         @@-style.  Check for spinlocks separately.
9740         (gl_PTHREAD_DEFAULTS): New macro.
9741         * modules/pthread: Redo to use a more typical style for in.h files.
9742
9743 2010-09-21  Eric Blake  <eblake@redhat.com>
9744
9745         net_if: enhance tests
9746         * tests/test-net_if.c (main): Move signature checks earlier.
9747         Print failures to stderr.
9748         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
9749         Document the bug that we do not yet fix.
9750
9751 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9752
9753         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
9754         about gnulib, not GSS.
9755
9756 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9757
9758         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
9759         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
9760         for Emacs.
9761         * build-aux/pmccabe2html: Make Makefile.am example code more
9762         cut-and-paste friendly.
9763
9764 2010-09-21  Simon Josefsson  <simon@josefsson.org>
9765
9766         * tests/test-net_if.c: New file.
9767         * modules/net_if-tests: New file.
9768
9769 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
9770
9771         pthread: add pthread_spin_destroy
9772         * lib/pthread.in.h (pthread_spin_destroy): New function.
9773
9774 2010-09-19  Bruno Haible  <bruno@clisp.org>
9775
9776         gnulib-tool: Fix --help output.
9777         * gnulib-tool (func_usage): Fix help message.
9778         Reported by Reuben Thomas <rrt@sc3d.org>.
9779
9780 2010-09-18  Jim Meyering  <meyering@redhat.com>
9781
9782         maint.mk: avoid unexpanded \n in two diagnostics
9783         * top/maint.mk (sc_prohibit_always_true_header_tests):
9784         Don't use a literal \n in a halt=... assignment.  It would not be
9785         expanded, and the two \n bytes would appear in the diagnostic output
9786         rather than the desired newline.  Use halt=$$(printf ... instead.
9787         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9788
9789 2010-09-18  Bruno Haible  <bruno@clisp.org>
9790
9791         netinet_in: Doc tweak.
9792         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
9793         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9794
9795 2010-09-18  Jim Meyering  <meyering@redhat.com>
9796
9797         init.sh: correct an outdated comment
9798         * tests/init.sh (create_exe_shims_):  s/function/alias/
9799
9800         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
9801         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
9802         a file named "*.exe" is removed between the glob expansion and the
9803         processing of that oddly named file.
9804
9805 2010-09-17  Eric Blake  <eblake@redhat.com>
9806
9807         mirbsd: add some more support
9808         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
9809         in BSD family.
9810         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
9811         devices as OpenBSD.
9812         * m4/host-os.m4 (mirbsd): Add MirBSD.
9813
9814         tests: fix unportable assumption on sys/wait.h
9815         * tests/test-sys_wait.c (main): Relax test.
9816         * tests/test-stdlib.c (main): Likewise.
9817
9818         init.sh: accomodate directory with no .exes
9819         * tests/init.sh: Accomodate directory containing only scripts.
9820
9821         tests: avoid compiler warning
9822         * tests/test-stdlib.c (main): Use the variable.
9823
9824         fdutimens, fdutimensat: update signature, again
9825         * lib/utimens.h (gl_futimens): Delete, and move signature...
9826         (fdutimens): ...here.
9827         (fdutimensat): Rearrange signature.
9828         (lutimensat): Rename variable for clarity.
9829         * lib/fdutimensat.c (fdutimensat): Update signature.
9830         * lib/utimens.c (fdutimens): Likewise.
9831         (gl_futimens): Delete.
9832         (utimens, lutimens): Update callers.
9833         * lib/futimens.c (futimens): Likewise.
9834         * tests/test-fdutimensat.c: Likewise.
9835         * tests/test-utimens.c: Likewise.
9836         * tests/test-futimens.h: Update comment.
9837         * NEWS: Mention this.
9838         Suggested by Paul Eggert.
9839
9840 2010-09-17  Bruno Haible  <bruno@clisp.org>
9841
9842         Take over the maintenance of some older macros from Autoconf.
9843         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
9844         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
9845         GNU Autoconf.
9846         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
9847         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
9848
9849 2010-09-17  Eric Blake  <eblake@redhat.com>
9850
9851         fdutimensat: drop atflag validation
9852         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
9853         with valid fd, to close a race scenario where futimens is
9854         unsupported and FILE was replaced by a symlink.
9855         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
9856         accordingly.
9857         Suggested by Paul Eggert.
9858
9859 2010-09-16  Bruno Haible  <bruno@clisp.org>
9860
9861         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
9862         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
9863
9864 2010-09-16  Bruno Haible  <bruno@clisp.org>
9865
9866         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
9867         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
9868         login_tty exists.
9869         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9870
9871 2010-09-16  Bruno Haible  <bruno@clisp.org>
9872
9873         login_tty: Make the replacement code work on BSD systems.
9874         * lib/login_tty.c: Include <sys/ioctl.h>.
9875         (login_tty): Use ioctl TIOCSCTTY when available.
9876         * modules/login_tty (Depends-on): Add sys_ioctl.
9877         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9878
9879 2010-09-16  Bruno Haible  <bruno@clisp.org>
9880
9881         login_tty: Stricter unit test.
9882         * modules/login_tty-tests (Depends-on): Add tcgetsid.
9883         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
9884         and tcgetsid() after login_tty.
9885         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9886
9887 2010-09-16  Bruno Haible  <bruno@clisp.org>
9888
9889         New module 'tcgetsid'.
9890         * lib/tcgetsid.c: New file.
9891         * m4/tcgetsid.m4: New file.
9892         * modules/tcgetsid: New file.
9893         * modules/termios (Depends-on): Add c++defs, warn-on-use.
9894         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
9895         GNULIB_TCGETSID, HAVE_TCGETSID.
9896         * lib/termios.in.h: Include <sys/types.h>.
9897         (tcgetsid): New declaration.
9898         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
9899         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
9900         * doc/posix-functions/tcgetsid.texi: Mention the new module.
9901         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
9902
9903 2010-09-16  Bruno Haible  <bruno@clisp.org>
9904
9905         Tests for module 'termios'.
9906         * modules/termios-c++-tests: New file.
9907         * modules/termios-tests: New file.
9908         * tests/test-termios-c++.cc: New file.
9909         * tests/test-termios.c: New file.
9910
9911         New module 'termios'.
9912         * modules/termios: New file.
9913         * lib/termios.in.h: New file.
9914         * m4/termios_h.m4: New file.
9915         * doc/posix-headers/termios.texi: Mention the new module.
9916
9917 2010-09-16  Eric Blake  <eblake@redhat.com>
9918
9919         fdutimensat: add an atflag parameter
9920         * lib/fdutimensat.c (fdutimensat): Add new parameter.
9921         * lib/utimens.h (fdutimensat): Update prototype.
9922         * tests/test-fdutimensat.c: Adjust test to match.
9923         * NEWS: Document the change.
9924         Suggested by Paul Eggert.
9925
9926 2010-09-16  Bruno Haible  <bruno@clisp.org>
9927
9928         Fix typos in comments.
9929         * lib/striconveh.h: Fix typo in comment.
9930         * lib/login_tty.c (login_tty): Likewise.
9931
9932 2010-09-15  Bruno Haible  <bruno@clisp.org>
9933
9934         stdlib: clarify MirBSD WEXITSTATUS bug
9935         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
9936         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9937
9938 2010-09-15  Eric Blake  <eblake@redhat.com>
9939
9940         stdlib: work around MirBSD WEXITSTATUS bug
9941         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
9942         * modules/stdlib (Depends-on): Add sys_wait.
9943         * tests/test-sys_wait.c (main): Enhance test.
9944         * tests/test-stdlib.c (main): Likewise.
9945         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
9946
9947         docs: mention MacOS issue with WEXITSTATUS(constant)
9948         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
9949         issue.
9950         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9951
9952         strnlen: add tests
9953         * modules/strnlen-tests: New file.
9954         * tests/test-strnlen.c: Likewise.
9955
9956 2010-09-14  Bruno Haible  <bruno@clisp.org>
9957
9958         unistr/base: Avoid link errors when module 'libunistring' is also used.
9959         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
9960         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
9961         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
9962         Declare also when HAVE_LIBUNISTRING is set.
9963         Reported by Pádraig Brady <P@draigbrady.com>.
9964
9965 2010-09-14  Eric Blake  <eblake@redhat.com>
9966
9967         test-rawmemchr: make more robust
9968         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
9969         (Depends-on, configure.ac): Add needed prerequisites to use it.
9970         * modules/memchr-tests (Files, Depends-on, configure.ac):
9971         Likewise, to avoid implicit reliance on memchr module prereqs.
9972         * tests/test-memchr.c (main): Ensure proper masking.
9973         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
9974         reads.
9975
9976         memchr: detect glibc Alpha bug
9977         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
9978         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
9979         Alpha.
9980         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
9981         * tests/test-memchr.c (main): Enhance test.
9982         Reported by Nelson H. F. Beebe.
9983
9984 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9985
9986         fts, getcwd, glob: audit for dirfd returning -1
9987         * lib/fts.c (opendir): Remove #define; no longer used.
9988         (opendirat): New arg PDIR_FD.  All callers changed.
9989         (fts_build, _opendir2): Use new opendirat to avoid the need for
9990         dirfd, or for checking whether dirfd returns a negative value.
9991         Don't use opendir; always use openat followed by fdopendir.
9992         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
9993         it.
9994         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
9995         returns -1 here.
9996         * modules/fts (Depends-on): Remove dirfd.
9997         * modules/getcwd (Depends-on): Likewise.
9998
9999 2010-09-13  Eric Blake  <eblake@redhat.com>
10000
10001         float: fix broken MirBSD header
10002         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
10003         * doc/posix-headers/float.texi (float.h): Document it.
10004
10005 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10006
10007         fts: use O_NOFOLLOW to avoid race condition when opening a directory
10008         * lib/fts.c (opendirat): New arg extra_flags.
10009         (__opendir2): Use it to avoid following symlinks when opening
10010         a directory, if symlinks are not supposed to be followed.  See
10011         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
10012
10013         fdopendir: preserve argument fd before returning
10014         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
10015         (fdopendir_with_dup, fd_clone_opendir): New static functions.
10016         (fdopendir): Use them, arranging for FD to be open to the same
10017         directory that it was when it started.  (It might be temporarily
10018         closed while fdopendir is running, so this not thread- or
10019         signal-safe.)  Be careful to do the right thing even when file
10020         descriptors are scarce and dup fails with errno == EMFILE.  See
10021         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
10022
10023 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
10024
10025         regex: Pass the system regex if its only problem is 32-bit regoff_t.
10026         * NEWS: Document change.
10027         * m4/regex.m4: Disable test for regoff_t size.
10028
10029 2010-09-13  Jim Meyering  <meyering@redhat.com>
10030
10031         fts: don't operate on an invalid file descriptor after failed dup
10032         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
10033         negative file descriptor.
10034
10035 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10036
10037         savedir: add streamsavedir, deprecate fdsavedir
10038         * NEWS: Mention deprecation of fdsavedir.
10039         * lib/savedir.c (streamsavedir): New extern function, whose name
10040         ends in "savedir" to be consistent with the others.  This differs
10041         from savedirstream in that it doesn't close its argument.  The
10042         next version of GNU tar will use this instead of fdsavedir, to
10043         avoid some race conditions and conserve file descriptors.
10044         (savedirstream): Reimplement as a wrapper around streamsavedir.
10045         (fdsavedir): Add a comment deprecating this function.  As far as
10046         I know, only GNU tar used it, and GNU tar doesn't need it any more.
10047         * lib/savedir.h (streamsavedir): New decl.
10048         (fdsavedir): Add a comment deprecating this.
10049
10050 2010-09-10  Bruno Haible  <bruno@clisp.org>
10051
10052         langinfo: Fix last commit.
10053         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
10054         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
10055         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10056
10057 2010-09-10  Bruno Haible  <bruno@clisp.org>
10058
10059         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
10060         * lib/progreloc.c (O_EXEC): Define fallback.
10061
10062 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
10063
10064         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
10065         * NEWS: Document recent changes to fcntl-h.
10066         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
10067         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
10068         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
10069         Similarly for O_SEARCH; this last was already true, but not documented.
10070         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
10071         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
10072         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
10073         Likewise.
10074         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
10075         is zero, not whether it is defined.
10076         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
10077         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
10078         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
10079
10080 2010-09-10  Bruno Haible  <bruno@clisp.org>
10081
10082         langinfo, nl_langinfo: Fix for IRIX 5.3.
10083         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
10084         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
10085         HAVE_LANGINFO_YESEXPR.
10086         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
10087         HAVE_LANGINFO_YESEXPR.
10088         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
10089         HAVE_LANGINFO_T_FMT_AMPM is 0.
10090         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
10091         HAVE_LANGINFO_YESEXPR is 0.
10092         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
10093         NOEXPR.
10094         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
10095         * doc/posix-functions/nl_langinfo.texi: Likewise.
10096         Reported by Eric Blake.
10097
10098 2010-09-10  Bruno Haible  <bruno@clisp.org>
10099
10100         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
10101         * doc/glibc-functions/login_tty.texi: Mention the include file problem
10102         on FreeBSD 8.0 and OpenBSD 4.6.
10103         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
10104         * m4/pty_h.m4 (gl_PTY_H): Likewise.
10105         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
10106         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
10107         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
10108         ac_includes_default.
10109         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10110
10111 2010-09-09  Eric Blake  <eblake@redhat.com>
10112
10113         strsignal: work around NetBSD bug
10114         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
10115         * lib/string.in.h (includes): Likewise.
10116         * doc/posix-functions/strsignal.texi (strsignal): Document the
10117         bug.
10118         Reported by Nelson H. F. Beebe.
10119
10120         gnulib-tool: work with NetBSD /bin/sh
10121         * gnulib-tool (func_cache_var, func_cache_lookup_module)
10122         (func_get_description, func_get_comment, func_get_status)
10123         (func_get_notice, func_get_applicability, func_get_filelist)
10124         (func_get_dependencies, func_get_autoconf_early_snippet)
10125         (func_get_autoconf_snippet, func_get_automake_snippet)
10126         (func_get_include_directive, func_get_link_directive)
10127         (func_get_license, func_get_maintainer, func_import): Avoid
10128         shell syntax errors from parsing syntax extensions.
10129
10130 2010-09-09  Bruno Haible  <bruno@clisp.org>
10131
10132         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10133         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
10134         a reliable way to determine whether the 'alias' command works.
10135
10136 2010-09-08  Jim Meyering  <meyering@redhat.com>
10137
10138         init.sh: penalize a set-x-impaired shell; don't disqualify it
10139         * tests/init.sh: Too many shells corrupt application stderr when
10140         you set -x, so we can't afford to disqualify them, since at least
10141         on Irix-6.5, that would disqualify all bourne shells.
10142         Instead, use a two-pass approach.
10143         On the first pass, try to find a shell that meets the stricter
10144         condition that set -x does not corrupt stderr.
10145         If no shell meets the stricter condition, retest each candidate
10146         shell, but without that extra condition.  Finally, when
10147         VERBOSE=yes is requested and set -x might cause trouble, simply
10148         issue a warning and refrain from enabling debug output.
10149
10150 2010-09-08  Eric Blake  <eblake@redhat.com>
10151
10152         unsetenv: fix OpenBSD bug
10153         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
10154         * doc/posix-functions/unsetenv.texi (unsetenv): Update
10155         documentation.
10156         Reported by Jim Meyering.
10157
10158         strtod: work around IRIX 6.5 bug
10159         * lib/strtod.c (strtod): Reparse number on shorter string if
10160         exponent parse was invalid.
10161         * tests/test-strtod.c (main): Add check for "0x1p 2".
10162         Reported by Tom G. Christensen.
10163
10164         getopt: optimize previous patch
10165         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
10166         empty variable.  Speed up awk script.
10167         Reported by Paolo Bonzini.
10168
10169 2010-09-08  Jim Meyering  <meyering@redhat.com>
10170
10171         test.sh: disqualify shells for which set -x corrupts stderr
10172         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
10173         and OpenBSD 4.7.  They make it so with "set -x", environment settings
10174         appear in stderr output.  For example, this command:
10175             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
10176         prints "P=1" on those two systems:
10177
10178 2010-09-08  Bruno Haible  <bruno@clisp.org>
10179
10180         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10181         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
10182         commands, because some shells ignore redirections when there is an
10183         error in the command lookup.
10184         Reported by Eric Blake.
10185
10186 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
10187
10188         * lib/regex.h: Fix a mention of `regex_compile' (should be
10189         `re_compile_pattern').
10190         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
10191         (re_set_registers): Correct name of parameter in comment.
10192
10193         * doc/regex.texi: Add documentation for missing syntax flags.
10194         Remove commented-out documentation of defunct syntax option
10195         RE_NO_EMPTY_ALTS.
10196         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
10197         Add documentation of re_set_registers.
10198         Document trick to re-use a pattern buffer by setting fastmap manually.
10199         Update documentation of struct re_pattern_buffer per public members.
10200         Uncomment documentation of equivalence class operators and
10201         collating symbol operators, since they are now implemented,
10202         Explain leftmost-longest matching in relation to alternatives.
10203         Tidy documentation of substring matching.
10204         Remove POSIX documentation, which is done better in
10205         glibc, and refer the reader there. Keep BSD API documentation, as
10206         that is not readily available elsewhere.
10207
10208 2010-09-07  Eric Blake  <eblake@redhat.com>
10209
10210         getopt: handle POSIXLY_CORRECT set but not exported
10211         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
10212         export state of POSIXLY_CORRECT, due to bash set -o posix.
10213         Reported by Dustin J. Mitchell.
10214
10215 2010-09-05  Bruno Haible  <bruno@clisp.org>
10216
10217         gnulib-tool: Highlight the changed options.
10218         * gnulib-tool (func_usage): Display the --import, --add-import,
10219         --remove-import explanations in bold font.
10220
10221 2010-09-06  Karl Berry  <karl@gnu.org>
10222
10223         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
10224
10225 2010-09-05  Bruno Haible  <bruno@clisp.org>
10226
10227         uniwidth/width: Update comment.
10228         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
10229         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
10230
10231 2010-09-05  Bruno Haible  <bruno@clisp.org>
10232
10233         isinf, isnan: Relax license.
10234         * modules/isinf (License): Change from GPL to LGPL, with consent from
10235         Ben Pfaff.
10236         * modules/isnan (License): Likewise.
10237         Requested by Ludovic Courtès.
10238
10239 2010-09-04  Bruno Haible  <bruno@clisp.org>
10240
10241         gnulib-tool: Help migration from --import to --add-import or --update.
10242         * gnulib-tool: Emit a verbose error message when --import is used
10243         without any module name.
10244
10245 2010-09-04  Bruno Haible  <bruno@clisp.org>
10246
10247         Update doc about gnulib-tool.
10248         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
10249         'gnulib-tool --update' in more detail.
10250         Reported by Eric Blake.
10251
10252 2010-09-04  Bruno Haible  <bruno@clisp.org>
10253
10254         gnulib-tool: Change --import. New options --add/remove-import.
10255         * gnulib-tool: New options --add-import, --remove-import.
10256         (func_usage): Document them.
10257         (have_associative): Define always.
10258         (func_import): In import mode, don't merge the specified settings with
10259         the cached settings. Implement remove-import mode.
10260         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
10261         Explain when to use them versus --import.
10262         (Simple update): Use --add-import instead of --import.
10263         * NEWS: Mention the change.
10264
10265 2010-09-04  Bruno Haible  <bruno@clisp.org>
10266
10267         * doc/gnulib-tool.texi (Initial import): Update paragraph about
10268         separate gnulib.mk.
10269
10270 2010-09-04  Bruno Haible  <bruno@clisp.org>
10271
10272         gnulib-tool: Don't talk about CVS any more.
10273         * gnulib-tool (func_usage, func_import): Write "version control"
10274         instead of CVS.
10275
10276 2010-09-04  Jim Meyering  <meyering@redhat.com>
10277
10278         maint.mk: avoid obscure sc_copyright_check failure in coreutils
10279         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
10280         false positives (whose names may be ill-chosen) when searching
10281         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
10282         would cause a false-positive.
10283
10284         avoid coreutils "make distcheck" failure
10285         Coreutils tests with an absolute build directory name that contains
10286         a space.  Not quoting this directory name caused a failure.
10287         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
10288         * tests/test-vc-list-files-cvs.sh: Likewise.
10289
10290 2010-09-04  Bruno Haible  <bruno@clisp.org>
10291
10292         gnulib-tool: Avoid error when run in a package without Makefile.am.
10293         * gnulib-tool: When collecting the m4dirs in a package that does not
10294         have a Makefile.am, eliminate those directories that contain no
10295         gnulib-cache.m4. Fix expression that counts these directories.
10296
10297 2010-09-04  Bruno Haible  <bruno@clisp.org>
10298
10299         update-copyright test: Improve output when perl is missing or too old.
10300         * tests/test-update-copyright.sh: Move test of Perl version down after
10301         the test whether Perl exists. Provide an explanation relating Perl's
10302         error message to Automake's SKIP: message.
10303
10304 2010-09-04  Bruno Haible  <bruno@clisp.org>
10305
10306         Don't augment PATH in TESTS_ENVIRONMENT.
10307         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
10308         set abs_aux_dir instead of augmenting PATH.
10309         * modules/vc-list-files-tests (Makefile.am): Likewise.
10310         * tests/test-update-copyright.sh: Augment PATH here.
10311         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
10312         path_prepend_.
10313         * tests/test-vc-list-files-git.sh: Likewise.
10314
10315 2010-09-04  Jim Meyering  <meyering@redhat.com>
10316
10317         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
10318         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
10319
10320 2010-09-04  Bruno Haible  <bruno@clisp.org>
10321
10322         strdup: Fix compilation error in C++ mode.
10323         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
10324         the macro.
10325
10326 2010-09-04  Bruno Haible  <bruno@clisp.org>
10327
10328         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
10329         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
10330         macro into a function.
10331         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10332
10333 2010-09-04  Bruno Haible  <bruno@clisp.org>
10334
10335         Set PATH_SEPARATOR the same way autoconf does.
10336         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
10337         the value of PATH_SEPARATOR the same way autoconf-generated configure
10338         scripts do.
10339         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
10340         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
10341
10342 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10343
10344         Set PATH_SEPARATOR the same way autoconf does.
10345         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
10346         the same way autoconf-generated configure scripts do.
10347         * posix-modules: Likewise.
10348
10349 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10350
10351         hash: fix safe_hasher const typo
10352         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
10353         const; otherwise, there is a type error later.
10354
10355 2010-09-02  Jim Meyering  <meyering@redhat.com>
10356
10357         test-update-copyright.sh: require perl 5.8.0
10358         * tests/test-update-copyright.sh: Require 5.8.0,
10359         which Tom G. Christensen has confirmed is adequate,
10360         while 5.6.1 is not.
10361
10362 2010-09-02  Eric Blake  <eblake@redhat.com>
10363
10364         tests: init.sh improvements for re-exec'ing with zsh
10365         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
10366         -vx through shell re-exec.
10367         Reported by Tom G. Christensen.
10368
10369         wctype: fix typo in previous commit
10370         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
10371         Reported by Ludovic Courtès.
10372
10373 2010-09-02  Jim Meyering  <meyering@redhat.com>
10374
10375         test-update-copyright.sh: skip test if Perl is too old
10376         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
10377         Reported by Tom G. Christensen.
10378
10379 2010-09-02  Bruno Haible  <bruno@clisp.org>
10380
10381         wctype: Avoid compilation error on IRIX 6.5.30.
10382         * lib/wctype.in.h (iswblank): Declare with a replacement if
10383         REPLACE_ISWBLANK is set.
10384         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
10385         declared. Set REPLACE_ISWBLANK.
10386         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
10387         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
10388         * doc/posix-headers/wctype.texi: Likewise.
10389         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10390
10391 2010-09-01  Bruno Haible  <bruno@clisp.org>
10392
10393         New module 'socketlib'.
10394         * modules/socketlib: New file.
10395         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
10396         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
10397         * modules/sockets (Depends-on): Add socketlib.
10398         Suggested by Sam Steingold <sds@gnu.org>.
10399
10400 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10401
10402         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
10403
10404         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
10405         when one needs search access to a directory but not read access.
10406         On systems where it is available, it works in some cases where
10407         O_RDONLY does not, namely on directories that are searchable but
10408         not readable, and which need only to be searchable.  If O_SEARCH
10409         is not available, fall back to the traditional method of using
10410         O_RDONLY.
10411
10412         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
10413         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
10414         when opening a directory that needs only to be searchable.
10415         * lib/chdir-safer.c (chdir_no_follow): Likewise.
10416         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
10417         * lib/openat-proc.c (openat_proc_name): Likewise.
10418         * lib/openat.c (openat_needs_fchdir): Likewise.
10419         * lib/save-cwd.c (save_cwd): Likewise.
10420         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
10421
10422 2010-08-28  Bruno Haible  <bruno@clisp.org>
10423
10424         New module 'host-cpu-c-abi'.
10425         * modules/host-cpu-c-abi: New file.
10426         * m4/host-cpu-c-abi.m4: New file, based on part of
10427         clisp/src/m4/general.m4.
10428         Requested by Sam Steingold <sds@gnu.org>.
10429
10430 2010-08-31  Eric Blake  <eblake@redhat.com>
10431         and Jim Meyering  <meyering@redhat.com>
10432
10433         hash: factor, and guard against misbehaving hasher function
10434         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
10435         of table->hasher's return value.  Also protect against a hash value
10436         so large that adding it to table->bucket results in a NULL pointer.
10437         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
10438         Use it in place of open-coded check-and-abort.
10439
10440 2010-08-30  Bruno Haible  <bruno@clisp.org>
10441
10442         hash: silence spurious clang warning
10443         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
10444         Reported by Eric Blake.
10445
10446 2010-08-30  Eric Blake  <eblake@redhat.com>
10447
10448         strstr, memmem, strcasestr: avoid leaked shell message
10449         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
10450         FreeBSD.
10451         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10452         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10453
10454         tests: silence clang warning
10455         * tests/test-malloca.c (do_allocation): Avoid dead store.
10456
10457 2010-08-29  Bruno Haible  <bruno@clisp.org>
10458
10459         gettext: Fix recent mistake.
10460         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
10461
10462 2010-08-29  Bruno Haible  <bruno@clisp.org>
10463
10464         selinux-h: Offer a --without-selinux option.
10465         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
10466         --without-selinux was specified, skip all tests and define
10467         HAVE_SELINUX_SELINUX_H to 0.
10468         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
10469         set LIB_SELINUX to empty.
10470         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
10471         gl_LIBSELINUX. If --without-selinux was specified, replace
10472         selinux/context.h.
10473         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
10474
10475 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10476             Bruno Haible  <bruno@clisp.org>
10477
10478         Make the module 'realloc-gnu' work again on AIX and OSF/1.
10479         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
10480         of HAVE_REALLOC.
10481         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
10482         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
10483         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
10484         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10485
10486 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10487             Bruno Haible  <bruno@clisp.org>
10488
10489         Make the module 'calloc-gnu' work again on AIX and OSF/1.
10490         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
10491         HAVE_CALLOC.
10492         * lib/xmalloc.c: Update accordingly.
10493         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
10494         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
10495         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
10496
10497 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10498             Bruno Haible  <bruno@clisp.org>
10499
10500         Make the module 'malloc-gnu' work again on AIX and OSF/1.
10501         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
10502         HAVE_MALLOC.
10503         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
10504         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
10505         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10506
10507 2010-08-29  Bruno Haible  <bruno@clisp.org>
10508
10509         Update modules list.
10510         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
10511         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
10512         (String handling <string.h>): Add astrxfrm.
10513         (File system functions): Add readlinkat.
10514
10515 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10516
10517         Tests for module 'realloc-gnu'.
10518         * modules/realloc-gnu-tests: New file.
10519         * tests/test-realloc-gnu.c: New file.
10520
10521         Tests for module 'calloc-gnu'.
10522         * modules/calloc-gnu-tests: New file.
10523         * tests/test-calloc-gnu.c: New file.
10524
10525         Tests for module 'malloc-gnu'.
10526         * modules/malloc-gnu-tests: New file.
10527         * tests/test-malloc-gnu.c: New file.
10528
10529 2010-08-28  Bruno Haible  <bruno@clisp.org>
10530
10531         Rename module 'realloc' -> 'realloc-gnu'.
10532         * modules/realloc-gnu: New file, copied from modules/realloc.
10533         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
10534         obsolete.
10535         * modules/mgetgroups (Depends-on): Update.
10536         * doc/posix-functions/realloc.texi: Update.
10537         * NEWS: Mention the change.
10538
10539         Rename module 'calloc' -> 'calloc-gnu'.
10540         * modules/calloc-gnu: New file, copied from modules/calloc.
10541         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
10542         obsolete.
10543         * doc/posix-functions/calloc.texi: Update.
10544         * NEWS: Mention the change.
10545
10546         Rename module 'malloc' -> 'malloc-gnu'.
10547         * modules/malloc-gnu: New file, copied from modules/malloc.
10548         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
10549         obsolete.
10550         * modules/argp (Depends-on): Update.
10551         * modules/regex (Depends-on): Update.
10552         * doc/posix-functions/malloc.texi: Update.
10553         * NEWS: Mention the change.
10554
10555 2010-08-28  Eric Blake  <eblake@redhat.com>
10556
10557         pread, pwrite: add missing dependency
10558         * modules/pread (Depends-on): Add extensions.
10559         * modules/pwrite (Depends-on): Likewise.
10560
10561 2010-08-28  Bruno Haible  <bruno@clisp.org>
10562
10563         unistr/u*-strchr: Fix tests dependencies.
10564         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
10565         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
10566         Reported by Ian Beckwith <ianb@erislabs.net>.
10567
10568 2010-08-28  Bruno Haible  <bruno@clisp.org>
10569
10570         read-file: Don't occupy too much unused memory.
10571         * lib/read-file.c (fread_file): Shrink the buffer at the end.
10572
10573 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
10574             Eric Blake  <eblake@redhat.com>
10575             Bruno Haible  <bruno@clisp.org>
10576
10577         read-file: Avoid memory reallocations with regular files.
10578         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
10579         (fread_file): With regular files, use the remaining length as the
10580         initial buffer size.  Check against overflow.
10581         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
10582         sys_stat.
10583
10584 2010-08-28  Bruno Haible  <bruno@clisp.org>
10585
10586         ftello: Relax license.
10587         * modules/ftello (License): Relax to LGPLv2+.
10588         Reported by Eric Blake.
10589
10590 2010-08-28  Bruno Haible  <bruno@clisp.org>
10591
10592         Avoid relocwrapper link errors due to gnulib replacement functions.
10593         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
10594         function.
10595         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10596
10597 2010-08-28  Bruno Haible  <bruno@clisp.org>
10598
10599         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
10600         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
10601         defined.
10602         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
10603         Suggested by Eric Blake.
10604
10605 2010-08-28  Bruno Haible  <bruno@clisp.org>
10606
10607         sys_socket, netdb: Ensure socklen_t gets defined.
10608         * modules/sys_socket (Depends-on): Add socklen.
10609         * modules/netdb (Depends-on): Likewise.
10610         * modules/getaddrinfo (Depends-on): Remove socklen.
10611         * modules/getsockopt (Depends-on): Likewise.
10612         * modules/setsockopt (Depends-on): Likewise.
10613         * tests/test-sys_socket.c: Check that socklen_t is defined.
10614         * tests/test-netdb.c: Likewise.
10615         * m4/socklen.m4: Update comments.
10616         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10617
10618 2010-08-27  Eric Blake  <eblake@redhat.com>
10619
10620         login_tty: add missing dependency
10621         * modules/login_tty (Depends-on): Add pty.
10622
10623 2010-08-26  Eric Blake  <eblake@redhat.com>
10624
10625         lib-symbol-versions: fix m4 quoting
10626         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
10627         format for AC_LINK_IFELSE.
10628
10629         glob: fix compile test
10630         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
10631
10632         btowc: fix missing file
10633         * modules/btowc (Files): Also ship locale-fr.m4.
10634
10635         lseek: fix link test
10636         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
10637         AC_LINK_IFELSE.
10638
10639         include_next: silence autoconf 2.68 warning
10640         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
10641         AC_COMPILE_IFELSE as special.
10642         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
10643         autoconf < 2.68.
10644
10645         acl: fix compilation test
10646         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
10647         AC_COMPILE_IFELSE.
10648
10649 2010-08-26  Bruno Haible  <bruno@clisp.org>
10650
10651         Modernize AC_TRY_RUN invocations.
10652         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
10653         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10654         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
10655         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
10656         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
10657         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10658         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10659         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10660         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10661         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10662         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10663         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10664         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10665         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10666         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10667         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10668         gl_MBRLEN_NUL_RETVAL): Likewise.
10669         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10670         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10671         Likewise.
10672         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10673         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10674         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10675         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10676         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
10677         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
10678         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
10679         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10680         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
10681         Likewise.
10682         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
10683         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
10684         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10685         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10686         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10687         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10688         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10689         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
10690         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10691         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10692
10693 2010-08-26  Bruno Haible  <bruno@clisp.org>
10694
10695         Modernize AC_TRY_LINK invocations.
10696         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
10697         AC_TRY_LINK.
10698         * m4/argp.m4 (gl_ARGP): Likewise.
10699         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10700         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10701         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10702         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10703         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10704         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
10705         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10706         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10707         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10708         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
10709         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10710         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
10711         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
10712         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10713         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
10714         * m4/hostent.m4 (gl_HOSTENT): Likewise.
10715         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10716         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
10717         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
10718         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
10719         Likewise.
10720         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
10721         Likewise.
10722         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
10723         Likewise.
10724         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
10725         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
10726         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
10727         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10728         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10729         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10730         * m4/servent.m4 (gl_SERVENT): Likewise.
10731         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10732         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10733         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10734         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10735         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10736         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10737         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10738         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10739         * modules/tsearch-tests (configure.ac): Likewise.
10740
10741 2010-08-26  Bruno Haible  <bruno@clisp.org>
10742
10743         Modernize AC_TRY_COMPILE invocations.
10744         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
10745         AC_TRY_COMPILE.
10746         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
10747         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
10748         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
10749         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
10750         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
10751         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
10752         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10753         * m4/lock.m4 (gl_LOCK): Likewise.
10754         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
10755         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
10756         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
10757         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
10758         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
10759         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
10760         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
10761         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
10762         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
10763         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
10764         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
10765         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
10766         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
10767         extraneous semicolon.
10768
10769 2010-08-26  Jim Meyering  <meyering@redhat.com>
10770
10771         stat-time: relax license LGPL
10772         * modules/stat-time (License): Change from GPL to LGPL,
10773         with consent from all contributors, for use in libguile.
10774         Requested by Ludovic Courtès.
10775
10776 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
10777
10778         poll: return immediately on POLLHUP.
10779         * lib/poll.c (poll): Always set timeout before wait_timeout is
10780         computed.
10781
10782 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10783
10784         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
10785         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
10786         rmdir ("dir/.//"), unlinkat.
10787
10788 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10789
10790         stdbool: avoid spurious failure with modern xlc
10791         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10792
10793 2010-08-24  Bruno Haible  <bruno@clisp.org>
10794
10795         getloadavg: simplify code
10796         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
10797         gl_have_func. Update comments.
10798
10799 2010-08-24  Eric Blake  <eblake@redhat.com>
10800
10801         getloadavg: don't define SVR4 on cygwin
10802         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
10803         only define SVR4 when -lkvm is required.
10804         Reported by Yaakov Selkowitz.
10805
10806 2010-08-24  Bruno Haible  <bruno@clisp.org>
10807
10808         priv-set: fix comment
10809         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
10810
10811 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10812
10813         priv-set: fix comments
10814         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
10815         to match code, as suggested by David Bartley in:
10816         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
10817
10818 2010-08-23  Eric Blake  <eblake@redhat.com>
10819
10820         stdbool: avoid rejecting clang
10821         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10822         * tests/test-stdbool.c: Enable more tests if using the system
10823         <stdbool.h> instead of the gnulib replacement.
10824         (main): Move xlc bug test to a runtime test for all compilers.
10825         Reported by Anders Kaseorg.
10826
10827         argz: fix shell quoting issue
10828         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
10829         Reported by Charles Wilson.
10830
10831 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
10832             Erik Faye-Lund <kusmabite@gmail.com>
10833
10834         poll, select: handle ERROR_BROKEN_PIPE.
10835         * lib/poll.c (win32_compute_revents): Return POLLHUP when
10836         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10837         * lib/select.c (win32_compute_revents): Do not mark a pipe
10838         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10839
10840 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
10841
10842         fts: allow compilation with C++
10843         * lib/fts_.h: Specify extern "C" linkage with C++.
10844
10845 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10846
10847         Fix gnulib-tool sed script de-commentation for AIX sed.
10848         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
10849         sed.
10850
10851 2010-08-17  Eric Blake  <eblake@redhat.com>
10852
10853         test-stddef: test for (some) offsetof bugs
10854         * tests/test-stddef.c: Enhance test to ensure correct type of
10855         offsetof.
10856         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
10857         that we are not fixing at this time.
10858
10859 2010-08-15  Bruno Haible  <bruno@clisp.org>
10860
10861         stpncpy: Allow stpncpy to be defined as a macro.
10862         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
10863         if it's already correctly declared.
10864         * lib/string.in.h (stpncpy): Undefine before redefining.
10865         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
10866
10867 2010-08-14  Bruno Haible  <bruno@clisp.org>
10868
10869         Rename module 'memxfrm' to 'amemxfrm'.
10870         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
10871         (amemxfrm): Renamed from memxfrm.
10872         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
10873         (amemxfrm): Renamed from memxfrm.
10874         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
10875         * NEWS: Mention the change.
10876         * MODULES.html.sh (String handling <string.h>): Update.
10877         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
10878         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
10879         * lib/unicase/u16-casexfrm.c: Likewise.
10880         * lib/unicase/u32-casexfrm.c: Likewise.
10881         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
10882         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
10883         * lib/uninorm/u16-normxfrm.c: Likewise.
10884         * lib/uninorm/u32-normxfrm.c: Likewise.
10885         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
10886         memxfrm.
10887         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
10888         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
10889         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
10890         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
10891         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
10892         Suggested by Paul Eggert.
10893
10894 2010-08-14  Bruno Haible  <bruno@clisp.org>
10895
10896         Tests for module 'astrxfrm'.
10897         * modules/astrxfrm-tests: New file.
10898         * tests/test-astrxfrm.c: New file.
10899
10900         New module 'astrxfrm'.
10901         * lib/astrxfrm.h: New file.
10902         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
10903         * modules/astrxfrm: New file.
10904
10905 2010-08-14  Reuben Thomas <rrt@sc3d.org>
10906
10907         regex: Tweak doc.
10908         * doc/regex.texi (Overview): Don't mention regex.c.
10909         (GNU Regular Expression Compiling): Likewise.
10910         (Match-end-of-line Operator): Mention 'not_eol'.
10911
10912 2010-08-14  Brian Gough  <bjg@gnu.org>
10913             Bruno Haible  <bruno@clisp.org>
10914
10915         git-merge-changelog: add doc relating to use with bzr and hg.
10916         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
10917
10918 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
10919
10920         pthread: fix pthread.h creation for srcdir != builddir
10921         * modules/pthread (Makefile.am): Fix the rule to work also in a
10922         non-srcdir build.
10923
10924 2010-08-13  Karl Berry  <karl@gnu.org>
10925
10926         * doc/regex.texi (Predefined Syntaxes): @smallexample.
10927         * doc/posix-*/*: force line break before @url of POSIX
10928         specifications.
10929         Suggested by Werner Lemberg.
10930
10931 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10932
10933         strtod: fix const diagnostic
10934         * lib/strtod.c (strtod): Don't assign const char * to char *,
10935         as this elicits a warning from GCC when warnings are enabled.
10936
10937 2010-08-10  Pádraig Brady <P@draigbrady.com>
10938         and Eric Blake  <eblake@redhat.com>
10939
10940         copy-acl: ignore ENOTSUP on HP-UX
10941         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
10942         so that it is available for HP-UX.
10943         * lib/copy-acl.c (qcopy_acl): Use it.
10944         Reported by Patrick M. Callahan.
10945
10946 2010-08-10  Eric Blake  <eblake@redhat.com>
10947
10948         open, chown: relax license
10949         * modules/open (License): Change to LGPLv2+, with consent by all
10950         authors, for use in augeas.
10951         * modules/chown (License): Likewise.
10952         * modules/lchown (Likewise): Likewise.
10953         Requested by Adam Stokes.
10954
10955 2010-08-09  Karl Berry  <karl@gnu.org>
10956
10957         * build-aux/ar-lib: new file, import from Automake.
10958         * config/srclist.txt: autocheck for updates.
10959
10960 2010-08-09  Eric Blake  <eblake@redhat.com>
10961
10962         readlinkat: adjust client modules
10963         * modules/areadlinkat (Depends-on): Use readlinkat, not
10964         symlinkat.
10965         * modules/areadlinkat-with-size (Depends-on): Likewise.
10966
10967         mknod: be more vocal about danger of running tests as root
10968         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
10969         root, since that is just asking for problems.
10970         Suggested by Bruno Haible, based on a report by Rainer Tammer.
10971
10972         readlinkat: split into its own module
10973         * modules/symlinkat: Split readlinkat...
10974         * modules/readlinkat: ...into separate module.
10975         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
10976         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
10977         * lib/symlinkat.c (readlinkat): Move...
10978         * lib/readlinkat.c: ...into new file.
10979         * modules/symlinkat-tests: Split readlinkat test...
10980         * modules/readlinkat-tests: ...into separate module.
10981         * tests/test-symlinkat.c: Split...
10982         * tests/test-readlinkat.c: ...into new file.
10983         * NEWS: Document the split.
10984         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10985         * lib/unistd.in.h (readlinkat): Likewise.
10986         Suggested by Bruno Haible.
10987
10988 2010-08-08  Bruno Haible  <bruno@clisp.org>
10989
10990         memxfrm: Speed up.
10991         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
10992         that usually only one call to strxfrm is necessary for each string
10993         part.
10994         Reported by Paul Eggert <eggert@cs.ucla.edu>.
10995
10996 2010-08-07  Karl Berry  <karl@gnu.org>
10997
10998         * doc/posix-headers/limits.texi,
10999         * doc/posix-functions/malloc.texi,
11000         * doc/posix-functions/strsignal.texi: missing @item.
11001         * doc/ld-version-script.texi: spurious leading i.
11002         * doc/regex.texi (Interval Operators): no commas inside @var.
11003
11004 2010-08-01  Bruno Haible  <bruno@clisp.org>
11005
11006         Integrate the regex documentation.
11007         * doc/gnulib.texi: Define 'cn' index.
11008         (Regular expressions): New a chapter that includes regex.texi and
11009         regexprops-generic.texi.
11010         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
11011         syntax.
11012
11013         Whitespace cleanup.
11014         * doc/regex.texi: Remove trailing spaces.
11015
11016         Add regex documentation.
11017         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
11018         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
11019         Written by Kathy A. Hargreaves and Karl Berry.
11020
11021 2010-08-01  Bruno Haible  <bruno@clisp.org>
11022
11023         link: Update documentation.
11024         * doc/posix-functions/link.texi: Update regarding Solaris.
11025
11026 2010-07-31  Bruno Haible  <bruno@clisp.org>
11027
11028         Update modules list.
11029         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
11030         (String handling <string.h>): Add memcmp2, memxfrm.
11031         (Container data structures): Add xlist, xsublist, xoset.
11032         (Core language properties): Add alignof, unused-parameter.
11033         (Process control, Numeric conversion functions <stdlib.h>): Renamed
11034         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
11035         (Unibyte characters <ctype.h>): New section.
11036         (String handling <string.h>): New section.
11037         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
11038         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
11039         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
11040         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
11041         tan, tanh, tanl, y0, y1, yn.
11042         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
11043         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
11044         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
11045         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
11046         unlockpt, vdprintf, vdprintf-posix.
11047         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
11048         (File system functions): Add concat-filename, sys_file, sys_ioctl,
11049         xconcat-filename.
11050         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
11051         getdtablesize, pipe2, pipe2-safer.
11052         (Security): New section.
11053         (Networking functions): Add accept4.
11054         (Signal handling): Add sigpipe.
11055         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
11056         mbmemcasecoll.
11057         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
11058         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
11059         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
11060         pipe-filter-ii.
11061         (Misc): Add argp-version-etc, login_tty, parse-duration.
11062
11063 2010-07-31  Bruno Haible  <bruno@clisp.org>
11064
11065         Improve doc in MODULES.html.
11066         * modules/linkat (Description): Add the word "function".
11067         * modules/mkfifo (Description): Likewise.
11068         * modules/mknod (Description): Likewise.
11069         * modules/remove (Description): Likewise.
11070         * modules/renameat (Description): Likewise.
11071         * modules/stat (Description): Likewise.
11072         * modules/symlink (Description): Likewise.
11073         * modules/unlink (Description): Likewise.
11074
11075 2010-07-31  Bruno Haible  <bruno@clisp.org>
11076
11077         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
11078         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
11079         option --enable/disable-c++ instead of --enable/disable-cxx.
11080         * NEWS: Mention the change.
11081
11082 2010-07-31  Bruno Haible  <bruno@clisp.org>
11083
11084         readlink, areadlink: Relax test a bit.
11085         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
11086         alternative to ENOTDIR.
11087         * tests/test-areadlink.h (test_areadlink): Likewise.
11088         Reported by Rainer Tammer.
11089
11090 2010-07-31  Bruno Haible  <bruno@clisp.org>
11091
11092         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
11093         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
11094         character, perform the search using U_STRCHR.
11095         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
11096         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
11097         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
11098         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
11099         Suggested by Paolo Bonzini.
11100
11101 2010-07-31  Bruno Haible  <bruno@clisp.org>
11102
11103         unistr/u*-strstr: Fix dependencies.
11104         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
11105         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
11106         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
11107
11108 2010-07-31  Bruno Haible  <bruno@clisp.org>
11109
11110         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
11111         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
11112         the beginning of the loop.
11113         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
11114         cases in 'switch' statement.
11115
11116         unistr/u8-strchr: Fix several bugs.
11117         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
11118         the string. When not found, return NULL, not a pointer near the end.
11119
11120         More tests for unistr/u8-strchr.
11121         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
11122         that the function does not read past the first occurrence of the byte
11123         being searched.
11124         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
11125         * tests/unistr/test-u16-strchr.c (main): New function.
11126         * tests/unistr/test-u32-strchr.c (main): New function.
11127
11128 2010-07-31  Bruno Haible  <bruno@clisp.org>
11129
11130         posix-modules: Ignore backup files of documentation files.
11131         * posix-modules: grep only through files named *.texi.
11132
11133 2010-07-31  Bruno Haible  <bruno@clisp.org>
11134
11135         symlinkat: Fix documentation.
11136         * doc/posix-functions/readlinkat.texi: Fix module name.
11137
11138 2010-07-31  Bruno Haible  <bruno@clisp.org>
11139
11140         fchownat: Replace also when chown has the trailing slash bug.
11141         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
11142         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
11143         introduced on 2010-04-10.
11144         Reported by Rainer Tammer.
11145
11146 2010-07-31  Bruno Haible  <bruno@clisp.org>
11147
11148         linkat: Work around AIX 7.1 bug.
11149         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
11150         whether linkat handles trailing slash correctly. If not, replace linkat
11151         and define LINKAT_TRAILING_SLASH_BUG.
11152         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
11153         check whether (fd1,file1) points to a directory if file1 or file2 ends
11154         in a slash. Code taken from lib/link.c.
11155         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
11156         Reported by Rainer Tammer.
11157
11158 2010-07-31  Bruno Haible  <bruno@clisp.org>
11159
11160         Correctly determine whether pow is available in libc on AIX 7 with xlc.
11161         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
11162         This disables an xlc optimization that was causing wrong test results.
11163         Reported by Rainer Tammer.
11164
11165 2010-07-31  Bruno Haible  <bruno@clisp.org>
11166
11167         iconv: Work around AIX 6.1..7.1 bug.
11168         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
11169         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
11170         cross-compiling, guess no on all versions of AIX.
11171         Reported by Rainer Tammer.
11172
11173 2010-07-31  Bruno Haible  <bruno@clisp.org>
11174
11175         readlink: Relax test a bit.
11176         * tests/test-readlink.h (test_readlink): Allow different errno value
11177         when readlink is called with a file name that ends in / and refers to
11178         a file.
11179         Suggested by Eric Blake.
11180         Reported by Rainer Tammer.
11181
11182 2010-07-31  Bruno Haible  <bruno@clisp.org>
11183
11184         copysign: Does not require -lm on glibc systems.
11185         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
11186         gl_COMMON_DOUBLE_MATHFUNC.
11187         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
11188
11189 2010-07-31  Bruno Haible  <bruno@clisp.org>
11190
11191         duplocale: Work around AIX 7.1 bug.
11192         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
11193         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
11194         * lib/duplocale.c (rpl_duplocale): Update comment.
11195         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
11196         Reported by Rainer Tammer.
11197
11198 2010-07-30  Bruno Haible  <bruno@clisp.org>
11199
11200         dirfd: Avoid link error on AIX 7.1.
11201         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
11202         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
11203         exist, set REPLACE_DIRFD.
11204         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
11205         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
11206         * doc/posix-functions/dirfd.texi: Update.
11207         Reported by Rainer Tammer.
11208
11209 2010-07-30  Eric Blake  <eblake@redhat.com>
11210
11211         strtod: next round of AIX fixes
11212         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
11213         exponent.
11214         * tests/test-strtod.c (main): Enhance tests.
11215         * doc/posix-functions/strtod.texi (strtod): Document next bug.
11216         Reported by Rainer Tammer.
11217
11218         futimens: fix configure check
11219         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
11220         Reported by Bruno Haible.
11221
11222 2010-07-30  Bruno Haible  <bruno@clisp.org>
11223
11224         getline: Update regarding AIX.
11225         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
11226         Reported by Rainer Tammer.
11227
11228 2010-07-30  Bruno Haible  <bruno@clisp.org>
11229
11230         wcwidth: Drop replacement on AIX 7.
11231         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
11232         AIX 7.
11233         Reported by Rainer Tammer.
11234
11235 2010-07-30  Bruno Haible  <bruno@clisp.org>
11236
11237         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
11238         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
11239         a 'char *'.
11240         Reported by Rainer Tammer.
11241
11242 2010-07-30  Bruno Haible  <bruno@clisp.org>
11243
11244         unlink: Update regarding AIX.
11245         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
11246         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
11247         Reported by Rainer Tammer.
11248
11249 2010-07-30  Bruno Haible  <bruno@clisp.org>
11250
11251         symlink: Update regarding AIX.
11252         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
11253         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
11254         Reported by Rainer Tammer.
11255
11256 2010-07-30  Bruno Haible  <bruno@clisp.org>
11257
11258         strndup: Update regarding AIX.
11259         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
11260         AIX 7.
11261         Reported by Rainer Tammer.
11262
11263 2010-07-30  Bruno Haible  <bruno@clisp.org>
11264
11265         stat: Update regarding AIX.
11266         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
11267         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
11268         Reported by Rainer Tammer.
11269
11270 2010-07-30  Bruno Haible  <bruno@clisp.org>
11271
11272         truncl: Fix autoconf test.
11273         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
11274         whether truncl works.
11275         Reported by Rainer Tammer.
11276
11277 2010-07-30  Bruno Haible  <bruno@clisp.org>
11278
11279         round: Update regarding AIX.
11280         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
11281         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
11282         Reported by Rainer Tammer.
11283
11284 2010-07-30  Bruno Haible  <bruno@clisp.org>
11285
11286         rename: Update regarding AIX.
11287         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
11288         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
11289         Reported by Rainer Tammer.
11290
11291 2010-07-30  Bruno Haible  <bruno@clisp.org>
11292
11293         printf.m4: Update regarding AIX.
11294         * m4/printf.m4: Update comments regarding AIX.
11295         Reported by Rainer Tammer.
11296
11297 2010-07-30  Bruno Haible  <bruno@clisp.org>
11298
11299         iconv: Update regarding AIX.
11300         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
11301         AIX 7.
11302         Reported by Rainer Tammer.
11303
11304 2010-07-30  Bruno Haible  <bruno@clisp.org>
11305
11306         getopt: Update regarding AIX.
11307         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
11308         no on AIX.
11309         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
11310         Reported by Rainer Tammer.
11311
11312 2010-07-30  Bruno Haible  <bruno@clisp.org>
11313
11314         ldexpl; Update regarding AIX.
11315         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
11316         on AIX 7.
11317         Reported by Rainer Tammer.
11318
11319 2010-07-30  Bruno Haible  <bruno@clisp.org>
11320
11321         frexpl: Update regarding AIX.
11322         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
11323         on AIX 7.
11324         Reported by Rainer Tammer.
11325
11326 2010-07-30  Bruno Haible  <bruno@clisp.org>
11327
11328         open, fopen: Update regarding AIX.
11329         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
11330         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11331         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
11332         * doc/posix-functions/fopen.texi: Likewise.
11333         Reported by Rainer Tammer.
11334
11335 2010-07-30  Bruno Haible  <bruno@clisp.org>
11336
11337         chown: Update doc regarding AIX.
11338         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
11339         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
11340         Reported by Rainer Tammer.
11341
11342 2010-07-30  Eric Blake  <eblake@redhat.com>
11343
11344         strtod: fix bug in replacement function on AIX
11345         * lib/strtod.c (strtod): Special case broken "0x" parse in
11346         underlying strtod.
11347         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
11348         * doc/posix-functions/strtod.texi (strtod): Likewise.
11349         Reported by Rainer Tammer.
11350
11351 2010-07-30  Bruno Haible  <bruno@clisp.org>
11352
11353         mbrlen: Fix cross-compilation guess for AIX.
11354         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
11355         guess. Leftover from 2008-12-22.
11356
11357 2010-07-30  Bruno Haible  <bruno@clisp.org>
11358
11359         mbrtowc: Fix cross-compilation guess for AIX.
11360         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
11361         guess. Leftover from 2008-12-21.
11362
11363 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
11364
11365         init.sh: work around trap limitation of some shells
11366         * tests/init.sh (setup_): Move exit trap outside of shell function.
11367
11368 2010-07-29  Eric Blake  <eblake@redhat.com>
11369
11370         strtod: aid debugging
11371         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
11372         understanding why strtod is rejected.
11373
11374 2010-07-28  Bruno Haible  <bruno@clisp.org>
11375
11376         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
11377         * lib/unistr/u8-chr.c: Include <string.h>.
11378         * tests/unistr/test-u8-chr.c: Likewise.
11379         * tests/unistr/test-u16-chr.c: Likewise.
11380         * tests/unistr/test-u32-chr.c: Likewise.
11381         * tests/unistr/test-u8-strchr.c: Likewise.
11382         * tests/unistr/test-u16-strchr.c: Likewise.
11383         * tests/unistr/test-u32-strchr.c: Likewise.
11384         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
11385         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
11386         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
11387         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
11388
11389 2010-07-28  Bruno Haible  <bruno@clisp.org>
11390
11391         Use spaces for indentation, not tabs.
11392         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
11393
11394 2010-07-27  Bruno Haible  <bruno@clisp.org>
11395
11396         mbspcasecmp: Fix function specification.
11397         * lib/string.in.h (mbspcasecmp): Fix specification comment.
11398         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
11399         Reported by Eric Blake <eblake@redhat.com>.
11400
11401 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
11402
11403         timespec: use cast and not conditional, as truncation isn't possible
11404         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
11405         instead of a conditional.  Comment about the situation in more detail.
11406         This undoes most of the 2009-10-29 patch.
11407
11408 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
11409
11410         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
11411         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
11412         * lib/unistr/u8-strchr.c: Likewise.
11413         * modules/unistr/u8-chr: Depend on memchr.
11414
11415         unistr/u*-strchr: add tests
11416         * modules/unistr/u8-strchr-tests: New file.
11417         * modules/unistr/u16-strchr-tests: New file.
11418         * modules/unistr/u32-strchr-tests: New file.
11419         * tests/unistr/test-strchr.h: New file.
11420         * tests/unistr/test-u8-strchr.c: New file.
11421         * tests/unistr/test-u16-strchr.c: New file.
11422         * tests/unistr/test-u32-strchr.c: New file.
11423
11424         unistr/u*-chr: test multibyte sequences more
11425         * tests/unistr/test-chr.h: Do complete testing of the characters in the
11426         test vector.
11427         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
11428         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
11429         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
11430
11431         unistr/u*-chr: test multibyte sequences
11432         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
11433
11434         unistr/u*-chr: prepare for multibyte tests
11435         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
11436         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
11437         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
11438         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
11439         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
11440         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
11441
11442 2010-07-18  Bruno Haible  <bruno@clisp.org>
11443
11444         unistr/u8-strchr: Optimize non-ASCII argument case.
11445         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
11446         because the first byte often matches anyway.
11447         Reported by Pádraig Brady <P@draigbrady.com>.
11448
11449 2010-07-15  Karl Berry  <karl@gnu.org>
11450
11451         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
11452
11453 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
11454
11455         getcwd: on Solaris, work better if ancestors are inaccessible
11456         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
11457         buffer and size, try again with a large buffer.  This works better
11458         on Solaris, since its getcwd succeeds even if the path to the root
11459         is inaccessible, and this is helpful in common cases such as .zfs
11460         hidden directories.  Problem reported by J Chapman Flack in
11461         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
11462         Use system getcwd if it's declared, not merely if it's partly
11463         working; use the partly-working test only to avoid needless effort
11464         if the system getcwd fails.
11465         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
11466         comment that was already obsolete and is now even more obsolete.
11467         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
11468         now might call strdup.
11469
11470 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
11471
11472         pthread: Add enough so that coreutils/src/sort.c compiles.
11473         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
11474         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
11475         gnulib. Include <sched.h> and <time.h>, as per POSIX.
11476         Include <sys/types.h>, in case it defines pthread_t.
11477         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
11478         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
11479         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
11480         (pthread_rwlockattr_t, pthread_spinlock_t):
11481         New typedefs, if HAVE_PTHREAD_T is not defined.
11482         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
11483         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
11484         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
11485         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
11486         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
11487         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
11488         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
11489         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
11490         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
11491         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
11492         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
11493         New macros.
11494         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
11495         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
11496         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
11497         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
11498         (pthread_spin_unlock): New dummy functions.
11499         (pthread_create): Return EAGAIN; don't set errno.
11500         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
11501         require AC_C_INLINE.
11502         * modules/pthread (Depends-on): Add sched, time.
11503         (pthread.h): Use AM_V_GEN.
11504
11505 2010-07-13  Bruno Haible  <bruno@clisp.org>
11506
11507         striconveh: Don't malloc memory if the result buffer is sufficient.
11508         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
11509         buffer if its size is sufficient.
11510         Reported by Ludovic Courtès <ludo@gnu.org>.
11511
11512 2010-07-13  Bruno Haible  <bruno@clisp.org>
11513
11514         strtod: Add safety check.
11515         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
11516
11517 2010-07-12  Bruno Haible  <bruno@clisp.org>
11518
11519         Unify tests that set gl_cv_func_ldexpl_no_libm.
11520         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
11521         gl_FUNC_LDEXPL.
11522         (gl_FUNC_LDEXPL): Invoke it.
11523         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11524
11525 2010-07-12  Bruno Haible  <bruno@clisp.org>
11526
11527         Unify tests that set gl_cv_func_ldexp_no_libm.
11528         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
11529         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
11530         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
11531         (configure.ac): Simply invoke gl_FUNC_LDEXP.
11532         * modules/strtod (Files): Add m4/ldexp.m4.
11533
11534 2010-07-12  Bruno Haible  <bruno@clisp.org>
11535
11536         Unify tests that set gl_cv_func_frexpl_no_libm.
11537         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
11538         gl_FUNC_FREXPL_NO_LIBM.
11539         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
11540         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11541
11542 2010-07-12  Bruno Haible  <bruno@clisp.org>
11543
11544         Unify tests that set gl_cv_func_frexp_no_libm.
11545         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
11546         gl_FUNC_FREXP_NO_LIBM.
11547         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
11548         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11549
11550 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11551
11552         memcoll: clarify sizes versus lengths, document better, and tweak perf
11553         * lib/memcoll.c (strcoll_loop, memcoll0):
11554         Improve quality of descriptive comments.  Name variables
11555         consistently as to whether they are lengths (which do not include
11556         terminating null) versus sizes (which do).
11557         * lib/xmemcoll.c (xmemcoll0): Likewise.
11558         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
11559         returned when s1size == 0; this is easier to compile and saves
11560         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
11561
11562 2010-07-12  Bruno Haible  <bruno@clisp.org>
11563
11564         Tests for module '_Exit'.
11565         * modules/_Exit-tests: New file.
11566         * tests/test-_Exit.sh: New file.
11567         * tests/test-_Exit.c: New file.
11568
11569         New module '_Exit'.
11570         * lib/stdlib.in.h (__attribute__): New macro.
11571         (_Exit): New declaration.
11572         * lib/_Exit.c: New file.
11573         * m4/_Exit.m4: New file.
11574         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
11575         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
11576         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
11577         * modules/_Exit: New file.
11578         * tests/test-stdlib-c++.cc (_Exit): Check signature.
11579         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
11580
11581 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11582
11583         strtod: make it more-accurate typically, and don't require libm
11584         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
11585         Include limits.h.  Don't include string.h.
11586         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
11587         (locale_isspace): New function, so that no casts are needed to
11588         check whether *s is a space.
11589         (ldexp): Provide an unused dummy if not available.
11590         (scale_radix_exp, parse_number, underlying_strtod): New functions.
11591         (strtod): Use them.  This implementation prefers to use the
11592         underlying strtod if available, falling back on our own code
11593         only to fix known bugs.  This is more likely to produce an
11594         accurate result.  Also, it avoids the use of libm functions.
11595         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
11596         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
11597         was absent, but it caused a test failure with coreutils.
11598         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
11599         with libm.
11600         * modules/strtod (Makefile.am, Link): libm is no longer needed.
11601         * modules/strtod-tests (Makefile.am): Likewise.
11602
11603 2010-07-11  Pádraig Brady  <P@draigBrady.com>
11604             Bruno Haible  <bruno@clisp.org>
11605
11606         unistr/u8-strchr: Optimize ASCII argument case.
11607         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
11608
11609 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11610
11611         (x)memcoll: minor tweaks
11612         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
11613         is after the type that it qualifies.
11614         (memcoll0): Likewise.
11615         * lib/memcoll.h (memcoll0): Likewise.
11616         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
11617         * lib/xmemcoll.h (xmemcoll0): Likewise.
11618         * lib/memcoll.c (memcoll0): Correct the comment.  This function
11619         differs from memcoll in that the NUL byte is part of the argument.
11620         Omit the abort-checks, as performance is a real issue here.  Plus,
11621         the checks were wrong anyway (an off-by-one error).  Omit local
11622         variable 'diff', as it's a bit clearer that way.
11623         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
11624         no longer needed.
11625
11626 2010-07-08  Chen Guo <chenguo4@yahoo.com>
11627
11628         (x)memcoll: speedup when input is known to be NUL delimited
11629         * lib/memcoll.c: Include stdlib.
11630         (memcoll0): New function.
11631         (strcoll_loop): New function, refactored for use in both memcoll
11632         and memcoll0.
11633         * lib/memcoll.h (memcoll0): Add prototype.
11634         * lib/xmemcoll.c (xmemcoll0): New function.
11635         (collate_error): New function, refactored for use in both xmemcoll
11636         and xmemcoll0.
11637         * lib/xmemcoll.h (xmemcoll0): Add prototype.
11638         * m4/memcoll.m4: add inline invocation.
11639
11640 2010-07-06  Pádraig Brady  <P@draigBrady.com>
11641
11642         * build-aux/bootstrap: Remove any local translations
11643         from the translation project synchronization directory,
11644         so that local only translations are not distributed.
11645
11646 2010-07-04  Bruno Haible  <bruno@clisp.org>
11647
11648         fsusage: Clarify which code applies to which platforms.
11649         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
11650         platform.
11651         * lib/fsusage.c (get_fs_usage): Likewise.
11652
11653 2010-07-04  Bruno Haible  <bruno@clisp.org>
11654
11655         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
11656         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
11657         Reported by Martin Lambers <marlam@marlam.de>.
11658
11659 2010-07-04  Jim Meyering  <meyering@redhat.com>
11660
11661         hash: once again explicitly disallow insertion of NULL
11662         * lib/hash.c (hash_insert0): Reinstate just-removed test:
11663         inserting a NULL pointer cannot work with these functions.
11664         Add a comment with details.
11665         This reverts part of the 2010-07-01 commit, 5bef1a35
11666         "hash: extend module to deal with non-pointer keys".
11667
11668 2010-07-01  Bruno Haible  <bruno@clisp.org>
11669
11670         stdbool: Update doc.
11671         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
11672         Info from Christian Weisgerber <naddy@mips.inka.de>.
11673
11674 2010-07-01  Jim Meyering  <meyering@redhat.com>
11675
11676         hash: extend module to deal with non-pointer keys
11677         * lib/hash.c (hash_insert0): New interface, much like hash_insert
11678         but that allows insertion of non-pointer entries.
11679         Do not disallow an ENTRY value of NULL.
11680         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
11681         * lib/hash.h (hash_insert0): Declare.
11682
11683 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11684
11685         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
11686         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
11687         not present (i.e. with autoconf 2.59 and when using gettextize, not
11688         gnulib), require AC_GNU_SOURCE instead.
11689
11690 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
11691
11692         idpriv-drop: Fix tests.
11693         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
11694         not to the test-idpriv-droptemp program.
11695
11696 2010-06-29  Bruno Haible  <bruno@clisp.org>
11697
11698         string: Fix syntax error with g++ 2.96.
11699         * lib/string.in.h (__pure__): Remove definition.
11700         (_GL_ATTRIBUTE_PURE): New macro.
11701         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
11702         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
11703         Reported by Christian Weisgerber <naddy@mips.inka.de>.
11704
11705 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
11706
11707         unitypes: Fix bug introduced on 2010-05-18.
11708         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
11709
11710 2010-06-22  Eric Blake  <eblake@redhat.com>
11711
11712         memmem: slight optimization
11713         * lib/str-two-way.h (critical_factorization): Update comments.
11714         Reduce work during factorization phase.
11715         Reported by Carlos Bueno <carlos@bueno.org>.
11716
11717 2010-06-21  Bruno Haible  <bruno@clisp.org>
11718
11719         Fix HAVE_CALLOC_POSIX misnomer.
11720         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
11721         !HAVE_CALLOC_POSIX.
11722         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
11723         HAVE_CALLOC_POSIX.
11724         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
11725         instead of HAVE_CALLOC_POSIX.
11726         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
11727         HAVE_CALLOC_POSIX.
11728
11729         Use modern idiom for calloc() replacement.
11730         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
11731         AC_FUNC_CALLOC.
11732         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
11733         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
11734         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11735         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
11736         (gl_REPLACE_CALLOC): New macro.
11737
11738 2010-06-21  Bruno Haible  <bruno@clisp.org>
11739
11740         Fix HAVE_REALLOC_POSIX misnomer.
11741         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
11742         !HAVE_REALLOC_POSIX.
11743         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
11744         HAVE_REALLOC_POSIX.
11745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
11746         instead of HAVE_REALLOC_POSIX.
11747         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
11748         HAVE_REALLOC_POSIX.
11749
11750         Use modern idiom for realloc() replacement.
11751         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
11752         AC_FUNC_REALLOC.
11753         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
11754         Autoconf's AC_FUNC_REALLOC.
11755         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11756         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
11757         (gl_REPLACE_REALLOC): New macro.
11758         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11759
11760 2010-06-21  Bruno Haible  <bruno@clisp.org>
11761
11762         Fix HAVE_MALLOC_POSIX misnomer.
11763         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
11764         !HAVE_MALLOC_POSIX.
11765         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
11766         HAVE_MALLOC_POSIX.
11767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
11768         instead of HAVE_MALLOC_POSIX.
11769         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
11770         HAVE_MALLOC_POSIX.
11771
11772         Use modern idiom for malloc() replacement.
11773         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
11774         AC_FUNC_MALLOC.
11775         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
11776         Autoconf's AC_FUNC_MALLOC.
11777         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11778         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
11779         (gl_REPLACE_MALLOC): New macro.
11780         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11781
11782 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
11783
11784         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
11785         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
11786         This macro takes 3 arguments, not 4.
11787
11788 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
11789
11790         ipv6: fix detection under mingw
11791         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
11792         in6_addr.
11793
11794 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
11795
11796         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
11797         that strtod() works when cross-compiling to a glibc version known
11798         to work.
11799
11800 2010-06-15  Bruno Haible  <bruno@clisp.org>
11801
11802         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
11803
11804 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
11805
11806         select: Correct timeout.
11807         * lib/select.c (rpl_select): Compute wait_timeout correctly.
11808
11809 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11810
11811         git-version-gen: init shell var to avoid env var influence
11812         * build-aux/git-version-gen (v): Init shell var to empty.
11813
11814 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
11815
11816         priv-set: Don't assume that priv.h exists merely because getppriv does.
11817         See Jan Andersen's bug report about AIX 5L in
11818         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
11819         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
11820         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
11821         * lib/priv-set.h: Likewise.
11822         * tests/test-priv-set.c: Likewise.
11823
11824 2010-06-13  Bruno Haible  <bruno@clisp.org>
11825
11826         relocatable: Make it easier to test whether to install wrappers.
11827         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
11828         RELOCATABLE_VIA_WRAPPER.
11829
11830 2010-06-13  Bruno Haible  <bruno@clisp.org>
11831
11832         gnulib-tool: Display specified modules and dependencies differently.
11833         * gnulib-tool (func_show_module_list): New function.
11834         (func_import, func_create_testdir): Invoke it.
11835         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11836
11837 2010-06-13  Bruno Haible  <bruno@clisp.org>
11838
11839         gnulib-tool: Align code of func_import and func_create_testdir.
11840         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
11841         specified_modules.
11842
11843 2010-06-12  Jim Meyering  <meyering@redhat.com>
11844
11845         test-inttostr: avoid spurious failure on Solaris 9
11846         * tests/test-inttostr.c (main): Skip the test when snprintf fails
11847         to accept "%ju".  Reported by Bruno Haible.
11848
11849 2010-06-11  Jim Meyering  <meyering@redhat.com>
11850
11851         test-sys_socket: mark variables as used more readably
11852         * tests/test-sys_socket.c (main): Mark otherwise unused variables
11853         as "used" explicitly via (void) statement casts.  This is more
11854         readable than using them in an artificial return expression.
11855         Suggestion from Bruno Haible.
11856
11857 2010-06-11  Bruno Haible  <bruno@clisp.org>
11858
11859         Avoid some more warnings from "gcc -Wwrite-strings".
11860         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
11861         to 'const char *'.
11862         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
11863         * tests/test-c-strcasestr.c (main): Likewise.
11864         * tests/test-mbscasestr1.c (main): Likewise.
11865         * tests/test-mbscasestr2.c (main): Likewise.
11866         * tests/test-memmem.c (main): Likewise.
11867         * tests/test-strstr.c (main): Likewise.
11868         * tests/test-strcasestr.c (main): Likewise.
11869
11870 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11871
11872         init.sh: change framework_failure_ to fail with status 99, not 1
11873         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
11874         automake's parallel-tests rule that this is an unexpected failure,
11875         even if the test is listed in XFAIL_TESTS.
11876
11877 2010-06-11  Jim Meyering  <meyering@redhat.com>
11878
11879         test-inttostr: avoid warnings about 4-6KB literal strings
11880         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
11881         Include "macros.h", for its definition of ASSERT.
11882         (CK): s/assert/ASSERT/
11883         * modules/inttostr-tests (Files): Add macros.h.
11884
11885         init.sh: don't use $ME_ or skip_ before they are defined
11886         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
11887         their first uses.  Also hoist their companions: warn_, fail_,
11888         framework_failure_, $stderr_fileno.  Prompted by a patch from
11889         Stefano Lattarini.
11890
11891         test-sys_socket: avoid set-but-not-used warnings from gcc
11892         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
11893         avoid warning about set-but-not-used variables.
11894
11895         test-xvasprintf: avoid 'const' discard warnings
11896         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
11897         "const" when assigning from literal strings.
11898         (test_xasprintf): Add "void" in function argument list to placate
11899         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
11900
11901         tests: avoid compilation warnings in argmatch and exclude tests...
11902         in packages that define ARGMATCH_DIE_DECL, like coreutils.
11903         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
11904         Since it always exits, declare with the "noreturn" attribute.
11905         * tests/test-argmatch.c: Likewise.
11906
11907         tests: avoid 'const' discard warnings in mbsstr tests
11908         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
11909         * tests/test-mbsstr2.c (main): Likewise.
11910
11911         test-verify: avoid warning from gcc's -Wmissing-declarations
11912         * tests/test-verify.c (function): Declare to be static.
11913
11914         test-inttostr.c: include <string.h> for use of strcmp
11915         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
11916
11917         test-linkat: avoid failed assertion on "other" architectures
11918         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
11919         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
11920         sparc: https://bugs.launchpad.net/bugs/591968
11921
11922 2010-06-11  Jim Meyering  <meyering@redhat.com>
11923
11924         printf.m4: avoid autoconf's "Expanded Before Required" warning
11925         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
11926         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
11927         autoconf warning.
11928
11929 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
11930
11931         Replacement header templates are now named with ".in", not "_".
11932         * doc/gnulib-intro.texi: Correct.
11933
11934 2010-06-10  Jim Meyering  <meyering@redhat.com>
11935
11936         inttostr-tests: depend on snprintf, not snprintf-posix
11937         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
11938         snprintf-posix, to avoid this aclocal failure:
11939           missing file gnulib-tests/vasnprintf.c
11940           configure.ac:45: error: expected source file, required through \
11941           AC_LIBSOURCES, not found
11942
11943 2010-06-10  Jim Meyering  <meyering@redhat.com>
11944
11945         inttostr: add a new function, inttostr, and tests
11946         The namesake function was not available.  The existence of the
11947         template file, inttostr.c makes its addition nontrivial.
11948         * lib/anytostr.c: Rename from inttostr.c.
11949         (anytostr): Rename from inttostr.
11950         * lib/inttostr.c: New file.
11951         * modules/inttostr (Files): Add anytostr.c.
11952         (Makefile.am): Set lib_SOURCES instead of ...
11953         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
11954         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
11955         * lib/offtostr.c: Likewise.
11956         * lib/uinttostr.c: Likewise.
11957         * lib/umaxtostr.c: Likewise.
11958         * modules/inttostr-tests: New file.
11959         * tests/test-inttostr.c: New file.  Test these functions.
11960
11961 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
11962             Bruno Haible  <bruno@clisp.org>
11963
11964         Add "Extending Gnulib" chapter to manual.
11965         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
11966         chapter.
11967         (Extending Gnulib): New chapter.
11968         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
11969         chapter.
11970
11971 2010-06-09  Bruno Haible  <bruno@clisp.org>
11972
11973         Avoid relocwrapper link errors due to gnulib replacement functions.
11974         * lib/areadlink.c: Use the system's malloc, realloc functions.
11975         (areadlink): Set errno to ENOMEM explicitly.
11976         * modules/areadlink (Depends-on): Remove malloc-posix.
11977         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11978
11979 2010-06-09  Bruno Haible  <bruno@clisp.org>
11980
11981         Avoid relocwrapper link errors due to gnulib replacement functions.
11982         * lib/canonicalize-lgpl.c: Use the system's malloc function.
11983         * lib/malloca.c: Likewise.
11984         * lib/relocatable.c: Likewise.
11985         * lib/progreloc.c: Use the system's malloc, sprintf functions.
11986         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
11987         * lib/setenv.c: Use the system's malloc, realloc functions.
11988         * lib/strerror.c: Use the system's sprintf function.
11989         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11990
11991 2010-06-04  Bruno Haible  <bruno@clisp.org>
11992
11993         Prefer documented low-level autoconf macro names.
11994         * m4/lib-link.m4: Use m4_translit instead of translit.
11995         * m4/environ.m4: Likewise.
11996         * m4/mathfunc.m4: Likewise.
11997         * m4/onceonly.m4: Likewise.
11998         * m4/stdint.m4: Likewise.
11999         Suggested by Eric Blake.
12000
12001 2010-06-04  Martin Lambers  <marlam@marlam.de>
12002             Bruno Haible  <bruno@clisp.org>
12003
12004         havelib: Allow library names with '+' characters.
12005         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12006         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
12007
12008 2010-06-09  Bruno Haible  <bruno@clisp.org>
12009
12010         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
12011         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
12012         realloc failed.
12013
12014 2010-06-08  Peter Simons  <simons@cryp.to>
12015
12016         maint.mk: make the news-check rule more configurable
12017         * top/maint.mk (news-check-lines-spec): New variable.
12018         (news-check): Use "sed -n 1,10p" in place of "head".
12019
12020 2010-06-07  Jim Meyering  <meyering@redhat.com>
12021
12022         do-release-commit-and-tag: fix typo in --help
12023         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
12024
12025         regex: avoid new dead-code warning with gcc-4.6.0
12026         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
12027         if-block containing a while-loop.  It's been unused for at least
12028         5 years.
12029
12030 2010-06-05  Bruno Haible  <bruno@clisp.org>
12031
12032         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
12033         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
12034
12035 2010-06-04  Bruno Haible  <bruno@clisp.org>
12036
12037         Update to GNU gettext 0.18.1.
12038         * modules/gettext (configure.ac): Require gettext infrastructure from
12039         version 0.18.1.
12040
12041 2010-06-03  Bruno Haible  <bruno@clisp.org>
12042
12043         Don't use AC_LIBOBJ with file names in subdirectories.
12044         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
12045         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
12046         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
12047         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
12048         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
12049         gl_LIBUNISTRING_LIBSOURCE.
12050         (Makefile.am): Augment lib_SOURCES here, conditionally.
12051         * NEWS: Drop requirement for Automake option 'subdir-objects'.
12052
12053 2010-06-03  Bruno Haible  <bruno@clisp.org>
12054
12055         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
12056         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
12057         expansion does not end with a newline.
12058         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
12059         unnecessary newline.
12060
12061 2010-06-03  Bruno Haible  <bruno@clisp.org>
12062
12063         Reduce dependencies.
12064         * tests/test-quotearg.h: New file, extracted from
12065         tests/test-quotearg.c.
12066         * tests/test-quotearg-simple.c: New file, extracted from
12067         tests/test-quotearg.c.
12068         * tests/test-quotearg.c: Don't include <ctype.h>.
12069         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
12070         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
12071         use_quote_double_quotes, use_quotearg_colon): Moved to
12072         tests/test-quotearg.h.
12073         (results_g, flag_results, custom_quotes, custom_results): Moved
12074         to tests/test-quotearg-simple.c.
12075         (main): Moved the part that does not depend on gettext to
12076         tests/test-quotearg-simple.c. Return 77 if the test cannot be
12077         performed.
12078         * modules/quotearg-simple: New file.
12079         * modules/quotearg-simple-tests: New file.
12080         * modules/quotearg (Depends-on): Add quotearg-simple.
12081         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
12082         (Files): Add tests/test-quotearg.h.
12083         Reported by Paolo Bonzini.
12084
12085 2010-06-03  Bruno Haible  <bruno@clisp.org>
12086
12087         Reduce dependencies.
12088         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
12089
12090 2010-06-03  Bruno Haible  <bruno@clisp.org>
12091
12092         time: Undefine more broken macros.
12093         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
12094         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
12095         Reported by Eric Blake.
12096
12097 2010-06-03  Bruno Haible  <bruno@clisp.org>
12098
12099         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
12100         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
12101         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
12102         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
12103         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
12104         Reported by Ludovic Courtès <ludo@gnu.org>.
12105
12106 2010-06-02  Eric Blake  <eblake@redhat.com>
12107
12108         time: work with mingw + pthreads-win32 library
12109         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
12110         if timespec is defined only in pthread.h.
12111         * modules/time (Makefile.am): Substitute it.
12112         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
12113         <pthread.h>, when needed.
12114         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
12115         from the library.
12116
12117 2010-05-31  Bruno Haible  <bruno@clisp.org>
12118
12119         Avoid expanding two macros in the wrong order.
12120         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
12121         gl_LIBUNISTRING if it is defined.
12122         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
12123         autoconf >= 2.64.
12124         Reported by Ludovic Courtès <ludo@gnu.org>.
12125
12126 2010-05-27  Jim Meyering  <meyering@redhat.com>
12127
12128         maint.mk: also prohibit "#undef" of always-defined symbols
12129         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
12130         Allow more than one space before the symbol name.
12131         (sc_prohibit_always-defined_macros): Use grep's -E, now that
12132         the regexp uses alternation.
12133
12134 2010-05-26  Eric Blake  <eblake@redhat.com>
12135
12136         maint.mk: avoid echo -e
12137         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
12138         Convert all uses of echo -* to printf.
12139         Reported by Matthias Bolte.
12140
12141 2010-05-25  Bruno Haible  <bruno@clisp.org>
12142
12143         Update to GNU gettext 0.18, part 2.
12144         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
12145         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
12146
12147 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12148
12149         Add missing include in test-pwrite.c.
12150         * tests/test-pwrite.c: Include string.h, for strcmp.
12151
12152 2010-05-24  Bruno Haible  <bruno@clisp.org>
12153
12154         * NEWS: Mention requirement for Automake option 'subdir-objects'.
12155
12156 2010-05-24  Bruno Haible  <bruno@clisp.org>
12157
12158         Don't use conversion with transliteration in u{8,16,32}_strcoll.
12159         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
12160         iconveh_error argument.
12161         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
12162         U_STRCONV_TO_LOCALE.
12163         * lib/unistr/u16-strcoll.c: Likewise.
12164         * lib/unistr/u32-strcoll.c: Likewise.
12165         * modules/unistr/u8-strcoll (Depends-on): Add
12166         uniconv/u8-strconv-to-enc, localcharset. Remove
12167         uniconv/u8-strconv-to-locale.
12168         (configure.ac): Bump version number.
12169         * modules/unistr/u16-strcoll (Depends-on): Add
12170         uniconv/u16-strconv-to-enc, localcharset. Remove
12171         uniconv/u16-strconv-to-locale.
12172         (configure.ac): Bump version number.
12173         * modules/unistr/u32-strcoll (Depends-on): Add
12174         uniconv/u32-strconv-to-enc, localcharset. Remove
12175         uniconv/u32-strconv-to-locale.
12176         (configure.ac): Bump version number.
12177
12178 2010-05-24  Bruno Haible  <bruno@clisp.org>
12179
12180         Avoid a test failure on NetBSD 5.0.
12181         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
12182         an iconv() bug.
12183
12184 2010-05-24  Bruno Haible  <bruno@clisp.org>
12185
12186         Adjust #include directive style.
12187         * modules/regex (Includes): Recommend to write <regex.h>.
12188
12189 2010-05-24  Bruno Haible  <bruno@clisp.org>
12190
12191         regex: Don't require alloca.
12192         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
12193         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
12194         only inside if (0).
12195
12196 2010-05-23  Jim Meyering  <meyering@redhat.com>
12197
12198         test-renameat.c: include <sys/stat.h>
12199         * tests/test-renameat.c: Include <sys/stat.h>; required for
12200         definition of S_IS* macros.
12201
12202 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
12203
12204         Update maintainer documentation for 'relocatable-prog' module.
12205         * doc/relocatable-maint.texi: Update.
12206         Comments by Bruno Haible.
12207
12208 2010-05-23  Bruno Haible  <bruno@clisp.org>
12209
12210         git-merge-changelog: Enable --split-merged-entry by default.
12211         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
12212         (usage): Don't mention this option any more.
12213         Reported by Ralf Wildenhues.
12214
12215 2010-05-23  Jim Meyering  <meyering@redhat.com>
12216
12217         test-pwrite: do not leave behind a test file named "out"
12218         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
12219         The trivial-looking use of init.sh is really necessary.
12220         It ensures that the temporary file, "out", is created in
12221         a temporary directory, and removed upon termination.
12222         * tests/test-pwrite.sh: Re-add file.
12223         * modules/pwrite-tests: Reference it.
12224
12225 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12226
12227         Fix output redirection buglet in init.sh.
12228         * tests/init.sh: Fix redirection of stderr.
12229
12230 2010-05-20  Simon Josefsson  <simon@josefsson.org>
12231
12232         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
12233
12234 2010-05-17  Simon Josefsson  <simon@josefsson.org>
12235
12236         * modules/valgrind-tests: New file.
12237         * m4/valgrind-tests.m4: New file.
12238         * doc/valgrind-tests.texi: New file.
12239         * doc/gnulib.texi (Running self-tests under valgrind): New
12240         section.
12241
12242 2010-05-19  Bruno Haible  <bruno@clisp.org>
12243
12244         Clean up dead code in recent commit.
12245         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
12246         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
12247         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
12248         Suggested by Paolo Bonzini.
12249
12250 2010-05-19  Bruno Haible  <bruno@clisp.org>
12251
12252         Avoid valgrind error reports from libunistring.
12253         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
12254         * modules/libunistring (Files): Add it.
12255         * modules/libunistring-optional (Files): Likewise.
12256
12257 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
12258             Bruno Haible  <bruno@clisp.org>
12259
12260         New module 'libunistring-optional'.
12261         * modules/libunistring-optional: New file.
12262         * m4/libunistring-base.m4: New file.
12263         * m4/libunistring-optional.m4: New file.
12264         * lib/unicase.in.h: Renamed from lib/unicase.h.
12265         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
12266         * lib/unictype.in.h: Renamed from lib/unictype.h.
12267         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
12268         * lib/uniname.in.h: Renamed from lib/uniname.h.
12269         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
12270         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
12271         * lib/unistr.in.h: Renamed from lib/unistr.h.
12272         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
12273         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
12274         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
12275         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
12276         gl_LIBUNISTRING. If the library was found, determine the installed
12277         version and set LIBUNISTRING_VERSION.
12278         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
12279         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
12280         handle a configuration option --with-included-libunistring.
12281         * modules/libunistring (Files): Add m4/absolute-header.m4.
12282         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
12283         Add m4/libunistring-base.m4.
12284         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12285         (Makefile.am): Build unicase.h from unicase.in.h.
12286         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
12287         Add m4/libunistring-base.m4.
12288         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12289         (Makefile.am): Build uniconv.h from uniconv.in.h.
12290         * modules/unictype/base (Files): Use unictype.in.h instead of
12291         unictype.h. Add m4/libunistring-base.m4.
12292         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12293         (Makefile.am): Build unictype.h from unictype.in.h.
12294         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
12295         Add m4/libunistring-base.m4.
12296         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12297         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
12298         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
12299         Add m4/libunistring-base.m4.
12300         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12301         (Makefile.am): Build uniname.h from uniname.in.h.
12302         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
12303         Add m4/libunistring-base.m4.
12304         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12305         (Makefile.am): Build uninorm.h from uninorm.in.h.
12306         * modules/unistdio/base (Files): Use unistdio.in.h instead of
12307         unistdio.h. Add m4/libunistring-base.m4.
12308         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12309         (Makefile.am): Build unistdio.h from unistdio.in.h.
12310         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
12311         Add m4/libunistring-base.m4.
12312         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12313         (Makefile.am): Build unistr.h from unistr.in.h.
12314         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
12315         Add m4/libunistring-base.m4.
12316         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12317         (Makefile.am): Build unitypes.h from unitypes.in.h.
12318         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
12319         Add m4/libunistring-base.m4.
12320         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12321         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
12322         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
12323         uniwidth.h. Add m4/libunistring-base.m4.
12324         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12325         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
12326         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
12327         instead of augmenting lib_SOURCES.
12328         * modules/unicase/empty-suffix-context: Likewise.
12329         * modules/unicase/locale-language: Likewise.
12330         * modules/unicase/tolower: Likewise.
12331         * modules/unicase/totitle: Likewise.
12332         * modules/unicase/toupper: Likewise.
12333         * modules/unicase/u8-casecmp: Likewise.
12334         * modules/unicase/u8-casecoll: Likewise.
12335         * modules/unicase/u8-casefold: Likewise.
12336         * modules/unicase/u8-casexfrm: Likewise.
12337         * modules/unicase/u8-ct-casefold: Likewise.
12338         * modules/unicase/u8-ct-tolower: Likewise.
12339         * modules/unicase/u8-ct-totitle: Likewise.
12340         * modules/unicase/u8-ct-toupper: Likewise.
12341         * modules/unicase/u8-is-cased: Likewise.
12342         * modules/unicase/u8-is-casefolded: Likewise.
12343         * modules/unicase/u8-is-lowercase: Likewise.
12344         * modules/unicase/u8-is-titlecase: Likewise.
12345         * modules/unicase/u8-is-uppercase: Likewise.
12346         * modules/unicase/u8-prefix-context: Likewise.
12347         * modules/unicase/u8-suffix-context: Likewise.
12348         * modules/unicase/u8-tolower: Likewise.
12349         * modules/unicase/u8-totitle: Likewise.
12350         * modules/unicase/u8-toupper: Likewise.
12351         * modules/unicase/u16-casecmp: Likewise.
12352         * modules/unicase/u16-casecoll: Likewise.
12353         * modules/unicase/u16-casefold: Likewise.
12354         * modules/unicase/u16-casexfrm: Likewise.
12355         * modules/unicase/u16-ct-casefold: Likewise.
12356         * modules/unicase/u16-ct-tolower: Likewise.
12357         * modules/unicase/u16-ct-totitle: Likewise.
12358         * modules/unicase/u16-ct-toupper: Likewise.
12359         * modules/unicase/u16-is-cased: Likewise.
12360         * modules/unicase/u16-is-casefolded: Likewise.
12361         * modules/unicase/u16-is-lowercase: Likewise.
12362         * modules/unicase/u16-is-titlecase: Likewise.
12363         * modules/unicase/u16-is-uppercase: Likewise.
12364         * modules/unicase/u16-prefix-context: Likewise.
12365         * modules/unicase/u16-suffix-context: Likewise.
12366         * modules/unicase/u16-tolower: Likewise.
12367         * modules/unicase/u16-totitle: Likewise.
12368         * modules/unicase/u16-toupper: Likewise.
12369         * modules/unicase/u32-casecmp: Likewise.
12370         * modules/unicase/u32-casecoll: Likewise.
12371         * modules/unicase/u32-casefold: Likewise.
12372         * modules/unicase/u32-casexfrm: Likewise.
12373         * modules/unicase/u32-ct-casefold: Likewise.
12374         * modules/unicase/u32-ct-tolower: Likewise.
12375         * modules/unicase/u32-ct-totitle: Likewise.
12376         * modules/unicase/u32-ct-toupper: Likewise.
12377         * modules/unicase/u32-is-cased: Likewise.
12378         * modules/unicase/u32-is-casefolded: Likewise.
12379         * modules/unicase/u32-is-lowercase: Likewise.
12380         * modules/unicase/u32-is-titlecase: Likewise.
12381         * modules/unicase/u32-is-uppercase: Likewise.
12382         * modules/unicase/u32-prefix-context: Likewise.
12383         * modules/unicase/u32-suffix-context: Likewise.
12384         * modules/unicase/u32-tolower: Likewise.
12385         * modules/unicase/u32-totitle: Likewise.
12386         * modules/unicase/u32-toupper: Likewise.
12387         * modules/unicase/ulc-casecmp: Likewise.
12388         * modules/unicase/ulc-casecoll: Likewise.
12389         * modules/unicase/ulc-casexfrm: Likewise.
12390         * modules/uniconv/u8-conv-from-enc: Likewise.
12391         * modules/uniconv/u8-conv-to-enc: Likewise.
12392         * modules/uniconv/u8-strconv-from-enc: Likewise.
12393         * modules/uniconv/u8-strconv-from-locale: Likewise.
12394         * modules/uniconv/u8-strconv-to-enc: Likewise.
12395         * modules/uniconv/u8-strconv-to-locale: Likewise.
12396         * modules/uniconv/u16-conv-from-enc: Likewise.
12397         * modules/uniconv/u16-conv-to-enc: Likewise.
12398         * modules/uniconv/u16-strconv-from-enc: Likewise.
12399         * modules/uniconv/u16-strconv-from-locale: Likewise.
12400         * modules/uniconv/u16-strconv-to-enc: Likewise.
12401         * modules/uniconv/u16-strconv-to-locale: Likewise.
12402         * modules/uniconv/u32-conv-from-enc: Likewise.
12403         * modules/uniconv/u32-conv-to-enc: Likewise.
12404         * modules/uniconv/u32-strconv-from-enc: Likewise.
12405         * modules/uniconv/u32-strconv-from-locale: Likewise.
12406         * modules/uniconv/u32-strconv-to-enc: Likewise.
12407         * modules/uniconv/u32-strconv-to-locale: Likewise.
12408         * modules/unictype/bidicategory-byname: Likewise.
12409         * modules/unictype/bidicategory-name: Likewise.
12410         * modules/unictype/bidicategory-of: Likewise.
12411         * modules/unictype/bidicategory-test: Likewise.
12412         * modules/unictype/block-list: Likewise.
12413         * modules/unictype/block-test: Likewise.
12414         * modules/unictype/category-C: Likewise.
12415         * modules/unictype/category-Cc: Likewise.
12416         * modules/unictype/category-Cf: Likewise.
12417         * modules/unictype/category-Cn: Likewise.
12418         * modules/unictype/category-Co: Likewise.
12419         * modules/unictype/category-Cs: Likewise.
12420         * modules/unictype/category-L: Likewise.
12421         * modules/unictype/category-Ll: Likewise.
12422         * modules/unictype/category-Lm: Likewise.
12423         * modules/unictype/category-Lo: Likewise.
12424         * modules/unictype/category-Lt: Likewise.
12425         * modules/unictype/category-Lu: Likewise.
12426         * modules/unictype/category-M: Likewise.
12427         * modules/unictype/category-Mc: Likewise.
12428         * modules/unictype/category-Me: Likewise.
12429         * modules/unictype/category-Mn: Likewise.
12430         * modules/unictype/category-N: Likewise.
12431         * modules/unictype/category-Nd: Likewise.
12432         * modules/unictype/category-Nl: Likewise.
12433         * modules/unictype/category-No: Likewise.
12434         * modules/unictype/category-P: Likewise.
12435         * modules/unictype/category-Pc: Likewise.
12436         * modules/unictype/category-Pd: Likewise.
12437         * modules/unictype/category-Pe: Likewise.
12438         * modules/unictype/category-Pf: Likewise.
12439         * modules/unictype/category-Pi: Likewise.
12440         * modules/unictype/category-Po: Likewise.
12441         * modules/unictype/category-Ps: Likewise.
12442         * modules/unictype/category-S: Likewise.
12443         * modules/unictype/category-Sc: Likewise.
12444         * modules/unictype/category-Sk: Likewise.
12445         * modules/unictype/category-Sm: Likewise.
12446         * modules/unictype/category-So: Likewise.
12447         * modules/unictype/category-Z: Likewise.
12448         * modules/unictype/category-Zl: Likewise.
12449         * modules/unictype/category-Zp: Likewise.
12450         * modules/unictype/category-Zs: Likewise.
12451         * modules/unictype/category-and: Likewise.
12452         * modules/unictype/category-and-not: Likewise.
12453         * modules/unictype/category-byname: Likewise.
12454         * modules/unictype/category-name: Likewise.
12455         * modules/unictype/category-none: Likewise.
12456         * modules/unictype/category-of: Likewise.
12457         * modules/unictype/category-or: Likewise.
12458         * modules/unictype/category-test: Likewise.
12459         * modules/unictype/combining-class: Likewise.
12460         * modules/unictype/ctype-alnum: Likewise.
12461         * modules/unictype/ctype-alpha: Likewise.
12462         * modules/unictype/ctype-blank: Likewise.
12463         * modules/unictype/ctype-cntrl: Likewise.
12464         * modules/unictype/ctype-digit: Likewise.
12465         * modules/unictype/ctype-graph: Likewise.
12466         * modules/unictype/ctype-lower: Likewise.
12467         * modules/unictype/ctype-print: Likewise.
12468         * modules/unictype/ctype-punct: Likewise.
12469         * modules/unictype/ctype-space: Likewise.
12470         * modules/unictype/ctype-upper: Likewise.
12471         * modules/unictype/ctype-xdigit: Likewise.
12472         * modules/unictype/decimal-digit: Likewise.
12473         * modules/unictype/digit: Likewise.
12474         * modules/unictype/mirror: Likewise.
12475         * modules/unictype/numeric: Likewise.
12476         * modules/unictype/property-alphabetic: Likewise.
12477         * modules/unictype/property-ascii-hex-digit: Likewise.
12478         * modules/unictype/property-bidi-arabic-digit: Likewise.
12479         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
12480         * modules/unictype/property-bidi-block-separator: Likewise.
12481         * modules/unictype/property-bidi-boundary-neutral: Likewise.
12482         * modules/unictype/property-bidi-common-separator: Likewise.
12483         * modules/unictype/property-bidi-control: Likewise.
12484         * modules/unictype/property-bidi-embedding-or-override: Likewise.
12485         * modules/unictype/property-bidi-eur-num-separator: Likewise.
12486         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
12487         * modules/unictype/property-bidi-european-digit: Likewise.
12488         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
12489         * modules/unictype/property-bidi-left-to-right: Likewise.
12490         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
12491         * modules/unictype/property-bidi-other-neutral: Likewise.
12492         * modules/unictype/property-bidi-pdf: Likewise.
12493         * modules/unictype/property-bidi-segment-separator: Likewise.
12494         * modules/unictype/property-bidi-whitespace: Likewise.
12495         * modules/unictype/property-byname: Likewise.
12496         * modules/unictype/property-combining: Likewise.
12497         * modules/unictype/property-composite: Likewise.
12498         * modules/unictype/property-currency-symbol: Likewise.
12499         * modules/unictype/property-dash: Likewise.
12500         * modules/unictype/property-decimal-digit: Likewise.
12501         * modules/unictype/property-default-ignorable-code-point: Likewise.
12502         * modules/unictype/property-deprecated: Likewise.
12503         * modules/unictype/property-diacritic: Likewise.
12504         * modules/unictype/property-extender: Likewise.
12505         * modules/unictype/property-format-control: Likewise.
12506         * modules/unictype/property-grapheme-base: Likewise.
12507         * modules/unictype/property-grapheme-extend: Likewise.
12508         * modules/unictype/property-grapheme-link: Likewise.
12509         * modules/unictype/property-hex-digit: Likewise.
12510         * modules/unictype/property-hyphen: Likewise.
12511         * modules/unictype/property-id-continue: Likewise.
12512         * modules/unictype/property-id-start: Likewise.
12513         * modules/unictype/property-ideographic: Likewise.
12514         * modules/unictype/property-ids-binary-operator: Likewise.
12515         * modules/unictype/property-ids-trinary-operator: Likewise.
12516         * modules/unictype/property-ignorable-control: Likewise.
12517         * modules/unictype/property-iso-control: Likewise.
12518         * modules/unictype/property-join-control: Likewise.
12519         * modules/unictype/property-left-of-pair: Likewise.
12520         * modules/unictype/property-line-separator: Likewise.
12521         * modules/unictype/property-logical-order-exception: Likewise.
12522         * modules/unictype/property-lowercase: Likewise.
12523         * modules/unictype/property-math: Likewise.
12524         * modules/unictype/property-non-break: Likewise.
12525         * modules/unictype/property-not-a-character: Likewise.
12526         * modules/unictype/property-numeric: Likewise.
12527         * modules/unictype/property-other-alphabetic: Likewise.
12528         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
12529         * modules/unictype/property-other-grapheme-extend: Likewise.
12530         * modules/unictype/property-other-id-continue: Likewise.
12531         * modules/unictype/property-other-id-start: Likewise.
12532         * modules/unictype/property-other-lowercase: Likewise.
12533         * modules/unictype/property-other-math: Likewise.
12534         * modules/unictype/property-other-uppercase: Likewise.
12535         * modules/unictype/property-paired-punctuation: Likewise.
12536         * modules/unictype/property-paragraph-separator: Likewise.
12537         * modules/unictype/property-pattern-syntax: Likewise.
12538         * modules/unictype/property-pattern-white-space: Likewise.
12539         * modules/unictype/property-private-use: Likewise.
12540         * modules/unictype/property-punctuation: Likewise.
12541         * modules/unictype/property-quotation-mark: Likewise.
12542         * modules/unictype/property-radical: Likewise.
12543         * modules/unictype/property-sentence-terminal: Likewise.
12544         * modules/unictype/property-soft-dotted: Likewise.
12545         * modules/unictype/property-space: Likewise.
12546         * modules/unictype/property-terminal-punctuation: Likewise.
12547         * modules/unictype/property-test: Likewise.
12548         * modules/unictype/property-titlecase: Likewise.
12549         * modules/unictype/property-unassigned-code-value: Likewise.
12550         * modules/unictype/property-unified-ideograph: Likewise.
12551         * modules/unictype/property-uppercase: Likewise.
12552         * modules/unictype/property-variation-selector: Likewise.
12553         * modules/unictype/property-white-space: Likewise.
12554         * modules/unictype/property-xid-continue: Likewise.
12555         * modules/unictype/property-xid-start: Likewise.
12556         * modules/unictype/property-zero-width: Likewise.
12557         * modules/unictype/scripts: Likewise.
12558         * modules/unictype/syntax-c-ident: Likewise.
12559         * modules/unictype/syntax-c-whitespace: Likewise.
12560         * modules/unictype/syntax-java-ident: Likewise.
12561         * modules/unictype/syntax-java-whitespace: Likewise.
12562         * modules/unilbrk/u8-possible-linebreaks: Likewise.
12563         * modules/unilbrk/u8-width-linebreaks: Likewise.
12564         * modules/unilbrk/u16-possible-linebreaks: Likewise.
12565         * modules/unilbrk/u16-width-linebreaks: Likewise.
12566         * modules/unilbrk/u32-possible-linebreaks: Likewise.
12567         * modules/unilbrk/u32-width-linebreaks: Likewise.
12568         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
12569         * modules/unilbrk/ulc-width-linebreaks: Likewise.
12570         * modules/uniname/uniname: Likewise.
12571         * modules/uninorm/canonical-decomposition: Likewise.
12572         * modules/uninorm/composition: Likewise.
12573         * modules/uninorm/decomposing-form: Likewise.
12574         * modules/uninorm/decomposition: Likewise.
12575         * modules/uninorm/filter: Likewise.
12576         * modules/uninorm/nfc: Likewise.
12577         * modules/uninorm/nfd: Likewise.
12578         * modules/uninorm/nfkc: Likewise.
12579         * modules/uninorm/nfkd: Likewise.
12580         * modules/uninorm/u8-normalize: Likewise.
12581         * modules/uninorm/u8-normcmp: Likewise.
12582         * modules/uninorm/u8-normcoll: Likewise.
12583         * modules/uninorm/u8-normxfrm: Likewise.
12584         * modules/uninorm/u16-normalize: Likewise.
12585         * modules/uninorm/u16-normcmp: Likewise.
12586         * modules/uninorm/u16-normcoll: Likewise.
12587         * modules/uninorm/u16-normxfrm: Likewise.
12588         * modules/uninorm/u32-normalize: Likewise.
12589         * modules/uninorm/u32-normcmp: Likewise.
12590         * modules/uninorm/u32-normcoll: Likewise.
12591         * modules/uninorm/u32-normxfrm: Likewise.
12592         * modules/unistdio/u8-asnprintf: Likewise.
12593         * modules/unistdio/u8-asprintf: Likewise.
12594         * modules/unistdio/u8-snprintf: Likewise.
12595         * modules/unistdio/u8-sprintf: Likewise.
12596         * modules/unistdio/u8-u8-asnprintf: Likewise.
12597         * modules/unistdio/u8-u8-asprintf: Likewise.
12598         * modules/unistdio/u8-u8-snprintf: Likewise.
12599         * modules/unistdio/u8-u8-sprintf: Likewise.
12600         * modules/unistdio/u8-u8-vasnprintf: Likewise.
12601         * modules/unistdio/u8-u8-vasprintf: Likewise.
12602         * modules/unistdio/u8-u8-vsnprintf: Likewise.
12603         * modules/unistdio/u8-u8-vsprintf: Likewise.
12604         * modules/unistdio/u8-vasnprintf: Likewise.
12605         * modules/unistdio/u8-vasprintf: Likewise.
12606         * modules/unistdio/u8-vsnprintf: Likewise.
12607         * modules/unistdio/u8-vsprintf: Likewise.
12608         * modules/unistdio/u16-asnprintf: Likewise.
12609         * modules/unistdio/u16-asprintf: Likewise.
12610         * modules/unistdio/u16-snprintf: Likewise.
12611         * modules/unistdio/u16-sprintf: Likewise.
12612         * modules/unistdio/u16-u16-asnprintf: Likewise.
12613         * modules/unistdio/u16-u16-asprintf: Likewise.
12614         * modules/unistdio/u16-u16-snprintf: Likewise.
12615         * modules/unistdio/u16-u16-sprintf: Likewise.
12616         * modules/unistdio/u16-u16-vasnprintf: Likewise.
12617         * modules/unistdio/u16-u16-vasprintf: Likewise.
12618         * modules/unistdio/u16-u16-vsnprintf: Likewise.
12619         * modules/unistdio/u16-u16-vsprintf: Likewise.
12620         * modules/unistdio/u16-vasnprintf: Likewise.
12621         * modules/unistdio/u16-vasprintf: Likewise.
12622         * modules/unistdio/u16-vsnprintf: Likewise.
12623         * modules/unistdio/u16-vsprintf: Likewise.
12624         * modules/unistdio/u32-asnprintf: Likewise.
12625         * modules/unistdio/u32-asprintf: Likewise.
12626         * modules/unistdio/u32-snprintf: Likewise.
12627         * modules/unistdio/u32-sprintf: Likewise.
12628         * modules/unistdio/u32-u32-asnprintf: Likewise.
12629         * modules/unistdio/u32-u32-asprintf: Likewise.
12630         * modules/unistdio/u32-u32-snprintf: Likewise.
12631         * modules/unistdio/u32-u32-sprintf: Likewise.
12632         * modules/unistdio/u32-u32-vasnprintf: Likewise.
12633         * modules/unistdio/u32-u32-vasprintf: Likewise.
12634         * modules/unistdio/u32-u32-vsnprintf: Likewise.
12635         * modules/unistdio/u32-u32-vsprintf: Likewise.
12636         * modules/unistdio/u32-vasnprintf: Likewise.
12637         * modules/unistdio/u32-vasprintf: Likewise.
12638         * modules/unistdio/u32-vsnprintf: Likewise.
12639         * modules/unistdio/u32-vsprintf: Likewise.
12640         * modules/unistdio/ulc-asnprintf: Likewise.
12641         * modules/unistdio/ulc-asprintf: Likewise.
12642         * modules/unistdio/ulc-fprintf: Likewise.
12643         * modules/unistdio/ulc-snprintf: Likewise.
12644         * modules/unistdio/ulc-sprintf: Likewise.
12645         * modules/unistdio/ulc-vasnprintf: Likewise.
12646         * modules/unistdio/ulc-vasprintf: Likewise.
12647         * modules/unistdio/ulc-vfprintf: Likewise.
12648         * modules/unistdio/ulc-vsnprintf: Likewise.
12649         * modules/unistdio/ulc-vsprintf: Likewise.
12650         * modules/unistr/u8-check: Likewise.
12651         * modules/unistr/u8-chr: Likewise.
12652         * modules/unistr/u8-cmp: Likewise.
12653         * modules/unistr/u8-cmp2: Likewise.
12654         * modules/unistr/u8-cpy: Likewise.
12655         * modules/unistr/u8-cpy-alloc: Likewise.
12656         * modules/unistr/u8-endswith: Likewise.
12657         * modules/unistr/u8-mblen: Likewise.
12658         * modules/unistr/u8-mbsnlen: Likewise.
12659         * modules/unistr/u8-mbtouc: Likewise.
12660         * modules/unistr/u8-mbtouc-unsafe: Likewise.
12661         * modules/unistr/u8-mbtoucr: Likewise.
12662         * modules/unistr/u8-move: Likewise.
12663         * modules/unistr/u8-next: Likewise.
12664         * modules/unistr/u8-prev: Likewise.
12665         * modules/unistr/u8-set: Likewise.
12666         * modules/unistr/u8-startswith: Likewise.
12667         * modules/unistr/u8-stpcpy: Likewise.
12668         * modules/unistr/u8-stpncpy: Likewise.
12669         * modules/unistr/u8-strcat: Likewise.
12670         * modules/unistr/u8-strchr: Likewise.
12671         * modules/unistr/u8-strcmp: Likewise.
12672         * modules/unistr/u8-strcoll: Likewise.
12673         * modules/unistr/u8-strcpy: Likewise.
12674         * modules/unistr/u8-strcspn: Likewise.
12675         * modules/unistr/u8-strdup: Likewise.
12676         * modules/unistr/u8-strlen: Likewise.
12677         * modules/unistr/u8-strmblen: Likewise.
12678         * modules/unistr/u8-strmbtouc: Likewise.
12679         * modules/unistr/u8-strncat: Likewise.
12680         * modules/unistr/u8-strncmp: Likewise.
12681         * modules/unistr/u8-strncpy: Likewise.
12682         * modules/unistr/u8-strnlen: Likewise.
12683         * modules/unistr/u8-strpbrk: Likewise.
12684         * modules/unistr/u8-strrchr: Likewise.
12685         * modules/unistr/u8-strspn: Likewise.
12686         * modules/unistr/u8-strstr: Likewise.
12687         * modules/unistr/u8-strtok: Likewise.
12688         * modules/unistr/u8-to-u16: Likewise.
12689         * modules/unistr/u8-to-u32: Likewise.
12690         * modules/unistr/u8-uctomb: Likewise.
12691         * modules/unistr/u16-check: Likewise.
12692         * modules/unistr/u16-chr: Likewise.
12693         * modules/unistr/u16-cmp: Likewise.
12694         * modules/unistr/u16-cmp2: Likewise.
12695         * modules/unistr/u16-cpy: Likewise.
12696         * modules/unistr/u16-cpy-alloc: Likewise.
12697         * modules/unistr/u16-endswith: Likewise.
12698         * modules/unistr/u16-mblen: Likewise.
12699         * modules/unistr/u16-mbsnlen: Likewise.
12700         * modules/unistr/u16-mbtouc: Likewise.
12701         * modules/unistr/u16-mbtouc-unsafe: Likewise.
12702         * modules/unistr/u16-mbtoucr: Likewise.
12703         * modules/unistr/u16-move: Likewise.
12704         * modules/unistr/u16-next: Likewise.
12705         * modules/unistr/u16-prev: Likewise.
12706         * modules/unistr/u16-set: Likewise.
12707         * modules/unistr/u16-startswith: Likewise.
12708         * modules/unistr/u16-stpcpy: Likewise.
12709         * modules/unistr/u16-stpncpy: Likewise.
12710         * modules/unistr/u16-strcat: Likewise.
12711         * modules/unistr/u16-strchr: Likewise.
12712         * modules/unistr/u16-strcmp: Likewise.
12713         * modules/unistr/u16-strcoll: Likewise.
12714         * modules/unistr/u16-strcpy: Likewise.
12715         * modules/unistr/u16-strcspn: Likewise.
12716         * modules/unistr/u16-strdup: Likewise.
12717         * modules/unistr/u16-strlen: Likewise.
12718         * modules/unistr/u16-strmblen: Likewise.
12719         * modules/unistr/u16-strmbtouc: Likewise.
12720         * modules/unistr/u16-strncat: Likewise.
12721         * modules/unistr/u16-strncmp: Likewise.
12722         * modules/unistr/u16-strncpy: Likewise.
12723         * modules/unistr/u16-strnlen: Likewise.
12724         * modules/unistr/u16-strpbrk: Likewise.
12725         * modules/unistr/u16-strrchr: Likewise.
12726         * modules/unistr/u16-strspn: Likewise.
12727         * modules/unistr/u16-strstr: Likewise.
12728         * modules/unistr/u16-strtok: Likewise.
12729         * modules/unistr/u16-to-u32: Likewise.
12730         * modules/unistr/u16-to-u8: Likewise.
12731         * modules/unistr/u16-uctomb: Likewise.
12732         * modules/unistr/u32-check: Likewise.
12733         * modules/unistr/u32-chr: Likewise.
12734         * modules/unistr/u32-cmp: Likewise.
12735         * modules/unistr/u32-cmp2: Likewise.
12736         * modules/unistr/u32-cpy: Likewise.
12737         * modules/unistr/u32-cpy-alloc: Likewise.
12738         * modules/unistr/u32-endswith: Likewise.
12739         * modules/unistr/u32-mblen: Likewise.
12740         * modules/unistr/u32-mbsnlen: Likewise.
12741         * modules/unistr/u32-mbtouc: Likewise.
12742         * modules/unistr/u32-mbtouc-unsafe: Likewise.
12743         * modules/unistr/u32-mbtoucr: Likewise.
12744         * modules/unistr/u32-move: Likewise.
12745         * modules/unistr/u32-next: Likewise.
12746         * modules/unistr/u32-prev: Likewise.
12747         * modules/unistr/u32-set: Likewise.
12748         * modules/unistr/u32-startswith: Likewise.
12749         * modules/unistr/u32-stpcpy: Likewise.
12750         * modules/unistr/u32-stpncpy: Likewise.
12751         * modules/unistr/u32-strcat: Likewise.
12752         * modules/unistr/u32-strchr: Likewise.
12753         * modules/unistr/u32-strcmp: Likewise.
12754         * modules/unistr/u32-strcoll: Likewise.
12755         * modules/unistr/u32-strcpy: Likewise.
12756         * modules/unistr/u32-strcspn: Likewise.
12757         * modules/unistr/u32-strdup: Likewise.
12758         * modules/unistr/u32-strlen: Likewise.
12759         * modules/unistr/u32-strmblen: Likewise.
12760         * modules/unistr/u32-strmbtouc: Likewise.
12761         * modules/unistr/u32-strncat: Likewise.
12762         * modules/unistr/u32-strncmp: Likewise.
12763         * modules/unistr/u32-strncpy: Likewise.
12764         * modules/unistr/u32-strnlen: Likewise.
12765         * modules/unistr/u32-strpbrk: Likewise.
12766         * modules/unistr/u32-strrchr: Likewise.
12767         * modules/unistr/u32-strspn: Likewise.
12768         * modules/unistr/u32-strstr: Likewise.
12769         * modules/unistr/u32-strtok: Likewise.
12770         * modules/unistr/u32-to-u16: Likewise.
12771         * modules/unistr/u32-to-u8: Likewise.
12772         * modules/unistr/u32-uctomb: Likewise.
12773         * modules/uniwbrk/u8-wordbreaks: Likewise.
12774         * modules/uniwbrk/u16-wordbreaks: Likewise.
12775         * modules/uniwbrk/u32-wordbreaks: Likewise.
12776         * modules/uniwbrk/ulc-wordbreaks: Likewise.
12777         * modules/uniwbrk/wordbreak-property: Likewise.
12778         * modules/uniwidth/u8-strwidth: Likewise.
12779         * modules/uniwidth/u8-width: Likewise.
12780         * modules/uniwidth/u16-strwidth: Likewise.
12781         * modules/uniwidth/u16-width: Likewise.
12782         * modules/uniwidth/u32-strwidth: Likewise.
12783         * modules/uniwidth/u32-width: Likewise.
12784         * modules/uniwidth/width: Likewise.
12785         * modules/unicase/cased-tests (Makefile.am): Link all test programs
12786         with $(LIBUNISTRING).
12787         * modules/unicase/ignorable-tests: Likewise.
12788         * modules/unicase/locale-language-tests: Likewise.
12789         * modules/unicase/tolower-tests: Likewise.
12790         * modules/unicase/totitle-tests: Likewise.
12791         * modules/unicase/toupper-tests: Likewise.
12792         * modules/unicase/u8-casecmp-tests: Likewise.
12793         * modules/unicase/u8-casecoll-tests: Likewise.
12794         * modules/unicase/u8-casefold-tests: Likewise.
12795         * modules/unicase/u8-is-cased-tests: Likewise.
12796         * modules/unicase/u8-is-casefolded-tests: Likewise.
12797         * modules/unicase/u8-is-lowercase-tests: Likewise.
12798         * modules/unicase/u8-is-titlecase-tests: Likewise.
12799         * modules/unicase/u8-is-uppercase-tests: Likewise.
12800         * modules/unicase/u8-tolower-tests: Likewise.
12801         * modules/unicase/u8-totitle-tests: Likewise.
12802         * modules/unicase/u8-toupper-tests: Likewise.
12803         * modules/unicase/u16-casecmp-tests: Likewise.
12804         * modules/unicase/u16-casecoll-tests: Likewise.
12805         * modules/unicase/u16-casefold-tests: Likewise.
12806         * modules/unicase/u16-is-cased-tests: Likewise.
12807         * modules/unicase/u16-is-casefolded-tests: Likewise.
12808         * modules/unicase/u16-is-lowercase-tests: Likewise.
12809         * modules/unicase/u16-is-titlecase-tests: Likewise.
12810         * modules/unicase/u16-is-uppercase-tests: Likewise.
12811         * modules/unicase/u16-tolower-tests: Likewise.
12812         * modules/unicase/u16-totitle-tests: Likewise.
12813         * modules/unicase/u16-toupper-tests: Likewise.
12814         * modules/unicase/u32-casecmp-tests: Likewise.
12815         * modules/unicase/u32-casecoll-tests: Likewise.
12816         * modules/unicase/u32-casefold-tests: Likewise.
12817         * modules/unicase/u32-is-cased-tests: Likewise.
12818         * modules/unicase/u32-is-casefolded-tests: Likewise.
12819         * modules/unicase/u32-is-lowercase-tests: Likewise.
12820         * modules/unicase/u32-is-titlecase-tests: Likewise.
12821         * modules/unicase/u32-is-uppercase-tests: Likewise.
12822         * modules/unicase/u32-tolower-tests: Likewise.
12823         * modules/unicase/u32-totitle-tests: Likewise.
12824         * modules/unicase/u32-toupper-tests: Likewise.
12825         * modules/unicase/ulc-casecmp-tests: Likewise.
12826         * modules/unicase/ulc-casecoll-tests: Likewise.
12827         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
12828         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
12829         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
12830         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
12831         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
12832         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
12833         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
12834         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
12835         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
12836         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
12837         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
12838         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
12839         * modules/unictype/bidicategory-byname-tests: Likewise.
12840         * modules/unictype/bidicategory-name-tests: Likewise.
12841         * modules/unictype/bidicategory-of-tests: Likewise.
12842         * modules/unictype/bidicategory-test-tests: Likewise.
12843         * modules/unictype/block-list-tests: Likewise.
12844         * modules/unictype/block-of-tests: Likewise.
12845         * modules/unictype/block-test-tests: Likewise.
12846         * modules/unictype/category-C-tests: Likewise.
12847         * modules/unictype/category-Cc-tests: Likewise.
12848         * modules/unictype/category-Cf-tests: Likewise.
12849         * modules/unictype/category-Cn-tests: Likewise.
12850         * modules/unictype/category-Co-tests: Likewise.
12851         * modules/unictype/category-Cs-tests: Likewise.
12852         * modules/unictype/category-L-tests: Likewise.
12853         * modules/unictype/category-Ll-tests: Likewise.
12854         * modules/unictype/category-Lm-tests: Likewise.
12855         * modules/unictype/category-Lo-tests: Likewise.
12856         * modules/unictype/category-Lt-tests: Likewise.
12857         * modules/unictype/category-Lu-tests: Likewise.
12858         * modules/unictype/category-M-tests: Likewise.
12859         * modules/unictype/category-Mc-tests: Likewise.
12860         * modules/unictype/category-Me-tests: Likewise.
12861         * modules/unictype/category-Mn-tests: Likewise.
12862         * modules/unictype/category-N-tests: Likewise.
12863         * modules/unictype/category-Nd-tests: Likewise.
12864         * modules/unictype/category-Nl-tests: Likewise.
12865         * modules/unictype/category-No-tests: Likewise.
12866         * modules/unictype/category-P-tests: Likewise.
12867         * modules/unictype/category-Pc-tests: Likewise.
12868         * modules/unictype/category-Pd-tests: Likewise.
12869         * modules/unictype/category-Pe-tests: Likewise.
12870         * modules/unictype/category-Pf-tests: Likewise.
12871         * modules/unictype/category-Pi-tests: Likewise.
12872         * modules/unictype/category-Po-tests: Likewise.
12873         * modules/unictype/category-Ps-tests: Likewise.
12874         * modules/unictype/category-S-tests: Likewise.
12875         * modules/unictype/category-Sc-tests: Likewise.
12876         * modules/unictype/category-Sk-tests: Likewise.
12877         * modules/unictype/category-Sm-tests: Likewise.
12878         * modules/unictype/category-So-tests: Likewise.
12879         * modules/unictype/category-Z-tests: Likewise.
12880         * modules/unictype/category-Zl-tests: Likewise.
12881         * modules/unictype/category-Zp-tests: Likewise.
12882         * modules/unictype/category-Zs-tests: Likewise.
12883         * modules/unictype/category-and-not-tests: Likewise.
12884         * modules/unictype/category-and-tests: Likewise.
12885         * modules/unictype/category-byname-tests: Likewise.
12886         * modules/unictype/category-name-tests: Likewise.
12887         * modules/unictype/category-none-tests: Likewise.
12888         * modules/unictype/category-of-tests: Likewise.
12889         * modules/unictype/category-or-tests: Likewise.
12890         * modules/unictype/category-test-withtable-tests: Likewise.
12891         * modules/unictype/combining-class-tests: Likewise.
12892         * modules/unictype/ctype-alnum-tests: Likewise.
12893         * modules/unictype/ctype-alpha-tests: Likewise.
12894         * modules/unictype/ctype-blank-tests: Likewise.
12895         * modules/unictype/ctype-cntrl-tests: Likewise.
12896         * modules/unictype/ctype-digit-tests: Likewise.
12897         * modules/unictype/ctype-graph-tests: Likewise.
12898         * modules/unictype/ctype-lower-tests: Likewise.
12899         * modules/unictype/ctype-print-tests: Likewise.
12900         * modules/unictype/ctype-punct-tests: Likewise.
12901         * modules/unictype/ctype-space-tests: Likewise.
12902         * modules/unictype/ctype-upper-tests: Likewise.
12903         * modules/unictype/ctype-xdigit-tests: Likewise.
12904         * modules/unictype/decimal-digit-tests: Likewise.
12905         * modules/unictype/digit-tests: Likewise.
12906         * modules/unictype/mirror-tests: Likewise.
12907         * modules/unictype/numeric-tests: Likewise.
12908         * modules/unictype/property-alphabetic-tests: Likewise.
12909         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
12910         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
12911         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
12912         * modules/unictype/property-bidi-block-separator-tests: Likewise.
12913         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
12914         * modules/unictype/property-bidi-common-separator-tests: Likewise.
12915         * modules/unictype/property-bidi-control-tests: Likewise.
12916         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
12917         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
12918         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
12919         * modules/unictype/property-bidi-european-digit-tests: Likewise.
12920         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
12921         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
12922         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
12923         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
12924         * modules/unictype/property-bidi-pdf-tests: Likewise.
12925         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
12926         * modules/unictype/property-bidi-whitespace-tests: Likewise.
12927         * modules/unictype/property-byname-tests: Likewise.
12928         * modules/unictype/property-combining-tests: Likewise.
12929         * modules/unictype/property-composite-tests: Likewise.
12930         * modules/unictype/property-currency-symbol-tests: Likewise.
12931         * modules/unictype/property-dash-tests: Likewise.
12932         * modules/unictype/property-decimal-digit-tests: Likewise.
12933         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
12934         * modules/unictype/property-deprecated-tests: Likewise.
12935         * modules/unictype/property-diacritic-tests: Likewise.
12936         * modules/unictype/property-extender-tests: Likewise.
12937         * modules/unictype/property-format-control-tests: Likewise.
12938         * modules/unictype/property-grapheme-base-tests: Likewise.
12939         * modules/unictype/property-grapheme-extend-tests: Likewise.
12940         * modules/unictype/property-grapheme-link-tests: Likewise.
12941         * modules/unictype/property-hex-digit-tests: Likewise.
12942         * modules/unictype/property-hyphen-tests: Likewise.
12943         * modules/unictype/property-id-continue-tests: Likewise.
12944         * modules/unictype/property-id-start-tests: Likewise.
12945         * modules/unictype/property-ideographic-tests: Likewise.
12946         * modules/unictype/property-ids-binary-operator-tests: Likewise.
12947         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
12948         * modules/unictype/property-ignorable-control-tests: Likewise.
12949         * modules/unictype/property-iso-control-tests: Likewise.
12950         * modules/unictype/property-join-control-tests: Likewise.
12951         * modules/unictype/property-left-of-pair-tests: Likewise.
12952         * modules/unictype/property-line-separator-tests: Likewise.
12953         * modules/unictype/property-logical-order-exception-tests: Likewise.
12954         * modules/unictype/property-lowercase-tests: Likewise.
12955         * modules/unictype/property-math-tests: Likewise.
12956         * modules/unictype/property-non-break-tests: Likewise.
12957         * modules/unictype/property-not-a-character-tests: Likewise.
12958         * modules/unictype/property-numeric-tests: Likewise.
12959         * modules/unictype/property-other-alphabetic-tests: Likewise.
12960         * modules/unictype/property-other-default-ignorable-code-point-tests:
12961         Likewise.
12962         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
12963         * modules/unictype/property-other-id-continue-tests: Likewise.
12964         * modules/unictype/property-other-id-start-tests: Likewise.
12965         * modules/unictype/property-other-lowercase-tests: Likewise.
12966         * modules/unictype/property-other-math-tests: Likewise.
12967         * modules/unictype/property-other-uppercase-tests: Likewise.
12968         * modules/unictype/property-paired-punctuation-tests: Likewise.
12969         * modules/unictype/property-paragraph-separator-tests: Likewise.
12970         * modules/unictype/property-pattern-syntax-tests: Likewise.
12971         * modules/unictype/property-pattern-white-space-tests: Likewise.
12972         * modules/unictype/property-private-use-tests: Likewise.
12973         * modules/unictype/property-punctuation-tests: Likewise.
12974         * modules/unictype/property-quotation-mark-tests: Likewise.
12975         * modules/unictype/property-radical-tests: Likewise.
12976         * modules/unictype/property-sentence-terminal-tests: Likewise.
12977         * modules/unictype/property-soft-dotted-tests: Likewise.
12978         * modules/unictype/property-space-tests: Likewise.
12979         * modules/unictype/property-terminal-punctuation-tests: Likewise.
12980         * modules/unictype/property-test-tests: Likewise.
12981         * modules/unictype/property-titlecase-tests: Likewise.
12982         * modules/unictype/property-unassigned-code-value-tests: Likewise.
12983         * modules/unictype/property-unified-ideograph-tests: Likewise.
12984         * modules/unictype/property-uppercase-tests: Likewise.
12985         * modules/unictype/property-variation-selector-tests: Likewise.
12986         * modules/unictype/property-white-space-tests: Likewise.
12987         * modules/unictype/property-xid-continue-tests: Likewise.
12988         * modules/unictype/property-xid-start-tests: Likewise.
12989         * modules/unictype/property-zero-width-tests: Likewise.
12990         * modules/unictype/scripts-tests: Likewise.
12991         * modules/unictype/syntax-c-ident-tests: Likewise.
12992         * modules/unictype/syntax-c-whitespace-tests: Likewise.
12993         * modules/unictype/syntax-java-ident-tests: Likewise.
12994         * modules/unictype/syntax-java-whitespace-tests: Likewise.
12995         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
12996         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
12997         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
12998         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
12999         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
13000         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
13001         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
13002         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
13003         * modules/uniname/uniname-tests: Likewise.
13004         * modules/uninorm/canonical-decomposition-tests: Likewise.
13005         * modules/uninorm/compat-decomposition-tests: Likewise.
13006         * modules/uninorm/composition-tests: Likewise.
13007         * modules/uninorm/decomposing-form-tests: Likewise.
13008         * modules/uninorm/decomposition-tests: Likewise.
13009         * modules/uninorm/filter-tests: Likewise.
13010         * modules/uninorm/nfc-tests: Likewise.
13011         * modules/uninorm/nfd-tests: Likewise.
13012         * modules/uninorm/nfkc-tests: Likewise.
13013         * modules/uninorm/nfkd-tests: Likewise.
13014         * modules/uninorm/u8-normcmp-tests: Likewise.
13015         * modules/uninorm/u8-normcoll-tests: Likewise.
13016         * modules/uninorm/u16-normcmp-tests: Likewise.
13017         * modules/uninorm/u16-normcoll-tests: Likewise.
13018         * modules/uninorm/u32-normcmp-tests: Likewise.
13019         * modules/uninorm/u32-normcoll-tests: Likewise.
13020         * modules/unistdio/u8-asnprintf-tests: Likewise.
13021         * modules/unistdio/u8-vasnprintf-tests: Likewise.
13022         * modules/unistdio/u8-vasprintf-tests: Likewise.
13023         * modules/unistdio/u8-vsnprintf-tests: Likewise.
13024         * modules/unistdio/u8-vsprintf-tests: Likewise.
13025         * modules/unistdio/u16-asnprintf-tests: Likewise.
13026         * modules/unistdio/u16-vasnprintf-tests: Likewise.
13027         * modules/unistdio/u16-vasprintf-tests: Likewise.
13028         * modules/unistdio/u16-vsnprintf-tests: Likewise.
13029         * modules/unistdio/u16-vsprintf-tests: Likewise.
13030         * modules/unistdio/u32-asnprintf-tests: Likewise.
13031         * modules/unistdio/u32-vasnprintf-tests: Likewise.
13032         * modules/unistdio/u32-vasprintf-tests: Likewise.
13033         * modules/unistdio/u32-vsnprintf-tests: Likewise.
13034         * modules/unistdio/u32-vsprintf-tests: Likewise.
13035         * modules/unistdio/ulc-asnprintf-tests: Likewise.
13036         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
13037         * modules/unistdio/ulc-vasprintf-tests: Likewise.
13038         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
13039         * modules/unistdio/ulc-vsprintf-tests: Likewise.
13040         * modules/unistr/u8-check-tests: Likewise.
13041         * modules/unistr/u8-chr-tests: Likewise.
13042         * modules/unistr/u8-cmp-tests: Likewise.
13043         * modules/unistr/u8-cmp2-tests: Likewise.
13044         * modules/unistr/u8-cpy-alloc-tests: Likewise.
13045         * modules/unistr/u8-cpy-tests: Likewise.
13046         * modules/unistr/u8-mblen-tests: Likewise.
13047         * modules/unistr/u8-mbsnlen-tests: Likewise.
13048         * modules/unistr/u8-mbtouc-tests: Likewise.
13049         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
13050         * modules/unistr/u8-mbtoucr-tests: Likewise.
13051         * modules/unistr/u8-move-tests: Likewise.
13052         * modules/unistr/u8-next-tests: Likewise.
13053         * modules/unistr/u8-prev-tests: Likewise.
13054         * modules/unistr/u8-set-tests: Likewise.
13055         * modules/unistr/u8-stpcpy-tests: Likewise.
13056         * modules/unistr/u8-stpncpy-tests: Likewise.
13057         * modules/unistr/u8-strcat-tests: Likewise.
13058         * modules/unistr/u8-strcmp-tests: Likewise.
13059         * modules/unistr/u8-strcoll-tests: Likewise.
13060         * modules/unistr/u8-strcpy-tests: Likewise.
13061         * modules/unistr/u8-strdup-tests: Likewise.
13062         * modules/unistr/u8-strlen-tests: Likewise.
13063         * modules/unistr/u8-strmblen-tests: Likewise.
13064         * modules/unistr/u8-strmbtouc-tests: Likewise.
13065         * modules/unistr/u8-strncat-tests: Likewise.
13066         * modules/unistr/u8-strncmp-tests: Likewise.
13067         * modules/unistr/u8-strncpy-tests: Likewise.
13068         * modules/unistr/u8-strnlen-tests: Likewise.
13069         * modules/unistr/u8-to-u16-tests: Likewise.
13070         * modules/unistr/u8-to-u32-tests: Likewise.
13071         * modules/unistr/u8-uctomb-tests: Likewise.
13072         * modules/unistr/u16-check-tests: Likewise.
13073         * modules/unistr/u16-chr-tests: Likewise.
13074         * modules/unistr/u16-cmp-tests: Likewise.
13075         * modules/unistr/u16-cmp2-tests: Likewise.
13076         * modules/unistr/u16-cpy-alloc-tests: Likewise.
13077         * modules/unistr/u16-cpy-tests: Likewise.
13078         * modules/unistr/u16-mblen-tests: Likewise.
13079         * modules/unistr/u16-mbsnlen-tests: Likewise.
13080         * modules/unistr/u16-mbtouc-tests: Likewise.
13081         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
13082         * modules/unistr/u16-mbtoucr-tests: Likewise.
13083         * modules/unistr/u16-move-tests: Likewise.
13084         * modules/unistr/u16-next-tests: Likewise.
13085         * modules/unistr/u16-prev-tests: Likewise.
13086         * modules/unistr/u16-set-tests: Likewise.
13087         * modules/unistr/u16-stpcpy-tests: Likewise.
13088         * modules/unistr/u16-stpncpy-tests: Likewise.
13089         * modules/unistr/u16-strcat-tests: Likewise.
13090         * modules/unistr/u16-strcmp-tests: Likewise.
13091         * modules/unistr/u16-strcoll-tests: Likewise.
13092         * modules/unistr/u16-strcpy-tests: Likewise.
13093         * modules/unistr/u16-strdup-tests: Likewise.
13094         * modules/unistr/u16-strlen-tests: Likewise.
13095         * modules/unistr/u16-strmblen-tests: Likewise.
13096         * modules/unistr/u16-strmbtouc-tests: Likewise.
13097         * modules/unistr/u16-strncat-tests: Likewise.
13098         * modules/unistr/u16-strncmp-tests: Likewise.
13099         * modules/unistr/u16-strncpy-tests: Likewise.
13100         * modules/unistr/u16-strnlen-tests: Likewise.
13101         * modules/unistr/u16-to-u32-tests: Likewise.
13102         * modules/unistr/u16-to-u8-tests: Likewise.
13103         * modules/unistr/u16-uctomb-tests: Likewise.
13104         * modules/unistr/u32-check-tests: Likewise.
13105         * modules/unistr/u32-chr-tests: Likewise.
13106         * modules/unistr/u32-cmp-tests: Likewise.
13107         * modules/unistr/u32-cmp2-tests: Likewise.
13108         * modules/unistr/u32-cpy-alloc-tests: Likewise.
13109         * modules/unistr/u32-cpy-tests: Likewise.
13110         * modules/unistr/u32-mblen-tests: Likewise.
13111         * modules/unistr/u32-mbsnlen-tests: Likewise.
13112         * modules/unistr/u32-mbtouc-tests: Likewise.
13113         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
13114         * modules/unistr/u32-mbtoucr-tests: Likewise.
13115         * modules/unistr/u32-move-tests: Likewise.
13116         * modules/unistr/u32-next-tests: Likewise.
13117         * modules/unistr/u32-prev-tests: Likewise.
13118         * modules/unistr/u32-set-tests: Likewise.
13119         * modules/unistr/u32-stpcpy-tests: Likewise.
13120         * modules/unistr/u32-stpncpy-tests: Likewise.
13121         * modules/unistr/u32-strcat-tests: Likewise.
13122         * modules/unistr/u32-strcmp-tests: Likewise.
13123         * modules/unistr/u32-strcoll-tests: Likewise.
13124         * modules/unistr/u32-strcpy-tests: Likewise.
13125         * modules/unistr/u32-strdup-tests: Likewise.
13126         * modules/unistr/u32-strlen-tests: Likewise.
13127         * modules/unistr/u32-strmblen-tests: Likewise.
13128         * modules/unistr/u32-strmbtouc-tests: Likewise.
13129         * modules/unistr/u32-strncat-tests: Likewise.
13130         * modules/unistr/u32-strncmp-tests: Likewise.
13131         * modules/unistr/u32-strncpy-tests: Likewise.
13132         * modules/unistr/u32-strnlen-tests: Likewise.
13133         * modules/unistr/u32-to-u16-tests: Likewise.
13134         * modules/unistr/u32-to-u8-tests: Likewise.
13135         * modules/unistr/u32-uctomb-tests: Likewise.
13136         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
13137         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
13138         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
13139         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
13140         * modules/uniwidth/u8-strwidth-tests: Likewise.
13141         * modules/uniwidth/u8-width-tests: Likewise.
13142         * modules/uniwidth/u16-strwidth-tests: Likewise.
13143         * modules/uniwidth/u16-width-tests: Likewise.
13144         * modules/uniwidth/u32-strwidth-tests: Likewise.
13145         * modules/uniwidth/u32-width-tests: Likewise.
13146         * modules/uniwidth/width-tests: Likewise.
13147
13148 2010-05-18  Richard Jones  <rjones@redhat.com>
13149
13150         doc: users.txt: list hivex
13151         * users.txt: Add hivex.
13152
13153 2010-05-18  Richard Jones  <rjones@redhat.com>
13154
13155         doc: users.txt: list febootstrap
13156         * users.txt: Add febootstrap.
13157
13158 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
13159
13160         bootstrap: fix an error when gnulib is not used as a git submodule
13161         * build-aux/bootstrap (gnulib_path): If its length is zero then
13162         assign "gnulib" to it.
13163         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
13164
13165 2010-05-16  Bruno Haible  <bruno@clisp.org>
13166
13167         Avoid autoconf warnings about AM_ICONV.
13168         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
13169         2.64.
13170
13171 2010-05-16  Bruno Haible  <bruno@clisp.org>
13172
13173         absolute-header: Make the macro usable in more situations.
13174         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
13175         from gl_ABSOLUTE_HEADER.
13176         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
13177
13178 2010-05-16  James Youngman  <jay@gnu.org>
13179
13180         doc: update users.txt
13181         * users.txt: Add CSSC.
13182
13183 2010-05-16  Jim Meyering  <meyering@redhat.com>
13184
13185         init.sh: fix an error in the previous change; add more comments
13186         * tests/init.sh: Compare exit code in loop against 9, not 2.
13187         Patch by Bruno Haible.
13188         Make the two tests more similar by adding an empty "then" clause.
13189         Add comments.
13190
13191         init.sh: avoid unnecessary shell re-exec
13192         * tests/init.sh: Improve the re-exec-required check to first test the
13193         current shell.  If it passes the test, do not search for a shell that
13194         does pass, and do not re-exec.  This test is particularly contorted to
13195         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
13196         of $(...) evokes a syntax error and causes immediate shell exit with
13197         status 2.  Bruno Haible reported that the re-exec made it impossible
13198         to single-step through any init.sh-using script.
13199
13200 2010-05-16  Bruno Haible  <bruno@clisp.org>
13201
13202         Fix collision between gnulib's and libintl's printf replacements.
13203         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
13204         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
13205         (printf): When using GNU C, map the __printf__ function to rpl_printf
13206         via __asm__. When not using GNU C, define rpl_printf instead of
13207         __printf__.
13208         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
13209         commit.
13210         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
13211         commit.
13212         * m4/asm-underscore.m4: New file.
13213         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
13214         * modules/stdio (Files): Add m4/asm-underscore.m4.
13215         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
13216         Reported by Ben Pfaff.
13217
13218 2010-05-16  Bruno Haible  <bruno@clisp.org>
13219
13220         verify: Avoid skipping the test on openSUSE 11.0.
13221         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
13222
13223 2010-05-13  Bruno Haible  <bruno@clisp.org>
13224
13225         Avoid useless warnings from G++.
13226         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
13227         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
13228         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13229
13230 2010-05-11  Jim Meyering  <meyering@redhat.com>
13231
13232         maint.mk: tweak preceding change
13233         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
13234         regexps tighter by anchoring at EOL, and make the new group "shy"
13235         for slightly decreased overhead.
13236
13237 2010-05-11  Eric Blake  <eblake@redhat.com>
13238
13239         maint.mk: gnulib doesn't guarantee NSIG
13240         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
13241
13242 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13243
13244         test-pwrite.c: Remove unused variable declaration.
13245         * tests/test-pwrite.c (main): Remove read_buf declaration.
13246
13247         Remove useless test-pwrite.sh file.
13248         * tests/test-pwrite.sh: Delete file.
13249         * modules/pwrite-tests: Remove references.
13250         Reported by Bruno Haible.
13251
13252 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13253
13254         init.sh: fix a typo
13255         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
13256
13257 2010-05-10  Jim Meyering  <meyering@redhat.com>
13258
13259         maint.mk: avoid using a temporary file in the always-defined-macros check
13260         * top/maint.mk (.re-defmac): Remove rule.
13261         (gl_trap_): Remove definition.
13262         (sc_prohibit_always-defined_macros): Rewrite not to create and
13263         depend on a temporary file.  Instead, depend on GNU grep's ability
13264         to read a list of regular expressions from stdin when given "-f -".
13265
13266 2010-05-09  Bruno Haible  <bruno@clisp.org>
13267
13268         Update to GNU gettext 0.18, part 1.
13269         * m4/gettext.m4: Update to GNU gettext 0.18.
13270         * m4/intl.m4: Likewise.
13271         * m4/po.m4: Likewise.
13272         * modules/gettext (Files): Add m4/fcntl-o.m4.
13273         (configure.ac): Require gettext infrastructure from version 0.18.
13274
13275 2010-05-09  Jim Meyering  <meyering@redhat.com>
13276
13277         init.sh: enable MALLOC_PERTURB_
13278         * tests/init.sh: Enable glibc's malloc-perturbing option.
13279
13280         maint.mk: improve sc_cross_check_PATH_usage_in_tests
13281         With my recent change in init.sh from the two-line form:
13282             -#   : ${srcdir=.}
13283             -#   . "$srcdir/init.sh"; path_prepend_ .
13284             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
13285         I noticed that using the one-line form would cause this test
13286         to fail with a false-positive, or to stop working altogether,
13287         depending on whether help-version changed or all the tests did.
13288         * top/maint.mk (_hv_regex): Remove this definition.
13289         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
13290         (_hv_regex_strong): Use a stronger regex to check for conformance.
13291         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
13292         Give a separate diagnostic for lack of conforming use.
13293
13294         maint.mk: prohibit definition of symbols defined by gnulib
13295         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
13296         definition of symbols defined by gnulib.
13297
13298 2010-05-09  Bruno Haible  <bruno@clisp.org>
13299
13300         acl: Avoid test failure on Cygwin-hosted mingw.
13301         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
13302
13303 2010-05-09  Bruno Haible  <bruno@clisp.org>
13304
13305         error: Use system's fcntl function.
13306         * lib/error.c (fcntl): Undefine.
13307
13308 2010-05-09  Jim Meyering  <meyering@redhat.com>
13309
13310         verify: adjust formatting to be more consistent
13311         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
13312         argument-list '('s, and after one comma.
13313
13314 2010-05-09  Bruno Haible  <bruno@clisp.org>
13315
13316         error: More reliable output on mingw.
13317         * lib/error.c: Include <windows.h>.
13318         (is_open): New function.
13319         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
13320         defined.
13321
13322 2010-05-09  Bruno Haible  <bruno@clisp.org>
13323
13324         vasnprintf: Fix syntax errors in libintl build on mingw.
13325         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
13326         pad_ourselves and prec_ourselves after use.
13327
13328 2010-05-08  Bruno Haible  <bruno@clisp.org>
13329
13330         * lib/config.charset: Update comments for Cygwin 1.7.
13331         * lib/localcharset.c: Likewise.
13332
13333 2010-05-07  Jim Meyering  <meyering@redhat.com>
13334
13335         init.sh: improve comments
13336         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
13337         . "${srcdir=.}/init.sh"; path_prepend_ .
13338         Add a note about path_prepend_ and the alternative of using
13339         TESTS_ENVIRONMENT.
13340
13341 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
13342
13343         exclude: Unescape hashed patterns in wildcard mode.
13344         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
13345         to the hash list.
13346         * tests/test-exclude8.sh: New test case.
13347         * modules/exclude-tests: Add new test.
13348
13349 2010-05-05  Eric Blake  <eblake@redhat.com>
13350
13351         verify: automate tests
13352         * modules/verify-tests: New module.
13353         * tests/test-verify.sh: New file.
13354         * tests/test-verify.c: Guard each negative test with a unique id.
13355         Also avoid warning about unused left hand of comma expressions.
13356
13357 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13358
13359         Further improvements to verify.h, suggested by Eric Blake.
13360         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
13361         the GL_* versions, to avoid collision with OpenGL.
13362         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
13363         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
13364         than testing merely whether it's defined.
13365
13366         Modify verify.h to pacify gcc -Wredundant_decls.
13367         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
13368         These use the prefix "GL_" since they're likely to be useful elsewhere.
13369         We may need to break them out into a different .h file.
13370         (__COUNTER__): Define to 0 if the compiler doesn't support it.
13371         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
13372         of verify_function__.
13373
13374 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13375
13376         Tests for module pwrite.
13377         * modules/pwrite-tests: New file.
13378         * tests/test-pwrite.sh: New file.
13379         * tests/test-pwrite.c: New file.
13380
13381         New module pwrite.
13382         * lib/unistd.in.h (pwrite): New declaration.
13383         * lib/pwrite.c: New file, from glibc with modifications.
13384         * m4/pwrite.m4: New file.
13385         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
13386         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
13387         REPLACE_PWRITE.
13388         * modules/pwrite: New file.
13389         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
13390         REPLACE_PWRITE.
13391         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
13392         * doc/posix-functions/pwrite.texi: Mention the new module.
13393
13394 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13395
13396         pread: Update documentation.
13397         * doc/posix-functions/pread.texi: Mention the 'pread' module.
13398
13399 2010-05-04  Eric Blake  <eblake@redhat.com>
13400
13401         docs: update cygwin progress
13402         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
13403         this bug.
13404         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
13405         Added in cygwin 1.7.2.
13406         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
13407         Likewise.
13408         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
13409         Likewise.
13410         * doc/glibc-functions/dup3.texi (dup3): Likewise.
13411         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13412         * doc/glibc-functions/accept4.texi (accept4): Likewise.
13413         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
13414         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
13415         Mention nproc module.
13416         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
13417         bug in cygwin 1.7.5 addition.
13418         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
13419         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
13420         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
13421         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
13422         1.7.5.
13423         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
13424         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
13425         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
13426         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
13427         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
13428         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
13429         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
13430         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
13431         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
13432         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
13433         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
13434         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
13435         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
13436         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
13437         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
13438         Likewise.
13439         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
13440         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
13441         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
13442         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
13443         Likewise.
13444         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
13445         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
13446         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
13447         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
13448         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
13449         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
13450         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
13451         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
13452         Likewise.
13453         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
13454         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
13455         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
13456         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
13457         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
13458         Likewise.
13459         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
13460         Likewise.
13461         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
13462         Likewise.
13463         * doc/glibc-functions/xdrrec_endofrecord.texi
13464         (xdrrec_endofrecord): Likewise.
13465         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
13466         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
13467         Likewise.
13468         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
13469         Likewise.
13470
13471 2010-05-04  Jim Meyering  <meyering@redhat.com>
13472
13473         gendocs.sh: make its "-s FILE" option more useful
13474         * build-aux/gendocs.sh: When honoring the -s FILE option, update
13475         $PACKAGE to reflect the probably-different basename of "FILE".
13476
13477 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13478
13479         bootstrap: don't ignore download_po_files failure
13480         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
13481         failure.
13482
13483 2010-05-03  Jim Meyering  <meyering@redhat.com>
13484
13485         maint.mk: allow to pass options to gendocs.sh
13486         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
13487         (gendocs_options_): New overridable variable.
13488
13489         gnu-web-doc-update: don't ignore configure or build failure
13490         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
13491
13492         announce-gen: backslash-escape '@'s in --help output
13493         * build-aux/announce-gen: Fix syntax errors.
13494
13495         maint.mk, announce-gen: allow project-specific announcement mail headers
13496         * top/maint.mk (translation_project_): Define default.
13497         (announcement_Cc_, announcement_mail_headers_): Likewise.
13498         (announcement): Invoke announce-gen with new --mail-headers option.
13499         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
13500
13501         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
13502         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
13503         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
13504         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
13505         line in the "err2" output file when running "make check" in verbose
13506         mode (i.e., with set -x enabled).
13507
13508 2010-05-03  Bruno Haible  <bruno@clisp.org>
13509
13510         wctob: Fix for weird platforms.
13511         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
13512         argument value.
13513
13514 2010-05-03  Jim Meyering  <meyering@redhat.com>
13515
13516         maint.mk: prohibit unwarranted use of <strings.h>
13517         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
13518         strings.h in a file that does not also use strcasecmp, strncasecmp,
13519         ffs or ffsll.
13520
13521         maint.mk: remove obsolete comments
13522         * top/maint.mk: Remove stale, commented-out rules.
13523
13524 2010-05-02  Bruno Haible  <bruno@clisp.org>
13525
13526         wcwidth: Declare also when it's aliased.
13527         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
13528         macro.
13529
13530 2010-05-02  Bruno Haible  <bruno@clisp.org>
13531
13532         Fix regression from 2010-04-25.
13533         * gnulib-tool (func_modules_transitive_closure): Check the status of
13534         all modules, not only of the tests that are of the form foo-tests where
13535         foo is a module.
13536
13537 2010-05-02  Bruno Haible  <bruno@clisp.org>
13538
13539         wctob: Work around nasty Cygwin 1.7.2 bug.
13540         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
13541         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
13542
13543 2010-05-01  Bruno Haible  <bruno@clisp.org>
13544
13545         fpurge: Sharper test.
13546         * tests/test-fpurge.c (main): Add one more ftell check.
13547         * modules/fpurge-tests (Depends-on): Add ftell.
13548         Suggested by Eric Blake.
13549
13550 2010-05-01  Bruno Haible  <bruno@clisp.org>
13551
13552         ftello: Another test.
13553         * tests/test-ftello3.c: New file.
13554         * modules/ftello-tests (Files): Add it.
13555         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13556         MOSTLYCLEANFILES.
13557
13558         ftell: Another test.
13559         * tests/test-ftell3.c: New file.
13560         * modules/ftell-tests (Files): Add it.
13561         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13562         MOSTLYCLEANFILES.
13563
13564 2010-05-01  Bruno Haible  <bruno@clisp.org>
13565
13566         ftell, ftello: Work around Solaris bug.
13567         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
13568         * lib/ftello.c: Include stdio-impl.h.
13569         (ftello): On Solaris, when _IOWRT is set, compute the result without
13570         looking at _IOREAD.
13571         * modules/ftello (Files): Add lib/stdio-impl.h.
13572         * doc/posix-functions/ftell.texi: Mention Solaris bug.
13573         * doc/posix-functions/ftello.texi: Likewise.
13574         Reported by Eric Blake.
13575
13576 2010-05-01  Bruno Haible  <bruno@clisp.org>
13577
13578         freading: Adapt to special meaning of _IOREAD flag on Solaris.
13579         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
13580         the _IOWRT flag is also set.
13581
13582 2010-05-01  Bruno Haible  <bruno@clisp.org>
13583
13584         Fix doc about a HP-UX stdio bug.
13585         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
13586         * doc/posix-functions/ftello.texi: Likewise.
13587
13588 2010-05-01  Bruno Haible  <bruno@clisp.org>
13589
13590         lseek test: Fix failure on Solaris.
13591         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
13592         output.
13593
13594 2010-04-30  Jim Meyering  <meyering@redhat.com>
13595
13596         bootstrap: don't ignore failure to generate po*/Makevars
13597         * build-aux/bootstrap (with_gettext): Don't ignore failure
13598         to create po/Makevars or runtime-po/Makevars.
13599
13600 2010-04-29  Eric Blake  <eblake@redhat.com>
13601
13602         headers: relax license to LGPLv2+
13603         * modules/fcntl-h (License): Relax license.
13604         * modules/getopt-posix (License): Likewise.
13605         * modules/locale (License): Likewise.
13606         * modules/math (License): Likewise.
13607         * modules/pty (License): Likewise.
13608         * modules/sched (License): Likewise.
13609         * modules/search (License): Likewise.
13610         * modules/spawn (License): Likewise.
13611         * modules/stdarg (License): Likewise.
13612         * modules/sysexits (License): Likewise.
13613
13614 2010-04-29  Jim Meyering  <meyering@redhat.com>
13615
13616         inttypes: relax license to LGPLv2+
13617         * modules/inttypes (License): Relax license.
13618
13619 2010-04-29  Simon Josefsson  <simon@josefsson.org>
13620
13621         * top/maint.mk (indent): Run twice to produce idempotent results.
13622
13623 2010-04-28  Bruno Haible  <bruno@clisp.org>
13624
13625         getdate: Generate getdate.c in the source directory.
13626         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
13627         MOSTLYCLEANFILES.
13628         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
13629
13630 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
13631
13632         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
13633         is not declared as a const *; avoid warnings in that case.
13634
13635 2010-04-28  Eric Blake  <eblake@redhat.com>
13636
13637         canonicalize-lgpl: avoid compiler warning
13638         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
13639         declaration' / 'extraneous semicolon' warning with some compilers.
13640         Reported by Andreas Gruenbacher.
13641
13642 2010-04-28  Jim Meyering  <meyering@redhat.com>
13643
13644         init.sh: ensure a more reliable exit status when exiting via trap
13645         * tests/init.sh (setup_): Don't rely on $? in signal handler.
13646         Inspired by patches from Dmitry V. Levin.
13647         Also trap on signal 3 (SIGQUIT).
13648
13649 2010-04-27  Bruno Haible  <bruno@clisp.org>
13650
13651         Update doc about utimes().
13652         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
13653         'utimens' module.
13654         Reported by Andreas Gruenbacher <agruen@suse.de>.
13655
13656 2010-04-27  Eric Blake  <eblake@redhat.com>
13657
13658         full-read, full-write: relax license
13659         * modules/full-read (License): Drop to LGPLv2+.
13660         * modules/full-write (License): Likewise.
13661         * modules/safe-read (License): Likewise.
13662         * modules/safe-write (License): Likewise.
13663
13664         pthread: mention library for linking
13665         * modules/pthread (Link): Mention $(LIB_PTHREAD).
13666
13667 2010-04-27  Jim Meyering  <meyering@redhat.com>
13668
13669         maint.mk: fix a bug introduced in last change
13670         * top/maint.mk (gl_assured_headers_): Now that all names are on
13671         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
13672         is not anchored to end of word, it should be adequate.
13673
13674         maint.mk: avoid side-effect in latest syntax-check
13675         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
13676         to run commands via $(shell...), and hence to incur cost only when
13677         the new rule is actually run.
13678
13679         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
13680         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
13681         and use that to create a regexp used to detect all #if HAVE_..._H uses.
13682         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
13683         (gl_assured_headers_, az_, AZ_): Define.
13684         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
13685
13686 2010-04-26  Jim Meyering  <jim@meyering.net>
13687             Bruno Haible  <bruno@clisp.org>
13688
13689         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
13690         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
13691         Prompted by an exchange with Gilles Espinasse.
13692
13693 2010-04-26  Jim Meyering  <meyering@redhat.com>
13694
13695         git-version-gen: aesthetic tweak
13696         * build-aux/git-version-gen: Use "$nl" rather than a literal,
13697         so that the command remains on a single line.
13698
13699 2010-04-26  Eric Blake  <eblake@redhat.com>
13700
13701         git-version-gen: allow use on EBCDIC hosts
13702         * build-aux/git-version-gen (dirty): Use literal rather than tying
13703         ourselves to ascii.
13704         Reported by Steve Goetze.
13705
13706 2010-04-25  Bruno Haible  <bruno@clisp.org>
13707
13708         netdb: Add support for GNULIB_POSIXCHECK.
13709         * lib/netdb.in.h: Include warn-on-use.h.
13710         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
13711         functions are used when GNULIB_POSIXCHECK is defined and the
13712         getaddrinfo module is not in use.
13713         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
13714         freeaddrinfo, gai_strerror, getnameinfo are declared.
13715         * modules/netdb (Depends-on): Add warn-on-use.
13716         (Makefile.am): Include warn-on-use.h in netdb.h.
13717
13718 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
13719
13720         build: avoid "make check" failure without .git/ directory
13721         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
13722         there is no .git/ directory.
13723
13724 2010-04-25  Bruno Haible  <bruno@clisp.org>
13725
13726         ptsname: Fix misuse of ttyname_r.
13727         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
13728         of errno.
13729
13730 2010-04-25  Bruno Haible  <bruno@clisp.org>
13731
13732         ttyname_r: Make it work on Solaris 10.
13733         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
13734         if the system function has the POSIX declaration. Test whether the
13735         function fails if the buffer is less than 128 bytes large.
13736         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
13737         system's ttyname_r function. Provide a reasonably large buffer.
13738         * modules/ttyname_r (Depends-on): Add extensions.
13739         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
13740
13741 2010-04-25  Bruno Haible  <bruno@clisp.org>
13742
13743         Use the 'extensions' module for some more functions on Solaris.
13744         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
13745         module.
13746         * doc/posix-functions/ctime_r.texi: Likewise.
13747         * doc/posix-functions/getgrgid_r.texi: Likewise.
13748         * doc/posix-functions/getgrnam_r.texi: Likewise.
13749         * doc/posix-functions/getpwnam_r.texi: Likewise.
13750         * doc/posix-functions/getpwuid_r.texi: Likewise.
13751         * doc/posix-functions/readdir_r.texi: Likewise.
13752         * doc/posix-functions/sigwait.texi: Likewise.
13753         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
13754         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
13755
13756 2010-04-25  Bruno Haible  <bruno@clisp.org>
13757
13758         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
13759         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
13760         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
13761         * lib/ttyname_r.c: Include <limits.h>.
13762         (ttyname_r): Define using the system's ttyname_r function, if it exists
13763         and not on Solaris.
13764         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
13765         set.
13766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
13767         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
13768         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
13769         Reported by Simon Josefsson.
13770
13771 2010-04-25  Bruno Haible  <bruno@clisp.org>
13772
13773         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
13774         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
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/getlogin_r.texi: Likewise.
13779         * doc/posix-functions/getpwnam_r.texi: Likewise.
13780         * doc/posix-functions/getpwuid_r.texi: Likewise.
13781         * doc/posix-functions/readdir_r.texi: Likewise.
13782         * doc/posix-functions/sigwait.texi: Likewise.
13783         * doc/posix-functions/ttyname_r.texi: Likewise.
13784         Reported by Simon Josefsson.
13785
13786 2010-04-25  Bruno Haible  <bruno@clisp.org>
13787
13788         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
13789         * gnulib-tool (func_usage): Document that --with-*-tests options apply
13790         also to --create-testdir.
13791         (func_acceptable): Don't consider the status of *-tests modules here.
13792         (func_modules_transitive_closure): Consider it here, before including a
13793         test module.
13794         (func_import, func_create_testdir): Set inc_all_direct_tests,
13795         inc_all_indirect_tests.
13796         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
13797         --create-testdir and --create-megatestdir.
13798
13799 2010-04-25  Bruno Haible  <bruno@clisp.org>
13800
13801         gnulib-tool: Add --without-*-tests options.
13802         * gnulib-tool (func_usage): Document the --without-*-tests options.
13803         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
13804         excl_unportable_tests): New variables.
13805         Fail if they are specified with --import or --update.
13806         (func_acceptable): Respect the excl_*_tests variables.
13807         (func_import): Set the excl_*_tests variables to empty.
13808
13809 2010-04-25  Simon Josefsson  <simon@josefsson.org>
13810             Bruno Haible  <bruno@clisp.org>
13811
13812         Work around a MacOS X 10.4 bug with openpty.
13813         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
13814         * tests/test-openpty.c (main): Close the master side explicitly.
13815
13816 2010-04-25  Bruno Haible  <bruno@clisp.org>
13817
13818         strnlen: Fix a C++ test error on MacOS X and Solaris.
13819         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
13820         the function is not declared.
13821         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
13822         Simon Josefsson.
13823
13824 2010-04-24  Bruno Haible  <bruno@clisp.org>
13825
13826         Avoid a gcc warning.
13827         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
13828         of correct type for %08lx directive.
13829         Reported by Eric Blake.
13830
13831 2010-04-24  Bruno Haible  <bruno@clisp.org>
13832
13833         vasnprintf: Correct errno value in case of out-of-memory.
13834         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
13835         or sprintf. Use the errno value from SNPRINTF or sprintf.
13836         Reported by Ian Beckwith <ianb@erislabs.net>.
13837
13838 2010-04-24  Bruno Haible  <bruno@clisp.org>
13839
13840         ansi-c++-opt: Find correct compiler when cross-compiling.
13841         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
13842         AC_CHECK_PROGS.
13843         Reported by Simon Josefsson.
13844
13845 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
13846
13847         vc-list-files: Add support for subversion
13848         * build-aux/vc-list-files: Use "svn list" to generate the list of
13849         files controlled by subversion.
13850
13851 2010-04-23  Jim Meyering  <meyering@redhat.com>
13852
13853         vc-list-files tests: convert to use init.sh
13854         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
13855         path_prepend_.
13856         Use Exit, not exit.
13857         Use skip_ rather than open coding it.
13858         Remove trap set-up and compare definitions.
13859         * tests/test-vc-list-files-git.sh: Likewise.
13860         * modules/vc-list-files-tests (Files): Add tests/init.sh.
13861
13862 2010-04-22  Simon Josefsson  <simon@josefsson.org>
13863
13864         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
13865         backup files.
13866
13867 2010-04-21  Simon Josefsson  <simon@josefsson.org>
13868
13869         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
13870
13871 2010-04-20  Eric Blake  <eblake@redhat.com>
13872
13873         tests: be robust to ignored SIGPIPE
13874         * tests/test-select-in.sh: Consume all output.
13875         * tests/test-lseek.sh: Check correct exit status, while avoiding
13876         EPIPE.
13877
13878 2010-04-20  Simon Josefsson  <simon@josefsson.org>
13879             Bruno Haible  <bruno@clisp.org>
13880
13881         visibility: Don't use -fvisibility if it leads to a warning.
13882         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
13883         yes, don't pretend that visibility works if it leads to a warning.
13884         Reported by Mike Gran <spk121@yahoo.com>.
13885
13886 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
13887
13888         * build-aux/bootstrap: Use "git -h" for testing for supported options
13889         instead of "git --help".  The short-form option only shows a summary,
13890         and doesn't layout the full man page.  Grep for the full option name
13891         in the summary, too.
13892
13893 2010-04-19  Bruno Haible  <bruno@clisp.org>
13894
13895         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
13896         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
13897         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
13898         mention of RELOCATABLE_STRIP.
13899         Reported by Sylvain Beucler <beuc@beuc.net>.
13900
13901 2010-04-19  Bruno Haible  <bruno@clisp.org>
13902
13903         * lib/diffseq.h: Fix typo in comment.
13904         Reported by Eric Blake.
13905
13906 2010-04-19  Bruno Haible  <bruno@clisp.org>
13907
13908         ioctl: Move autoconf macro to a .m4 file.
13909         * m4/ioctl.m4: New file, extracted from modules/ioctl.
13910         * modules/ioctl (Files): Add it.
13911         (configure.ac): Simply invoke gl_FUNC_IOCTL.
13912         Reported by Ian Beckwith <ianb@erislabs.net>.
13913
13914 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
13915             Bruno Haible  <bruno@clisp.org>
13916
13917         diffseq: Accommodate use-case with abstract arrays.
13918         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
13919         is not defined.
13920         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
13921         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
13922
13923 2010-04-18  Bruno Haible  <bruno@clisp.org>
13924
13925         * doc/posix-headers/stdbool.texi: More precise wording.
13926
13927 2010-04-17  Jim Meyering  <meyering@redhat.com>
13928
13929         maint.mk: use gnu-style indentation in an embedded perl script
13930         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
13931         Rename variable: s/two/last_two_bytes/
13932
13933 2010-04-16  Eric Blake  <eblake@redhat.com>
13934
13935         test-stdbool: skip test that fails with Solaris CC
13936         * tests/test-stdbool.c (f): Skip test that causes compilation
13937         error under buggy C++ compiler.
13938         * lib/stdbool.in.h: Document the limitation.
13939         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
13940
13941         setenv: allow compilation with C++
13942         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
13943         register keyword.
13944
13945         stdint: allow test to pass with C++
13946         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
13947
13948         getopt: allow compilation with C++
13949         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
13950         struct.
13951         * lib/getopt.c (_getopt_internal_r): Use correct type.
13952         Reported by Dagobert Michelson, via Joel E. Denny.
13953
13954 2010-04-16  Bruno Haible  <bruno@clisp.org>
13955
13956         Override netdb.h always.
13957         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
13958         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
13959         Reported by Ludovic Courtès <ludo@gnu.org>.
13960
13961 2010-04-15  Bruno Haible  <bruno@clisp.org>
13962
13963         openpty: Fix mistake from 2010-03-21.
13964         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
13965         Reported by Simon Josefsson.
13966
13967 2010-04-15  Eric Blake  <eblake@redhat.com>
13968
13969         test-forkpty: fix expected signature
13970         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
13971         Reported by Simon Josefsson.
13972
13973 2010-04-15  Jim Meyering  <meyering@redhat.com>
13974
13975         maint.mk: texinfo_suffix_re_: correct the default regexp
13976         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
13977
13978         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
13979         make it configurable via texinfo_suffix_re_.
13980
13981 2010-04-14  Eric Blake  <eblake@redhat.com>
13982
13983         strtok_r: relax license to LGPLv2+
13984         * modules/strtok_r (License): Relax license.
13985         Reported by Matthias Bolte.
13986
13987 2010-04-14  Simon Josefsson  <simon@josefsson.org>
13988
13989         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
13990         version 1.4.4 by default instead of requiring the libgcrypt
13991         version used during build.  This makes it possible to use the
13992         application with older but still binary compatible libgcrypt
13993         versions.
13994
13995 2010-04-13  Eric Blake  <eblake@redhat.com>
13996
13997         getopt-gnu: match recent glibc fixes and posix ruling
13998         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
13999         '+' handling, when requesting extensions.
14000         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
14001         'W;' handling.
14002         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
14003         * doc/posix-functions/getopt.texi (getopt): Document this.
14004         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14005         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14006         Likewise.
14007
14008         getopt: merge bug fixes from glibc
14009         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
14010         diagnostics.  Honor '+:' correctly.  Reject ';'.
14011
14012         getopt-posix: detect MacOS bug
14013         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
14014         optind when missing a required argument.
14015         * doc/posix-functions/getopt.texi (getopt): Document the bug.
14016         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14017         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14018         Likewise.
14019
14020         getopt-posix: avoid spurious failure on Solaris
14021         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
14022         an indicator that setting optind=1 is sufficient for reset.
14023
14024         getopt-posix: avoid spurious failure on FreeBSD
14025         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
14026         in POSIX mode, since the m4 test uses it.
14027
14028         gnulib-tool: silence warning on BSD sh
14029         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
14030
14031 2010-04-13  Jim Meyering  <meyering@redhat.com>
14032
14033         doc: users.txt: GNU patch now uses gnulib
14034         * users.txt: Add patch.
14035
14036 2010-04-12  Jim Meyering  <meyering@redhat.com>
14037
14038         maint.mk: generate more concise timing data for syntax-check rules
14039         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
14040         " done" from each line that reports a syntax-check test duration.
14041
14042 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
14043
14044         git-version-gen: use "git update-index..." rather than "git status"
14045         * build-aux/git-version-gen: Use git update-index --refresh, not
14046         "git status".  With some versions of git, "git status" would fail
14047         to update the index and result in an unwarranted "-dirty" suffix.
14048
14049 2010-04-11  Jim Meyering  <meyering@redhat.com>
14050
14051         openat: correct formatting (no semantic change)
14052         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
14053         Suggested by Bruno Haible.
14054
14055 2010-04-11  Bruno Haible  <bruno@clisp.org>
14056
14057         Stricter declaration checking in testdirs.
14058         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14059         If for_tests is true, augment AM_CPPFLAGS to define
14060         GNULIB_STRICT_CHECKING.
14061         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
14062         GNULIB_STRICT_CHECKING is defined, verify that the function is
14063         declared.
14064
14065 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
14066             Bruno Haible  <bruno@clisp.org>
14067
14068         libunistring: Improve configure output.
14069         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
14070         Don't say "consider installing GNU libunistring" when checking again
14071         with libiconv.
14072
14073 2010-04-11  Bruno Haible  <bruno@clisp.org>
14074
14075         libunistring: Correct value of $LTLIBUNISTRING.
14076         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
14077         correct the value of $LTLIBUNISTRING.
14078
14079 2010-04-11  Bruno Haible  <bruno@clisp.org>
14080
14081         havelib: Add static libraries to LIBS in the right order.
14082         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
14083         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
14084
14085 2010-04-11  Bruno Haible  <bruno@clisp.org>
14086
14087         libunistring: Detect libunistring also when it depends on libiconv.
14088         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
14089         the second AC_LIB_HAVE_LINKFLAGS invocation.
14090
14091 2010-04-11  James Youngman  <jay@gnu.org>
14092
14093         close-stream: declare local scalars to be "const"
14094         * lib/close-stream.c (close_stream): Make boolean variables const
14095         to document the fact that we set but do not change them.
14096
14097 2010-04-11  Bruno Haible  <bruno@clisp.org>
14098
14099         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
14100
14101 2010-04-11  Jim Meyering  <meyering@redhat.com>
14102
14103         maint.mk: don't include dist-check.mk
14104         * top/maint.mk: Remove bogus include directive.
14105
14106         maint.mk: improve empty-line-at-EOF check
14107         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
14108         solution, rather than tail+Perl-based one.  The latter would read
14109         a few kilobytes from the end of each file, and did not handle empty
14110         files properly.
14111
14112         maint.mk: print the elapsed time for each syntax-check rule
14113         * top/maint.mk (sc_m_rules_): Save start time in a file.
14114         (sc_z_rules_): New rules: remove temp file and print elapsed time.
14115         (local-check): Interpose the .z rules
14116
14117 2010-04-11  Jim Meyering  <meyering@redhat.com>
14118
14119         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
14120         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
14121         empty file with one that ends in an empty line.
14122
14123 2010-04-10  Bruno Haible  <bruno@clisp.org>
14124
14125         mkdir: Make it work on mingw64.
14126         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
14127         * lib/mkdir.c: Update comment.
14128         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
14129
14130 2010-04-10  Bruno Haible  <bruno@clisp.org>
14131
14132         Don't override improved macro from newer autoconf.
14133         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
14134         autoconf >= 2.62.
14135         Reported by Joel E. Denny <jdenny@clemson.edu>.
14136
14137 2010-04-10  Jim Meyering  <meyering@redhat.com>
14138
14139         maint.mk: new syntax-check rule: prohibit empty lines at end of file
14140         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
14141
14142         maint.mk: correct a diagnostic
14143         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
14144         in diagnostic; now use $prohibit.
14145
14146 2010-04-10  Bruno Haible  <address@hidden>
14147
14148         fchownat: Fix a C++ test error on Solaris 8.
14149         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
14150         the function does not exist.
14151
14152 2010-04-10  Bruno Haible  <bruno@clisp.org>
14153
14154         vasnprintf: Add more tests.
14155         * tests/test-vasnprintf-posix.c: Include <errno.h>.
14156         (test_function): Test converting an invalid wide string.
14157
14158         vasnprintf: Correct handling of unconvertible wide string arguments.
14159         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
14160         VASNPRINTF.
14161         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
14162         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
14163         smaller than the expected maximum need for the directive. Set errno to
14164         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
14165         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
14166         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
14167         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
14168         * modules/vasnprintf (Files): Add m4/printf.m4.
14169         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14170
14171 2010-04-10  Bruno Haible  <bruno@clisp.org>
14172
14173         vasnprintf: Fix crash in %ls directive.
14174         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
14175         string is passed as argument to %ls, with no precision and no width.
14176         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14177
14178 2010-04-10  Bruno Haible  <bruno@clisp.org>
14179
14180         vasnprintf: Fix multiple test failures on mingw.
14181         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
14182         _snprintf, or snwprintf, not _snwprintf.
14183
14184 2010-04-10  Bruno Haible  <bruno@clisp.org>
14185
14186         write: Fix a C++ test error on mingw.
14187         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
14188
14189 2010-04-10  Bruno Haible  <bruno@clisp.org>
14190
14191         vasnprintf test: Reduce code duplication.
14192         * tests/test-vasnprintf.c (test_function): New function, extracted from
14193         test_vasnprintf.
14194         (test_vasnprintf, test_asnprintf): Invoke it.
14195
14196 2010-04-10  Bruno Haible  <bruno@clisp.org>
14197
14198         strnlen: Fix warning in C++ mode on MacOS X.
14199         * lib/string.in.h (strnlen): Use the modern idiom.
14200         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
14201         defining strnlen as a macro already in <config.h>.
14202         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14203         REPLACE_STRNLEN.
14204         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
14205         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14206
14207 2010-04-08  James Youngman  <jay@gnu.org>
14208
14209         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
14210         the example.
14211
14212 2010-04-09  Jim Meyering  <meyering@redhat.com>
14213
14214         maint.mk: print better diagnostic when there is no $(_hv_file)
14215         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
14216         announce that when $(_hv_file) (aka help-version) does not exist.
14217
14218         init.sh: run tr in the "C" locale to avoid multibyte interpretation
14219         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
14220         not try to interpret its random input bytes.  Jarno Rajahalme reported
14221         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
14222         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
14223         (mktempd_): Likewise, just in case.
14224
14225         ftruncate: add two years to projected module removal date: 2012
14226         * m4/ftruncate.m4: Adjust comments.
14227
14228         ftruncate: mark module as obsolete; even MinGW provides it, now
14229         * modules/ftruncate (Status): Obsolete.
14230         (Notice): Say that.
14231         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
14232         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
14233
14234 2010-04-08  Bruno Haible  <bruno@clisp.org>
14235
14236         Fix side effects from tests-related modules.
14237         * modules/dprintf-posix (Comment): New section.
14238         * modules/fprintf-posix (Comment): Likewise.
14239         * modules/obstack-printf-posix (Comment): Likewise.
14240         * modules/printf-posix (Comment): Likewise.
14241         * modules/snprintf-posix (Comment): Likewise.
14242         * modules/sprintf-posix (Comment): Likewise.
14243         * modules/vasnprintf-posix (Comment): Likewise.
14244         * modules/vasprintf-posix (Comment): Likewise.
14245         * modules/vdprintf-posix (Comment): Likewise.
14246         * modules/vfprintf-posix (Comment): Likewise.
14247         * modules/vprintf-posix (Comment): Likewise.
14248         * modules/vsnprintf-posix (Comment): Likewise.
14249         * modules/vsprintf-posix (Comment): Likewise.
14250         * modules/xprintf-posix (Comment): Likewise.
14251         * modules/xvasprintf-posix (Comment): Likewise.
14252         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
14253         * modules/floorf-tests (Depends-on): Likewise.
14254         * modules/round-tests (Depends-on): Likewise.
14255         * modules/roundf-tests (Depends-on): Likewise.
14256         * modules/trunc-tests (Depends-on): Likewise.
14257         * modules/truncf-tests (Depends-on): Likewise.
14258         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
14259         'fprintf-posix' module is not present.
14260         * tests/test-floorf2.c (check): Likewise.
14261         * tests/test-trunc2.c (check): Likewise.
14262         * tests/test-truncf2.c (check): Likewise.
14263         * tests/test-round2.c (equal): Likewise.
14264         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14265
14266 2010-04-07  Karl Berry  <karl@gnu.org>
14267
14268         * config/srclist.txt,
14269         * config/srclistvars.sh,
14270         * config/srclist-update: doc fixes.
14271
14272 2010-04-07  Jim Meyering  <meyering@redhat.com>
14273
14274         maint.mk: add a PATH crosschecking syntax-check rule
14275         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
14276         Useful if you use a test like the one in help-version (coreutils,
14277         diffutils, grep, gzip) that ensures $(VERSION) matches what is
14278         printed by prog --version.
14279
14280 2010-04-06  Bruno Haible  <bruno@clisp.org>
14281
14282         Fix link error on mingw.
14283         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
14284         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
14285
14286 2010-04-06  Bruno Haible  <bruno@clisp.org>
14287
14288         Assume rmdir exists.
14289         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
14290
14291 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
14292
14293         doc: update users.txt
14294         * users.txt: Add gcal.
14295
14296 2010-04-06  Jim Meyering  <meyering@redhat.com>
14297
14298         init.sh: simply unset TMPDIR rather than risking env -i
14299         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
14300         although it probably works fine on all Unix-based systems, some
14301         systems (Cygwin?) cannot tolerate a totally cleared environment.
14302         Suggestion from Eric Blake.
14303
14304 2010-04-06  Jim Meyering  <meyering@redhat.com>
14305
14306         init.sh: portability fix: use env's POSIX-specified -i option not -u
14307         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
14308         than unportable env -u.  Solaris 5.11's env lacks support for -u.
14309
14310 2010-04-05  Bruno Haible  <bruno@clisp.org>
14311
14312         btowc: Work around Cygwin 1.7.2 bug.
14313         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
14314         does not map NUL to 0.
14315         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
14316
14317 2010-04-05  Bruno Haible  <bruno@clisp.org>
14318
14319         Make the multithread modules work on Cygwin 1.7.2.
14320         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
14321         imported symbols can be declared weak, so that it returns "no" on
14322         Cygwin 1.7.2.
14323
14324 2010-04-05  Bruno Haible  <bruno@clisp.org>
14325
14326         Use the module 'strncat'.
14327         * modules/unistr/u8-strncat (Depends-on): Add strncat.
14328
14329         Tests for module 'strncat'.
14330         * modules/strncat-tests: New file.
14331         * tests/test-strncat.c: New file.
14332
14333         New module 'strncat'.
14334         * lib/string.in.h (strncat): New declaration.
14335         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
14336         * m4/strncat.m4: New file, based on m4/memchr.m4.
14337         * modules/strncat: New file.
14338         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
14339         is declared.
14340         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
14341         REPLACE_STRNCAT.
14342         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
14343         REPLACE_STRNCAT.
14344         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
14345         module.
14346         * tests/test-string-c++.cc: Check signature of strncat.
14347
14348 2010-04-05  Jim Meyering  <meyering@redhat.com>
14349
14350         xstrtoumax-tests: convert to use init.sh
14351         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
14352         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14353         Use Exit, not exit.
14354         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14355
14356         xstrtoimax-tests: convert to use init.sh
14357         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
14358         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14359         Use Exit, not exit.
14360         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14361
14362 2010-04-05  Bruno Haible  <bruno@clisp.org>
14363
14364         sys_socket: Avoid #define replacements in C++ mode.
14365         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
14366         warning to the function if possible, rather than #defining the symbol
14367         to a dysfunctional alias.
14368
14369 2010-04-05  Bruno Haible  <bruno@clisp.org>
14370
14371         fseeko: Fix C++ test error on mingw.
14372         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
14373         gl_FUNC_FSEEKO.
14374         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
14375         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
14376         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
14377         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
14378
14379 2010-04-05  Bruno Haible  <bruno@clisp.org>
14380
14381         duplocale: Improve test output.
14382         * tests/test-duplocale.c (main): Print reason for skipped test.
14383
14384 2010-04-05  Bruno Haible  <bruno@clisp.org>
14385
14386         Assume rmdir exists.
14387         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
14388         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
14389
14390 2010-04-05  Bruno Haible  <bruno@clisp.org>
14391
14392         Fix link error on Solaris 8 with cc.
14393         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
14394
14395 2010-04-05  Bruno Haible  <bruno@clisp.org>
14396
14397         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14398         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
14399
14400 2010-04-05  Bruno Haible  <bruno@clisp.org>
14401
14402         vasprintf: Update documentation.
14403         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
14404
14405 2010-04-05  Bruno Haible  <bruno@clisp.org>
14406
14407         ptsname: Improve test.
14408         * tests/test-ptsname.c (main): Also try the various master names of BSD
14409         systems.
14410
14411 2010-04-05  Bruno Haible  <bruno@clisp.org>
14412
14413         memchr: Avoid a possible C++ test error.
14414         * lib/string.in.h (memchr): Provide declaration if function is missing.
14415         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
14416         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
14417         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
14418         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
14419
14420 2010-04-05  Bruno Haible  <bruno@clisp.org>
14421
14422         strtok_r: Improve idiom.
14423         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
14424         AC_LIBOBJ is used.
14425
14426 2010-04-05  Bruno Haible  <bruno@clisp.org>
14427
14428         strdup: Improve idiom.
14429         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
14430         AC_LIBOBJ is used.
14431         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
14432         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
14433         when AC_LIBOBJ is used.
14434
14435 2010-04-05  Bruno Haible  <bruno@clisp.org>
14436
14437         mbsinit, mbrtowc, wcrtomb: Improve idioms.
14438         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
14439         don't set REPLACE_MBSINIT to 1.
14440         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
14441         don't set REPLACE_MBRTOWC to 1.
14442         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
14443         exist, don't set REPLACE_MBSRTOWCS to 1.
14444         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
14445         exist, don't set REPLACE_MBSNRTOWCS to 1.
14446         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
14447         don't set REPLACE_WCRTOMB to 1.
14448         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
14449         exist, don't set REPLACE_WCSRTOMBS to 1.
14450         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
14451         exist, don't set REPLACE_WCSNRTOMBS to 1.
14452
14453 2010-04-05  Bruno Haible  <bruno@clisp.org>
14454
14455         ldexpl: Improve idiom.
14456         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
14457         make sure to set HAVE_DECL_LDEXPL to 0.
14458
14459 2010-04-05  Jim Meyering  <meyering@redhat.com>
14460
14461         xstrtol-tests: convert to use init.sh
14462         * modules/xstrtol-tests (Files): Add tests/init.sh.
14463         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14464         Use Exit, not exit.
14465         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14466
14467         atexit-tests: convert to use init.sh
14468         * modules/atexit-tests (Files): Add tests/init.sh.
14469         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14470         Use Exit, not exit.
14471         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14472
14473         init.sh: fix typo
14474         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
14475
14476         init.sh: make it easier for a test script to write to the tty, ...
14477         when using automake's parallel-tests mode.
14478         * tests/init.sh (stderr_fileno_): Define overridable variable.
14479         (warn_): New function, to use it.
14480         (fail_, skip_, framework_failure_): Use warn_.
14481
14482 2010-04-04  Bruno Haible  <bruno@clisp.org>
14483
14484         btowc: Avoid warning.
14485         * lib/btowc.c: Include <stdlib.h>.
14486         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
14487
14488 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14489             Bruno Haible  <bruno@clisp.org>
14490
14491         wchar: Port to NetBSD 1.5.
14492         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
14493         * lib/wctype.in.h (WEOF): Likewise.
14494
14495 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14496             Bruno Haible  <bruno@clisp.org>
14497
14498         Port extended stdio to NetBSD 1.5.
14499         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
14500         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
14501         older.
14502
14503 2010-04-04  Bruno Haible  <bruno@clisp.org>
14504
14505         string: Remove unused substitution.
14506         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14507         HAVE_DECL_STRERROR.
14508         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
14509
14510 2010-04-04  Bruno Haible  <bruno@clisp.org>
14511
14512         strtod: Avoid a possible C++ test error.
14513         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
14514         set REPLACE_STRTOD.
14515
14516 2010-04-04  Bruno Haible  <bruno@clisp.org>
14517
14518         strerror: Update documentation.
14519         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
14520
14521 2010-04-04  Bruno Haible  <bruno@clisp.org>
14522
14523         stdio: Fix some C++ test errors on Solaris 8 with GCC.
14524         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
14525         _GL_CXXALIAS_SYS_CAST.
14526
14527 2010-04-04  Bruno Haible  <bruno@clisp.org>
14528
14529         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14530         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
14531         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
14532         REPLACE_FREXPL to 1.
14533         * doc/posix-functions/frexpl.texi: Update documentation.
14534
14535 2010-04-04  Bruno Haible  <bruno@clisp.org>
14536
14537         math: Fix some C++ test errors on Solaris 8 and Cygwin.
14538         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
14539
14540 2010-04-04  Bruno Haible  <bruno@clisp.org>
14541
14542         Implement nanosleep for native Windows.
14543         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
14544
14545 2010-04-04  Bruno Haible  <bruno@clisp.org>
14546
14547         math: Fix some C++ test errors on Solaris 8.
14548         * lib/math.in.h (truncf, trunc): Use simpler idiom.
14549
14550 2010-04-04  Bruno Haible  <bruno@clisp.org>
14551
14552         math: Fix some C++ test errors on Cygwin.
14553         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
14554         truncl): Provide declaration if the system does not have it.
14555         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
14556         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
14557         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
14558         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
14559         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
14560         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
14561         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
14562         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
14563         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
14564         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
14565         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
14566         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
14567         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
14568         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
14569         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
14570         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
14571         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
14572         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14573         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14574         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
14575         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14576         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14577
14578 2010-04-04  Bruno Haible  <bruno@clisp.org>
14579
14580         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
14581         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14582         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14583         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14584         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14585         * m4/isinf.m4 (gl_ISINF): Likewise.
14586         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14587
14588 2010-04-04  Bruno Haible  <bruno@clisp.org>
14589
14590         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
14591         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14592
14593 2010-04-04  Bruno Haible  <bruno@clisp.org>
14594
14595         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
14596         * modules/tmpfile (configure.ac): Update.
14597
14598         tmpfile: Fix C++ test error on mingw.
14599         * lib/stdio.in.h (tmpfile): New declaration.
14600         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
14601         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
14602         * modules/tmpfile (Depends-on): Add stdio.
14603         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14604         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
14605         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
14606         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
14607         REPLACE_TMPFILE.
14608         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
14609
14610 2010-04-04  Bruno Haible  <bruno@clisp.org>
14611
14612         ioctl: Fix C++ test error on mingw.
14613         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
14614         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
14615         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
14616
14617 2010-04-03  Bruno Haible  <bruno@clisp.org>
14618
14619         wcwidth: Fix C++ test error on mingw.
14620         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
14621         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
14622         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
14623
14624 2010-04-03  Bruno Haible  <bruno@clisp.org>
14625
14626         nanosleep: Fix C++ test error on mingw.
14627         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
14628         * lib/time.in.h (nanosleep): Use modern idiom.
14629         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
14630         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
14631         REPLACE_NANOSLEEP to 1.
14632         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
14633         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
14634
14635 2010-04-03  Bruno Haible  <bruno@clisp.org>
14636
14637         strptime: Fix C++ test error on mingw.
14638         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
14639         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
14640         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
14641         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
14642         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
14643         not REPLACE_STRPTIME.
14644         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
14645         REPLACE_STRPTIME.
14646
14647 2010-04-03  Bruno Haible  <bruno@clisp.org>
14648
14649         timegm: Fix C++ test error on mingw.
14650         * lib/time.in.h (timegm): Use modern idiom.
14651         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
14652         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
14653         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
14654         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
14655
14656 2010-04-03  Bruno Haible  <bruno@clisp.org>
14657
14658         timegm: Assume declaration if function exists.
14659         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
14660         if it exists. Don't clobber ac_cv_func_timegm.
14661
14662 2010-04-03  Bruno Haible  <bruno@clisp.org>
14663
14664         time_r: Fix C++ test error on mingw.
14665         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
14666         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
14667         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
14668         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
14669         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
14670
14671 2010-04-03  Bruno Haible  <bruno@clisp.org>
14672
14673         time_r: Minor updates.
14674         * modules/time_r (Description): Mention the provided functions.
14675         * lib/time_r.c: Don't include <string.h>.
14676         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
14677         * doc/posix-functions/localtime_r.texi: Likewise.
14678
14679 2010-04-03  Bruno Haible  <bruno@clisp.org>
14680
14681         time: Fix regression introduced on 2010-03-08.
14682         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
14683         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
14684
14685 2010-04-03  Jim Meyering  <meyering@redhat.com>
14686
14687         maint.mk: don't silently disable project-specific syntax-check rules
14688         * top/maint.mk (_prohibit_regexp): Define, to help people realize
14689         that they need to convert their project-specific syntax-check rules
14690         to use the new _sc_search_regexp.
14691
14692 2010-04-03  Bruno Haible  <bruno@clisp.org>
14693
14694         fchdir: Fix regression introduced on 2010-03-08.
14695         * lib/unistd.in.h (fchdir): Fix declaration.
14696         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
14697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
14698         REPLACE_FCHDIR.
14699         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
14700         REPLACE_FCHDIR.
14701
14702 2010-04-03  Bruno Haible  <bruno@clisp.org>
14703
14704         getpagesize: Fix C++ test error on mingw.
14705         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
14706         system does not declare the function.
14707         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
14708         declared.
14709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14710         HAVE_DECL_GETPAGESIZE.
14711         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
14712
14713 2010-04-03  Bruno Haible  <bruno@clisp.org>
14714
14715         stdio: Make C++ tests work on mingw.
14716         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
14717         does not declare the function.
14718
14719 2010-04-03  Bruno Haible  <bruno@clisp.org>
14720
14721         ftello: Fix C++ test error on mingw.
14722         * lib/stdio.in.h (ftello): Use modern idiom.
14723         * lib/ftello.c (ftello): Renamed from rpl_ftello.
14724         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
14725         is missing and that it needs to be replaced.
14726         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
14727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
14728         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
14729
14730 2010-04-03  Bruno Haible  <bruno@clisp.org>
14731
14732         fseeko: Fix C++ test error on mingw.
14733         * lib/stdio.in.h (fseeko): Use modern idiom.
14734         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
14735         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
14736         is missing and that it needs to be replaced.
14737         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
14738         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
14739         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
14740
14741 2010-04-03  Bruno Haible  <bruno@clisp.org>
14742
14743         mkstemp: Fix C++ test error on mingw.
14744         * lib/stdlib.in.h (mkstemp): Use modern idiom.
14745         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
14746         function is missing and that it needs to be replaced.
14747         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
14748         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
14749
14750 2010-04-03  Bruno Haible  <bruno@clisp.org>
14751
14752         stpncpy: Fix C++ test error on mingw.
14753         * lib/string.in.h (stpncpy): Use modern idiom.
14754         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
14755         function is missing and that it needs to be replaced.
14756         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14757         REPLACE_STPNCPY.
14758         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
14759
14760 2010-04-03  Bruno Haible  <bruno@clisp.org>
14761
14762         sys_stat: Fix C++ test error on mingw.
14763         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
14764         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
14765
14766 2010-04-03  Bruno Haible  <bruno@clisp.org>
14767
14768         pty: Update doc.
14769         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
14770
14771 2010-04-03  Bruno Haible  <bruno@clisp.org>
14772
14773         unistd: Fix C++ test error on mingw.
14774         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
14775
14776 2010-04-03  Bruno Haible  <bruno@clisp.org>
14777
14778         Update doc regarding mingw.
14779         * doc/glibc-functions/openpty.texi: Update regarding mingw.
14780         * doc/glibc-functions/login_tty.texi: Likewise.
14781         * doc/glibc-functions/forkpty.texi: Likewise.
14782
14783 2010-04-03  Bruno Haible  <bruno@clisp.org>
14784
14785         stdlib: Avoid compilation failure of c-strtold on mingw.
14786         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
14787
14788 2010-04-03  Bruno Haible  <bruno@clisp.org>
14789
14790         locale: Make C++ tests work on Cygwin and mingw.
14791         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
14792         cannot provide the function.
14793         Reported by Simon Josefsson.
14794
14795 2010-04-03  Bruno Haible  <bruno@clisp.org>
14796
14797         localename: Port to MacOS X 10.6.
14798         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
14799         memory layout of the locales in MacOS X 10.6 as well.
14800         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
14801
14802 2010-04-02  Bruno Haible  <bruno@clisp.org>
14803
14804         gnulib-tool: Ensure that long-running tests are executed last.
14805         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
14806         running tests after the one for the other tests.
14807
14808 2010-04-02  Bruno Haible  <bruno@clisp.org>
14809
14810         gnulib-tool: Ensure the tests in the main directory are executed first.
14811         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
14812         start with the current directory.
14813
14814 2010-04-02  Bruno Haible  <bruno@clisp.org>
14815
14816         Tests for module 'havelib', moved here from GNU gettext.
14817         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
14818         modifications.
14819         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
14820         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
14821         with modifications.
14822         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
14823         modifications.
14824         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
14825         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
14826         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
14827         with modifications.
14828         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
14829         with modifications.
14830         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
14831         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
14832         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
14833         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
14834         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
14835         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
14836         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
14837         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
14838         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
14839         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
14840         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
14841         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
14842         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
14843         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
14844         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
14845         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
14846         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
14847         with modifications.
14848         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
14849         with modifications.
14850         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
14851         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
14852         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
14853         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
14854         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
14855         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
14856         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
14857         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
14858         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
14859         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
14860         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
14861         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
14862         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
14863         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
14864         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
14865         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
14866         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
14867         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
14868         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
14869         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
14870         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
14871         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
14872         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
14873         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
14874         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
14875         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
14876         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
14877         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
14878         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
14879         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
14880         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
14881         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
14882         * tests/havelib/rpathx/rpathx.c: New file, from
14883         gettext/autoconf-lib-link.
14884         * tests/havelib/rpathx/Makefile.am: New file, from
14885         gettext/autoconf-lib-link.
14886         * tests/havelib/rpathx/configure.ac: New file, from
14887         gettext/autoconf-lib-link with modifications.
14888         * tests/havelib/rpathy/rpathy.c: New file, from
14889         gettext/autoconf-lib-link.
14890         * tests/havelib/rpathy/Makefile.am: New file, from
14891         gettext/autoconf-lib-link.
14892         * tests/havelib/rpathy/configure.ac: New file, from
14893         gettext/autoconf-lib-link with modifications.
14894         * tests/havelib/rpathz/rpathz.c: New file, from
14895         gettext/autoconf-lib-link.
14896         * tests/havelib/rpathz/Makefile.am: New file, from
14897         gettext/autoconf-lib-link.
14898         * tests/havelib/rpathz/configure.ac: New file, from
14899         gettext/autoconf-lib-link with modifications.
14900         * tests/havelib/rpathlx/usex.c: New file, from
14901         gettext/autoconf-lib-link.
14902         * tests/havelib/rpathlx/Makefile.am: New file, from
14903         gettext/autoconf-lib-link.
14904         * tests/havelib/rpathlx/configure.ac: New file, from
14905         gettext/autoconf-lib-link with modifications.
14906         * tests/havelib/rpathly/usey.c: New file, from
14907         gettext/autoconf-lib-link.
14908         * tests/havelib/rpathly/Makefile.am: New file, from
14909         gettext/autoconf-lib-link.
14910         * tests/havelib/rpathly/configure.ac: New file, from
14911         gettext/autoconf-lib-link with modifications.
14912         * tests/havelib/rpathlz/usez.c: New file, from
14913         gettext/autoconf-lib-link.
14914         * tests/havelib/rpathlz/Makefile.am: New file, from
14915         gettext/autoconf-lib-link.
14916         * tests/havelib/rpathlz/configure.ac: New file, from
14917         gettext/autoconf-lib-link with modifications.
14918         * tests/havelib/rpathlyx/usey.c: New file, from
14919         gettext/autoconf-lib-link.
14920         * tests/havelib/rpathlyx/Makefile.am: New file, from
14921         gettext/autoconf-lib-link.
14922         * tests/havelib/rpathlyx/configure.ac: New file, from
14923         gettext/autoconf-lib-link with modifications.
14924         * tests/havelib/rpathlzyx/usez.c: New file, from
14925         gettext/autoconf-lib-link.
14926         * tests/havelib/rpathlzyx/Makefile.am: New file, from
14927         gettext/autoconf-lib-link.
14928         * tests/havelib/rpathlzyx/configure.ac: New file, from
14929         gettext/autoconf-lib-link with modifications.
14930         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
14931         with modifications.
14932
14933 2010-04-02  Bruno Haible  <bruno@clisp.org>
14934
14935         gnulib-tool: Create distributed built sources also for the tests.
14936         * gnulib-tool (func_create_testdir): Also generate distributed built
14937         sources in the tests directory.
14938
14939 2010-04-02  Bruno Haible  <bruno@clisp.org>
14940
14941         gnulib-tool: Obey user's environment variables.
14942         * gnulib-tool (func_create_testdir): When creating built sources,
14943         respect the environment variables for autoconf, automake, etc. given by
14944         the user.
14945
14946 2010-04-02  Bruno Haible  <bruno@clisp.org>
14947
14948         gnulib-tool: Provide the value of --m4-base to modules.
14949         * gnulib-tool (func_import, func_create_testdir): Emit a definition
14950         of gl_m4_base.
14951
14952 2010-04-02  Eric Blake  <eblake@redhat.com>
14953
14954         maint.mk: fix some fallout
14955         * NEWS: Document the incompatible change, and its effect on cfg.mk.
14956         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
14957
14958 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14959
14960         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
14961         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
14962         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
14963         (sc_cast_of_x_alloc_return_value): Likewise.
14964         (sc_cast_of_alloca_return_value): Likewise.
14965         (sc_space_tab): Likewise.
14966         (sc_prohibit_atoi_atof): Likewise.
14967         (sc_prohibit_magic_number_exit): Likewise.
14968         (sc_error_exit_success): Likewise.
14969         (sc_file_system): Likewise.
14970         (sc_prohibit_have_config_h): Likewise.
14971         (sc_require_config_h): Likewise.
14972         (sc_prohibit_HAVE_MBRTOWC): Likewise.
14973         (sc_obsolete_symbols): Likewise.
14974         (sc_changelog): Likewise.
14975         (sc_program_name): Likewise.
14976         (sc_the_the): Likewise.
14977         (sc_trailing_blank): Likewise.
14978         (sc_two_space_separator_in_usage): Likewise.
14979         (sc_useless_cpp_parens): Likewise.
14980         (sc_GPL_version): Likewise.
14981         (sc_GFDL_version): Likewise.
14982         (sc_texinfo_acronym): Likewise.
14983         (sc_prohibit_cvs_keyword): Likewise.
14984         (sc_prohibit_stat_st_blocks): Likewise.
14985         (sc_prohibit_S_IS_definition): Likewise.
14986         (sc_redundant_const): Likewise.
14987         (sc_makefile_TAB_only_indentation): Likewise.
14988         (sc_m4_quote_check): Likewise.
14989         (sc_makefile_path_separator_check): Likewise.
14990         (sc_copyright_check): Likewise.
14991         (sc_Wundef_boolean): Likewise.
14992         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14993
14994         maint.mk: match 0 or more whitespace-before-function-call '('
14995         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
14996         that have zero or two-and-more spaces between the function name
14997         and the open parenthesis.
14998         (sc_error_message_warn_fatal): Likewise.
14999         (sc_error_message_uppercase): Likewise.
15000         (sc_error_message_period): Likewise.
15001
15002 2010-03-31  Eric Blake  <eblake@redhat.com>
15003
15004         maint.mk: check for [ as well as test
15005         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
15006         Based on a libvirt report by Matthias Bolte.
15007
15008         gnumakefile: don't squelch _version output
15009         * top/GNUmakefile (_version): Create one-shot dependency rather
15010         than using $(shell) when version must be regenerated.
15011         (_autoreconf): Run verbosely, by default.
15012
15013         sys_time: avoid compiler warnings
15014         * lib/sys_time.in.h (includes): Ensure gcc pragma is
15015         unconditional, fixing regression from 2010-03-29.
15016         Reported by Simon Josefsson.
15017
15018 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15019
15020         maint.mk: s/_header_without_use/_sc_header_without_use/
15021         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
15022         (sc_prohibit_assert_without_use): Use the new name.
15023         (sc_prohibit_close_stream_without_use): Likewise.
15024         (sc_prohibit_getopt_without_use): Likewise.
15025         (sc_prohibit_quotearg_without_use): Likewise.
15026         (sc_prohibit_quote_without_use): Likewise.
15027         (sc_prohibit_long_options_without_use): Likewise.
15028         (sc_prohibit_inttostr_without_use): Likewise.
15029         (sc_prohibit_ignore_value_without_use): Likewise.
15030         (sc_prohibit_error_without_use): Likewise.
15031         (sc_prohibit_xalloc_without_use): Likewise.
15032         (sc_prohibit_hash_without_use): Likewise.
15033         (sc_prohibit_hash_pjw_without_use): Likewise.
15034         (sc_prohibit_safe_read_without_use): Likewise.
15035         (sc_prohibit_argmatch_without_use): Likewise.
15036         (sc_prohibit_canonicalize_without_use): Likewise.
15037         (sc_prohibit_root_dev_ino_without_use): Likewise.
15038         (sc_prohibit_openat_without_use): Likewise.
15039         (sc_prohibit_c_ctype_without_use): Likewise.
15040         (sc_prohibit_signal_without_use): Likewise.
15041         (sc_prohibit_intprops_without_use): Likewise.
15042
15043 2010-03-30  Eric Blake  <eblake@redhat.com>
15044
15045         maint: improve module indicators
15046         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
15047         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
15048         columns, and avoid extra macro expansion.
15049
15050         fdopendir: work around FreeBSD bug
15051         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15052         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
15053         * modules/dirent (Makefile.am): Substitute it.
15054         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
15055         declaration.
15056         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
15057         fix.
15058         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15059
15060 2010-03-29  Bruno Haible  <bruno@clisp.org>
15061
15062         Emit #pragma system_header after the inclusion guard, not before.
15063         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
15064         guard that spans the entire file, not before. This enables an
15065         optimization in GCC's preprocessor.
15066         * lib/ctype.in.h: Likewise.
15067         * lib/dirent.in.h: Likewise.
15068         * lib/errno.in.h: Likewise.
15069         * lib/float.in.h: Likewise.
15070         * lib/getopt.in.h: Likewise.
15071         * lib/iconv.in.h: Likewise.
15072         * lib/langinfo.in.h: Likewise.
15073         * lib/locale.in.h: Likewise.
15074         * lib/math.in.h: Likewise.
15075         * lib/netdb.in.h: Likewise.
15076         * lib/netinet_in.in.h: Likewise.
15077         * lib/pty.in.h: Likewise.
15078         * lib/sched.in.h: Likewise.
15079         * lib/se-selinux.in.h: Likewise.
15080         * lib/search.in.h: Likewise.
15081         * lib/spawn.in.h: Likewise.
15082         * lib/stdarg.in.h: Likewise.
15083         * lib/stdint.in.h: Likewise.
15084         * lib/string.in.h: Likewise.
15085         * lib/strings.in.h: Likewise.
15086         * lib/sys_file.in.h: Likewise.
15087         * lib/sys_ioctl.in.h: Likewise.
15088         * lib/sys_time.in.h: Likewise.
15089         * lib/sys_times.in.h: Likewise.
15090         * lib/sys_utsname.in.h: Likewise.
15091         * lib/sys_wait.in.h: Likewise.
15092         * lib/sysexits.in.h: Likewise.
15093         * lib/wctype.in.h: Likewise.
15094
15095 2010-03-28  James Youngman  <jay@gnu.org>
15096
15097         save-cwd: don't leak a file descriptor when the caller execs.
15098         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
15099         saved file descriptor.
15100         * modules/save-cwd (Depends-on): Depend on cloexec.
15101
15102 2010-03-29  Bruno Haible  <bruno@clisp.org>
15103
15104         Remove vestiges of fts-lgpl module.
15105         * lib/fts_.h: Assume GNULIB_FTS is 1.
15106         * lib/fts.c: Likewise.
15107         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15108
15109 2010-03-28  Bruno Haible  <bruno@clisp.org>
15110
15111         Fix definition of tests witness macro.
15112         * gnulib-tool (func_import): Fix definition of witness macro.
15113
15114 2010-03-28  Bruno Haible  <bruno@clisp.org>
15115
15116         Fix ioctl's protoype on glibc systems.
15117         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
15118         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
15119         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
15120         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
15121         signature. If not, arrange to replace the ioctl function.
15122         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15123         REPLACE_IOCTL.
15124         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
15125         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
15126         Reported by Ludovic Courtès <ludo@gnu.org>.
15127
15128 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
15129
15130         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
15131         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
15132         made it so grep -r --include=GLOB* ... did not work.
15133
15134 2010-03-26  Jim Meyering  <meyering@redhat.com>
15135             Eric Blake  <eblake@redhat.com>
15136
15137         maint.mk: prohibit use of test's -o and -a operators
15138         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
15139
15140 2010-03-28  Bruno Haible  <bruno@clisp.org>
15141
15142         Remove unused GNULIB_XYZ macro definitions.
15143         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
15144         invocation.
15145
15146 2010-03-28  Bruno Haible  <bruno@clisp.org>
15147
15148         Mark privileged tests modules.
15149         * modules/idpriv-drop-tests (Status): New section.
15150         * modules/idpriv-droptemp-tests (Status): New section.
15151
15152 2010-03-28  Bruno Haible  <bruno@clisp.org>
15153
15154         Split C++ tests into separate tests modules.
15155         * modules/dirent-c++-tests: New file, extracted from
15156         modules/dirent-tests.
15157         * modules/dirent-tests: Depend on it.
15158         * modules/fcntl-h-c++-tests: New file, extracted from
15159         modules/fcntl-h-tests.
15160         * modules/fcntl-h-tests: Depend on it.
15161         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
15162         * modules/glob-tests: Depend on it.
15163         * modules/iconv-h-c++-tests: New file, extracted from
15164         modules/iconv-h-tests.
15165         * modules/iconv-h-tests: Depend on it.
15166         * modules/langinfo-c++-tests: New file, extracted from
15167         modules/langinfo-tests.
15168         * modules/langinfo-tests: Depend on it.
15169         * modules/locale-c++-tests: New file, extracted from
15170         modules/locale-tests.
15171         * modules/locale-tests: Depend on it.
15172         * modules/math-c++-tests: New file, extracted from modules/math-tests.
15173         * modules/math-tests: Depend on it.
15174         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
15175         * modules/pty-tests: Depend on it.
15176         * modules/search-c++-tests: New file, extracted from
15177         modules/search-tests.
15178         * modules/search-tests: Depend on it.
15179         * modules/signal-c++-tests: New file, extracted from
15180         modules/signal-tests.
15181         * modules/signal-tests: Depend on it.
15182         * modules/spawn-c++-tests: New file, extracted from
15183         modules/spawn-tests.
15184         * modules/spawn-tests: Depend on it.
15185         * modules/stdio-c++-tests: New file, extracted from
15186         modules/stdio-tests.
15187         * modules/stdio-tests: Depend on it.
15188         * modules/stdlib-c++-tests: New file, extracted from
15189         modules/stdlib-tests.
15190         * modules/stdlib-tests: Depend on it.
15191         * modules/string-c++-tests: New file, extracted from
15192         modules/string-tests.
15193         * modules/string-tests: Depend on it.
15194         * modules/sys_ioctl-c++-tests: New file, extracted from
15195         modules/sys_ioctl-tests.
15196         * modules/sys_ioctl-tests: Depend on it.
15197         * modules/sys_select-c++-tests: New file, extracted from
15198         modules/sys_select-tests.
15199         * modules/sys_select-tests: Depend on it.
15200         * modules/sys_socket-c++-tests: New file, extracted from
15201         modules/sys_socket-tests.
15202         * modules/sys_socket-tests: Depend on it.
15203         * modules/sys_stat-c++-tests: New file, extracted from
15204         modules/sys_stat-tests.
15205         * modules/sys_stat-tests: Depend on it.
15206         * modules/sys_time-c++-tests: New file, extracted from
15207         modules/sys_time-tests.
15208         * modules/sys_time-tests: Depend on it.
15209         * modules/time-c++-tests: New file, extracted from modules/time-tests.
15210         * modules/time-tests: Depend on it.
15211         * modules/unistd-c++-tests: New file, extracted from
15212         modules/unistd-tests.
15213         * modules/unistd-tests: Depend on it.
15214         * modules/wchar-c++-tests: New file, extracted from
15215         modules/wchar-tests.
15216         * modules/wchar-tests: Depend on it.
15217         * modules/wctype-c++-tests: New file, extracted from
15218         modules/wctype-tests.
15219         * modules/wctype-tests: Depend on it.
15220         Reported by Simon Josefsson.
15221
15222 2010-03-28  Bruno Haible  <bruno@clisp.org>
15223
15224         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
15225         * gnulib-tool (func_exists_module): New function, extracted from
15226         func_verify_module.
15227         (func_verify_module): Use it.
15228         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
15229         'foo' only if 'foo' exists.
15230         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
15231         module.
15232
15233 2010-03-28  Bruno Haible  <bruno@clisp.org>
15234
15235         gnulib-tool: Add support for special categories of tests.
15236         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
15237         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
15238         (func_usage): Document them.
15239         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
15240         inc_unportable_tests, inc_all_tests): New variables.
15241         (func_acceptable): Consider these variables.
15242         (func_modules_transitive_closure): Make it work when the 'Status' field
15243         consists of multiple words.
15244         (func_import): Store and restore the values of inc_cxx_tests,
15245         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
15246         inc_all_tests in gnulib-comp.m4.
15247         (func_create_testdir): Set inc_all_tests to true.
15248         * doc/gnulib.texi (Extra tests modules): New section.
15249         Suggested by Jim Meyering.
15250
15251 2010-03-28  Bruno Haible  <bruno@clisp.org>
15252
15253         ansi-c++-opt: Allow turning off the C++ build by default.
15254         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
15255         gl_CXX_CHOICE_DEFAULT_NO is defined.
15256         Requested by Eric Blake.
15257
15258 2010-03-28  Bruno Haible  <bruno@clisp.org>
15259
15260         unistd: Avoid #define replacements in C++ mode.
15261         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15262         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15263         setsockopt, shutdown, select): In C++, attach a warning to the function
15264         if possible, rather than #defining the symbol to a dysfunctional alias.
15265         Reported by John W. Eaton <jwe@gnu.org>.
15266
15267 2010-03-28  Bruno Haible  <bruno@clisp.org>
15268
15269         Fix link errors on mingw.
15270         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
15271         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
15272         $(LIBSOCKET).
15273         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
15274         $(LIBSOCKET).
15275
15276 2010-03-28  Bruno Haible  <bruno@clisp.org>
15277             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15278
15279         lib-ignore: Determine different options for different compilers.
15280         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
15281         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
15282         Add comments.
15283         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
15284         * NEWS: Mention the change.
15285
15286 2010-03-27  Bruno Haible  <bruno@clisp.org>
15287
15288         Remove unused GNULIB_XYZ macro definitions.
15289         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15290         * modules/fseek (configure.ac): Likewise.
15291         * modules/ioctl (configure.ac): Likewise.
15292         * modules/open (configure.ac): Likewise.
15293         * modules/stdlib-safer (configure.ac): Likewise.
15294
15295 2010-03-27  Bruno Haible  <bruno@clisp.org>
15296
15297         Add a remark about certain modules.
15298         * modules/malloc (Comment): New section.
15299         * modules/realloc (Comment): Likewise.
15300         * modules/sigpipe (Comment): Likewise.
15301
15302 2010-03-27  Bruno Haible  <bruno@clisp.org>
15303
15304         Resolve conflict between the two kinds of module indicators.
15305         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
15306         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
15307         * modules/canonicalize (configure.ac): Invoke
15308         gl_MODULE_INDICATOR_FOR_TESTS.
15309         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
15310         GNULIB_XYZ.
15311         * tests/test-dirent-c++.cc: Likewise.
15312         * tests/test-dirent-safer.c: Likewise.
15313         * tests/test-dup2.c: Likewise.
15314         * tests/test-fchdir.c: Likewise.
15315         * tests/test-fcntl-h-c++.cc: Likewise.
15316         * tests/test-getopt.c: Likewise.
15317         * tests/test-getopt.h: Likewise.
15318         * tests/test-langinfo-c++.cc: Likewise.
15319         * tests/test-locale-c++.cc: Likewise.
15320         * tests/test-math-c++.cc: Likewise.
15321         * tests/test-pty-c++.cc: Likewise.
15322         * tests/test-search-c++.cc: Likewise.
15323         * tests/test-signal-c++.cc: Likewise.
15324         * tests/test-spawn-c++.cc: Likewise.
15325         * tests/test-stdio-c++.cc: Likewise.
15326         * tests/test-stdlib-c++.cc: Likewise.
15327         * tests/test-string-c++.cc: Likewise.
15328         * tests/test-sys_ioctl-c++.cc: Likewise.
15329         * tests/test-sys_select-c++.cc: Likewise.
15330         * tests/test-sys_socket-c++.cc: Likewise.
15331         * tests/test-sys_stat-c++.cc: Likewise.
15332         * tests/test-sys_time-c++.cc: Likewise.
15333         * tests/test-time-c++.cc: Likewise.
15334         * tests/test-unistd-c++.cc: Likewise.
15335         * tests/test-wchar-c++.cc: Likewise.
15336         * tests/uninorm/test-u8-nfc.c: Likewise.
15337         * tests/uninorm/test-u8-nfd.c: Likewise.
15338         * tests/uninorm/test-u8-nfkc.c: Likewise.
15339         * tests/uninorm/test-u8-nfkd.c: Likewise.
15340         * tests/uninorm/test-u16-nfc.c: Likewise.
15341         * tests/uninorm/test-u16-nfd.c: Likewise.
15342         * tests/uninorm/test-u16-nfkc.c: Likewise.
15343         * tests/uninorm/test-u16-nfkd.c: Likewise.
15344         * tests/uninorm/test-u32-nfc.c: Likewise.
15345         * tests/uninorm/test-u32-nfc-big.c: Likewise.
15346         * tests/uninorm/test-u32-nfd.c: Likewise.
15347         * tests/uninorm/test-u32-nfd-big.c: Likewise.
15348         * tests/uninorm/test-u32-nfkc.c: Likewise.
15349         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
15350         * tests/uninorm/test-u32-nfkd.c: Likewise.
15351         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
15352         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15353
15354 2010-03-27  Bruno Haible  <bruno@clisp.org>
15355
15356         Distinguish two kinds of module indicators.
15357         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
15358         gl_MODULE_INDICATOR.
15359         (gl_MODULE_INDICATOR): New macro.
15360         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15361         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
15362         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15363         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15364         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15365         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15366         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15367         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15368         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15369         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15370         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15371         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15373         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15374         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15375         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15376         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15377         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15378         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15379         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15380         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15381         * modules/cloexec (configure.ac): Likewise.
15382         * modules/getopt-gnu (configure.ac): Likewise.
15383         * modules/uninorm/u8-normalize (configure.ac): Likewise.
15384         * modules/uninorm/u16-normalize (configure.ac): Likewise.
15385         * modules/uninorm/u32-normalize (configure.ac): Likewise.
15386         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
15387
15388 2010-03-27  Bruno Haible  <bruno@clisp.org>
15389
15390         New module description field 'Comment'.
15391         * gnulib-tool: New option --extract-comment.
15392         (func_usage): Document it.
15393         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
15394         (func_get_comment): New function.
15395         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
15396
15397 2010-03-27  Bruno Haible  <bruno@clisp.org>
15398
15399         Addendum to 2010-02-07 commit.
15400         * gnulib-tool (func_usage): Document --extract-applicability option.
15401
15402 2010-03-27  Bruno Haible  <bruno@clisp.org>
15403
15404         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
15405         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
15406         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
15407         rather than link errors.
15408
15409 2010-03-27  Bruno Haible  <bruno@clisp.org>
15410
15411         Avoid side effects from tests-related modules on the compilation of lib.
15412         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
15413         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
15414         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
15415         parameter. Emit into AM_CPPFLAGS a definition of the designated C
15416         macro.
15417         (func_import): Define a witness macro. Assign it a value that depends
15418         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
15419         tests-related modules.
15420         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
15421         Reported by Jim Meyering.
15422
15423 2010-03-27  Bruno Haible  <bruno@clisp.org>
15424
15425         Factorize common .m4 code.
15426         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
15427         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
15428         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
15429         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
15430         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15431         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
15432         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
15433         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15434         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15435         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15436         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
15437         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15438         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15439         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15440         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15441         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
15442         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15443         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15444         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15445         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
15446         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
15447         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15448         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15449         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15450         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15451         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15452         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
15453         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
15454         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
15455         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15456         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15457         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15458
15459 2010-03-27  Bruno Haible  <bruno@clisp.org>
15460
15461         Fix a compilation error on Cygwin with g++ >= 4.3.
15462         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
15463         if it is undefined or if we alias it to chmod.
15464         (lstat): Don't warn about the use of this function if it is undefined
15465         or if we alias it to stat.
15466         Reported by Simon Josefsson.
15467
15468 2010-03-27  Bruno Haible  <bruno@clisp.org>
15469
15470         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
15471         * modules/getlogin (configure.ac): Update.
15472
15473         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
15474         * modules/getlogin_r (configure.ac): Update.
15475
15476         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
15477         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
15478         * modules/inet_ntop (configure.ac): Update.
15479
15480         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
15481         * modules/inet_pton (configure.ac): Update.
15482
15483         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
15484         * modules/mbslen (configure.ac): Update.
15485
15486         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
15487         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
15488         * modules/forkpty (configure.ac): Update.
15489         * modules/openpty (configure.ac): Update.
15490
15491 2010-03-26  Simon Josefsson  <simon@josefsson.org>
15492
15493         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
15494         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
15495
15496 2010-03-25  Eric Blake  <eblake@redhat.com>
15497
15498         maint: use pragma consistently across replacement headers
15499         * lib/ctype.in.h (system_header): Hoist for consistent placement.
15500         * lib/dirent.in.h (system_header): Likewise.
15501         * lib/errno.in.h (system_header): Likewise.
15502         * lib/float.in.h (system_header): Likewise.
15503         * lib/getopt.in.h (system_header): Likewise.
15504         * lib/iconv.in.h (system_header): Likewise.
15505         * lib/inttypes.in.h (system_header): Likewise.
15506         * lib/langinfo.in.h (system_header): Likewise.
15507         * lib/locale.in.h (system_header): Likewise.
15508         * lib/math.in.h (system_header): Likewise.
15509         * lib/netdb.in.h (system_header): Likewise.
15510         * lib/netinet_in.in.h (system_header): Likewise.
15511         * lib/pty.in.h (system_header): Likewise.
15512         * lib/sched.in.h (system_header): Likewise.
15513         * lib/se-selinux.in.h (system_header): Likewise.
15514         * lib/search.in.h (system_header): Likewise.
15515         * lib/spawn.in.h (system_header): Likewise.
15516         * lib/stdarg.in.h (system_header): Likewise.
15517         * lib/stdint.in.h (system_header): Likewise.
15518         * lib/string.in.h (system_header): Likewise.
15519         * lib/strings.in.h (system_header): Likewise.
15520         * lib/sys_file.in.h (system_header): Likewise.
15521         * lib/sys_ioctl.in.h (system_header): Likewise.
15522         * lib/sys_socket.in.h (system_header): Likewise.
15523         * lib/sys_times.in.h (system_header): Likewise.
15524         * lib/sys_utsname.in.h (system_header): Likewise.
15525         * lib/sys_wait.in.h (system_header): Likewise.
15526         * lib/sysexits.in.h (system_header): Likewise.
15527         * lib/unistd.in.h (system_header): Likewise.
15528         * lib/wctype.in.h (system_header): Likewise.
15529
15530         arpa/inet: fix mingw compilation warning
15531         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
15532         Reported by Matthew Bolte.
15533
15534 2010-03-25  Bruno Haible  <bruno@clisp.org>
15535
15536         Avoid collision between gnulib wrapper and libintl wrapper.
15537         * lib/printf.c (printf): Don't define if a printf wrapper is already
15538         defined in intl/printf.c.
15539         Reported by Michel Boaventura <michel@michelboaventura.com>.
15540
15541 2010-03-25  Bruno Haible  <bruno@clisp.org>
15542
15543         Use ANSI C.
15544         * lib/readutmp.h (getutent): Provide ANSI C prototype.
15545
15546 2010-03-25  Bruno Haible  <bruno@clisp.org>
15547
15548         Minor formatting changes.
15549         * lib/acosl.c: Insert space before function argument list.
15550         * lib/argz.c: Likewise.
15551         * lib/asinl.c: Likewise.
15552         * lib/expl.c: Likewise.
15553         * lib/gen-uni-tables.c: Likewise.
15554         * lib/gettext.h: Likewise.
15555         * lib/glthread/lock.h: Likewise.
15556         * lib/tanl.c: Likewise.
15557         * lib/uniname/uniname.c: Likewise.
15558         * tests/test-idpriv-drop.c: Likewise.
15559         * tests/test-idpriv-droptemp.c: Likewise.
15560         * tests/test-lock.c: Likewise.
15561         * tests/test-tls.c: Likewise.
15562         * lib/argp-help.c: Insert space before function-like macro argument
15563         list.
15564         * lib/memcmp.c: Likewise.
15565         * tests/test-base64.c: Likewise.
15566         * lib/localename.c: Insert space before sizeof's argument list.
15567         * lib/safe-alloc.h: Likewise.
15568         * lib/file-set.h: Insert space before macro argument list.
15569         * tests/test-argp.c: Likewise.
15570         * lib/argp-namefrob.h: Insert space before function parameter list.
15571         * lib/getaddrinfo.c: Likewise.
15572         * lib/netdb.in.h: Likewise.
15573         * lib/parse-duration.h: Likewise.
15574         * lib/parse-duration.c: Likewise.
15575         * lib/poll.c: Likewise.
15576         * lib/select.c: Likewise.
15577         * lib/trim.h: Likewise.
15578         * tests/test-usleep.c: Likewise.
15579         * lib/ldexpl.c: Insert space before function parameter list and before
15580         function argument list.
15581         * lib/logl.c: Likewise.
15582         * lib/sqrtl.c: Likewise.
15583         * lib/trim.c: Likewise.
15584         * lib/cosl.c: Use GNU style indentation. Insert space before function
15585         argument list.
15586         * lib/sinl.c: Likewise.
15587         * lib/tsearch.c: Insert space after 'for'.
15588         Reported by Jim Meyering.
15589
15590 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
15591
15592         * maint.mk (sc_Wundef_boolean): Check for the presence of the
15593         config header before grepping, as it's not present before
15594         autoreconf/configure are run.  Reported by Simon Josefsson.
15595
15596 2010-03-23  Bruno Haible  <bruno@clisp.org>
15597
15598         pt_chown: Make it work with automake < 1.11.
15599         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
15600         Reported by Simon Josefsson.
15601
15602 2010-03-23  Bruno Haible  <bruno@clisp.org>
15603
15604         pt_chown: Don't depend on GPLed modules.
15605         * lib/pt_chown.c: Don't include idpriv.h.
15606         (main): Don't drop privileges.
15607         * modules/pt_chown (Depends-on): Remove idpriv-drop.
15608         Reported by Simon Josefsson.
15609
15610 2010-03-24  Simon Josefsson  <simon@josefsson.org>
15611
15612         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
15613         suggestions from karl@freefriends.org (Karl Berry).
15614
15615 2010-03-22  Eric Blake  <eblake@redhat.com>
15616
15617         gethostname: further tweaks
15618         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
15619         are overriding gethostname.
15620         Suggested by Bruno Haible.
15621
15622 2010-03-21  Bruno Haible  <bruno@clisp.org>
15623
15624         Fix comments.
15625         * lib/forkpty.c (rpl_forkpty): Fix comment.
15626         * lib/openpty.c (rpl_openpty): Likewise.
15627         Reported by Eric Blake.
15628
15629 2010-03-22  Eric Blake  <eblake@redhat.com>
15630
15631         gethostname: fix build on mingw
15632         * lib/unistd.in.h (includes): Work around fact that mingw
15633         <winsock2.h> re-includes <unistd.h>, by avoiding any
15634         redeclarations if we are being included by <winsock2.h>.
15635         Reported by Matthias Bolte.
15636
15637 2010-03-21  Bruno Haible  <bruno@clisp.org>
15638
15639         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15640         * lib/forkpty.c (forkpty): New replacement function, from glibc with
15641         modifications.
15642         * lib/pty.in.h (forkpty): Update declaration. Add comments.
15643         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
15644         provide the replacement.
15645         * modules/forkpty (Depends-on): Add openpty, login_tty.
15646         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
15647         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
15648         * doc/glibc-functions/forkpty.texi: More supported platforms.
15649         * config/srclist.txt: Add forkpty.c (commented).
15650
15651 2010-03-21  Bruno Haible  <bruno@clisp.org>
15652
15653         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
15654         (Makefile.am): Verify that PTY_LIB is defined.
15655
15656         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
15657
15658 2010-03-21  Bruno Haible  <bruno@clisp.org>
15659
15660         Tests for module 'login_tty'.
15661         * modules/login_tty-tests: New file.
15662         * tests/test-login_tty.c: New file.
15663
15664         New module 'login_tty'.
15665         * lib/login_tty.c: New file.
15666         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
15667         * modules/login_tty: New file.
15668         * doc/glibc-functions/login_tty.texi: Mention the new module.
15669
15670 2010-03-21  Bruno Haible  <bruno@clisp.org>
15671
15672         login_tty: Documentation.
15673         * doc/glibc-functions/login_tty.texi: New file.
15674         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
15675
15676 2010-03-21  Bruno Haible  <bruno@clisp.org>
15677
15678         pty: Consistent macro naming.
15679         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
15680         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
15681         * modules/pty (configure.ac): Update.
15682
15683 2010-03-21  Bruno Haible  <bruno@clisp.org>
15684
15685         Tests for openpty: Make stricter.
15686         * tests/test-openpty.c (main): Add test of canonical processing and
15687         erase.
15688         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
15689
15690         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15691         * lib/openpty.c (openpty): New replacement function.
15692         * lib/pty.in.h: Include <termios.h>.
15693         (openpty): Update declaration. Add comments.
15694         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
15695         is not declared, arrange to provide the replacement. Check for _getpty
15696         and posix_openpt.
15697         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
15698         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
15699         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
15700         * modules/pty-tests (test_pty_c___LDADD): New variable.
15701         * doc/glibc-functions/openpty.texi: More supported platforms.
15702
15703 2010-03-21  Bruno Haible  <bruno@clisp.org>
15704
15705         setenv: Tweaks.
15706         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
15707         the test program.
15708         * doc/posix-functions/setenv.texi: Update platforms list.
15709
15710 2010-03-21  Bruno Haible  <bruno@clisp.org>
15711
15712         New module 'unlockpt'.
15713         * lib/unlockpt.c: New file, from glibc with modifications.
15714         * m4/unlockpt.m4: New file.
15715         * modules/unlockpt: New file.
15716         * lib/stdlib.in.h (unlockpt): New declaration.
15717         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
15718         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
15719         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
15720         HAVE_UNLOCKPT.
15721         * doc/posix-functions/unlockpt.texi: Mention the new module.
15722         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
15723         * config/srclist.txt: Add unlockpt.c (commented).
15724
15725 2010-03-21  Jim Meyering  <meyering@redhat.com>
15726
15727         maint.mk: prohibit inclusion of "intprops.h" without use
15728         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
15729
15730 2010-03-21  Bruno Haible  <bruno@clisp.org>
15731
15732         New module 'grantpt'.
15733         * lib/grantpt.c: New file, from glibc with modifications.
15734         * m4/grantpt.m4: New file.
15735         * modules/grantpt: New file.
15736         * lib/stdlib.in.h (grantpt): New declaration.
15737         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
15738         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
15739         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
15740         HAVE_GRANTPT.
15741         * doc/posix-functions/grantpt.texi: Mention the new module.
15742         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
15743         * config/srclist.txt: Add grantpt.c (commented).
15744
15745 2010-03-21  Bruno Haible  <bruno@clisp.org>
15746
15747         New module 'pt_chown'.
15748         * lib/pt_chown.c: New file, from glibc with modifications.
15749         * lib/pty-private.h: New file, from glibc with modifications.
15750         * modules/pt_chown: New file.
15751         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
15752
15753 2010-03-21  Bruno Haible  <bruno@clisp.org>
15754
15755         Tests for module 'ptsname'.
15756         * modules/ptsname-tests: New file.
15757         * tests/test-ptsname.c: New file.
15758
15759         New module 'ptsname'.
15760         * lib/ptsname.c: New file, from glibc with modifications.
15761         * m4/ptsname.m4: New file.
15762         * modules/ptsname: New file.
15763         * lib/stdlib.in.h (ptsname): New declaration.
15764         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
15765         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
15766         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
15767         HAVE_PTSNAME.
15768         * doc/posix-functions/ptsname.texi: Mention the new module.
15769         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
15770         * config/srclist.txt: Add ptsname.c (commented).
15771
15772 2010-03-21  Bruno Haible  <bruno@clisp.org>
15773
15774         Tests for module 'ttyname_r'.
15775         * modules/ttyname_r-tests: New file.
15776         * tests/test-ttyname_r.c: New file.
15777
15778         New module 'ttyname_r'.
15779         * lib/ttyname_r.c: New file.
15780         * m4/ttyname_r.m4: New file.
15781         * modules/ttyname_r: New file.
15782         * lib/unistd.in.h (ttyname_r): New declaration.
15783         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
15784         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
15785         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
15786         HAVE_TTYNAME_R.
15787         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
15788         * doc/posix-functions/ttyname_r.texi: Mention the new module.
15789
15790 2010-03-20  Bruno Haible  <bruno@clisp.org>
15791
15792         signal: Undefine macro definitions in C++ mode.
15793         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
15794         sigfillset): Undefine macro definitions from the system header in C++
15795         mode.
15796         Reported by John W. Eaton <jwe@gnu.org>.
15797
15798 2010-03-20  Bruno Haible  <bruno@clisp.org>
15799
15800         Ensure no #include statements inside extern "C" { ... }.
15801         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
15802         contain #include statements.
15803         * lib/time.in.h: Likewise.
15804
15805 2010-03-20  Bruno Haible  <bruno@clisp.org>
15806
15807         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
15808         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
15809         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
15810         Reported by John W. Eaton <jwe@gnu.org>.
15811
15812 2010-03-20  Bruno Haible  <bruno@clisp.org>
15813
15814         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
15815         Reported by Jim Meyering.
15816
15817 2010-03-20  Bruno Haible  <bruno@clisp.org>
15818
15819         pipe: Set errno upon failure.
15820         * lib/pipe.h: Specify that when -1 is returned, errno is set.
15821         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
15822         errno value in error message.
15823
15824 2010-03-20  Bruno Haible  <bruno@clisp.org>
15825             Jim Meyering  <meyering@redhat.com>
15826
15827         lchown: Avoid "unused variable" warning.
15828         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
15829
15830 2010-03-20  Bruno Haible  <bruno@clisp.org>
15831
15832         Work around unlink() bug on MacOS X 10.5.6.
15833         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
15834         attempting to unlink a parent directory.
15835         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
15836         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
15837         activate for the replacement function.
15838         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
15839
15840 2010-03-20  Bruno Haible  <bruno@clisp.org>
15841
15842         Fix link errors on Solaris 8.
15843         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
15844         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
15845
15846 2010-03-19  Jim Meyering  <meyering@redhat.com>
15847
15848         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
15849         The _LIBC implementation of build_range_exp correctly honors the
15850         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
15851         However, the non-_LIBC implementation would ignore that syntax-bit
15852         flag and return REG_ERANGE unconditionally.
15853         This change makes it honor that flag.
15854         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
15855         Make two pointer parameters "const".
15856         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
15857         (parse_bracket_exp): Update caller.
15858
15859         regex.m4: correct the reversed range endpoint ([b-a]) test
15860         * m4/regex.m4: When requiring that [b-a] evoke failure,
15861         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
15862         test pass once again for x86-based systems.
15863
15864 2010-03-19  Bruno Haible  <bruno@clisp.org>
15865
15866         scandir: Fix link error on Solaris 8.
15867         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
15868         macros.
15869
15870 2010-03-19  Bruno Haible  <bruno@clisp.org>
15871
15872         getusershell: Fix documentation.
15873         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
15874         module.
15875         * doc/glibc-functions/setusershell.texi: Likewise.
15876
15877         getusershell: Provide declaration, missing on Solaris 9.
15878         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
15879         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
15880         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
15881         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
15882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15883         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
15884         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
15885         HAVE_GETUSERSHELL.
15886         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
15887
15888 2010-03-19  Bruno Haible  <bruno@clisp.org>
15889
15890         wctype: Provide iswblank function.
15891         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
15892         exists and is fine.
15893         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
15894         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
15895         * tests/test-wctype.c (main): Re-enable the iswblank tests.
15896         * doc/posix-functions/iswblank.texi: Update.
15897
15898 2010-03-19  Bruno Haible  <bruno@clisp.org>
15899
15900         Tests of module 'pty' in C++ mode.
15901         * modules/pty-tests: New file.
15902         * tests/test-pty-c++.cc: New file.
15903         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15904
15905 2010-03-19  Eric Blake  <eblake@redhat.com>
15906
15907         logb: fix documentation
15908         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
15909         1.5 declaration bug.
15910
15911         forkpty, openpty: prefer glibc's const-safe prototype
15912         * lib/forkpty.c (rpl_forkpty): New file.
15913         * lib/openpty.c (rpl_openpty): Likewise.
15914         * modules/forkpty (Files): Distribute it.
15915         * modules/openpty (Files): Likewise.
15916         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
15917         check...
15918         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
15919         replacement for for non-const BSD signature.
15920         * modules/pty (Makefile.am): Substitute witnesses.
15921         * lib/pty.in.h (forkpty, openpty): Declare replacements.
15922         * tests/test-forkpty.c: Update signature check.
15923         * tests/test-openpty.c: Likewise.
15924         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
15925         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15926
15927         forkpty, openpty: split functions into new modules
15928         * modules/pty (Makefile.am): Substitute new witnesses.
15929         (Libraries): Move library detection...
15930         * modules/forkpty: ...into new module.
15931         * modules/openpty: Another new module.
15932         * modules/pty-tests: Rename and split...
15933         * modules/forkpty-tests: ...to this...
15934         * modules/openpty-tests: ...and this.
15935         * tests/test-pty.c: Rename and split...
15936         * tests/test-forkpty.c: ...to this...
15937         * tests/test-openpty.c: ...and this.
15938         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
15939         (gl_PTY): Split library searching...
15940         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
15941         (gl_FORKPTY, gl_OPENPTY): New macros.
15942         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
15943         * NEWS: Mention the split.
15944         * MODULES.html.sh (Misc): Document the modules.
15945         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
15946         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15947
15948         pty: improve replacement header
15949         * lib/pty.in.h: New file.
15950         * modules/pty (Files): Ship it.
15951         (Makefile.am): Always build replacement.
15952         * m4/pty.m4: Rename...
15953         * m4/pty_h.m4: ...to this.
15954         (gl_PTY): Modernize setting of witness macros; update check of
15955         forkpty to take proper advantage of cache.
15956         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
15957
15958         getopt: avoid compiler warning
15959         * lib/getopt.c (attribute_hidden): Remove unused macro.
15960
15961 2010-03-18  Bruno Haible  <bruno@clisp.org>
15962
15963         Fix link errors on Solaris 8.
15964         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
15965         * modules/search-tests (test_search_c___LDADD): Likewise.
15966         * modules/signal-tests (test_signal_c___LDADD): Likewise.
15967         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
15968         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
15969         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
15970         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
15971         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
15972         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
15973
15974 2010-03-18  Bruno Haible  <bruno@clisp.org>
15975
15976         Fix bug introduced on 2010-03-14.
15977         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
15978         (gl_SPAWN_H): Require it.
15979         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
15980         Reported by Simon Josefsson.
15981
15982 2010-03-18  Bruno Haible  <bruno@clisp.org>
15983
15984         Fix typo introduced on 2009-12-31.
15985         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
15986         posix_spawn_file_actions_adddup2.
15987
15988 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
15989         and Eric Blake  <eblake@redhat.com>
15990
15991         test-vc-list-files-git: make more robust
15992         * tests/test-vc-list-files-git.sh: Unset problematic environment
15993         variables.  Chain commands together.
15994
15995 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
15996
15997         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
15998         `AC_CHECK_DECL' invocation.
15999
16000 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
16001
16002         * lib/inttostr.c (inttostr): Make sure the invocation of verify
16003         appears before executable statements. Suggested by Petr Sumbera
16004         <Petr.Sumbera@Sun.COM>.
16005
16006 2010-03-14  Bruno Haible  <bruno@clisp.org>
16007
16008         * tests/test-flock.c (test_exclusive): Comment out a test that causes
16009         portability problems. Instead use a simpler test.
16010         (main): Check that invalid arguments are rejected only on Linux.
16011
16012 2010-03-14  Bruno Haible  <bruno@clisp.org>
16013
16014         Fix bug introduced on 2009-12-31.
16015         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16016         gl_PREREQ_SYS_H_WINSOCK2 always.
16017         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
16018         SYS_SOCKET_H variable.
16019         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
16020         Update comments.
16021         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
16022         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16023         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16024         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16025         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
16026
16027 2010-03-14  Bruno Haible  <bruno@clisp.org>
16028
16029         Fix values returned by sinl, cosl.
16030         * lib/trigl.h: Add specification comments.
16031         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
16032         that combines the values from the precomputed table with the values of
16033         the Chebyshev polynomials.
16034
16035 2010-03-14  Bruno Haible  <bruno@clisp.org>
16036
16037         Fix compilation error when modules 'posix_spawn[p]' are not used.
16038         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
16039         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
16040
16041 2010-03-14  Bruno Haible  <bruno@clisp.org>
16042
16043         Fix compilation error on mingw when module 'time_r' is not used.
16044         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
16045         is 1.
16046         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
16047         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16048         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
16049         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
16050
16051 2010-03-14  Bruno Haible  <bruno@clisp.org>
16052
16053         Fix compilation error with Sun C.
16054         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
16055         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
16056         instead of GCC specific ULONG_LONG_MAX.
16057         * lib/xstrtoll.c: Likewise.
16058         * lib/xstrtoull.c: Likewise.
16059
16060 2010-03-13  Bruno Haible  <bruno@clisp.org>
16061
16062         Allow the user to disable C++ code and tests.
16063         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
16064         (gl_PROG_ANSI_CXX): Require it.
16065
16066 2010-03-13  Bruno Haible  <bruno@clisp.org>
16067
16068         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
16069         cases.
16070
16071 2010-03-13  Bruno Haible  <bruno@clisp.org>
16072
16073         Test that gnulib does not break the standard C++ headers.
16074         * tests/test-locale-c++2.cc: New file.
16075         * modules/locale-tests (Files): Add it.
16076         (Makefile.am): Compile it for test-locale-c++.
16077         * tests/test-math-c++2.cc: New file.
16078         * modules/math-tests (Files): Add it.
16079         (Makefile.am): Compile it for test-math-c++.
16080         * tests/test-signal-c++2.cc: New file.
16081         * modules/signal-tests (Files): Add it.
16082         (Makefile.am): Compile it for test-signal-c++.
16083         * tests/test-stdio-c++2.cc: New file.
16084         * modules/stdio-tests (Files): Add it.
16085         (Makefile.am): Compile it for test-stdio-c++.
16086         * tests/test-stdlib-c++2.cc: New file.
16087         * modules/stdlib-tests (Files): Add it.
16088         (Makefile.am): Compile it for test-stdlib-c++.
16089         * tests/test-string-c++2.cc: New file.
16090         * modules/string-tests (Files): Add it.
16091         (Makefile.am): Compile it for test-string-c++.
16092         * tests/test-time-c++2.cc: New file.
16093         * modules/time-tests (Files): Add it.
16094         (Makefile.am): Compile it for test-time-c++.
16095         Reported by John W. Eaton <jwe@gnu.org>.
16096
16097 2010-03-13  Bruno Haible  <bruno@clisp.org>
16098
16099         * gnulib-tool (func_usage): Clarify which options are available for
16100         --create-testdir and --create-megatestdir.
16101
16102 2010-03-13  Bruno Haible  <bruno@clisp.org>
16103
16104         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
16105         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
16106         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
16107         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16108         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
16109         when appropriate.
16110         Reported by Jim Meyering.
16111
16112 2010-03-12  Simon Josefsson  <simon@josefsson.org>
16113
16114         * gnulib-tool (func_import): Explain origin of code.
16115
16116 2010-03-12  Bruno Haible  <bruno@clisp.org>
16117
16118         Fix problem with automake's definition of CXXLINK.
16119         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
16120         Reported by Simon Josefsson and Ludovic Courtès.
16121
16122 2010-03-12  Bruno Haible  <bruno@clisp.org>
16123
16124         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
16125         stable releases.
16126
16127 2010-03-11  Bruno Haible  <bruno@clisp.org>
16128
16129         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
16130         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
16131         whether the system provides one variant or multiple variants of the
16132         function.
16133         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
16134         C++ compilers.
16135         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
16136         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
16137         Reported by Jim Meyering.
16138
16139 2010-03-09  Simon Josefsson  <simon@josefsson.org>
16140
16141         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
16142
16143 2010-03-08  Bruno Haible  <bruno@clisp.org>
16144
16145         gnulib-tool: Add support for --libtool in --create-testdir.
16146         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
16147         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
16148
16149 2010-03-08  Eric Blake  <eblake@redhat.com>
16150
16151         gnulib-tool.texi: mention possibility of git submodule
16152         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
16153         submodules.
16154         * doc/.gitignore: Ignore another generated file.
16155
16156 2010-03-08  Karl Berry  <karl@gnu.org>
16157
16158         * doc/gnulib-tool.texi (VCS Issues): Mention third option
16159         of committing gnulib files while skipping others.
16160
16161 2010-03-07  Bruno Haible  <bruno@clisp.org>
16162
16163         Tests of module 'wctype' in C++ mode.
16164         * tests/test-wctype-c++.cc: New file.
16165         * modules/wctype-tests (Files): Add it and tests/signature.h.
16166         (Depends-on): Add ansi-c++-opt.
16167         (Makefile.am): Arrange to compile and run test-wctype-c++.
16168
16169         Tests of module 'wchar' in C++ mode.
16170         * tests/test-wchar-c++.cc: New file.
16171         * modules/wchar-tests (Files): Add it and tests/signature.h.
16172         (Depends-on): Add ansi-c++-opt.
16173         (Makefile.am): Arrange to compile and run test-wchar-c++.
16174         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
16175         gl_MODULE_INDICATOR.
16176
16177         Tests of module 'unistd' in C++ mode.
16178         * tests/test-unistd-c++.cc: New file.
16179         * modules/unistd-tests (Files): Add it and tests/signature.h.
16180         (Depends-on): Add ansi-c++-opt.
16181         (Makefile.am): Arrange to compile and run test-unistd-c++.
16182         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
16183         gl_MODULE_INDICATOR.
16184
16185         Tests of module 'time' in C++ mode.
16186         * tests/test-time-c++.cc: New file.
16187         * modules/time-tests (Files): Add it and tests/signature.h.
16188         (Depends-on): Add ansi-c++-opt.
16189         (Makefile.am): Arrange to compile and run test-time-c++.
16190         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16191
16192         Tests of module 'sys_time' in C++ mode.
16193         * tests/test-sys_time-c++.cc: New file.
16194         * modules/sys_time-tests (Files): Add it and tests/signature.h.
16195         (Depends-on): Add ansi-c++-opt.
16196         (Makefile.am): Arrange to compile and run test-sys_time-c++.
16197         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
16198         gl_MODULE_INDICATOR.
16199
16200         Tests of module 'sys_stat' in C++ mode.
16201         * tests/test-sys_stat-c++.cc: New file.
16202         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
16203         (Depends-on): Add ansi-c++-opt.
16204         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
16205         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
16206         gl_MODULE_INDICATOR.
16207
16208         Tests of module 'sys_socket' in C++ mode.
16209         * tests/test-sys_socket-c++.cc: New file.
16210         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
16211         (Depends-on): Add ansi-c++-opt.
16212         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
16213         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
16214         gl_MODULE_INDICATOR.
16215
16216         Tests of module 'sys_select' in C++ mode.
16217         * tests/test-sys_select-c++.cc: New file.
16218         * modules/sys_select-tests (Files): Add it and tests/signature.h.
16219         (Depends-on): Add ansi-c++-opt.
16220         (Makefile.am): Arrange to compile and run test-sys_select-c++.
16221         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
16222         gl_MODULE_INDICATOR.
16223
16224         Tests of module 'sys_ioctl' in C++ mode.
16225         * tests/test-sys_ioctl-c++.cc: New file.
16226         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
16227         (Depends-on): Add ansi-c++-opt.
16228         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
16229         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
16230         gl_MODULE_INDICATOR.
16231
16232         Tests of module 'string' in C++ mode.
16233         * tests/test-string-c++.cc: New file.
16234         * modules/string-tests (Files): Add it and tests/signature.h.
16235         (Depends-on): Add ansi-c++-opt.
16236         (Makefile.am): Arrange to compile and run test-string-c++.
16237         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
16238         gl_MODULE_INDICATOR.
16239
16240         Tests of module 'stdlib' in C++ mode.
16241         * tests/test-stdlib-c++.cc: New file.
16242         * modules/stdlib-tests (Files): Add it and tests/signature.h.
16243         (Depends-on): Add ansi-c++-opt.
16244         (Makefile.am): Arrange to compile and run test-stdlib-c++.
16245         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
16246         gl_MODULE_INDICATOR.
16247
16248         Tests of module 'stdio' in C++ mode.
16249         * tests/test-stdio-c++.cc: New file.
16250         * modules/stdio-tests (Files): Add it and tests/signature.h.
16251         (Depends-on): Add ansi-c++-opt.
16252         (Makefile.am): Arrange to compile and run test-stdio-c++.
16253         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
16254         gl_MODULE_INDICATOR.
16255
16256         Tests of module 'spawn' in C++ mode.
16257         * tests/test-spawn-c++.cc: New file.
16258         * modules/spawn-tests (Files): Add it and tests/signature.h.
16259         (Depends-on): Add ansi-c++-opt.
16260         (Makefile.am): Arrange to compile and run test-spawn-c++.
16261         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
16262         gl_MODULE_INDICATOR.
16263
16264         Tests of module 'signal' in C++ mode.
16265         * tests/test-signal-c++.cc: New file.
16266         * modules/signal-tests (Files): Add it and tests/signature.h.
16267         (Depends-on): Add ansi-c++-opt.
16268         (Makefile.am): Arrange to compile and run test-signal-c++.
16269         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
16270         gl_MODULE_INDICATOR.
16271
16272         Tests of module 'search' in C++ mode.
16273         * tests/test-search-c++.cc: New file.
16274         * modules/search-tests (Files): Add it and tests/signature.h.
16275         (Depends-on): Add ansi-c++-opt.
16276         (Makefile.am): Arrange to compile and run test-search-c++.
16277         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
16278         gl_MODULE_INDICATOR.
16279
16280         Tests of module 'math' in C++ mode.
16281         * tests/test-math-c++.cc: New file.
16282         * modules/math-tests (Files): Add it and tests/signature.h.
16283         (Depends-on): Add ansi-c++-opt.
16284         (Makefile.am): Arrange to compile and run test-math-c++.
16285         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16286
16287         Tests of module 'locale' in C++ mode.
16288         * tests/test-locale-c++.cc: New file.
16289         * modules/locale-tests (Files): Add it and tests/signature.h.
16290         (Depends-on): Add ansi-c++-opt.
16291         (Makefile.am): Arrange to compile and run test-locale-c++.
16292         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
16293         gl_MODULE_INDICATOR.
16294
16295         Tests of module 'langinfo' in C++ mode.
16296         * tests/test-langinfo-c++.cc: New file.
16297         * modules/langinfo-tests (Files): Add it and tests/signature.h.
16298         (Depends-on): Add ansi-c++-opt.
16299         (Makefile.am): Arrange to compile and run test-langinfo-c++.
16300         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
16301         gl_MODULE_INDICATOR.
16302
16303         Tests of module 'iconv-h' in C++ mode.
16304         * tests/test-iconv-h-c++.cc: New file.
16305         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
16306         (Depends-on): Add ansi-c++-opt.
16307         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
16308
16309         Tests of module 'glob' in C++ mode.
16310         * tests/test-glob-c++.cc: New file.
16311         * modules/glob-tests (Files): Add it.
16312         (Depends-on): Add ansi-c++-opt.
16313         (Makefile.am): Arrange to compile and run test-glob-c++.
16314
16315         Tests of module 'fcntl-h' in C++ mode.
16316         * tests/test-fcntl-h-c++.cc: New file.
16317         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
16318         (Depends-on): Add ansi-c++-opt.
16319         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
16320         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
16321         gl_MODULE_INDICATOR.
16322
16323         Tests of module 'dirent' in C++ mode.
16324         * tests/test-dirent-c++.cc: New file.
16325         * modules/dirent-tests (Files): Add it and tests/signature.h.
16326         (Depends-on): Add ansi-c++-opt.
16327         (Makefile.am): Arrange to compile and run test-dirent-c++.
16328         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16329         gl_MODULE_INDICATOR.
16330
16331         New module 'ansi-c++-opt'.
16332         * modules/ansi-c++-opt: New file.
16333         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
16334
16335         Document C++ namespace mode.
16336         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
16337
16338         wctype: Avoid #define replacements in C++ mode.
16339         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
16340         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
16341         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
16342         In C++, define a namespaced alias symbol.
16343         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
16344         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
16345         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
16346         rule.
16347
16348         wchar: Avoid #define replacements in C++ mode.
16349         * lib/wchar.in.h: Include c++defs.h.
16350         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
16351         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
16352         symbol.
16353         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
16354         * modules/wchar (Depends-on): Add c++defs.
16355         (Makefile.am): Update wchar.h rule.
16356
16357         unistd: Avoid #define replacements in C++ mode.
16358         * lib/unistd.in.h: Include c++defs.h.
16359         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
16360         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
16361         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
16362         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
16363         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
16364         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
16365         symbol.
16366         (environ): Update.
16367         * modules/unistd (Depends-on): Add c++defs.
16368         (Makefile.am): Update unistd.h rule.
16369
16370         time: Avoid #define replacements in C++ mode.
16371         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
16372         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
16373         define a namespaced alias symbol.
16374         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
16375         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
16376         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
16377         * modules/time (Depends-on): Add c++defs, warn-on-use.
16378         (Makefile.am): Update time.h rule.
16379         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16380         * modules/nanosleep (configure.ac): Likewise.
16381         * modules/strptime (configure.ac): Likewise.
16382         * modules/timegm (configure.ac): Likewise.
16383
16384         sys_time: Avoid #define replacements in C++ mode.
16385         * lib/sys_time.in.h: Include c++defs.h.
16386         (gettimeofday): In C++, define a namespaced alias symbol.
16387         * modules/sys_time (Depends-on): Add c++defs.
16388         (Makefile.am): Update sys/time.h rule.
16389
16390         sys_stat: Avoid #define replacements in C++ mode.
16391         * lib/sys_stat.in.h: Include c++defs.h.
16392         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
16393         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
16394         namespaced alias symbol.
16395         In C++, define a namespaced alias symbol.
16396         * modules/sys_stat (Depends-on): Add c++defs.
16397         (Makefile.am): Update sys/stat.h rule.
16398
16399         sys_socket: Avoid #define replacements in C++ mode.
16400         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
16401         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
16402         definitions also when the system has a <sys/socket.h>.
16403         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16404         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
16405         In C++, define a namespaced alias symbol.
16406         * modules/sys_socket (Depends-on): Add c++defs.
16407         (Makefile.am): Update sys/socket.h rule.
16408
16409         sys_select: Avoid #define replacements in C++ mode.
16410         * lib/sys_select.in.h: Include c++defs.h. Enable the function
16411         definitions also when the system has a <sys/select.h>.
16412         (select): In C++, define a namespaced alias symbol.
16413         * modules/sys_select (Depends-on): Add c++defs.
16414         (Makefile.am): Update sys/select.h rule.
16415
16416         sys_ioctl: Avoid #define replacements in C++ mode.
16417         * lib/sys_ioctl.in.h: Include c++defs.h.
16418         (ioctl): In C++, define a namespaced alias symbol.
16419         * modules/sys_ioctl (Depends-on): Add c++defs.
16420         (Makefile.am): Update sys/ioctl.h rule.
16421
16422         string: Avoid #define replacements in C++ mode.
16423         * lib/string.in.h: Include c++defs.h.
16424         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
16425         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16426         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16427         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
16428         strsignal, strverscmp): In C++, define a namespaced alias symbol.
16429         * modules/string (Depends-on): Add c++defs.
16430         (Makefile.am): Update string.h rule.
16431
16432         stdlib: Avoid #define replacements in C++ mode.
16433         * lib/stdlib.in.h: Include c++defs.h.
16434         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
16435         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
16436         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
16437         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
16438         symbol.
16439         * modules/stdlib (Depends-on): Add c++defs.
16440         (Makefile.am): Update stdlib.h rule.
16441
16442         stdio: Avoid #define replacements in C++ mode.
16443         * lib/stdio.in.h: Include c++defs.h.
16444         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
16445         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
16446         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
16447         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
16448         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
16449         namespaced alias symbol.
16450         * modules/stdio (Depends-on): Add c++defs.
16451         (Makefile.am): Update stdio.h rule.
16452
16453         spawn: Avoid #define replacements in C++ mode.
16454         * lib/spawn.in.h: Include c++defs.h.
16455         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16456         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16457         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16458         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16459         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16460         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16461         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16462         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16463         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16464         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16465         In C++, define a namespaced alias symbol.
16466         * modules/spawn (Depends-on): Add c++defs.
16467         (Makefile.am): Update spawn.h rule.
16468
16469         signal: Avoid #define replacements in C++ mode.
16470         * lib/signal.in.h: Include c++defs.h.
16471         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16472         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
16473         namespaced alias symbol.
16474         * modules/signal (Depends-on): Add c++defs.
16475         (Makefile.am): Update signal.h rule.
16476
16477         search: Avoid #define replacements in C++ mode.
16478         * lib/search.in.h: Include c++defs.h.
16479         (_gl_search_compar_fn, _gl_search_action_fn): New types.
16480         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
16481         symbol.
16482         * modules/search (Depends-on): Add c++defs.
16483         (Makefile.am): Update search.h rule.
16484
16485         math: Avoid #define replacements in C++ mode.
16486         * lib/math.in.h: Include c++defs.h.
16487         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
16488         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
16489         trunc, truncl): In C++, define a namespaced alias symbol.
16490         * modules/math (Depends-on): Add c++defs.
16491         (Makefile.am): Update math.h rule.
16492
16493         locale: Avoid #define replacements in C++ mode.
16494         * lib/locale.in.h: Include c++defs.h.
16495         (duplocale): In C++, define a namespaced alias symbol.
16496         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
16497         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
16498         * modules/locale (Depends-on): Add c++defs.
16499         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
16500
16501         langinfo: Avoid #define replacements in C++ mode.
16502         * lib/langinfo.in.h: Include c++defs.h.
16503         (nl_langinfo): In C++, define a namespaced alias symbol.
16504         * modules/langinfo (Depends-on): Add c++defs.
16505         (Makefile.am): Update langinfo.h rule.
16506
16507         iconv-h: Avoid #define replacements in C++ mode.
16508         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
16509         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
16510         symbol.
16511         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
16512         whenever iconv is present.
16513         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
16514         (Makefile.am): Update iconv.h rule.
16515
16516         glob: Avoid #define replacements in C++ mode.
16517         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
16518         (_gl_glob_errfunc_fn): New type.
16519         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
16520         symbol.
16521         * modules/glob (Depends-on): Add c++defs, warn-on-use.
16522         (Makefile.am): Update glob.h rule.
16523
16524         fcntl-h: Avoid #define replacements in C++ mode.
16525         * lib/fcntl.in.h: Include c++defs.h.
16526         (fcntl, open, openat): In C++, define a namespaced alias symbol.
16527         * modules/fcntl-h (Depends-on): Add c++defs.
16528         (Makefile.am): Update fcntl.h rule.
16529
16530         dirent: Avoid #define replacements in C++ mode.
16531         * lib/dirent.in.h: Include c++defs.h.
16532         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
16533         namespaced alias symbol.
16534         (dirfd): Update declaration.
16535         * modules/dirent (Depends-on): Add c++defs.
16536         (Makefile.am): Update dirent.h rule.
16537
16538         ctype: Make it usable in C++ code.
16539         * lib/ctype.in.h: Include c++defs.h.
16540         (isblank): Declare as extern "C".
16541         * modules/ctype (Depends-on): Add c++defs.
16542         (Makefile.am): Update ctype.h rule.
16543
16544         New module 'c++defs'.
16545         * modules/c++defs: New file.
16546         * build-aux/c++defs.h: New file.
16547         Reported by John W. Eaton <jwe@gnu.org>.
16548
16549 2010-03-07  Bruno Haible  <bruno@clisp.org>
16550
16551         logb: Provide missing declaration for Cygwin.
16552         * lib/math.in.h (logb): New declaration.
16553         * m4/logb.m4: New file.
16554         * modules/logb (Files): Add m4/logb.m4.
16555         (Depends-on): Add math.
16556         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
16557         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
16558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
16559         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
16560         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
16561
16562 2010-03-07  Bruno Haible  <bruno@clisp.org>
16563
16564         Fix test-cond link error.
16565         * tests/test-cond.c: Include <stdio.h>.
16566
16567 2010-03-07  Bruno Haible  <bruno@clisp.org>
16568
16569         Fix test-dirent-safer link error.
16570         * modules/dirent-safer-tests (Makefile.am): Define
16571         test_dirent_safer_LDADD.
16572
16573 2010-03-07  Bruno Haible  <bruno@clisp.org>
16574
16575         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
16576         among default module list.
16577
16578 2010-03-07  Bruno Haible  <bruno@clisp.org>
16579
16580         Fix link error on platforms with GNU libiconv.
16581         * modules/unistr/u8-strcoll-tests (Makefile): Define
16582         test_u8_strcoll_LDADD.
16583         * modules/unistr/u16-strcoll-tests (Makefile): Define
16584         test_u16_strcoll_LDADD.
16585         * modules/unistr/u32-strcoll-tests (Makefile): Define
16586         test_u32_strcoll_LDADD.
16587
16588 2010-03-07  Bruno Haible  <bruno@clisp.org>
16589
16590         Use POSIX declarations for socket functions.
16591         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
16592         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
16593         rpl_sendto): Change declaration to match POSIX.
16594         * lib/connect.c (rpl_connect): Likewise.
16595         * lib/accept.c (rpl_accept): Likewise.
16596         * lib/bind.c (rpl_bind): Likewise.
16597         * lib/getpeername.c (rpl_getpeername): Likewise.
16598         * lib/getsockname.c (rpl_getsockname): Likewise.
16599         * lib/recv.c (rpl_recv): Likewise.
16600         * lib/send.c (rpl_send): Likewise.
16601         * lib/recvfrom.c (rpl_recvfrom): Likewise.
16602         * lib/sendto.c (rpl_sendto): Likewise.
16603
16604 2010-03-06  Bruno Haible  <bruno@clisp.org>
16605
16606         Clarify access, euidaccess, faccessat.
16607         * doc/posix-functions/faccessat.texi: Mention security problem under
16608         "Other problems", not "Portability problems".
16609         * doc/posix-functions/access.texi: Likewise. Mention a related security
16610         problem.
16611         * doc/glibc-functions/euidaccess.texi: Mention security problems.
16612         * lib/euidaccess.c: Add comments about platforms.
16613         * lib/unistd.in.h (access, euidaccess): Add warnings.
16614
16615 2010-03-07  Bruno Haible  <bruno@clisp.org>
16616
16617         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
16618         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
16619         (POSIX_SPAWN_SETSCHEDULER): Likewise.
16620         (POSIX_SPAWN_USEVFORK): Define in a way that works when
16621         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16622         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
16623         declare when POSIX_SPAWN_SETSCHEDULER is zero.
16624         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
16625         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
16626         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
16627         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
16628         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
16629         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
16630         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
16631         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
16632         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
16633         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
16634         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
16635         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
16636         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
16637         Likewise.
16638         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
16639         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
16640         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
16641         Likewise.
16642         * tests/test-spawn.c (main): Make it work when
16643         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16644
16645 2010-03-07  Bruno Haible  <bruno@clisp.org>
16646
16647         Fix incorrect Makefile.am generation in German locale.
16648         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16649         Execute sed command with character range in C locale.
16650
16651 2010-03-06  Bruno Haible  <bruno@clisp.org>
16652
16653         Tests for module 'iconv-h'.
16654         * modules/iconv-h-tests: New file.
16655         * tests/test-iconv-h.c: New file.
16656
16657         New module 'iconv-h'.
16658         * modules/iconv-h: New file.
16659         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
16660         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
16661         (configure.ac): Remove gl_ICONV_H.
16662         (Makefile.am): Remove rule for iconv.h.
16663
16664 2010-03-06  Bruno Haible  <bruno@clisp.org>
16665
16666         More consistent naming of *.m4 files.
16667         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
16668         * modules/wctype (Files): Update.
16669
16670         More consistent naming of *.m4 files.
16671         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
16672         * modules/wchar (Files): Update.
16673
16674 2010-03-06  Jim Meyering  <meyering@redhat.com>
16675
16676         euidaccess: relax license to LGPLv2+
16677         * modules/euidaccess (License): Relax to LGPLv2+.
16678
16679 2010-03-06  Bruno Haible  <bruno@clisp.org>
16680
16681         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
16682         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
16683         (Makefile.am): Augment lib_SOURCES instead.
16684
16685 2010-03-04  Jim Meyering  <meyering@redhat.com>
16686
16687         utime: remove obsolete module
16688         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
16689         unnecessary for years, and has been marked as obsolete for 10 months.
16690         * modules/utime: Remove file.
16691         * lib/utime.c: Remove file.
16692         * m4/utime.m4: Remove file.
16693         * m4/utimes-null.m4: Remove file.
16694         * doc/posix-functions/utime.texi (utime): Remove reference to
16695         the module.  Move the sole "fixed by gnulib" item into the
16696         "problems not fixed by Gnulib" list.
16697         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
16698
16699 2010-03-05  Simon Josefsson  <simon@josefsson.org>
16700
16701         * modules/exit (License): Relax license to LGPLv2+.
16702         (Status): Mark as obsolete.
16703         * NEWS: Mention deprecated 'exit' module.
16704         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
16705         of now obsolete 'exit'.
16706
16707 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16708
16709         fts-lgpl: remove unused module
16710         * modules/fts-lgpl: Remove.
16711         * MODULES.html.sh (func_all_modules): Adjust.
16712         * check-module (find_included_lib_files): Adjust.
16713         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
16714
16715 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
16716
16717         copy-acl: enhance Solaris ACL error handling
16718         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
16719         * lib/set-mode-acl.c (qset_acl): Likewise.
16720
16721 2010-03-02  Bruno Haible  <bruno@clisp.org>
16722
16723         spawn: Don't override the system defined values on FreeBSD 8.
16724         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
16725         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
16726         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
16727         if HAVE_POSIX_SPAWN is 1.
16728         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
16729
16730 2010-03-01  Bruno Haible  <bruno@clisp.org>
16731
16732         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
16733         regarding Automake.
16734
16735 2010-02-25  Bruno Haible  <bruno@clisp.org>
16736
16737         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
16738         * gnulib-tool: Define 'echo' as a function only before the ksh alias
16739         setting, not afterwards.
16740         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
16741
16742 2010-02-24  Eric Blake  <eblake@redhat.com>
16743
16744         bootstrap, git-version-gen: use timestamp
16745         * build-aux/git-version-gen (scriptversion): Force UTC.
16746         * build-aux/bootstrap (scriptversion): New variable.
16747
16748         bootstrap: allow older git
16749         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
16750         older than 1.6.4.  Requested by the libvirt project.
16751
16752 2010-02-23  Eric Blake  <eblake@redhat.com>
16753
16754         warn-on-use: work with old autoconf
16755         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
16756         AS_VAR semantics of autoconf 2.60.
16757         Reported by Bruno Haible.
16758
16759         bootstrap: improve some comments
16760         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
16761         clarification comments.
16762
16763         gettimeofday: provide correct function
16764         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
16765         when replacement is declared, otherwise provide gettimeofday.
16766         Reported by Michael Goffioul.
16767
16768 2010-02-23  Jim Meyering  <meyering@redhat.com>
16769
16770         lib-ignore: relax license to "unlimited", not LGPLv2+
16771         * modules/lib-ignore (License): Relax to "unlimited".
16772
16773 2010-02-23  Jim Meyering  <meyering@redhat.com>
16774
16775         lib-ignore: relax license to LGPLv2+
16776         * modules/lib-ignore (License): Relax to LGPLv2+.
16777
16778 2010-02-22  Eric Blake  <eblake@redhat.com>
16779
16780         lseek: avoid bash 3.2 broken pipe bug
16781         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
16782         warning from bash 3.2.
16783         Reported by Ben Pfaff, with analysis from Bruno Haible.
16784
16785         bootstrap: support non-FSF copyright holder
16786         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
16787         bootstrap.conf override of COPYRIGHT_HOLDER.
16788         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
16789
16790         bootstrap: interoperate with gettext 0.14.1
16791         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
16792
16793         bootstrap: allow for alternate submodule location
16794         * build-aux/bootstrap (gnulib_path): New variable; use instead of
16795         hardcoding submodule location.
16796         (gnulib_mk): Allow direct use of Makefile.am.
16797
16798         bootstrap: use GNULIB_SRCDIR to reduce disk usage
16799         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
16800         rather than reconfiguring where the submodule points.
16801
16802         gettimeofday: restore support for platforms that lack function
16803         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
16804         replacement if function is missing.
16805         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
16806         * modules/sys_time (Makefile.am): Substitute it.
16807         * lib/sys_time.in.h (gettimeofday): Check it.
16808         Reported by Michael Goffioul.
16809
16810 2010-02-21  Bruno Haible  <bruno@clisp.org>
16811
16812         * lib/stdio.in.h (obstack_printf): Fix typo.
16813
16814 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
16815
16816         vc-list-files: use bzr ls's -R option
16817         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
16818         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
16819
16820 2010-02-21  Jim Meyering  <meyering@redhat.com>
16821
16822         init.sh: fix EXEEXT shims to work also for names like test-prog
16823         * tests/init.sh: Re-exec a better shell, when needed.
16824         If the current shell lacks support for posix $(...), an init.sh-using
16825         test will now try to find a shell that supports that.  If EXEEXT is
16826         nonempty, we also require support for hyphen-in-alias-name and shell
16827         substitutions like ${var#glob}.  Failure to find such a shell results
16828         in a skipped test.
16829
16830 2010-02-21  Bruno Haible  <bruno@clisp.org>
16831
16832         Really work around around "broken pipe" error message from bash 3.2.
16833         * gnulib-tool (func_reset_sigpipe): Remove function.
16834         (echo): In bash 3.2, define to a function that uses printf.
16835         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
16836
16837 2010-02-20  Bruno Haible  <bruno@clisp.org>
16838
16839         Restore support for automake 1.9.6 with autoconf 2.61.
16840         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
16841         Reported by James Youngman <jay@gnu.org>.
16842
16843 2010-02-20  Bruno Haible  <bruno@clisp.org>
16844
16845         Improve *printf warning condition.
16846         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
16847         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
16848         and the function is overridden due to SIGPIPE emulation.
16849
16850 2010-02-20  Bruno Haible  <bruno@clisp.org>
16851
16852         * lib/stdio.in.h: Tweak comments.
16853
16854 2010-02-19  Bruno Haible  <bruno@clisp.org>
16855
16856         Make it easier to find modules. New gnulib-tool option '--find'.
16857         * gnulib-tool: New option --find.
16858         (func_usage): Document it.
16859         (func_sanitize_modulelist): New function, extracted from
16860         func_all_modules.
16861         (func_all_modules): Invoke it.
16862         * doc/gnulib-tool.texi (Which modules?): New node.
16863
16864 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
16865
16866         * lib/sys_select.in.h: Provide select replacement even if
16867         sys/select.h exists on a system, for Interix.
16868
16869 2010-02-18  Jim Meyering  <meyering@redhat.com>
16870
16871         init.sh: don't use $(...) just yet
16872         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
16873         to accommodate e.g., Solaris' /bin/sh.
16874
16875 2010-02-17  Bruno Haible  <bruno@clisp.org>
16876
16877         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
16878         Reported by Ludovic Courtès <ludo@gnu.org>.
16879
16880 2010-02-16  Simon Josefsson  <simon@josefsson.org>
16881
16882         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
16883         linking with -lintl.
16884
16885 2010-02-17  Simon Josefsson  <simon@josefsson.org>
16886
16887         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
16888         if not provided by the system's netdb.h.  Reported by
16889         ludo@gnu.org (Ludovic Courtès).
16890
16891 2010-02-15  Jim Meyering  <meyering@redhat.com>
16892
16893         init.sh: improve portability and efficiency
16894         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
16895         "dummy" in a for loop.
16896         Use '!', not '^' to select the complement of a character set used
16897         in a "case" statement.
16898         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
16899         Suggestions from Eric Blake.
16900
16901         init.sh: automatically accommodate programs with the .exe suffix
16902         Automatically arrange for an invocation of "prog" to execute the
16903         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
16904         may use the simpler "prog", yet still work when built on a system
16905         that requires specifying the added suffix.
16906         Do this by constructing a function named "prog" that invokes
16907         "prog.exe" for each .exe file in selected directories.
16908         * tests/init.sh (find_exe_basenames_): New function.
16909         (create_exe_shim_functions_): New function.
16910         (path_prepend_): Use it.
16911
16912         maint.mk: mark syntax-check sc_*.m rules as .PHONY
16913         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
16914         "make -t syntax-check" doesn't create a ton of sc_*.m files.
16915
16916 2010-02-14  Jim Meyering  <meyering@redhat.com>
16917
16918         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
16919         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
16920         (sc_prohibit_hash_pjw_without_use): New rule.
16921
16922         maint.mk: allow the default upload destination dir to be overridden
16923         * top/maint.mk (upload_dest_dir_): Define with a default that
16924         preserves the status quo.
16925         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
16926         Reported by Peter Simons.
16927
16928         maint.mk: prohibit inclusion of "hash.h" without_use
16929         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
16930
16931 2010-02-10  Jim Meyering  <meyering@redhat.com>
16932
16933         maint.mk: prohibit inclusion of "ignore-value.h" without_use
16934         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
16935
16936 2010-02-09  Eric Blake  <ebb9@byu.net>
16937         and Bruno Haible  <bruno@clisp.org>
16938
16939         obstack-printf-posix: ensure declaration
16940         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
16941         extracted from gl_FUNC_OBSTACK_PRINTF.
16942         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
16943         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16944         Likewise.
16945         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
16946         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
16947         0.
16948
16949 2010-02-08  Bruno Haible  <bruno@clisp.org>
16950
16951         gnulib-tool: Fix typo in 2010-02-07 commit.
16952         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
16953         Reported by Eric Blake.
16954
16955 2010-02-07  Bruno Haible  <bruno@clisp.org>
16956
16957         gnulib-tool: Fix up caching patches.
16958         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
16959         option --no-cache. Use associative arrays when supported by the shell.
16960         (sed_comments): New variable.
16961         (modcache): Renamed from do_cache.
16962         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
16963         abbreviate unnecessarily.
16964         (have_associative): New variable.
16965         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
16966         way also for ksh and zsh.
16967         (func_init_sed_convert_to_cache_statements): New function, extracted
16968         from func_cache_lookup_module. Add support for associative arrays.
16969         Don't set the c_MODULE_cached variable here. Ignore all lines before
16970         the first field header. Remove only the final newline, not all trailing
16971         newlines. Support empty fields correctly. Limit the use of 'eval' to
16972         assignments.
16973         (func_get_description, func_get_status, func_get_notice,
16974         func_get_applicability, func_get_filelist, func_get_dependencies,
16975         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
16976         func_get_automake_snippet, func_get_include_directive,
16977         func_get_link_directive, func_get_license, func_get_maintainer):
16978         Update documentation. List the unoptimized code first. Add support for
16979         associative arrays. Limit the use of 'eval' to assignments.
16980         (func_get_applicability): Undo stylistic pessimisations.
16981         (func_get_automake_snippet, func_get_include_directive): Reduce code
16982         duplication.
16983         (func_modules_transitive_closure, func_modules_add_dummy,
16984         func_modules_notice, func_modules_to_filelist, func_add_file,
16985         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
16986         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
16987         func_create_testdir, func_create_megatestdir): Update documentation.
16988
16989 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16990
16991         * gnulib-tool (func_cache_lookup_module): Store the module name
16992         belonging to the cache variable; error out if two different
16993         module names map to the same cache variable name.
16994
16995 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16996
16997         gnulib-tool: Make caching optional.
16998         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
16999         Update matching short versions of --no-changelog.
17000         (func_usage): Update.
17001         (sed_extract_cache_prog): Renamed from ...
17002         (sed_extract_prog): ... this; revert to old extraction script.
17003         (func_get_description, func_get_status)
17004         (func_get_notice, func_get_applicability, func_get_filelist)
17005         (func_get_dependencies, func_get_autoconf_early_snippet)
17006         (func_get_autoconf_snippet, func_get_automake_snippet)
17007         (func_get_include_directive, func_get_link_directive)
17008         (func_get_license, func_get_maintainer): If $do_cache is false,
17009         use old, non-caching extraction scripts.
17010         Suggestion by Bruno Haible.
17011
17012 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17013
17014         gnulib-tool: cache module metainformation.
17015         * gnulib-tool (sed_extract_prog): Match newline before each
17016         header, and rewrite header to a shell variable suffix.
17017         (func_cache_var, func_cache_lookup_module): New functions,
17018         to turn a module name into a cache variable prefix, and to
17019         look up and cache module metainformation.
17020         (func_get_description, func_get_status)
17021         (func_get_notice, func_get_applicability, func_get_filelist)
17022         (func_get_dependencies, func_get_autoconf_early_snippet)
17023         (func_get_autoconf_snippet, func_get_automake_snippet)
17024         (func_get_include_directive, func_get_link_directive)
17025         (func_get_license, func_get_maintainer): Use
17026         func_cache_lookup_module.
17027
17028 2010-02-07  Bruno Haible  <bruno@clisp.org>
17029
17030         fnctl: Fix missing dependency.
17031         * modules/fcntl (Depends-on): Add getdtablesize.
17032         Reported by John W. Eaton <jwe@gnu.org>.
17033
17034 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17035
17036         Argp: fix recognition of short alias options.
17037
17038         * lib/argp-parse.c (convert_options): Fix improper use of
17039         `|' between character values.
17040         * tests/test-argp.c (group1_option): New alias option
17041         --read (-r).
17042         (group1_parser): Special handling for 'r'.
17043         (test15): New test case.
17044         (test_fun): Add test15.
17045         * tests/test-argp-2.sh: Update expected --help and --usage
17046         outputs.
17047
17048 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17049
17050         * tests/test-argp.c: Fix indentation.
17051
17052 2010-02-04  Eric Blake  <ebb9@byu.net>
17053
17054         gettimeofday: expose type of second argument
17055         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
17056         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
17057         * tests/test-gettimeofday.c: Use it to silence warning.
17058         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
17059         the issue.
17060
17061 2010-02-03  Jim Meyering  <meyering@redhat.com>
17062
17063         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
17064         * lib/regcomp.c (TYPE_SIGNED): Define.
17065         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
17066
17067         regcomp.c: avoid a new -Wshadow warning
17068         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
17069
17070 2010-02-01  Jim Meyering  <meyering@redhat.com>
17071
17072         removing useless parentheses in cpp #define directives
17073         For motivation, see commit c0221df4, "define STREQ(a,b)
17074         consistently, removing useless parentheses"
17075         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
17076         * lib/mountlist.c (MNT_IGNORE): Likewise.
17077         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
17078
17079 2010-02-01  Eric Blake  <ebb9@byu.net>
17080
17081         sys_time: use link-warning
17082         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
17083         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
17084         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
17085         * modules/sys_time (Depends-on): Add warn-on-use.
17086         (Makefile.am): Always build replacement.
17087         (configure.ac): Update substitutions.
17088         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
17089         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
17090         bother with SYS_TIME_H.
17091         * modules/gettimeofday (configure.ac): Declare indicator.
17092         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
17093         in use.
17094
17095         closein-tests: silence compiler warning
17096         * tests/test-closein.c (main): Ignore fread result.
17097         * modules/closein-tests (Depends-on): Add ignore-value.
17098
17099         tests: silence warning about system return
17100         * tests/test-areadlink-with-size.c (main): Ignore system result.
17101         * tests/test-areadlink.c (main): Likewise.
17102         * tests/test-areadlinkat-with-size.c (main): Likewise.
17103         * tests/test-areadlinkat.c (main): Likewise.
17104         * tests/test-canonicalize-lgpl.c (main): Likewise.
17105         * tests/test-canonicalize.c (main): Likewise.
17106         * tests/test-chown.c (main): Likewise.
17107         * tests/test-fchownat.c (main): Likewise.
17108         * tests/test-fdutimensat.c (main): Likewise.
17109         * tests/test-fstatat.c (main): Likewise.
17110         * tests/test-futimens.c (main): Likewise.
17111         * tests/test-lchown.c (main): Likewise.
17112         * tests/test-link.c (main): Likewise.
17113         * tests/test-linkat.c (main): Likewise.
17114         * tests/test-lstat.c (main): Likewise.
17115         * tests/test-mkdir.c (main): Likewise.
17116         * tests/test-mkdirat.c (main): Likewise.
17117         * tests/test-mkfifo.c (main): Likewise.
17118         * tests/test-mkfifoat.c (main): Likewise.
17119         * tests/test-mknod.c (main): Likewise.
17120         * tests/test-readlink.c (main): Likewise.
17121         * tests/test-remove.c (main): Likewise.
17122         * tests/test-rename.c (main): Likewise.
17123         * tests/test-renameat.c (main): Likewise.
17124         * tests/test-rmdir.c (main): Likewise.
17125         * tests/test-symlink.c (main): Likewise.
17126         * tests/test-symlinkat.c (main): Likewise.
17127         * tests/test-unlink.c (main): Likewise.
17128         * tests/test-unlinkat.c (main): Likewise.
17129         * tests/test-utimens.c (main): Likewise.
17130         * tests/test-utimensat.c (main): Likewise.
17131         * modules/areadlink-tests (Depends-on): Add ignore-value.
17132         * modules/areadlink-with-size-tests (Depends-on): Likewise.
17133         * modules/areadlinkat-tests (Depends-on): Likewise.
17134         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
17135         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17136         * modules/canonicalize-tests (Depends-on): Likewise.
17137         * modules/chown-tests (Depends-on): Likewise.
17138         * modules/fdutimensat-tests (Depends-on): Likewise.
17139         * modules/futimens-tests (Depends-on): Likewise.
17140         * modules/lchown-tests (Depends-on): Likewise.
17141         * modules/link-tests (Depends-on): Likewise.
17142         * modules/linkat-tests (Depends-on): Likewise.
17143         * modules/lstat-tests (Depends-on): Likewise.
17144         * modules/mkdir-tests (Depends-on): Likewise.
17145         * modules/mkfifo-tests (Depends-on): Likewise.
17146         * modules/mkfifoat-tests (Depends-on): Likewise.
17147         * modules/mknod-tests (Depends-on): Likewise.
17148         * modules/openat-tests (Depends-on): Likewise.
17149         * modules/readlink-tests (Depends-on): Likewise.
17150         * modules/remove-tests (Depends-on): Likewise.
17151         * modules/rename-tests (Depends-on): Likewise.
17152         * modules/renameat-tests (Depends-on): Likewise.
17153         * modules/rmdir-tests (Depends-on): Likewise.
17154         * modules/symlink-tests (Depends-on): Likewise.
17155         * modules/symlinkat-tests (Depends-on): Likewise.
17156         * modules/unlink-tests (Depends-on): Likewise.
17157         * modules/utimens-tests (Depends-on): Likewise.
17158         * modules/utimensat-tests (Depends-on): Likewise.
17159
17160 2010-01-31  Bruno Haible  <bruno@clisp.org>
17161
17162         Perform the same test for many <math.h> functions.
17163         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
17164         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
17165         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
17166         of gl_MATHFUNC.
17167         * modules/acos (configure.ac): Likewise.
17168         * modules/asin (configure.ac): Likewise.
17169         * modules/atan (configure.ac): Likewise.
17170         * modules/atan2 (configure.ac): Likewise.
17171         * modules/cbrt (configure.ac): Likewise.
17172         * modules/copysign (configure.ac): Likewise.
17173         * modules/cos (configure.ac): Likewise.
17174         * modules/cosh (configure.ac): Likewise.
17175         * modules/erf (configure.ac): Likewise.
17176         * modules/erfc (configure.ac): Likewise.
17177         * modules/exp (configure.ac): Likewise.
17178         * modules/fmod (configure.ac): Likewise.
17179         * modules/hypot (configure.ac): Likewise.
17180         * modules/j0 (configure.ac): Likewise.
17181         * modules/j1 (configure.ac): Likewise.
17182         * modules/jn (configure.ac): Likewise.
17183         * modules/lgamma (configure.ac): Likewise.
17184         * modules/log (configure.ac): Likewise.
17185         * modules/log10 (configure.ac): Likewise.
17186         * modules/log1p (configure.ac): Likewise.
17187         * modules/pow (configure.ac): Likewise.
17188         * modules/remainder (configure.ac): Likewise.
17189         * modules/sin (configure.ac): Likewise.
17190         * modules/sinh (configure.ac): Likewise.
17191         * modules/tan (configure.ac): Likewise.
17192         * modules/tanh (configure.ac): Likewise.
17193         * modules/y0 (configure.ac): Likewise.
17194         * modules/y1 (configure.ac): Likewise.
17195         * modules/yn (configure.ac): Likewise.
17196         Suggested by Paolo Bonzini.
17197
17198 2010-01-31  Bruno Haible  <bruno@clisp.org>
17199
17200         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
17201
17202 2010-01-31  Bruno Haible  <bruno@clisp.org>
17203
17204         Work around getdelim() bug on FreeBSD 8.0.
17205         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
17206         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
17207         not work.
17208         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
17209         is 1.
17210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
17211         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
17212         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
17213         a non-zero size.
17214         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
17215
17216 2010-01-31  Bruno Haible  <bruno@clisp.org>
17217
17218         Work around getline() bug on FreeBSD 8.0.
17219         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
17220         and a non-zero size.
17221         * tests/test-getline.c (main): Likewise.
17222         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
17223         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
17224
17225 2010-01-28  Eric Blake  <ebb9@byu.net>
17226
17227         regex: fix build failure
17228         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
17229         platforms.
17230
17231 2010-01-28  Jim Meyering  <meyering@redhat.com>
17232
17233         regex: do not ignore memory allocation failure
17234         * lib/regex_internal.c (create_cd_newstate): Detect
17235         re_node_set_init_copy failure.   Extracted from glibc commit
17236         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17237
17238         regex: sync more white-space changes from libc
17239         * lib/regex_internal.c: White-space only changes.
17240         * lib/regexec.c: Likewise.
17241
17242         regex: add many uses of __attribute_warn_unused_result__
17243         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
17244         * lib/regexec.c: Likewise.
17245         Extracted from a messy glibc commit.
17246
17247         regcomp.c: spelling and merge-artifact from glibc
17248         * lib/regcomp.c: Merge remainder of glibc's
17249         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17250
17251         regcomp.c: sync white-space changes from glibc
17252         * lib/regcomp.c: Merge to accommodate white space
17253         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17254
17255         regcomp.c: do not ignore internal return values
17256         * lib/regcomp.c: Do not ignore internal return values.
17257         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
17258         but without its white-space changes and spelling fixes.
17259
17260         regex_internal.h: define __attribute_warn_unused_result__
17261         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
17262
17263         maint: add a syntax-check rule to check for vulnerable Makefile.in
17264         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
17265
17266 2010-01-27  Jim Meyering  <meyering@redhat.com>
17267
17268         ncftpput-ftp: clean up spaces
17269         * build-aux/ncftpput-ftp: Make Copyright line consistent.
17270         Remove trailing blanks.
17271
17272 2010-01-27  Simon Josefsson  <simon@josefsson.org>
17273
17274         * build-aux/git-version-gen: Fix copyright statement.
17275         * build-aux/gnupload: Likewise.
17276         * tests/test-arcfour.c: Likewise.
17277         * tests/test-arctwo.c: Likewise.
17278         * tests/test-count-one-bits.c: Likewise.
17279         * tests/test-crc.c: Likewise.
17280         * tests/test-des.c: Likewise.
17281         * tests/test-gc-arcfour.c: Likewise.
17282         * tests/test-gc-arctwo.c: Likewise.
17283         * tests/test-gc-des.c: Likewise.
17284         * tests/test-gc-hmac-md5.c: Likewise.
17285         * tests/test-gc-hmac-sha1.c: Likewise.
17286         * tests/test-gc-md2.c: Likewise.
17287         * tests/test-gc-md4.c: Likewise.
17288         * tests/test-gc-md5.c: Likewise.
17289         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17290         * tests/test-gc-rijndael.c: Likewise.
17291         * tests/test-gc-sha1.c: Likewise.
17292         * tests/test-gc.c: Likewise.
17293         * tests/test-gethostname.c: Likewise.
17294         * tests/test-gettimeofday.c: Likewise.
17295         * tests/test-hash.c: Likewise.
17296         * tests/test-hmac-md5.c: Likewise.
17297         * tests/test-hmac-sha1.c: Likewise.
17298         * tests/test-md2.c: Likewise.
17299         * tests/test-md4.c: Likewise.
17300         * tests/test-md5.c: Likewise.
17301         * tests/test-memchr.c: Likewise.
17302         * tests/test-memchr2.c: Likewise.
17303         * tests/test-memcmp.c: Likewise.
17304         * tests/test-memmem.c: Likewise.
17305         * tests/test-memrchr.c: Likewise.
17306         * tests/test-rawmemchr.c: Likewise.
17307         * tests/test-read-file.c: Likewise.
17308         * tests/test-rijndael.c: Likewise.
17309         * tests/test-sockets.c: Likewise.
17310         * tests/test-strchrnul.c: Likewise.
17311         * tests/test-strstr.c: Likewise.
17312         * tests/test-strtod.c: Likewise.
17313         * build-aux/ncftpput-ftp: Likewise.
17314
17315 2010-01-26  Eric Blake  <ebb9@byu.net>
17316
17317         ignore-value: update recommended header name
17318         * modules/ignore-value (Include): Only use <> for headers that
17319         exist in glibc.
17320
17321 2010-01-26  Jim Meyering  <meyering@redhat.com>
17322
17323         test-userspec.c: avoid compiler warnings
17324         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
17325         and "initialization discards qualifiers..." warnings.
17326         Put the first "uid" in its own scope, and make char* members "const".
17327
17328 2010-01-25  Bruno Haible  <bruno@clisp.org>
17329
17330         gnulib-tool: Make warning diagnostics consistent.
17331         * gnulib-tool (func_warning): New function.
17332         Use it everywhere where gnulib-tool produces output to stderr and it is
17333         not a fatal error.
17334
17335 2010-01-25  Bruno Haible  <bruno@clisp.org>
17336
17337         Fix test dependencies.
17338         * modules/xstrtol-tests (Depends-on): Add inttypes.
17339         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
17340
17341 2010-01-25 Pádraig Brady <P@draigBrady.com>
17342
17343         syntax-check: detect incorrect boolean macro values in config.h
17344         * modules/maintainer-makefile (configure.ac): Parameterize the location
17345         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
17346         The logic is from Eric Blake and the location indicated by Jim Meyering.
17347         Note the more natural CONFIG_HEADER name is prohibited by automake
17348         for backwards compatibility reasons.
17349         * top/maint.mk (sc_Wundef_boolean): New rule.
17350
17351 2010-01-25  Jim Meyering  <meyering@redhat.com>
17352
17353         bootstrap: detect MacOS 10.6's shasum, too
17354         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
17355         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
17356
17357 2010-01-23  Jim Meyering  <meyering@redhat.com>
17358
17359         xstrtoll: new module
17360         * modules/xstrtoll: New file.
17361         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
17362         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
17363         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
17364         ./configure fails if you use this module and lack "long long".
17365         * modules/xstrtoll-tests: New module.
17366         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
17367         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
17368         new init.sh-based test framework.
17369
17370 2010-01-24  Bruno Haible  <bruno@clisp.org>
17371
17372         Tests for module 'yn'.
17373         * modules/yn-tests: New file.
17374         * tests/test-yn.c: New file.
17375
17376         Tests for module 'y1'.
17377         * modules/y1-tests: New file.
17378         * tests/test-y1.c: New file.
17379
17380         Tests for module 'y0'.
17381         * modules/y0-tests: New file.
17382         * tests/test-y0.c: New file.
17383
17384         Tests for module 'tanh'.
17385         * modules/tanh-tests: New file.
17386         * tests/test-tanh.c: New file.
17387
17388         Tests for module 'tan'.
17389         * modules/tan-tests: New file.
17390         * tests/test-tan.c: New file.
17391
17392         Tests for module 'sqrt'.
17393         * modules/sqrt-tests: New file.
17394         * tests/test-sqrt.c: New file.
17395
17396         Tests for module 'sinh'.
17397         * modules/sinh-tests: New file.
17398         * tests/test-sinh.c: New file.
17399
17400         Tests for module 'sin'.
17401         * modules/sin-tests: New file.
17402         * tests/test-sin.c: New file.
17403
17404         Tests for module 'rint'.
17405         * modules/rint-tests: New file.
17406         * tests/test-rint.c: New file.
17407
17408         Tests for module 'remainder'.
17409         * modules/remainder-tests: New file.
17410         * tests/test-remainder.c: New file.
17411
17412         Tests for module 'pow'.
17413         * modules/pow-tests: New file.
17414         * tests/test-pow.c: New file.
17415
17416         Tests for module 'nextafter'.
17417         * modules/nextafter-tests: New file.
17418         * tests/test-nextafter.c: New file.
17419
17420         Tests for module 'modf'.
17421         * modules/modf-tests: New file.
17422         * tests/test-modf.c: New file.
17423
17424         Tests for module 'logb'.
17425         * modules/logb-tests: New file.
17426         * tests/test-logb.c: New file.
17427
17428         Tests for module 'log1p'.
17429         * modules/log1p-tests: New file.
17430         * tests/test-log1p.c: New file.
17431
17432         Tests for module 'log10'.
17433         * modules/log10-tests: New file.
17434         * tests/test-log10.c: New file.
17435
17436         Tests for module 'log'.
17437         * modules/log-tests: New file.
17438         * tests/test-log.c: New file.
17439
17440         Tests for module 'lgamma'.
17441         * modules/lgamma-tests: New file.
17442         * tests/test-lgamma.c: New file.
17443
17444         Tests for module 'ldexp'.
17445         * modules/ldexp-tests: New file.
17446         * tests/test-ldexp.c: New file.
17447
17448         Tests for module 'jn'.
17449         * modules/jn-tests: New file.
17450         * tests/test-jn.c: New file.
17451
17452         Tests for module 'j1'.
17453         * modules/j1-tests: New file.
17454         * tests/test-j1.c: New file.
17455
17456         Tests for module 'j0'.
17457         * modules/j0-tests: New file.
17458         * tests/test-j0.c: New file.
17459
17460         Tests for module 'hypot'.
17461         * modules/hypot-tests: New file.
17462         * tests/test-hypot.c: New file.
17463
17464         Tests for module 'fmod'.
17465         * modules/fmod-tests: New file.
17466         * tests/test-fmod.c: New file.
17467
17468         Tests for module 'fabs'.
17469         * modules/fabs-tests: New file.
17470         * tests/test-fabs.c: New file.
17471
17472         Tests for module 'exp'.
17473         * modules/exp-tests: New file.
17474         * tests/test-exp.c: New file.
17475
17476         Tests for module 'erfc'.
17477         * modules/erfc-tests: New file.
17478         * tests/test-erfc.c: New file.
17479
17480         Tests for module 'erf'.
17481         * modules/erf-tests: New file.
17482         * tests/test-erf.c: New file.
17483
17484         Tests for module 'cosh'.
17485         * modules/cosh-tests: New file.
17486         * tests/test-cosh.c: New file.
17487
17488         Tests for module 'cos'.
17489         * modules/cos-tests: New file.
17490         * tests/test-cos.c: New file.
17491
17492         Tests for module 'copysign'.
17493         * modules/copysign-tests: New file.
17494         * tests/test-copysign.c: New file.
17495
17496         Tests for module 'cbrt'.
17497         * modules/cbrt-tests: New file.
17498         * tests/test-cbrt.c: New file.
17499
17500         Tests for module 'atan2'.
17501         * modules/atan2-tests: New file.
17502         * tests/test-atan2.c: New file.
17503
17504         Tests for module 'atan'.
17505         * modules/atan-tests: New file.
17506         * tests/test-atan.c: New file.
17507
17508         Tests for module 'asin'.
17509         * modules/asin-tests: New file.
17510         * tests/test-asin.c: New file.
17511
17512         Tests for module 'acos'.
17513         * modules/acos-tests: New file.
17514         * tests/test-acos.c: New file.
17515
17516 2010-01-24  Bruno Haible  <bruno@clisp.org>
17517
17518         Fix tests for common <math.h> functions.
17519         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
17520         code snippet that references the function pointer, rather than merely
17521         calling the function. Substitute the FUNC_LIBM variable.
17522         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
17523         * modules/acos (configure.ac): Likewise.
17524         * modules/asin (configure.ac): Likewise.
17525         * modules/atan (configure.ac): Likewise.
17526         * modules/atan2 (configure.ac): Likewise.
17527         * modules/cbrt (configure.ac): Likewise.
17528         * modules/copysign (configure.ac): Likewise.
17529         * modules/cos (configure.ac): Likewise.
17530         * modules/cosh (configure.ac): Likewise.
17531         * modules/erf (configure.ac): Likewise.
17532         * modules/erfc (configure.ac): Likewise.
17533         * modules/exp (configure.ac): Likewise.
17534         * modules/fabs (configure.ac): Likewise.
17535         * modules/fmod (configure.ac): Likewise.
17536         * modules/hypot (configure.ac): Likewise.
17537         * modules/j0 (configure.ac): Likewise.
17538         * modules/j1 (configure.ac): Likewise.
17539         * modules/jn (configure.ac): Likewise.
17540         * modules/ldexp (configure.ac): Likewise.
17541         * modules/lgamma (configure.ac): Likewise.
17542         * modules/log (configure.ac): Likewise.
17543         * modules/log10 (configure.ac): Likewise.
17544         * modules/log1p (configure.ac): Likewise.
17545         * modules/logb (configure.ac): Likewise.
17546         * modules/modf (configure.ac): Likewise.
17547         * modules/nextafter (configure.ac): Likewise.
17548         * modules/pow (configure.ac): Likewise.
17549         * modules/remainder (configure.ac): Likewise.
17550         * modules/rint (configure.ac): Likewise.
17551         * modules/sin (configure.ac): Likewise.
17552         * modules/sinh (configure.ac): Likewise.
17553         * modules/tan (configure.ac): Likewise.
17554         * modules/tanh (configure.ac): Likewise.
17555         * modules/y0 (configure.ac): Likewise.
17556         * modules/y1 (configure.ac): Likewise.
17557         * modules/yn (configure.ac): Likewise.
17558
17559 2010-01-24  Bruno Haible  <bruno@clisp.org>
17560
17561         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
17562         * tests/test-acosl.c (x): New variable.
17563         (main): Store argument in x and fetch it from x.
17564         * tests/test-asinl.c (x): New variable.
17565         (main): Store argument in x and fetch it from x.
17566         * tests/test-atanl.c (x): New variable.
17567         (main): Store argument in x and fetch it from x.
17568         * tests/test-cosl.c (x): New variable.
17569         (main): Store argument in x and fetch it from x.
17570         * tests/test-expl.c (x): New variable.
17571         (main): Store argument in x and fetch it from x.
17572         * tests/test-logl.c (x): New variable.
17573         (main): Store argument in x and fetch it from x.
17574         * tests/test-sinl.c (x): New variable.
17575         (main): Store argument in x and fetch it from x.
17576         * tests/test-sqrtl.c (x): New variable.
17577         (main): Store argument in x and fetch it from x.
17578         * tests/test-tanl.c (x): New variable.
17579         (main): Store argument in x and fetch it from x.
17580
17581 2010-01-24  Bruno Haible  <bruno@clisp.org>
17582
17583         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
17584         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
17585         assignments to the initial TESTS_ENVIRONMENT.
17586         * doc/gnulib.texi (Unit test modules): Document it.
17587         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
17588         TESTS_ENVIRONMENT.
17589         * modules/btowc-tests (Makefile.am): Likewise.
17590         * modules/c-stack-tests (Makefile.am): Likewise.
17591         * modules/c-strcase-tests (Makefile.am): Likewise.
17592         * modules/copy-file-tests (Makefile.am): Likewise.
17593         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
17594         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
17595         * modules/mbrtowc-tests (Makefile.am): Likewise.
17596         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17597         * modules/mbscasestr-tests (Makefile.am): Likewise.
17598         * modules/mbschr-tests (Makefile.am): Likewise.
17599         * modules/mbscspn-tests (Makefile.am): Likewise.
17600         * modules/mbsinit-tests (Makefile.am): Likewise.
17601         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17602         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
17603         * modules/mbspbrk-tests (Makefile.am): Likewise.
17604         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17605         * modules/mbsrchr-tests (Makefile.am): Likewise.
17606         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
17607         * modules/mbsspn-tests (Makefile.am): Likewise.
17608         * modules/mbsstr-tests (Makefile.am): Likewise.
17609         * modules/nl_langinfo-tests (Makefile.am): Likewise.
17610         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
17611         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17612         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17613         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17614         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17615         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
17616         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17617         * modules/wcrtomb-tests (Makefile.am): Likewise.
17618         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
17619         * modules/wcsrtombs-tests (Makefile.am): Likewise.
17620         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
17621         assignments from TESTS_ENVIRONMENT.
17622         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
17623         augmentation.
17624         * modules/argp-version-etc-tests (Makefile.am): Likewise.
17625         * modules/atexit-tests (Makefile.am): Likewise.
17626         * modules/binary-io-tests (Makefile.am): Likewise.
17627         * modules/closein-tests (Makefile.am): Likewise.
17628         * modules/dprintf-posix-tests (Makefile.am): Likewise.
17629         * modules/exclude-tests (Makefile.am): Likewise.
17630         * modules/fflush-tests (Makefile.am): Likewise.
17631         * modules/fpending-tests (Makefile.am): Likewise.
17632         * modules/fprintf-posix-tests (Makefile.am): Likewise.
17633         * modules/freadahead-tests (Makefile.am): Likewise.
17634         * modules/freadptr-tests (Makefile.am): Likewise.
17635         * modules/freadseek-tests (Makefile.am): Likewise.
17636         * modules/fseek-tests (Makefile.am): Likewise.
17637         * modules/fseeko-tests (Makefile.am): Likewise.
17638         * modules/ftell-tests (Makefile.am): Likewise.
17639         * modules/ftello-tests (Makefile.am): Likewise.
17640         * modules/idpriv-drop-tests (Makefile.am): Likewise.
17641         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
17642         * modules/lseek-tests (Makefile.am): Likewise.
17643         * modules/parse-duration-tests (Makefile.am): Likewise.
17644         * modules/perror-tests (Makefile.am): Likewise.
17645         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
17646         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
17647         * modules/pipe-tests (Makefile.am): Likewise.
17648         * modules/pread-tests (Makefile.am): Likewise.
17649         * modules/printf-posix-tests (Makefile.am): Likewise.
17650         * modules/select-tests (Makefile.am): Likewise.
17651         * modules/sigpipe-tests (Makefile.am): Likewise.
17652         * modules/tsearch-tests (Makefile.am): Likewise.
17653         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
17654         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
17655         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17656         * modules/uniwidth/width-tests (Makefile.am): Likewise.
17657         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
17658         * modules/version-etc-tests (Makefile.am): Likewise.
17659         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17660         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17661         * modules/xalloc-die-tests (Makefile.am): Likewise.
17662         * modules/xprintf-posix-tests (Makefile.am): Likewise.
17663         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17664         * modules/xstrtol-tests (Makefile.am): Likewise.
17665         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17666         * modules/yesno-tests (Makefile.am): Likewise.
17667         Suggested by Jim Meyering.
17668
17669 2010-01-24  Bruno Haible  <bruno@clisp.org>
17670
17671         More documentation.
17672         * doc/gnulib.texi (Writing modules): New chapter.
17673         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
17674         the new chapter.
17675
17676 2010-01-24  Jim Meyering  <meyering@redhat.com>
17677
17678         maint.mk: do not prepend "./" after filtering
17679         * top/maint.mk (_prepend_srcdir_prefix): New variable
17680         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
17681         "./" when $(srcdir) is ".".
17682
17683         define STREQ(a,b) consistently, removing useless parentheses
17684         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
17685         since the only risk is that "a" or "b" contains an unparenthesized
17686         comma, but if either did that, STREQ would have 3 or more arguments.
17687         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
17688         * lib/fts.c (STREQ): Remove unnecessary parentheses.
17689         * lib/hash-triple.c (STREQ): Likewise.
17690         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
17691         * lib/getugroups.c (STREQ): Likewise.
17692
17693 2010-01-23  Jim Meyering  <meyering@redhat.com>
17694
17695         maint.mk: fix syntax-check in a non-srcdir build directory
17696         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
17697         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
17698
17699 2010-01-22  Jim Meyering  <meyering@redhat.com>
17700
17701         userspec: add unit tests
17702         * tests/test-userspec.c: New file.
17703         * modules/userspec-tests: Likewise.
17704
17705 2010-01-21  Jim Meyering  <meyering@redhat.com>
17706
17707         maint.mk: handle source file names containing "." robustly
17708         * top/maint.mk (_dot_escaped_srcdir): Define.
17709         (VC_LIST): Use it in LHS of sed substitution.
17710
17711 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
17712
17713         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
17714         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
17715         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
17716         from a non-srcdir build.
17717
17718 2010-01-20  Eric Blake  <ebb9@byu.net>
17719
17720         warn-on-use: use instead of link-warning
17721         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
17722         * modules/unistd (Depends-on, Makefile.am): Likewise.
17723         * modules/arpa_inet (Depends-on): Replace link-warning with
17724         warn-on-use.
17725         (Makefile.am): Update rules accordingly.
17726         * modules/ctype (Depends-on, Makefile.am): Likewise.
17727         * modules/dirent (Depends-on, Makefile.am): Likewise.
17728         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
17729         * modules/inttypes (Depends-on, Makefile.am): Likewise.
17730         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17731         * modules/locale (Depends-on, Makefile.am): Likewise.
17732         * modules/math (Depends-on, Makefile.am): Likewise.
17733         * modules/search (Depends-on, Makefile.am): Likewise.
17734         * modules/signal (Depends-on, Makefile.am): Likewise.
17735         * modules/spawn (Depends-on, Makefile.am): Likewise.
17736         * modules/stdlib (Depends-on, Makefile.am): Likewise.
17737         * modules/string (Depends-on, Makefile.am): Likewise.
17738         * modules/strings (Depends-on, Makefile.am): Likewise.
17739         * modules/sys_file (Depends-on, Makefile.am): Likewise.
17740         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
17741         * modules/sys_select (Depends-on, Makefile.am): Likewise.
17742         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
17743         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
17744         * modules/sys_times (Depends-on, Makefile.am): Likewise.
17745         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17746         * modules/wchar (Depends-on, Makefile.am): Likewise.
17747         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
17748         should be poisoned.
17749         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
17750         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
17751         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
17752         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17753         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17754         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17755         * m4/math_h.m4 (gl_MATH_H): Likewise.
17756         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17757         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
17758         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17759         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
17760         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
17761         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
17762         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
17763         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
17764         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17765         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17766         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17767         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
17768         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17769         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17770         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17771         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17772         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
17773         GL_LINK_WARNING.
17774         * lib/ctype.in.h: Likewise.
17775         * lib/dirent.in.h: Likewise.
17776         * lib/fcntl.in.h: Likewise.
17777         * lib/inttypes.in.h: Likewise.
17778         * lib/langinfo.in.h: Likewise.
17779         * lib/locale.in.h: Likewise.
17780         * lib/math.in.h: Likewise.
17781         * lib/search.in.h: Likewise.
17782         * lib/signal.in.h: Likewise.
17783         * lib/spawn.in.h: Likewise.
17784         * lib/stdio.in.h: Likewise.
17785         * lib/stdlib.in.h: Likewise.
17786         * lib/string.in.h: Likewise.
17787         * lib/strings.in.h: Likewise.
17788         * lib/sys_file.in.h: Likewise.
17789         * lib/sys_ioctl.in.h: Likewise.
17790         * lib/sys_select.in.h: Likewise.
17791         * lib/sys_socket.in.h: Likewise.
17792         * lib/sys_stat.in.h: Likewise.
17793         * lib/sys_times.in.h: Likewise.
17794         * lib/sys_utsname.in.h: Likewise.
17795         * lib/unistd.in.h: Likewise.
17796         * lib/wchar.in.h: Likewise.
17797
17798 2010-01-20  Bruno Haible  <bruno@clisp.org>
17799
17800         Avoid duplicate -lm.
17801         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
17802         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
17803         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
17804         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
17805         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
17806         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
17807         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
17808         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
17809         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
17810         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
17811         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
17812         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17813         Reported by Paolo Bonzini.
17814
17815 2010-01-19  Bruno Haible  <bruno@clisp.org>
17816
17817         langinfo, nl_langinfo: Relicense under LGPLv2+.
17818         * modules/langinfo (License): Change to LGPLv2+.
17819         * modules/nl_langinfo (License): Likewise.
17820         Patch by David Lutterkort <lutter@redhat.com>.
17821
17822 2010-01-19  Bruno Haible  <bruno@clisp.org>
17823
17824         Avoid compilation error with cc on OSF/1 5.1.
17825         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
17826         statement, not before.
17827         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17828
17829 2010-01-18  Bruno Haible  <bruno@clisp.org>
17830
17831         Avoid a link error due to the __printf__ symbol.
17832         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
17833         and 2.6.x.
17834         (__format__, __printf__): Remove definitions.
17835         * lib/argp-fmtstream.h: Likewise.
17836         * lib/argp.h: Likewise.
17837         * lib/error.h: Likewise.
17838         * lib/vasnprintf.h: Likewise.
17839         * lib/xprintf.h: Likewise.
17840         * lib/xvasprintf.h: Likewise.
17841         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17842
17843 2010-01-18  Bruno Haible  <bruno@clisp.org>
17844
17845         Tests for module 'tanl'.
17846         * modules/tanl-tests: New file.
17847         * tests/test-tanl.c: New file.
17848
17849         Tests for module 'sqrtl'.
17850         * modules/sqrtl-tests: New file.
17851         * tests/test-sqrtl.c: New file.
17852
17853         Tests for module 'sinl'.
17854         * modules/sinl-tests: New file.
17855         * tests/test-sinl.c: New file.
17856
17857         Tests for module 'logl'.
17858         * modules/logl-tests: New file.
17859         * tests/test-logl.c: New file.
17860
17861         Tests for module 'expl'.
17862         * modules/expl-tests: New file.
17863         * tests/test-expl.c: New file.
17864
17865         Tests for module 'cosl'.
17866         * modules/cosl-tests: New file.
17867         * tests/test-cosl.c: New file.
17868
17869         Tests for module 'atanl'.
17870         * modules/atanl-tests: New file.
17871         * tests/test-atanl.c: New file.
17872
17873         Tests for module 'asinl'.
17874         * modules/asinl-tests: New file.
17875         * tests/test-asinl.c: New file.
17876
17877         Tests for module 'acosl'.
17878         * modules/acosl-tests: New file.
17879         * tests/test-acosl.c: New file.
17880
17881         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17882         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
17883         tanl): Use the standard gnulib idiom.
17884         * lib/cosl.c: Don't include trigl.c and sincosl.c.
17885         * lib/sinl.c: Likewise.
17886         * lib/tanl.c: Don't include trigl.c.
17887         (kernel_tanl): Make static.
17888         * lib/sincosl.c: Include trigl.h first.
17889         * lib/trigl.c: Likewise.
17890         * m4/acosl.m4: New file.
17891         * m4/asinl.m4: New file.
17892         * m4/atanl.m4: New file.
17893         * m4/cosl.m4: New file.
17894         * m4/expl.m4: New file.
17895         * m4/logl.m4: New file.
17896         * m4/sinl.m4: New file.
17897         * m4/sqrtl.m4: New file.
17898         * m4/tanl.m4: New file.
17899         * m4/mathl.m4: Remove file.
17900         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
17901         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17902         Don't initialize GNULIB_MATHL.
17903         * modules/acosl: New file.
17904         * modules/asinl: New file.
17905         * modules/atanl: New file.
17906         * modules/cosl: New file.
17907         * modules/expl: New file.
17908         * modules/logl: New file.
17909         * modules/sinl: New file.
17910         * modules/sqrtl: New file.
17911         * modules/tanl: New file.
17912         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
17913         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
17914         substitute GNULIB_MATHL.
17915         * modules/mathl: Rewritten.
17916         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
17917         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
17918         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
17919         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
17920         * doc/posix-functions/expl.texi: Mention the 'expl' module.
17921         * doc/posix-functions/logl.texi: Mention the 'logl' module.
17922         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
17923         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
17924         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
17925
17926 2010-01-18  Bruno Haible  <bruno@clisp.org>
17927
17928         sqrt: Make gl_FUNC_SQRT requirable.
17929         * m4/sqrt.m4: New file.
17930         * modules/sqrt (Files): Add it.
17931         (configure.ac): Invoke gl_FUNC_SQRT.
17932
17933 2010-01-18  Bruno Haible  <bruno@clisp.org>
17934
17935         New modules for common <math.h> functions.
17936         * m4/mathfunc.m4: New file.
17937         * modules/acos: New file.
17938         * modules/asin: New file.
17939         * modules/atan: New file.
17940         * modules/atan2: New file.
17941         * modules/cbrt: New file.
17942         * modules/copysign: New file.
17943         * modules/cos: New file.
17944         * modules/cosh: New file.
17945         * modules/erf: New file.
17946         * modules/erfc: New file.
17947         * modules/exp: New file.
17948         * modules/fabs: New file.
17949         * modules/fmod: New file.
17950         * modules/hypot: New file.
17951         * modules/j0: New file.
17952         * modules/j1: New file.
17953         * modules/jn: New file.
17954         * modules/ldexp: New file.
17955         * modules/lgamma: New file.
17956         * modules/log: New file.
17957         * modules/log10: New file.
17958         * modules/log1p: New file.
17959         * modules/logb: New file.
17960         * modules/modf: New file.
17961         * modules/nextafter: New file.
17962         * modules/pow: New file.
17963         * modules/remainder: New file.
17964         * modules/rint: New file.
17965         * modules/sin: New file.
17966         * modules/sinh: New file.
17967         * modules/sqrt: New file.
17968         * modules/tan: New file.
17969         * modules/tanh: New file.
17970         * modules/y0: New file.
17971         * modules/y1: New file.
17972         * modules/yn: New file.
17973         * doc/posix-functions/acos.texi: Mention the 'acos' module.
17974         * doc/posix-functions/asin.texi: Mention the 'asin' module.
17975         * doc/posix-functions/atan.texi: Mention the 'atan' module.
17976         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
17977         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
17978         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
17979         * doc/posix-functions/cos.texi: Mention the 'cos' module.
17980         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
17981         * doc/posix-functions/erf.texi: Mention the 'erf' module.
17982         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
17983         * doc/posix-functions/exp.texi: Mention the 'exp' module.
17984         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
17985         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
17986         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
17987         * doc/posix-functions/j0.texi: Mention the 'j0' module.
17988         * doc/posix-functions/j1.texi: Mention the 'j1' module.
17989         * doc/posix-functions/jn.texi: Mention the 'jn' module.
17990         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
17991         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
17992         * doc/posix-functions/log.texi: Mention the 'log' module.
17993         * doc/posix-functions/log10.texi: Mention the 'log10' module.
17994         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
17995         * doc/posix-functions/logb.texi: Mention the 'logb' module.
17996         * doc/posix-functions/modf.texi: Mention the 'modf' module.
17997         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
17998         * doc/posix-functions/pow.texi: Mention the 'pow' module.
17999         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
18000         * doc/posix-functions/rint.texi: Mention the 'rint' module.
18001         * doc/posix-functions/sin.texi: Mention the 'sin' module.
18002         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
18003         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
18004         * doc/posix-functions/tan.texi: Mention the 'tan' module.
18005         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
18006         * doc/posix-functions/y0.texi: Mention the 'y0' module.
18007         * doc/posix-functions/y1.texi: Mention the 'y1' module.
18008         * doc/posix-functions/yn.texi: Mention the 'yn' module.
18009
18010 2010-01-18  Jim Meyering  <meyering@redhat.com>
18011
18012         ignore-value: relax license to LGPLv2+
18013         * modules/ignore-value (License): Relax to LGPLv2+.
18014
18015         getdate: don't leak when TZ contains two or more '"'s
18016         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
18017         double quote in TZ after the first one.
18018
18019         readtokens: do not leak internal token_lengths buffer
18020         * lib/readtokens.c (readtokens): Free the local, lengths,
18021         when the supplied "token_lengths" parameter is NULL.
18022
18023 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18024
18025         Fix a couple of missing LIBTHREAD link failures on AIX.
18026         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
18027         $(LIBTHREAD).
18028         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
18029
18030         Link test-poll against INET_PTON_LIB.
18031         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
18032         for inet_pton on Solaris 10.
18033
18034 2010-01-17  Bruno Haible  <bruno@clisp.org>
18035
18036         unistdio/*-sprintf: Fix typo in module description.
18037         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
18038         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
18039         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
18040         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
18041         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
18042         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
18043         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
18044         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18045
18046 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18047
18048         gnulib-tool: fix filelist for AIX, HP-UX ksh.
18049         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
18050         variables in shell case patterns, for AIX and HP-UX ksh.
18051
18052         Split large sed scripts, for HP-UX sed.
18053         * modules/stdio: Split sed scripts around 50 sed commands,
18054         to avoid HP-UX limit of 99 commands, in the near future.
18055         * modules/string: Likewise.
18056         * modules/unistd: Likewise.
18057
18058         gnulib-tool: avoid writing in the current directory.
18059         * gnulib-tool (func_emit_lib_Makefile_am)
18060         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
18061         not in the current directory, so concurrent gnulib-tool
18062         instances do not interfere.
18063
18064 2010-01-16  Jim Meyering  <meyering@redhat.com>
18065
18066         doc: update users.txt
18067         * users.txt: Add grep.
18068         (diffutils, gzip): Update URLs.
18069
18070 2010-01-12  Bruno Haible  <bruno@clisp.org>
18071
18072         posix_spawn: Avoid test failure on Cygwin.
18073         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
18074         characters.
18075         Reported by Simon Josefsson.
18076
18077 2010-01-12  Bruno Haible  <bruno@clisp.org>
18078
18079         * tests/test-cond.c (main): When skipping the test, show the reason.
18080
18081 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18082
18083         * lib/striconv.c (str_cd_iconv): Avoid if before free.
18084
18085 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18086
18087         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
18088         VC_LIST_ALWAYS_EXCLUDE_REGEX.
18089
18090 2010-01-12  Eric Blake  <ebb9@byu.net>
18091
18092         build: guarantee AS_VAR_IF
18093         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
18094         (gl_AS_VAR_IF): Move...
18095         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
18096         Reported by Simon Josefsson.
18097
18098 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18099
18100         * lib/stdio.in.h: Fix typo.
18101
18102 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18103
18104         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
18105         libgpg-error.
18106
18107 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18108
18109         * tests/test-xalloc-die.sh: Use $EXEEXT.
18110
18111 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18112             Bruno Haible  <bruno@clisp.org>
18113
18114         getlogin, getlogin_r: Avoid test failure.
18115         * tests/test-getlogin.c: Include <stdio.h>.
18116         (main): Skip the test when the function fails because stdin is not a
18117         tty.
18118         * tests/test-getlogin_r.c: Include <stdio.h>.
18119         (main): Skip the test when the function fails because stdin is not a
18120         tty.
18121
18122 2010-01-11  Eric Blake  <ebb9@byu.net>
18123
18124         tests: avoid more large file warnings
18125         * tests/test-fflush.c: Avoid warning about ftell use.
18126         * tests/test-fseek.c: Avoid warning about fseek use.
18127
18128 2010-01-10  Bruno Haible  <bruno@clisp.org>
18129
18130         nproc: Work better on Linux when /proc and /sys are not mounted.
18131         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
18132         as lower bound when, on glibc/Linux systems,
18133         sysconf (_SC_NPROCESSORS_CONF) returns 1.
18134         Suggested by Pádraig Brady <P@draigbrady.com>.
18135         Reported by Dmitry V. Levin <ldv@altlinux.org>.
18136
18137         nproc: Refactor.
18138         * lib/nproc.c (num_processors_via_affinity_mask): New function,
18139         extracted from num_processors.
18140         (num_processors): Call it.
18141
18142 2010-01-11  Jim Meyering  <meyering@redhat.com>
18143
18144         utimecmp: avoid new warning from upcoming gcc-4.5.0
18145         * lib/utimecmp.c (BILLION): Define using #define rather than an
18146         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
18147
18148 2010-01-11  Eric Blake  <ebb9@byu.net>
18149
18150         math: add portability warnings for classification macros
18151         * modules/math (Depends-on): Add warn-on-use.
18152         (Makefile.am): Provide new substitutions.
18153         * m4/math_h.m4 (gl_MATH_H): Require inline.
18154         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
18155         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
18156         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
18157         implement warnings.
18158
18159         unistd: warn on use of environ without module
18160         * modules/unistd (Depends-on): Add warn-on-use.
18161         (Makefile.am): Provide new substitutions.
18162         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
18163         * lib/unistd.in.h (environ): Wrap with a warning helper function.
18164
18165         stdio: warn on suspicious uses
18166         * modules/stdio (Depends-on): Add warn-on-use.
18167         (Makefile.am): Provide new substitutions.
18168         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
18169         fseeko.
18170         * lib/stdio.in.h (gets): Always warn on use.
18171         (fseek, ftell): Adjust when warnings are issued, and honor
18172         _GL_NO_LARGE_FILES as a way to silence the warning.
18173         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
18174         any warning about large file offsets.
18175         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
18176         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
18177         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
18178         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
18179         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
18180         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
18181         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
18182         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
18183
18184         warn-on-use: new module
18185         * modules/warn-on-use: New file.
18186         * build-aux/warn-on-use.h: Likewise.
18187         * m4/warn-on-use.m4: Likewise.
18188         * MODULES.html.sh (Support for building): Mention it.
18189
18190 2010-01-10  Bruno Haible  <bruno@clisp.org>
18191
18192         Tests for module 'unistr/u32-strdup'.
18193         * modules/unistr/u32-strdup-tests: New file.
18194         * tests/unistr/test-u32-strdup.c: New file.
18195
18196         Tests for module 'unistr/u16-strdup'.
18197         * modules/unistr/u16-strdup-tests: New file.
18198         * tests/unistr/test-u16-strdup.c: New file.
18199
18200         Tests for module 'unistr/u8-strdup'.
18201         * modules/unistr/u8-strdup-tests: New file.
18202         * tests/unistr/test-u8-strdup.c: New file.
18203         * tests/unistr/test-strdup.h: New file.
18204
18205         Tests for module 'unistr/u32-strncmp'.
18206         * modules/unistr/u32-strncmp-tests: New file.
18207         * tests/unistr/test-u32-strncmp.c: New file.
18208
18209         Tests for module 'unistr/u16-strncmp'.
18210         * modules/unistr/u16-strncmp-tests: New file.
18211         * tests/unistr/test-u16-strncmp.c: New file.
18212
18213         Tests for module 'unistr/u8-strncmp'.
18214         * modules/unistr/u8-strncmp-tests: New file.
18215         * tests/unistr/test-u8-strncmp.c: New file.
18216         * tests/unistr/test-strncmp.h: New file.
18217
18218         Tests for module 'unistr/u32-strcoll'.
18219         * modules/unistr/u32-strcoll-tests: New file.
18220         * tests/unistr/test-u32-strcoll.c: New file.
18221
18222         Tests for module 'unistr/u16-strcoll'.
18223         * modules/unistr/u16-strcoll-tests: New file.
18224         * tests/unistr/test-u16-strcoll.c: New file.
18225
18226         Tests for module 'unistr/u8-strcoll'.
18227         * modules/unistr/u8-strcoll-tests: New file.
18228         * tests/unistr/test-u8-strcoll.c: New file.
18229
18230         Tests for module 'unistr/u32-strcmp'.
18231         * modules/unistr/u32-strcmp-tests: New file.
18232         * tests/unistr/test-u32-strcmp.c: New file.
18233         * tests/unistr/test-u32-strcmp.h: New file.
18234
18235         Tests for module 'unistr/u16-strcmp'.
18236         * modules/unistr/u16-strcmp-tests: New file.
18237         * tests/unistr/test-u16-strcmp.c: New file.
18238         * tests/unistr/test-u16-strcmp.h: New file.
18239
18240         Tests for module 'unistr/u8-strcmp'.
18241         * modules/unistr/u8-strcmp-tests: New file.
18242         * tests/unistr/test-u8-strcmp.c: New file.
18243         * tests/unistr/test-u8-strcmp.h: New file.
18244         * tests/unistr/test-strcmp.h: New file.
18245
18246         Tests for module 'unistr/u32-strncat'.
18247         * modules/unistr/u32-strncat-tests: New file.
18248         * tests/unistr/test-u32-strncat.c: New file.
18249
18250         Tests for module 'unistr/u16-strncat'.
18251         * modules/unistr/u16-strncat-tests: New file.
18252         * tests/unistr/test-u16-strncat.c: New file.
18253
18254         Tests for module 'unistr/u8-strncat'.
18255         * modules/unistr/u8-strncat-tests: New file.
18256         * tests/unistr/test-u8-strncat.c: New file.
18257         * tests/unistr/test-strncat.h: New file.
18258
18259         Tests for module 'unistr/u32-strcat'.
18260         * modules/unistr/u32-strcat-tests: New file.
18261         * tests/unistr/test-u32-strcat.c: New file.
18262
18263         Tests for module 'unistr/u16-strcat'.
18264         * modules/unistr/u16-strcat-tests: New file.
18265         * tests/unistr/test-u16-strcat.c: New file.
18266
18267         Tests for module 'unistr/u8-strcat'.
18268         * modules/unistr/u8-strcat-tests: New file.
18269         * tests/unistr/test-u8-strcat.c: New file.
18270         * tests/unistr/test-strcat.h: New file.
18271
18272         Tests for module 'unistr/u32-stpncpy'.
18273         * modules/unistr/u32-stpncpy-tests: New file.
18274         * tests/unistr/test-u32-stpncpy.c: New file.
18275
18276         Tests for module 'unistr/u16-stpncpy'.
18277         * modules/unistr/u16-stpncpy-tests: New file.
18278         * tests/unistr/test-u16-stpncpy.c: New file.
18279
18280         Tests for module 'unistr/u8-stpncpy'.
18281         * modules/unistr/u8-stpncpy-tests: New file.
18282         * tests/unistr/test-u8-stpncpy.c: New file.
18283         * tests/unistr/test-stpncpy.h: New file.
18284
18285         Tests for module 'unistr/u32-strncpy'.
18286         * modules/unistr/u32-strncpy-tests: New file.
18287         * tests/unistr/test-u32-strncpy.c: New file.
18288
18289         Tests for module 'unistr/u16-strncpy'.
18290         * modules/unistr/u16-strncpy-tests: New file.
18291         * tests/unistr/test-u16-strncpy.c: New file.
18292
18293         Tests for module 'unistr/u8-strncpy'.
18294         * modules/unistr/u8-strncpy-tests: New file.
18295         * tests/unistr/test-u8-strncpy.c: New file.
18296         * tests/unistr/test-strncpy.h: New file.
18297
18298         Tests for module 'unistr/u32-stpcpy'.
18299         * modules/unistr/u32-stpcpy-tests: New file.
18300         * tests/unistr/test-u32-stpcpy.c: New file.
18301
18302         Tests for module 'unistr/u16-stpcpy'.
18303         * modules/unistr/u16-stpcpy-tests: New file.
18304         * tests/unistr/test-u16-stpcpy.c: New file.
18305
18306         Tests for module 'unistr/u8-stpcpy'.
18307         * modules/unistr/u8-stpcpy-tests: New file.
18308         * tests/unistr/test-u8-stpcpy.c: New file.
18309         * tests/unistr/test-stpcpy.h: New file.
18310
18311         Tests for module 'unistr/u32-strcpy'.
18312         * modules/unistr/u32-strcpy-tests: New file.
18313         * tests/unistr/test-u32-strcpy.c: New file.
18314
18315         Tests for module 'unistr/u16-strcpy'.
18316         * modules/unistr/u16-strcpy-tests: New file.
18317         * tests/unistr/test-u16-strcpy.c: New file.
18318
18319         Tests for module 'unistr/u8-strcpy'.
18320         * modules/unistr/u8-strcpy-tests: New file.
18321         * tests/unistr/test-u8-strcpy.c: New file.
18322         * tests/unistr/test-strcpy.h: New file.
18323
18324         Tests for module 'unistr/u32-strnlen'.
18325         * modules/unistr/u32-strnlen-tests: New file.
18326         * tests/unistr/test-u32-strnlen.c: New file.
18327
18328         Tests for module 'unistr/u16-strnlen'.
18329         * modules/unistr/u16-strnlen-tests: New file.
18330         * tests/unistr/test-u16-strnlen.c: New file.
18331
18332         Tests for module 'unistr/u8-strnlen'.
18333         * modules/unistr/u8-strnlen-tests: New file.
18334         * tests/unistr/test-u8-strnlen.c: New file.
18335         * tests/unistr/test-strnlen.h: New file.
18336
18337         Tests for module 'unistr/u32-strlen'.
18338         * modules/unistr/u32-strlen-tests: New file.
18339         * tests/unistr/test-u32-strlen.c: New file.
18340
18341         Tests for module 'unistr/u16-strlen'.
18342         * modules/unistr/u16-strlen-tests: New file.
18343         * tests/unistr/test-u16-strlen.c: New file.
18344
18345         Tests for module 'unistr/u8-strlen'.
18346         * modules/unistr/u8-strlen-tests: New file.
18347         * tests/unistr/test-u8-strlen.c: New file.
18348
18349         Tests for module 'unistr/u32-prev'.
18350         * modules/unistr/u32-prev-tests: New file.
18351         * tests/unistr/test-u32-prev.c: New file.
18352
18353         Tests for module 'unistr/u16-prev'.
18354         * modules/unistr/u16-prev-tests: New file.
18355         * tests/unistr/test-u16-prev.c: New file.
18356
18357         Tests for module 'unistr/u8-prev'.
18358         * modules/unistr/u8-prev-tests: New file.
18359         * tests/unistr/test-u8-prev.c: New file.
18360
18361         Tests for module 'unistr/u32-next'.
18362         * modules/unistr/u32-next-tests: New file.
18363         * tests/unistr/test-u32-next.c: New file.
18364
18365         Tests for module 'unistr/u16-next'.
18366         * modules/unistr/u16-next-tests: New file.
18367         * tests/unistr/test-u16-next.c: New file.
18368
18369         Tests for module 'unistr/u8-next'.
18370         * modules/unistr/u8-next-tests: New file.
18371         * tests/unistr/test-u8-next.c: New file.
18372
18373         Tests for module 'unistr/u32-strmbtouc'.
18374         * modules/unistr/u32-strmbtouc-tests: New file.
18375         * tests/unistr/test-u32-strmbtouc.c: New file.
18376
18377         Tests for module 'unistr/u16-strmbtouc'.
18378         * modules/unistr/u16-strmbtouc-tests: New file.
18379         * tests/unistr/test-u16-strmbtouc.c: New file.
18380
18381         Tests for module 'unistr/u8-strmbtouc'.
18382         * modules/unistr/u8-strmbtouc-tests: New file.
18383         * tests/unistr/test-u8-strmbtouc.c: New file.
18384
18385         Tests for module 'unistr/u32-strmblen'.
18386         * modules/unistr/u32-strmblen-tests: New file.
18387         * tests/unistr/test-u32-strmblen.c: New file.
18388
18389         Tests for module 'unistr/u16-strmblen'.
18390         * modules/unistr/u16-strmblen-tests: New file.
18391         * tests/unistr/test-u16-strmblen.c: New file.
18392
18393         Tests for module 'unistr/u8-strmblen'.
18394         * modules/unistr/u8-strmblen-tests: New file.
18395         * tests/unistr/test-u8-strmblen.c: New file.
18396
18397         Tests for module 'unistr/u32-cpy-alloc'.
18398         * modules/unistr/u32-cpy-alloc-tests: New file.
18399         * tests/unistr/test-u32-cpy-alloc.c: New file.
18400
18401         Tests for module 'unistr/u16-cpy-alloc'.
18402         * modules/unistr/u16-cpy-alloc-tests: New file.
18403         * tests/unistr/test-u16-cpy-alloc.c: New file.
18404
18405         Tests for module 'unistr/u8-cpy-alloc'.
18406         * modules/unistr/u8-cpy-alloc-tests: New file.
18407         * tests/unistr/test-u8-cpy-alloc.c: New file.
18408         * tests/unistr/test-cpy-alloc.h: New file.
18409
18410         Tests for module 'unistr/u32-mbsnlen'.
18411         * modules/unistr/u32-mbsnlen-tests: New file.
18412         * tests/unistr/test-u32-mbsnlen.c: New file.
18413
18414         Tests for module 'unistr/u16-mbsnlen'.
18415         * modules/unistr/u16-mbsnlen-tests: New file.
18416         * tests/unistr/test-u16-mbsnlen.c: New file.
18417
18418         Tests for module 'unistr/u8-mbsnlen'.
18419         * modules/unistr/u8-mbsnlen-tests: New file.
18420         * tests/unistr/test-u8-mbsnlen.c: New file.
18421
18422         Tests for module 'unistr/u32-chr'.
18423         * modules/unistr/u32-chr-tests: New file.
18424         * tests/unistr/test-u32-chr.c: New file.
18425
18426         Tests for module 'unistr/u16-chr'.
18427         * modules/unistr/u16-chr-tests: New file.
18428         * tests/unistr/test-u16-chr.c: New file.
18429
18430         Tests for module 'unistr/u8-chr'.
18431         * modules/unistr/u8-chr-tests: New file.
18432         * tests/unistr/test-u8-chr.c: New file.
18433         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
18434
18435         Tests for module 'unistr/u32-cmp2'.
18436         * modules/unistr/u32-cmp2-tests: New file.
18437         * tests/unistr/test-u32-cmp2.c: New file.
18438
18439         Tests for module 'unistr/u16-cmp2'.
18440         * modules/unistr/u16-cmp2-tests: New file.
18441         * tests/unistr/test-u16-cmp2.c: New file.
18442
18443         Tests for module 'unistr/u8-cmp2'.
18444         * modules/unistr/u8-cmp2-tests: New file.
18445         * tests/unistr/test-u8-cmp2.c: New file.
18446         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
18447
18448         Tests for module 'unistr/u32-cmp'.
18449         * modules/unistr/u32-cmp-tests: New file.
18450         * tests/unistr/test-u32-cmp.c: New file.
18451
18452         Tests for module 'unistr/u16-cmp'.
18453         * modules/unistr/u16-cmp-tests: New file.
18454         * tests/unistr/test-u16-cmp.c: New file.
18455
18456         Tests for module 'unistr/u8-cmp'.
18457         * modules/unistr/u8-cmp-tests: New file.
18458         * tests/unistr/test-u8-cmp.c: New file.
18459         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
18460
18461         Tests for module 'unistr/u32-set'.
18462         * modules/unistr/u32-set-tests: New file.
18463         * tests/unistr/test-u32-set.c: New file.
18464
18465         Tests for module 'unistr/u16-set'.
18466         * modules/unistr/u16-set-tests: New file.
18467         * tests/unistr/test-u16-set.c: New file.
18468
18469         Tests for module 'unistr/u8-set'.
18470         * modules/unistr/u8-set-tests: New file.
18471         * tests/unistr/test-u8-set.c: New file.
18472         * tests/unistr/test-set.h: New file.
18473
18474         Tests for module 'unistr/u32-move'.
18475         * modules/unistr/u32-move-tests: New file.
18476         * tests/unistr/test-u32-move.c: New file.
18477
18478         Tests for module 'unistr/u16-move'.
18479         * modules/unistr/u16-move-tests: New file.
18480         * tests/unistr/test-u16-move.c: New file.
18481
18482         Tests for module 'unistr/u8-move'.
18483         * modules/unistr/u8-move-tests: New file.
18484         * tests/unistr/test-u8-move.c: New file.
18485         * tests/unistr/test-move.h: New file.
18486
18487         Tests for module 'unistr/u32-cpy'.
18488         * modules/unistr/u32-cpy-tests: New file.
18489         * tests/unistr/test-u32-cpy.c: New file.
18490
18491         Tests for module 'unistr/u16-cpy'.
18492         * modules/unistr/u16-cpy-tests: New file.
18493         * tests/unistr/test-u16-cpy.c: New file.
18494
18495         Tests for module 'unistr/u8-cpy'.
18496         * modules/unistr/u8-cpy-tests: New file.
18497         * tests/unistr/test-u8-cpy.c: New file.
18498         * tests/unistr/test-cpy.h: New file.
18499
18500 2010-01-09  Bruno Haible  <bruno@clisp.org>
18501
18502         Tests for module 'unistr/u32-uctomb'.
18503         * modules/unistr/u32-uctomb-tests: New file.
18504         * tests/unistr/test-u32-uctomb.c: New file.
18505
18506         Tests for module 'unistr/u16-uctomb'.
18507         * modules/unistr/u16-uctomb-tests: New file.
18508         * tests/unistr/test-u16-uctomb.c: New file.
18509
18510         Tests for module 'unistr/u8-uctomb'.
18511         * modules/unistr/u8-uctomb-tests: New file.
18512         * tests/unistr/test-u8-uctomb.c: New file.
18513
18514         Tests for module 'unistr/u32-mbtoucr'.
18515         * modules/unistr/u32-mbtoucr-tests: New file.
18516         * tests/unistr/test-u32-mbtoucr.c: New file.
18517
18518         Tests for module 'unistr/u16-mbtoucr'.
18519         * modules/unistr/u16-mbtoucr-tests: New file.
18520         * tests/unistr/test-u16-mbtoucr.c: New file.
18521
18522         Tests for module 'unistr/u8-mbtoucr'.
18523         * modules/unistr/u8-mbtoucr-tests: New file.
18524         * tests/unistr/test-u8-mbtoucr.c: New file.
18525
18526         Tests for module 'unistr/u32-mbtouc'.
18527         * modules/unistr/u32-mbtouc-tests: New file.
18528         * tests/unistr/test-u32-mbtouc.c: New file.
18529
18530         Tests for module 'unistr/u16-mbtouc'.
18531         * modules/unistr/u16-mbtouc-tests: New file.
18532         * tests/unistr/test-u16-mbtouc.c: New file.
18533
18534         Tests for module 'unistr/u8-mbtouc'.
18535         * modules/unistr/u8-mbtouc-tests: New file.
18536         * tests/unistr/test-u8-mbtouc.c: New file.
18537
18538         Tests for module 'unistr/u32-mbtouc-unsafe'.
18539         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
18540         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
18541         * tests/unistr/test-u32-mbtouc.h: New file.
18542
18543         Tests for module 'unistr/u16-mbtouc-unsafe'.
18544         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
18545         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
18546         * tests/unistr/test-u16-mbtouc.h: New file.
18547
18548         Tests for module 'unistr/u8-mbtouc-unsafe'.
18549         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
18550         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
18551         * tests/unistr/test-u8-mbtouc.h: New file.
18552
18553         Tests for module 'unistr/u32-mblen'.
18554         * modules/unistr/u32-mblen-tests: New file.
18555         * tests/unistr/test-u32-mblen.c: New file.
18556
18557         Tests for module 'unistr/u16-mblen'.
18558         * modules/unistr/u16-mblen-tests: New file.
18559         * tests/unistr/test-u16-mblen.c: New file.
18560
18561         Tests for module 'unistr/u8-mblen'.
18562         * modules/unistr/u8-mblen-tests: New file.
18563         * tests/unistr/test-u8-mblen.c: New file.
18564
18565         Tests for module 'unistr/u32-to-u16'.
18566         * modules/unistr/u32-to-u16-tests: New file.
18567         * tests/unistr/test-u32-to-u16.c: New file.
18568
18569         Tests for module 'unistr/u32-to-u8'.
18570         * modules/unistr/u32-to-u8-tests: New file.
18571         * tests/unistr/test-u32-to-u8.c: New file.
18572
18573         Tests for module 'unistr/u16-to-u32'.
18574         * modules/unistr/u16-to-u32-tests: New file.
18575         * tests/unistr/test-u16-to-u32.c: New file.
18576
18577         Tests for module 'unistr/u16-to-u8'.
18578         * modules/unistr/u16-to-u8-tests: New file.
18579         * tests/unistr/test-u16-to-u8.c: New file.
18580
18581         Tests for module 'unistr/u8-to-u32'.
18582         * modules/unistr/u8-to-u32-tests: New file.
18583         * tests/unistr/test-u8-to-u32.c: New file.
18584
18585         Tests for module 'unistr/u8-to-u16'.
18586         * modules/unistr/u8-to-u16-tests: New file.
18587         * tests/unistr/test-u8-to-u16.c: New file.
18588
18589         Tests for module 'unistr/u32-check'.
18590         * modules/unistr/u32-check-tests: New file.
18591         * tests/unistr/test-u32-check.c: New file.
18592
18593         Tests for module 'unistr/u16-check'.
18594         * modules/unistr/u16-check-tests: New file.
18595         * tests/unistr/test-u16-check.c: New file.
18596
18597         Tests for module 'unistr/u8-check'.
18598         * modules/unistr/u8-check-tests: New file.
18599         * tests/unistr/test-u8-check.c: New file.
18600
18601         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
18602         (category_equals): New function.
18603         (main): Add more tests.
18604         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
18605
18606         * tests/unictype/test-bidi_byname.c (main): Add more tests.
18607
18608 2010-01-10  Bruno Haible  <bruno@clisp.org>
18609
18610         unistr/u*-strcoll: Try harder to distinguish different strings.
18611         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
18612         compare s1 and s2 to see if they are different.
18613
18614 2010-01-10  Bruno Haible  <bruno@clisp.org>
18615
18616         unistr/u*-stpncpy: Fix the return value.
18617         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
18618         description of the return value consistent with stpncpy in glibc.
18619         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
18620         written non-NUL unit.
18621
18622 2010-01-10  Bruno Haible  <bruno@clisp.org>
18623
18624         unistr/u*-next: Add missing dependencies.
18625         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
18626         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
18627         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
18628
18629 2010-01-10  Bruno Haible  <bruno@clisp.org>
18630
18631         unistr/u8-mbsnlen: Fix return value for incomplete character.
18632         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
18633         u8_mblen.
18634         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
18635         Remove unistr/u8-mblen.
18636         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
18637         u16_mblen.
18638         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
18639         Remove unistr/u16-mblen.
18640
18641 2010-01-10  Bruno Haible  <bruno@clisp.org>
18642
18643         wchar: Fix compilation error when <wchar.h> is used from coreutils.
18644         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
18645         Reported by Brian Gough <bjg@gnu.org> and
18646         Chris Clayton <chris2553@googlemail.com> via
18647         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
18648
18649 2010-01-09  Bruno Haible  <bruno@clisp.org>
18650
18651         unistr/u16-to-u32: Reject invalid input.
18652         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
18653         u16_mbtouc.
18654         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
18655         Remove unistr/u16-mbtouc.
18656
18657         unistr/u16-to-u8: Reject invalid input.
18658         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
18659         u16_mbtouc.
18660         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
18661         Remove unistr/u16-mbtouc.
18662
18663         unistr/u8-to-u32: Reject invalid input.
18664         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
18665         u8_mbtouc.
18666         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
18667         Remove unistr/u8-mbtouc.
18668
18669         unistr/u8-to-u16: Reject invalid input.
18670         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
18671         u8_mbtouc.
18672         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
18673         Remove unistr/u8-mbtouc.
18674
18675 2010-01-09  Bruno Haible  <bruno@clisp.org>
18676
18677         Tests for module 'getlogin'.
18678         * modules/getlogin-tests: New file.
18679         * tests/test-getlogin.c: New file.
18680
18681         New module 'getlogin'.
18682         * lib/unistd.in.h (getlogin): New declaration.
18683         * lib/getlogin.c: New file.
18684         * m4/getlogin.m4: New file.
18685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
18686         HAVE_GETLOGIN.
18687         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
18688         HAVE_GETLOGIN.
18689         * modules/getlogin: New file.
18690         * doc/posix-functions/getlogin.texi: Mention the new module.
18691         Reported by John W. Eaton <jwe@gnu.org>.
18692
18693 2010-01-09  Bruno Haible  <bruno@clisp.org>
18694
18695         getlogin_r: Support for native Windows.
18696         * lib/getlogin_r.c: Include <windows.h>
18697         (getlogin_r): Implement for native Windows.
18698         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
18699         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
18700         via John W. Eaton <jwe@gnu.org>.
18701
18702 2010-01-09  Bruno Haible  <bruno@clisp.org>
18703
18704         getlogin_r: Small fixes.
18705         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
18706         succeeds.
18707         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
18708         before testing whether getlogin_r is declared. No need to set
18709         HAVE_DECL_GETLOGIN_R to 1.
18710         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
18711
18712 2010-01-09  Bruno Haible  <bruno@clisp.org>
18713
18714         * lib/unistd.in.h (getlogin_r): Add comment.
18715
18716 2010-01-09  Bruno Haible  <bruno@clisp.org>
18717
18718         Tests for module 'getlogin_r'.
18719         * modules/getlogin_r-tests: New file.
18720         * tests/test-getlogin_r.c: New file.
18721
18722 2010-01-09  Jim Meyering  <meyering@redhat.com>
18723
18724         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
18725         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
18726         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
18727
18728 2010-01-08  Simon Josefsson  <simon@josefsson.org>
18729
18730         * lib/dup2.c (rpl_dup2): Improve comment.
18731
18732 2010-01-08  Eric Blake  <ebb9@byu.net>
18733
18734         maint.mk: allow packages to add makefile @@ exceptions
18735         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
18736         (sc_makefile_check): Rename...
18737         (sc_makefile_at_at_check): ...to this, and use hook.
18738
18739         dup2: work around mingw bug
18740         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
18741         Reported by Simon Josefsson.
18742
18743 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
18744
18745         glob: Fix C++ compilation.
18746         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
18747         C++.
18748
18749 2010-01-07  Bruno Haible  <bruno@clisp.org>
18750
18751         Fix indentation of wctype.in.h, broken since 2007-01-06.
18752         * lib/wctype.in.h: Fix indentation of preprocessor directives.
18753
18754 2010-01-07  Bruno Haible  <bruno@clisp.org>
18755
18756         mbslen: Avoid collision with system function.
18757         * lib/string.in.h [MirBSD]: Include <wchar.h>.
18758         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
18759         * m4/mbslen.m4: New file.
18760         * modules/mbslen (Files): Add it.
18761         (configure.ac): Invoke gl_MBSLEN.
18762         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
18763         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
18764         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
18765         via Ian Beckwith <ianb@erislabs.net>.
18766
18767 2010-01-07  Bruno Haible  <bruno@clisp.org>
18768
18769         dirent: Document the last fix.
18770         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
18771
18772 2010-01-07  Bruno Haible  <bruno@clisp.org>
18773
18774         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
18775         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
18776         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
18777         va_list are defined.
18778         * doc/posix-headers/stdio.texi: Document the bug of missing types.
18779         Reported by Eric Blake.
18780
18781 2010-01-07  Bruno Haible  <bruno@clisp.org>
18782
18783         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
18784         * modules/xlist (Depends-on): Add 'list',
18785         * modules/xoset (Depends-on): Add 'oset'.
18786         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18787
18788 2010-01-07  Bruno Haible  <bruno@clisp.org>
18789
18790         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
18791         * doc/posix-functions/strncasecmp.texi: Likewise.
18792
18793 2010-01-07  Bruno Haible  <bruno@clisp.org>
18794
18795         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
18796
18797 2010-01-07  John W. Eaton  <jwe@octave.org>
18798
18799         wctype: allow C++ use
18800         * lib/wctype.in.h: Add extern "C" block for C++.
18801
18802 2010-01-06  Eric Blake  <ebb9@byu.net>
18803
18804         maint.mk: detect incorrect GFDL usage
18805         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
18806
18807 2010-01-06  Jim Meyering  <meyering@redhat.com>
18808         and Eric Blake  <ebb9@byu.net>
18809
18810         maint.mk: ignore multi-line copyright in NEWS
18811         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
18812
18813 2010-01-06  Eric Blake  <ebb9@byu.net>
18814
18815         select: add missing dependency
18816         * modules/select-tests (Depends-on): Move sockets dependency...
18817         * modules/select (Depends-on): ...here.
18818         Reported by Ian Beckwith.
18819
18820         doc: regenerate INSTALL
18821         * doc/INSTALL: Reflect recent autoconf update.
18822         * doc/INSTALL.ISO: Likewise.
18823         * doc/INSTALL.UTF-8: Likewise.
18824
18825         pread: fix compilation on glibc
18826         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
18827         Reported by Ralf Wildenhues.
18828
18829         dirent: fix test failure
18830         * lib/dirent.in.h (includes): Guarantee ino_t.
18831         Reported by Ralf Wildenhues.
18832
18833 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
18834
18835         linkat, renameat: avoid bad free
18836         * lib/at-func2.c (at_func2): Fix typo.
18837         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
18838
18839 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18840
18841         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
18842         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
18843         to avoid failure of symlink test later.
18844
18845 2010-01-06  Eric Blake  <ebb9@byu.net>
18846
18847         stdio, unistd: guarantee ssize_t
18848         * lib/unistd.in.h (includes): Ensure that types required by POSIX
18849         2008 are exposed when needed.
18850         * lib/stdio.in.h (includes): Likewise.
18851         Reported by Ralf Wildenhues.
18852
18853 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
18854
18855         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
18856         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
18857         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
18858
18859 2010-01-06  Jim Meyering  <meyering@redhat.com>
18860
18861         readtokens: this module *does* require xalloc.h
18862         It uses only functions that were omitted by the old syntax-check rule.
18863         * lib/readtokens.c: Include "xalloc.h" once again.
18864         * modules/readtokens (Depends-on): Add xalloc.
18865         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
18866
18867 2010-01-05  Eric Blake  <ebb9@byu.net>
18868
18869         maint: support 'make announcement' from a VPATH build
18870         * top/maint.mk (announcement): Look for correct NEWS file.
18871
18872 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
18873
18874         utimens (fdutimens): ignore a negative FD, per contract
18875         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
18876         when we have a valid file descriptor.  Otherwise, using a brand
18877         new glibc (with just-patched futimens that now fails with EBADF)
18878         would cause this function to fail with ENOSYS.
18879         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
18880         See also http://bugzilla.redhat.com/552320.
18881
18882 2010-01-05  Eric Blake  <ebb9@byu.net>
18883
18884         strcase: document what it provides
18885         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
18886         gnulib module.
18887         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
18888         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
18889
18890 2010-01-05  Jim Meyering  <meyering@redhat.com>
18891
18892         maint: remove useless inclusions of "xalloc.h"
18893         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
18894         * lib/readtokens.c: Likewise.
18895         * lib/same.c: Likewise.
18896         * modules/getloadavg (Depends-on): Remove xalloc.
18897         * modules/readtokens: Likewise.
18898         * modules/same: Likewise.
18899
18900         maint.mk: include 4 more function names in alloca.h-checking regexp
18901         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
18902         regexp.  Before, we would give a false-positive (saying alloca.h
18903         is included unnecessarily) when the only uses involved omitted symbols.
18904
18905         xalloc.h: use consistent formatting
18906         * lib/xalloc.h: Move declarations to start in the first column.
18907
18908 2010-01-05  Eric Blake  <ebb9@byu.net>
18909
18910         mkdir: avoid xalloc
18911         * lib/mkdir.c (includes): Drop unused header.
18912         Reported by John W. Eaton.
18913
18914 2010-01-04  Jim Meyering  <meyering@redhat.com>
18915
18916         nl_langinfo: avoid configure-time syntax error
18917         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
18918         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
18919         the empty string.  Don't let that provoke a shell syntax error.
18920
18921         regcomp, regexec, fnmatch: avoid array bounds read error
18922         * lib/regcomp.c (build_equiv_class): From glibc:
18923         Use only the low 24 bits of a findidx return value as an index
18924         into the weights array.  Patch by Ulrich Drepper:
18925         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
18926         * lib/regexec.c (check_node_accept_bytes): Likewise.
18927         * lib/fnmatch_loop.c (FCT): Likewise.
18928
18929         regcomp: skip collseq lookup when there are no rules
18930         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
18931         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
18932
18933         regcomp: recognize ill-formed { } expressions
18934         * lib/regcomp.c (parse_dup_op): From glibc:
18935         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
18936
18937         regcomp: fix typo in comment
18938         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
18939         s/satisfy/satisfies/.
18940
18941         regcomp: sync from glibc: remove dead store
18942         * lib/regcomp.c (duplicate_node_closure): Remove useless
18943         search_duplicated_node call and dead store.
18944
18945         regcomp: sync from glibc; always use nl_langinfo
18946         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
18947         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
18948         * modules/regex (Depends-on): Add nl_langinfo.
18949
18950 2010-01-04  Eric Blake  <ebb9@byu.net>
18951
18952         fdopendir: fix configure test
18953         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
18954
18955 2010-01-01  Bruno Haible  <bruno@clisp.org>
18956
18957         wchar: Remove unused configure check.
18958         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
18959
18960 2010-01-01  Eric Blake  <ebb9@byu.net>
18961
18962         headers: make check of system header explicit
18963         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
18964         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
18965         ourselves.
18966         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18967         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18968         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18969         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
18970         internals.
18971         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
18972         missing.
18973         Suggested by Bruno Haible.
18974
18975 2010-01-01  Jim Meyering  <meyering@redhat.com>
18976
18977         ChangeLog: tweak to eliminate unnecessary copyright line
18978         * ChangeLog: Remove a copyright line that was mistakenly updated
18979         by today's update-copyright run.  Reported by Eric Blake.
18980
18981         test-update-copyright: don't let envvar setting cause test failure
18982         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18983
18984 2010-01-01  Bruno Haible  <bruno@clisp.org>
18985
18986         localename: Avoid gcc warning.
18987         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
18988         function if it is not used.
18989
18990 2010-01-01  Jim Meyering  <meyering@redhat.com>
18991
18992         update nearly all FSF copyright year lists to include 2010
18993         Use the same procedure as for 2009, outlined in
18994         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
18995
18996         version-etc: set COPYRIGHT_YEAR to 2010
18997         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
18998
18999 2009-12-31  Eric Blake  <ebb9@byu.net>
19000
19001         doc: correct availability of cygwin 1.5.x getopt
19002         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
19003         variables.
19004         * doc/posix-functions/opterr.texi (opterr): Likewise.
19005         * doc/posix-functions/optind.texi (optind): Likewise.
19006         * doc/posix-functions/optopt.texi (optopt): Likewise.
19007         * doc/posix-functions/tzname.texi (tzname): Likewise.
19008
19009         openat: update maintainer
19010         * modules/openat (Maintainer): Add myself.
19011
19012         utimens: avoid shadowing warning
19013         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
19014         buffers into one, to avoid shadowing, as well as avoiding a
19015         redundant stat.
19016         Reported by Jim Meyering.
19017
19018         test-dup2: avoid compiler warning
19019         * tests/test-dup2.c (is_inheritable): Only define if used.
19020
19021 2010-01-01  Bruno Haible  <bruno@clisp.org>
19022
19023         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
19024         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
19025         defined, use wctomb instead of wcrtomb.
19026
19027 2010-01-01  Bruno Haible  <bruno@clisp.org>
19028
19029         iconv: Reject native Solaris iconv.
19030         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
19031         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
19032
19033 2009-12-31  Bruno Haible  <bruno@clisp.org>
19034
19035         * tests/test-signal.c (main): Remove test of 'SIG'.
19036
19037 2009-12-31  Bruno Haible  <bruno@clisp.org>
19038
19039         spawn: Fix incomplete fix.
19040         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19041         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19042         warnings for GNULIB_POSIXCHECK again.
19043         Reported by Eric Blake.
19044
19045 2009-12-31  Bruno Haible  <bruno@clisp.org>
19046
19047         Avoid namespace pollution on glibc systems.
19048         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
19049         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
19050         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
19051         glibc systems.
19052
19053 2009-12-31  Bruno Haible  <bruno@clisp.org>
19054
19055         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
19056         (gl_REPLACE_WCHAR_H): Turn into a no-op.
19057         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
19058         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19059         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19060         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19061         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19062
19063 2009-12-31  Bruno Haible  <bruno@clisp.org>
19064
19065         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19066         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
19067         afterwards.
19068
19069 2009-12-31  Bruno Haible  <bruno@clisp.org>
19070
19071         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
19072         SYS_UTSNAME_H.
19073
19074 2009-12-31  Bruno Haible  <bruno@clisp.org>
19075
19076         spawn: Fix misapplied patch.
19077         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19078         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19079         warnings for GNULIB_POSIXCHECK.
19080
19081 2009-12-31  Bruno Haible  <bruno@clisp.org>
19082
19083         times: Update after sys_times changed.
19084         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
19085         * modules/times (Files): Add it.
19086         (configure.ac): Invoke gl_FUNC_TIMES.
19087
19088 2009-12-31  Bruno Haible  <bruno@clisp.org>
19089
19090         Use AC_C_INLINE where necessary.
19091         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
19092         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19093         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
19094         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
19095         * m4/mbfile.m4 (gl_MBFILE): Likewise.
19096         * m4/mbiter.m4 (gl_MBITER): Likewise.
19097         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19098         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19099         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
19100         * modules/u64 (configure.ac): Likewise.
19101
19102 2009-12-31  Bruno Haible  <bruno@clisp.org>
19103
19104         Use AC_C_INLINE instead of module 'inline' where possible.
19105         * modules/inline (Description): Clarify purpose.
19106         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
19107         * modules/count-one-bits (Depends-on): Remove inline.
19108         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
19109         * modules/openat (Depends-on): Remove inline.
19110         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
19111         instead of depending on module 'inline'.
19112         * modules/filevercmp (Depends-on, configure.ac): Likewise.
19113         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
19114         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
19115         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
19116         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
19117         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
19118         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
19119         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
19120         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
19121         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
19122         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
19123         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
19124         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
19125         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
19126         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
19127         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
19128         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
19129         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
19130         Likewise.
19131         * modules/unictype/property-ascii-hex-digit (Depends-on,
19132         configure.ac): Likewise.
19133         * modules/unictype/property-bidi-arabic-digit (Depends-on,
19134         configure.ac): Likewise.
19135         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
19136         configure.ac): Likewise.
19137         * modules/unictype/property-bidi-block-separator (Depends-on,
19138         configure.ac): Likewise.
19139         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
19140         configure.ac): Likewise.
19141         * modules/unictype/property-bidi-common-separator (Depends-on,
19142         configure.ac): Likewise.
19143         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
19144         Likewise.
19145         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
19146         configure.ac): Likewise.
19147         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
19148         configure.ac): Likewise.
19149         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
19150         configure.ac): Likewise.
19151         * modules/unictype/property-bidi-european-digit (Depends-on,
19152         configure.ac): Likewise.
19153         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
19154         configure.ac): Likewise.
19155         * modules/unictype/property-bidi-left-to-right (Depends-on,
19156         configure.ac): Likewise.
19157         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
19158         configure.ac): Likewise.
19159         * modules/unictype/property-bidi-other-neutral (Depends-on,
19160         configure.ac): Likewise.
19161         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
19162         Likewise.
19163         * modules/unictype/property-bidi-segment-separator (Depends-on,
19164         configure.ac): Likewise.
19165         * modules/unictype/property-bidi-whitespace (Depends-on,
19166         configure.ac): Likewise.
19167         * modules/unictype/property-combining (Depends-on, configure.ac):
19168         Likewise.
19169         * modules/unictype/property-composite (Depends-on, configure.ac):
19170         Likewise.
19171         * modules/unictype/property-currency-symbol (Depends-on,
19172         configure.ac): Likewise.
19173         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
19174         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
19175         Likewise.
19176         * modules/unictype/property-default-ignorable-code-point (Depends-on,
19177         configure.ac): Likewise.
19178         * modules/unictype/property-deprecated (Depends-on, configure.ac):
19179         Likewise.
19180         * modules/unictype/property-diacritic (Depends-on, configure.ac):
19181         Likewise.
19182         * modules/unictype/property-extender (Depends-on, configure.ac):
19183         Likewise.
19184         * modules/unictype/property-format-control (Depends-on, configure.ac):
19185         Likewise.
19186         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
19187         Likewise.
19188         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
19189         Likewise.
19190         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
19191         Likewise.
19192         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
19193         Likewise.
19194         * modules/unictype/property-hyphen (Depends-on, configure.ac):
19195         Likewise.
19196         * modules/unictype/property-id-continue (Depends-on, configure.ac):
19197         Likewise.
19198         * modules/unictype/property-id-start (Depends-on, configure.ac):
19199         Likewise.
19200         * modules/unictype/property-ideographic (Depends-on, configure.ac):
19201         Likewise.
19202         * modules/unictype/property-ids-binary-operator (Depends-on,
19203         configure.ac): Likewise.
19204         * modules/unictype/property-ids-trinary-operator (Depends-on,
19205         configure.ac): Likewise.
19206         * modules/unictype/property-ignorable-control (Depends-on,
19207         configure.ac): Likewise.
19208         * modules/unictype/property-iso-control (Depends-on, configure.ac):
19209         Likewise.
19210         * modules/unictype/property-join-control (Depends-on, configure.ac):
19211         Likewise.
19212         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
19213         Likewise.
19214         * modules/unictype/property-line-separator (Depends-on, configure.ac):
19215         Likewise.
19216         * modules/unictype/property-logical-order-exception (Depends-on,
19217         configure.ac): Likewise.
19218         * modules/unictype/property-lowercase (Depends-on, configure.ac):
19219         Likewise.
19220         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
19221         * modules/unictype/property-non-break (Depends-on, configure.ac):
19222         Likewise.
19223         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
19224         Likewise.
19225         * modules/unictype/property-numeric (Depends-on, configure.ac):
19226         Likewise.
19227         * modules/unictype/property-other-alphabetic (Depends-on,
19228         configure.ac): Likewise.
19229         * modules/unictype/property-other-default-ignorable-code-point
19230         (Depends-on, configure.ac): Likewise.
19231         * modules/unictype/property-other-grapheme-extend (Depends-on,
19232         configure.ac): Likewise.
19233         * modules/unictype/property-other-id-continue (Depends-on,
19234         configure.ac): Likewise.
19235         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
19236         Likewise.
19237         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
19238         Likewise.
19239         * modules/unictype/property-other-math (Depends-on, configure.ac):
19240         Likewise.
19241         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
19242         Likewise.
19243         * modules/unictype/property-paired-punctuation (Depends-on,
19244         configure.ac): Likewise.
19245         * modules/unictype/property-paragraph-separator (Depends-on,
19246         configure.ac): Likewise.
19247         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
19248         Likewise.
19249         * modules/unictype/property-pattern-white-space (Depends-on,
19250         configure.ac): Likewise.
19251         * modules/unictype/property-private-use (Depends-on, configure.ac):
19252         Likewise.
19253         * modules/unictype/property-punctuation (Depends-on, configure.ac):
19254         Likewise.
19255         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
19256         Likewise.
19257         * modules/unictype/property-radical (Depends-on, configure.ac):
19258         Likewise.
19259         * modules/unictype/property-sentence-terminal (Depends-on,
19260         configure.ac): Likewise.
19261         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
19262         Likewise.
19263         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
19264         * modules/unictype/property-terminal-punctuation (Depends-on,
19265         configure.ac): Likewise.
19266         * modules/unictype/property-titlecase (Depends-on, configure.ac):
19267         Likewise.
19268         * modules/unictype/property-unassigned-code-value (Depends-on,
19269         configure.ac): Likewise.
19270         * modules/unictype/property-unified-ideograph (Depends-on,
19271         configure.ac): Likewise.
19272         * modules/unictype/property-uppercase (Depends-on, configure.ac):
19273         Likewise.
19274         * modules/unictype/property-variation-selector (Depends-on,
19275         configure.ac): Likewise.
19276         * modules/unictype/property-white-space (Depends-on, configure.ac):
19277         Likewise.
19278         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
19279         Likewise.
19280         * modules/unictype/property-xid-start (Depends-on, configure.ac):
19281         Likewise.
19282         * modules/unictype/property-zero-width (Depends-on, configure.ac):
19283         Likewise.
19284         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
19285         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
19286         Likewise.
19287
19288 2009-12-31  Bruno Haible  <bruno@clisp.org>
19289
19290         Remove unnecessary AC_C_INLINE invocation.
19291         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
19292         since 2009-08-21.
19293
19294 2009-12-31  Jim Meyering  <meyering@redhat.com>
19295
19296         maint.mk: don't require explicit gpg_key_ID in cfg.mk
19297         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
19298         With this change, we can all remove the gpg_key_ID = ... definition
19299         from our respective cfg.mk files.
19300
19301         maint.mk: create announcement template in ~/, not in /tmp
19302         * top/maint.mk (emit_upload_commands): Adjust.
19303         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
19304         Remove temporary file, .ci-msg.
19305
19306 2009-12-31  Eric Blake  <ebb9@byu.net>
19307
19308         link-warning: always build headers with link warnings
19309         * modules/arpa_inet (Makefile.am): Always build replacement
19310         header.
19311         * modules/ctype (Makefile.am): Likewise.
19312         * modules/dirent (Makefile.am): Likewise.
19313         * modules/inttypes (Makefile.am): Likewise.
19314         * modules/langinfo (Makefile.am): Likewise.
19315         * modules/locale (Makefile.am): Likewise.
19316         * modules/spawn (Makefile.am): Likewise.
19317         * modules/sys_file (Makefile.am): Likewise.
19318         * modules/sys_ioctl (Makefile.am): Likewise.
19319         * modules/sys_select (Makefile.am): Likewise.
19320         * modules/sys_socket (Makefile.am): Likewise.
19321         * modules/sys_times (Makefile.am): Likewise.
19322         * modules/sys_utsname (Makefile.am): Likewise.
19323         * modules/sys_wait (Makefile.am): Likewise.
19324         * modules/wchar (Makefile.am): Likewise.
19325         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
19326         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
19327         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
19328         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
19329         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
19330         Likewise.
19331         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19332         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19333         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
19334         Likewise.
19335         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
19336         Likewise.
19337         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19338         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
19339         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
19340         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19341         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19342         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19343         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19344         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
19345         (gl_WCHAR_H_DEFAULTS): Likewise.
19346
19347 2009-12-31  Eric Blake  <ebb9@byu.net>
19348
19349         signal, spawn: use link warnings
19350         * lib/signal.in.h (sigset_t): Make unconditional.
19351         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
19352         (sigpending, sigprocmask, sigaction): Add link warnings.
19353         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
19354         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
19355         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
19356         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
19357         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
19358         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
19359         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
19360         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
19361         (posix_spawn_file_actions_destroy)
19362         (posix_spawn_file_actions_addopen)
19363         (posix_spawn_file_actions_addclose)
19364         (posix_spawn_file_actions_adddup2): Likewise.
19365         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
19366         * tests/test-signal.c (main): Enhance test.
19367
19368         spawn: improve wrapper support
19369         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
19370         (gl_SPAWN_H_DEFAULTS): New defaults.
19371         * modules/spawn (Makefile.am): Substitute them.
19372         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
19373         Only declare if missing or broken.
19374
19375         sys_times, sys_utsname: use include_next
19376         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
19377         header.
19378         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
19379         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19380         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19381         * modules/sys_times (Depends-on): Add include_next.
19382         (Makefile.am): Substitute additional values.
19383         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19384         * lib/sys_times.in.h (includes): Include native header, if
19385         available.
19386         * lib/sys_utsname.in.h (includes): Likewise.
19387         * tests/test-sys_times.c (main): Enhance test.
19388
19389         fdutimensat: revert prior patch
19390         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
19391         utimens.h.
19392         Reported by Bruno Haible.
19393
19394 2009-12-30  Eric Blake  <ebb9@byu.net>
19395
19396         sys_wait: drop link-warning dependency
19397         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
19398         link-warning efforts.
19399         * lib/sys_wait.in.h: Likewise.
19400
19401         fdutimensat: remove bogus dependency
19402         * modules/fdutimensat (Depends-on): Drop inline.
19403
19404         unistd: fix typo
19405         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
19406
19407 2009-12-30  Bruno Haible  <bruno@clisp.org>
19408
19409         Fix compilation error with Solaris cc.
19410         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
19411         * lib/unicase/u16-is-invariant.c: Likewise.
19412         * lib/unicase/u32-is-invariant.c: Likewise.
19413         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19414
19415 2009-12-30  Bruno Haible  <bruno@clisp.org>
19416
19417         Fix test crash.
19418         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
19419         locales.
19420         Reported by Simon Josefsson <simon@josefsson.org>.
19421
19422 2009-12-30  Bruno Haible  <bruno@clisp.org>
19423
19424         Fix compilation error on most platforms.
19425         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
19426         Reported by Simon Josefsson <simon@josefsson.org>
19427         and Nelson H. F. Beebe <beebe@math.utah.edu>.
19428
19429 2009-12-30  Eric Blake  <ebb9@byu.net>
19430
19431         futimens, utimensat: work around ntfs-3g bug
19432         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
19433         a ctime bug is present, and expand workaround to cover ntfs-3g.
19434         * lib/utimens.c (fdutimens, lutimens): Likewise.
19435         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
19436         (validate_timespec): Adjust return value.
19437         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
19438         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19439         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
19440
19441 2009-12-29  Eric Blake  <ebb9@byu.net>
19442
19443         link-warning: make usage consistent
19444         * modules/ctype (Depends-on): Add link-warning.
19445         (Makefile.am): Update rules accordingly.
19446         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19447         * modules/locale (Depends-on, Makefile.am): Likewise.
19448         * modules/sys_file (Makefile.am): Likewise.
19449         * modules/getopt-posix (Makefile.am): Delete unused link warning
19450         efforts.
19451         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
19452         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
19453         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
19454         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
19455
19456         stdio: remove unused variables
19457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
19458         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
19459         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19460
19461         tests: test more substitute headers
19462         * modules/ctype-tests: New file.
19463         * modules/dirent-tests: Likewise.
19464         * modules/spawn-tests: Likewise.
19465         * modules/sys_file-tests: Likewise.
19466         * modules/sys_ioctl-tests: Likewise.
19467         * modules/sys_wait-tests: Likewise.
19468         * tests/test-ctype.c: Likewise.
19469         * tests/test-dirent.c: Likewise.
19470         * tests/test-spawn.c: Likewise.
19471         * tests/test-sys_file.c: Likewise.
19472         * tests/test-sys_ioctl.c: Likewise.
19473         * tests/test-sys_wait.c: Likewise.
19474         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
19475         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
19476         whether or not flock is in use.
19477
19478         tests: remove License section from module
19479         * modules/arpa_inet-tests: Remove unneeded section.
19480         * modules/byteswap-tests: Likewise.
19481         * modules/ceilf-tests: Likewise.
19482         * modules/ceill-tests: Likewise.
19483         * modules/crypto/des-tests: Likewise.
19484         * modules/crypto/gc-arcfour-tests: Likewise.
19485         * modules/crypto/gc-arctwo-tests: Likewise.
19486         * modules/crypto/gc-des-tests: Likewise.
19487         * modules/crypto/gc-hmac-md5-tests: Likewise.
19488         * modules/crypto/gc-hmac-sha1-tests: Likewise.
19489         * modules/crypto/gc-md2-tests: Likewise.
19490         * modules/crypto/gc-md4-tests: Likewise.
19491         * modules/crypto/gc-md5-tests: Likewise.
19492         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
19493         * modules/crypto/gc-rijndael-tests: Likewise.
19494         * modules/crypto/gc-sha1-tests: Likewise.
19495         * modules/crypto/gc-tests: Likewise.
19496         * modules/crypto/md2-tests: Likewise.
19497         * modules/crypto/md4-tests: Likewise.
19498         * modules/fcntl-h-tests: Likewise.
19499         * modules/floorf-tests: Likewise.
19500         * modules/floorl-tests: Likewise.
19501         * modules/frexp-nolibm-tests: Likewise.
19502         * modules/frexp-tests: Likewise.
19503         * modules/frexpl-nolibm-tests: Likewise.
19504         * modules/frexpl-tests: Likewise.
19505         * modules/getaddrinfo-tests: Likewise.
19506         * modules/inttypes-tests: Likewise.
19507         * modules/isfinite-tests: Likewise.
19508         * modules/isinf-tests: Likewise.
19509         * modules/ldexpl-tests: Likewise.
19510         * modules/locale-tests: Likewise.
19511         * modules/math-tests: Likewise.
19512         * modules/netdb-tests: Likewise.
19513         * modules/netinet_in-tests: Likewise.
19514         * modules/printf-frexp-tests: Likewise.
19515         * modules/printf-frexpl-tests: Likewise.
19516         * modules/priv-set-tests: Likewise.
19517         * modules/random_r-tests: Likewise.
19518         * modules/round-tests: Likewise.
19519         * modules/roundf-tests: Likewise.
19520         * modules/roundl-tests: Likewise.
19521         * modules/search-tests: Likewise.
19522         * modules/select-tests: Likewise.
19523         * modules/signal-tests: Likewise.
19524         * modules/stdbool-tests: Likewise.
19525         * modules/stddef-tests: Likewise.
19526         * modules/stdint-tests: Likewise.
19527         * modules/stdio-tests: Likewise.
19528         * modules/stdlib-tests: Likewise.
19529         * modules/string-tests: Likewise.
19530         * modules/strings-tests: Likewise.
19531         * modules/sys_select-tests: Likewise.
19532         * modules/sys_socket-tests: Likewise.
19533         * modules/sys_stat-tests: Likewise.
19534         * modules/sys_time-tests: Likewise.
19535         * modules/sys_utsname-tests: Likewise.
19536         * modules/sysexits-tests: Likewise.
19537         * modules/time-tests: Likewise.
19538         * modules/trunc-tests: Likewise.
19539         * modules/truncf-tests: Likewise.
19540         * modules/truncl-tests: Likewise.
19541         * modules/tsearch-tests: Likewise.
19542         * modules/unistd-tests: Likewise.
19543         * modules/wchar-tests: Likewise.
19544         * modules/wctype-tests: Likewise.
19545
19546         tests: fix license on several tests
19547         * tests/test-des.c: Update to GPLv3+.
19548         * tests/test-flock.c: Likewise.
19549         * tests/test-fsync.c: Likewise.
19550         * tests/test-futimens.h: Likewise.
19551         * tests/test-gc-arcfour.c: Likewise.
19552         * tests/test-gc-arctwo.c: Likewise.
19553         * tests/test-gc-des.c: Likewise.
19554         * tests/test-gc-hmac-md5.c: Likewise.
19555         * tests/test-gc-hmac-sha1.c: Likewise.
19556         * tests/test-gc-md2.c: Likewise.
19557         * tests/test-gc-md4.c: Likewise.
19558         * tests/test-gc-md5.c: Likewise.
19559         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19560         * tests/test-gc-rijndael.c: Likewise.
19561         * tests/test-gc-sha1.c: Likewise.
19562         * tests/test-gc.c: Likewise.
19563         * tests/test-getcwd.c: Likewise.
19564         * tests/test-link.c: Likewise.
19565         * tests/test-link.h: Likewise.
19566         * tests/test-lutimens.h: Likewise.
19567         * tests/test-md2.c: Likewise.
19568         * tests/test-md4.c: Likewise.
19569         * tests/test-mkdir.h: Likewise.
19570         * tests/test-rename.c: Likewise.
19571         * tests/test-rename.h: Likewise.
19572         * tests/test-safe-alloc.c: Likewise.
19573         * tests/test-utimens-common.h: Likewise.
19574         * tests/test-utimens.h: Likewise.
19575
19576         maint: sync license texts
19577         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
19578         * doc/gpl-3.0.texi: Revert copyright year update.
19579         * doc/lgpl-3.0.texi: Likewise.
19580
19581 2009-12-29  Jim Meyering  <meyering@redhat.com>
19582
19583         update nearly all FSF copyright year lists to include 2009
19584         The files named by the following are exempted:
19585             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
19586               test -f "$dst" && { echo "$dst"; continue; }
19587               test -d "$dst" || continue
19588               echo "$dst"/$(basename "$src")
19589             done > exempt
19590             git ls-files tests/unictype >> exempt
19591         In the remaining files, convert to all-interval notation if
19592         - there is already at least one year interval like 2000-2003
19593         - the file is maintained by me
19594         - the file is in lib/uni*/, where that style already prevails
19595         Otherwise, use update-copyright's default.
19596
19597 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19598         and Eric Blake  <ebb9@byu.net>
19599
19600         tests: don't require debug system() to pass
19601         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
19602         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19603         * tests/test-unlink.h (test_unlink_func): Likewise.
19604         * tests/test-fstatat.c (main): ...into callers.
19605         * tests/test-lstat.c (main): Likewise.
19606         * tests/test-rmdir.c (main): Likewise.
19607         * tests/test-unlink.c (main): Likewise.
19608         * tests/test-unlinkat.c (main): Likewise.
19609         * tests/test-areadlink-with-size.c (main): Don't require a
19610         debug-only system call to pass, aiding cross-testing to mingw.
19611         * tests/test-areadlink.c (main): Likewise.
19612         * tests/test-areadlinkat-with-size.c (main): Likewise.
19613         * tests/test-areadlinkat.c (main): Likewise.
19614         * tests/test-canonicalize-lgpl.c (main): Likewise.
19615         * tests/test-canonicalize.c (main): Likewise.
19616         * tests/test-chown.c (main): Likewise.
19617         * tests/test-fchownat.c (main): Likewise.
19618         * tests/test-lchown.c (main): Likewise.
19619         * tests/test-fdutimensat.c (main): Likewise.
19620         * tests/test-futimens.c (main): Likewise.
19621         * tests/test-link.c (main): Likewise.
19622         * tests/test-linkat.c (main): Likewise.
19623         * tests/test-mkdir.c (main): Likewise.
19624         * tests/test-mkdirat.c (main): Likewise.
19625         * tests/test-mkfifo.c (main): Likewise.
19626         * tests/test-mkfifoat.c (main): Likewise.
19627         * tests/test-mknod.c (main): Likewise.
19628         * tests/test-readlink.c (main): Likewise.
19629         * tests/test-remove.c (main): Likewise.
19630         * tests/test-rename.c (main): Likewise.
19631         * tests/test-renameat.c (main): Likewise.
19632         * tests/test-symlink.c (main): Likewise.
19633         * tests/test-symlinkat.c (main): Likewise.
19634         * tests/test-utimens.c (main): Likewise.
19635         * tests/test-utimensat.c (main): Likewise.
19636
19637 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19638
19639         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
19640         on $(UNUSED_PARAMETER_H) to avoid build failure.
19641
19642 2009-12-28  Jim Meyering  <meyering@redhat.com>
19643
19644         update-copyright: you may specify a max. line length other than 72
19645         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19646
19647         maint: use consistent FSF copyright line syntax
19648         * lib/posixtm.c: Add missing comma in FSF copyright line.
19649         * lib/posixtm.h: Likewise.
19650         * lib/getugroups.c: Add missing ", Inc.".
19651
19652         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
19653         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
19654         FSF copyright line.  Remove trailing blanks.
19655
19656 2009-12-28  Eric Blake  <ebb9@byu.net>
19657
19658         test-dup2: reduce dependencies
19659         * modules/cloexec (Configure.ac): Set witness.
19660         * modules/dup2-tests (Depends-on): Drop cloexec.
19661         * tests/test-dup2.c (main): Skip portion of test if cloexec module
19662         not present.
19663         Suggested by Bruno Haible.
19664
19665 2009-12-26  Bruno Haible  <bruno@clisp.org>
19666
19667         Remove an unneeded dependency.
19668         * modules/fseterr (Depends-on): Remove dup2.
19669
19670 2009-12-26  Eric Blake  <ebb9@byu.net>
19671
19672         tests: use macros.h in more places
19673         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
19674         (ASSERT_STREAM): Provide default of stderr.
19675         * tests/test-dirent-safer.c: Include macros.h, using alternate
19676         stream for assertions.
19677         * tests/test-dup-safer.c: Likewise.
19678         * tests/test-freopen-safer.c: Likewise.
19679         * tests/test-getopt.c: Likewise.
19680         * tests/test-openat-safer.c: Likewise.
19681         * tests/test-pipe.c: Likewise.
19682         * tests/test-popen-safer.c: Likewise.
19683         * modules/dirent-safer-tests (Files): Include macros.h.
19684         * modules/unistd-safer-tests (Files): Likewise.
19685         * modules/freopen-safer-tests (Files): Likewise.
19686         * modules/getopt-posix-tests (Files): Likewise.
19687         * modules/openat-safer-tests (Files): Likewise.
19688         * modules/pipe-tests (Files): Likewise.
19689
19690 2009-12-26  Bruno Haible  <bruno@clisp.org>
19691
19692         javacomp: Portability fix.
19693         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
19694         that it also works on Solaris.
19695
19696 2009-12-26  Bruno Haible  <bruno@clisp.org>
19697
19698         localename: Fix storage allocation of gl_locale_name_thread's result.
19699         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
19700         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
19701         all platforms that have 'uselocale'.
19702         (gl_locale_name_thread_unsafe): New function, extracted from
19703         gl_locale_name_thread.
19704         (gl_locale_name_thread): Call struniq on all platforms that have
19705         'uselocale'.
19706         * tests/test-localename.c (test_locale_name_thread): Check that the
19707         resulting strings are permanently allocated.
19708         * modules/localename-tests (Depends-on): Add strdup.
19709
19710 2009-12-26  Bruno Haible  <bruno@clisp.org>
19711
19712         * tests/test-localename.c (categories): Fill in the strings.
19713
19714 2009-12-26  Jim Meyering  <meyering@redhat.com>
19715
19716         isdir: complete the removal of m4/isdir.m4
19717         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
19718
19719         isdir: clean up, since at least grep still uses it
19720         * lib/isdir.c: Include "isdir.h".
19721         (S_ISDIR): Remove now-unneeded definition.
19722         * modules/isdir (Files): Add lib/isdir.h.
19723         * lib/isdir.h: New file, with declaration.
19724         * m4/isdir.m4: Remove file -- unneeded.
19725
19726 2009-12-25  Bruno Haible  <bruno@clisp.org>
19727
19728         selinux-h: Make generated .h files standalone.
19729         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
19730         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
19731         * lib/se-selinux.in.h: Likewise.
19732         * modules/selinux-h (Depends-on): Add unused-parameter.
19733         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
19734         selinux/selinux.h and selinux/context.h.
19735         Suggested by Eric Blake.
19736
19737 2009-12-25  Bruno Haible  <bruno@clisp.org>
19738
19739         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
19740         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
19741         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
19742         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
19743         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
19744
19745 2009-12-24  Bruno Haible  <bruno@clisp.org>
19746
19747         openat: Fix warning.
19748         * lib/openat-proc.c: Include <unistd.h>.
19749
19750 2009-12-24  Bruno Haible  <bruno@clisp.org>
19751
19752         New module 'unused-parameter'.
19753         * build-aux/unused-parameter.h: New file, extracted from earlier
19754         gnulib-common.m4.
19755         * modules/unused-parameter: New file.
19756         * lib/unistr.h: Include unused-parameter.h.
19757         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
19758         _GL_UNUSED.
19759         * modules/unistr/base (Depends-on): Add unused-parameter.
19760
19761 2009-12-24  Bruno Haible  <bruno@clisp.org>
19762
19763         Add missing dependencies to 'extensions' module.
19764         * m4/extensions.m4: Add comment.
19765         * modules/accept4 (Depends-on): Add extensions.
19766         * modules/dup3 (Depends-on): Likewise.
19767         * modules/fcntl (Depends-on): Likewise.
19768         * modules/futimens (Depends-on): Likewise.
19769         * modules/mknod (Depends-on): Likewise.
19770         * modules/pipe2 (Depends-on): Likewise.
19771         * modules/stat-time (Depends-on): Likewise.
19772         * modules/strcasestr-simple (Depends-on): Likewise.
19773         * modules/strsignal (Depends-on): Likewise.
19774         * modules/utimensat (Depends-on): Likewise.
19775         * modules/localcharset (Depends-on): Likewise. Needed because of
19776         gl_FCNTL_O_FLAGS.
19777         * modules/wcrtomb (Depends-on): Likewise. Needed because of
19778         AC_TYPE_MBSTATE_T.
19779         * modules/wcsnrtombs (Depends-on): Likewise.
19780         * modules/wcsrtombs (Depends-on): Likewise.
19781
19782 2009-12-24  Bruno Haible  <bruno@clisp.org>
19783
19784         binary-io: Avoid gcc warning due to SET_BINARY.
19785         * lib/binary-io.h (SET_BINARY): Cast the result to void.
19786         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
19787
19788 2009-12-24  Bruno Haible  <bruno@clisp.org>
19789
19790         Avoid future namespace pollution on glibc systems.
19791         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
19792         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
19793         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
19794         glibc systems.
19795
19796 2009-12-24  Bruno Haible  <bruno@clisp.org>
19797
19798         Refactor common macros used in tests.
19799         * tests/macros.h: New file.
19800         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
19801         and/or <stdlib.h>, if appropriate.
19802         (ASSERT, SIZEOF): Remove macros.
19803         * tests/test-areadlink-with-size.c: Likewise.
19804         * tests/test-areadlinkat.c: Likewise.
19805         * tests/test-areadlinkat-with-size.c: Likewise.
19806         * tests/test-argmatch.c: Likewise.
19807         * tests/test-argv-iter.c: Likewise.
19808         * tests/test-array-mergesort.c: Likewise.
19809         * tests/test-array_list.c: Likewise.
19810         * tests/test-array_oset.c: Likewise.
19811         * tests/test-avltree_list.c: Likewise.
19812         * tests/test-avltree_oset.c: Likewise.
19813         * tests/test-avltreehash_list.c: Likewise.
19814         * tests/test-base64.c: Likewise.
19815         * tests/test-binary-io.c: Likewise.
19816         * tests/test-bitrotate.c: Likewise.
19817         * tests/test-btowc.c: Likewise.
19818         * tests/test-byteswap.c: Likewise.
19819         * tests/test-c-ctype.c: Likewise.
19820         * tests/test-c-stack.c: Likewise.
19821         * tests/test-c-strcasecmp.c: Likewise.
19822         * tests/test-c-strcasestr.c: Likewise.
19823         * tests/test-c-strncasecmp.c: Likewise.
19824         * tests/test-c-strstr.c: Likewise.
19825         * tests/test-canonicalize-lgpl.c: Likewise.
19826         * tests/test-canonicalize.c: Likewise.
19827         * tests/test-carray_list.c: Likewise.
19828         * tests/test-ceilf1.c: Likewise.
19829         * tests/test-ceilf2.c: Likewise.
19830         * tests/test-ceill.c: Likewise.
19831         * tests/test-chown.c: Likewise.
19832         * tests/test-cloexec.c: Likewise.
19833         * tests/test-copy-acl.c: Likewise.
19834         * tests/test-copy-file.c: Likewise.
19835         * tests/test-count-one-bits.c: Likewise.
19836         * tests/test-dprintf-posix.c: Likewise.
19837         * tests/test-dup2.c: Likewise.
19838         * tests/test-dup3.c: Likewise.
19839         * tests/test-duplocale.c: Likewise.
19840         * tests/test-fbufmode.c: Likewise.
19841         * tests/test-fchdir.c: Likewise.
19842         * tests/test-fchownat.c: Likewise.
19843         * tests/test-fcntl-safer.c: Likewise.
19844         * tests/test-fcntl.c: Likewise.
19845         * tests/test-fdopendir.c: Likewise.
19846         * tests/test-fdutimensat.c: Likewise.
19847         * tests/test-fflush2.c: Likewise.
19848         * tests/test-file-has-acl.c: Likewise.
19849         * tests/test-filevercmp.c: Likewise.
19850         * tests/test-flock.c: Likewise.
19851         * tests/test-floorf1.c: Likewise.
19852         * tests/test-floorf2.c: Likewise.
19853         * tests/test-floorl.c: Likewise.
19854         * tests/test-fnmatch.c: Likewise.
19855         * tests/test-fopen.h: Likewise.
19856         * tests/test-fpending.c: Likewise.
19857         * tests/test-fprintf-posix.c: Likewise.
19858         * tests/test-fpurge.c: Likewise.
19859         * tests/test-freadable.c: Likewise.
19860         * tests/test-freadahead.c: Likewise.
19861         * tests/test-freading.c: Likewise.
19862         * tests/test-freadptr.c: Likewise.
19863         * tests/test-freadptr2.c: Likewise.
19864         * tests/test-freadseek.c: Likewise.
19865         * tests/test-freopen.c: Likewise.
19866         * tests/test-frexp.c: Likewise.
19867         * tests/test-frexpl.c: Likewise.
19868         * tests/test-fseek.c: Likewise.
19869         * tests/test-fseeko.c: Likewise.
19870         * tests/test-fstatat.c: Likewise.
19871         * tests/test-fstrcmp.c: Likewise.
19872         * tests/test-fsync.c: Likewise.
19873         * tests/test-ftell.c: Likewise.
19874         * tests/test-ftello.c: Likewise.
19875         * tests/test-func.c: Likewise.
19876         * tests/test-futimens.c: Likewise.
19877         * tests/test-fwritable.c: Likewise.
19878         * tests/test-fwriting.c: Likewise.
19879         * tests/test-getcwd.c: Likewise.
19880         * tests/test-getdate.c: Likewise.
19881         * tests/test-getdelim.c: Likewise.
19882         * tests/test-getdtablesize.c: Likewise.
19883         * tests/test-getgroups.c: Likewise.
19884         * tests/test-getline.c: Likewise.
19885         * tests/test-getndelim2.c: Likewise.
19886         * tests/test-glob.c: Likewise.
19887         * tests/test-hash.c: Likewise.
19888         * tests/test-i-ring.c: Likewise.
19889         * tests/test-iconv-utf.c: Likewise.
19890         * tests/test-iconv.c: Likewise.
19891         * tests/test-idpriv-drop.c: Likewise.
19892         * tests/test-idpriv-droptemp.c: Likewise.
19893         * tests/test-inet_ntop.c: Likewise.
19894         * tests/test-inet_pton.c: Likewise.
19895         * tests/test-isblank.c: Likewise.
19896         * tests/test-isfinite.c: Likewise.
19897         * tests/test-isinf.c: Likewise.
19898         * tests/test-isnan.c: Likewise.
19899         * tests/test-isnand.h: Likewise.
19900         * tests/test-isnanf.h: Likewise.
19901         * tests/test-isnanl.h: Likewise.
19902         * tests/test-lchown.c: Likewise.
19903         * tests/test-ldexpl.c: Likewise.
19904         * tests/test-link.c: Likewise.
19905         * tests/test-linkat.c: Likewise.
19906         * tests/test-linked_list.c: Likewise.
19907         * tests/test-linkedhash_list.c: Likewise.
19908         * tests/test-localename.c: Likewise.
19909         * tests/test-lseek.c: Likewise.
19910         * tests/test-lstat.c: Likewise.
19911         * tests/test-mbmemcasecmp.c: Likewise.
19912         * tests/test-mbmemcasecoll.c: Likewise.
19913         * tests/test-mbrtowc.c: Likewise.
19914         * tests/test-mbscasecmp.c: Likewise.
19915         * tests/test-mbscasestr1.c: Likewise.
19916         * tests/test-mbscasestr2.c: Likewise.
19917         * tests/test-mbscasestr3.c: Likewise.
19918         * tests/test-mbscasestr4.c: Likewise.
19919         * tests/test-mbschr.c: Likewise.
19920         * tests/test-mbscspn.c: Likewise.
19921         * tests/test-mbsinit.c: Likewise.
19922         * tests/test-mbsncasecmp.c: Likewise.
19923         * tests/test-mbsnrtowcs.c: Likewise.
19924         * tests/test-mbspbrk.c: Likewise.
19925         * tests/test-mbspcasecmp.c: Likewise.
19926         * tests/test-mbsrchr.c: Likewise.
19927         * tests/test-mbsrtowcs.c: Likewise.
19928         * tests/test-mbsspn.c: Likewise.
19929         * tests/test-mbsstr1.c: Likewise.
19930         * tests/test-mbsstr2.c: Likewise.
19931         * tests/test-mbsstr3.c: Likewise.
19932         * tests/test-memchr.c: Likewise.
19933         * tests/test-memchr2.c: Likewise.
19934         * tests/test-memcmp.c: Likewise.
19935         * tests/test-memmem.c: Likewise.
19936         * tests/test-memrchr.c: Likewise.
19937         * tests/test-mkdir.c: Likewise.
19938         * tests/test-mkdirat.c: Likewise.
19939         * tests/test-mkfifo.c: Likewise.
19940         * tests/test-mkfifoat.c: Likewise.
19941         * tests/test-mknod.c: Likewise.
19942         * tests/test-nanosleep.c: Likewise.
19943         * tests/test-nl_langinfo.c: Likewise.
19944         * tests/test-obstack-printf.c: Likewise.
19945         * tests/test-open.c: Likewise.
19946         * tests/test-openat.c: Likewise.
19947         * tests/test-pipe-filter-gi1.c: Likewise.
19948         * tests/test-pipe-filter-gi2-main.c: Likewise.
19949         * tests/test-pipe-filter-ii1.c: Likewise.
19950         * tests/test-pipe-filter-ii2-main.c: Likewise.
19951         * tests/test-pipe2.c: Likewise.
19952         * tests/test-popen.h: Likewise.
19953         * tests/test-posixtm.c: Likewise.
19954         * tests/test-pread.c: Likewise.
19955         * tests/test-printf-frexp.c: Likewise.
19956         * tests/test-printf-frexpl.c: Likewise.
19957         * tests/test-printf-posix.c: Likewise.
19958         * tests/test-priv-set.c: Likewise.
19959         * tests/test-quotearg.c: Likewise.
19960         * tests/test-random_r.c: Likewise.
19961         * tests/test-rawmemchr.c: Likewise.
19962         * tests/test-rbtree_list.c: Likewise.
19963         * tests/test-rbtree_oset.c: Likewise.
19964         * tests/test-rbtreehash_list.c: Likewise.
19965         * tests/test-readlink.c: Likewise.
19966         * tests/test-remove.c: Likewise.
19967         * tests/test-rename.c: Likewise.
19968         * tests/test-renameat.c: Likewise.
19969         * tests/test-rmdir.c: Likewise.
19970         * tests/test-round1.c: Likewise.
19971         * tests/test-roundf1.c: Likewise.
19972         * tests/test-roundl.c: Likewise.
19973         * tests/test-safe-alloc.c: Likewise.
19974         * tests/test-sameacls.c: Likewise.
19975         * tests/test-set-mode-acl.c: Likewise.
19976         * tests/test-setenv.c: Likewise.
19977         * tests/test-sigaction.c: Likewise.
19978         * tests/test-signbit.c: Likewise.
19979         * tests/test-sleep.c: Likewise.
19980         * tests/test-snprintf-posix.c: Likewise.
19981         * tests/test-snprintf.c: Likewise.
19982         * tests/test-sprintf-posix.c: Likewise.
19983         * tests/test-stat-time.c: Likewise.
19984         * tests/test-stat.c: Likewise.
19985         * tests/test-strcasestr.c: Likewise.
19986         * tests/test-strchrnul.c: Likewise.
19987         * tests/test-strerror.c: Likewise.
19988         * tests/test-striconv.c: Likewise.
19989         * tests/test-striconveh.c: Likewise.
19990         * tests/test-striconveha.c: Likewise.
19991         * tests/test-strsignal.c: Likewise.
19992         * tests/test-strstr.c: Likewise.
19993         * tests/test-strtod.c: Likewise.
19994         * tests/test-strverscmp.c: Likewise.
19995         * tests/test-symlink.c: Likewise.
19996         * tests/test-symlinkat.c: Likewise.
19997         * tests/test-trunc1.c: Likewise.
19998         * tests/test-trunc2.c: Likewise.
19999         * tests/test-truncf1.c: Likewise.
20000         * tests/test-truncf2.c: Likewise.
20001         * tests/test-truncl.c: Likewise.
20002         * tests/test-uname.c: Likewise.
20003         * tests/test-unlink.c: Likewise.
20004         * tests/test-unlinkat.c: Likewise.
20005         * tests/test-unsetenv.c: Likewise.
20006         * tests/test-usleep.c: Likewise.
20007         * tests/test-utimens.c: Likewise.
20008         * tests/test-utimensat.c: Likewise.
20009         * tests/test-vasnprintf-posix.c: Likewise.
20010         * tests/test-vasnprintf-posix2.c: Likewise.
20011         * tests/test-vasnprintf.c: Likewise.
20012         * tests/test-vasprintf-posix.c: Likewise.
20013         * tests/test-vasprintf.c: Likewise.
20014         * tests/test-vdprintf-posix.c: Likewise.
20015         * tests/test-vfprintf-posix.c: Likewise.
20016         * tests/test-vprintf-posix.c: Likewise.
20017         * tests/test-vsnprintf-posix.c: Likewise.
20018         * tests/test-vsnprintf.c: Likewise.
20019         * tests/test-vsprintf-posix.c: Likewise.
20020         * tests/test-wcrtomb.c: Likewise.
20021         * tests/test-wcsnrtombs.c: Likewise.
20022         * tests/test-wcsrtombs.c: Likewise.
20023         * tests/test-wctype.c: Likewise.
20024         * tests/test-wcwidth.c: Likewise.
20025         * tests/test-xfprintf-posix.c: Likewise.
20026         * tests/test-xmemdup0.c: Likewise.
20027         * tests/test-xprintf-posix.c: Likewise.
20028         * tests/test-xvasprintf.c: Likewise.
20029         * tests/unicase/test-locale-language.c: Likewise.
20030         * tests/unicase/test-mapping-part1.h: Likewise.
20031         * tests/unicase/test-predicate-part1.h: Likewise.
20032         * tests/unicase/test-u8-casecmp.c: Likewise.
20033         * tests/unicase/test-u8-casecoll.c: Likewise.
20034         * tests/unicase/test-u8-casefold.c: Likewise.
20035         * tests/unicase/test-u8-is-cased.c: Likewise.
20036         * tests/unicase/test-u8-is-casefolded.c: Likewise.
20037         * tests/unicase/test-u8-is-lowercase.c: Likewise.
20038         * tests/unicase/test-u8-is-titlecase.c: Likewise.
20039         * tests/unicase/test-u8-is-uppercase.c: Likewise.
20040         * tests/unicase/test-u8-tolower.c: Likewise.
20041         * tests/unicase/test-u8-totitle.c: Likewise.
20042         * tests/unicase/test-u8-toupper.c: Likewise.
20043         * tests/unicase/test-u16-casecmp.c: Likewise.
20044         * tests/unicase/test-u16-casecoll.c: Likewise.
20045         * tests/unicase/test-u16-casefold.c: Likewise.
20046         * tests/unicase/test-u16-is-cased.c: Likewise.
20047         * tests/unicase/test-u16-is-casefolded.c: Likewise.
20048         * tests/unicase/test-u16-is-lowercase.c: Likewise.
20049         * tests/unicase/test-u16-is-titlecase.c: Likewise.
20050         * tests/unicase/test-u16-is-uppercase.c: Likewise.
20051         * tests/unicase/test-u16-tolower.c: Likewise.
20052         * tests/unicase/test-u16-totitle.c: Likewise.
20053         * tests/unicase/test-u16-toupper.c: Likewise.
20054         * tests/unicase/test-u32-casecmp.c: Likewise.
20055         * tests/unicase/test-u32-casecoll.c: Likewise.
20056         * tests/unicase/test-u32-casefold.c: Likewise.
20057         * tests/unicase/test-u32-is-cased.c: Likewise.
20058         * tests/unicase/test-u32-is-casefolded.c: Likewise.
20059         * tests/unicase/test-u32-is-lowercase.c: Likewise.
20060         * tests/unicase/test-u32-is-titlecase.c: Likewise.
20061         * tests/unicase/test-u32-is-uppercase.c: Likewise.
20062         * tests/unicase/test-u32-tolower.c: Likewise.
20063         * tests/unicase/test-u32-totitle.c: Likewise.
20064         * tests/unicase/test-u32-toupper.c: Likewise.
20065         * tests/unicase/test-ulc-casecmp.c: Likewise.
20066         * tests/unicase/test-ulc-casecoll.c: Likewise.
20067         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20068         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
20069         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20070         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20071         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20072         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20073         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20074         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20075         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20076         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20077         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20078         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20079         * tests/unictype/test-bidi_byname.c: Likewise.
20080         * tests/unictype/test-bidi_name.c: Likewise.
20081         * tests/unictype/test-bidi_of.c: Likewise.
20082         * tests/unictype/test-bidi_test.c: Likewise.
20083         * tests/unictype/test-block_list.c: Likewise.
20084         * tests/unictype/test-block_of.c: Likewise.
20085         * tests/unictype/test-block_test.c: Likewise.
20086         * tests/unictype/test-categ_and.c: Likewise.
20087         * tests/unictype/test-categ_and_not.c: Likewise.
20088         * tests/unictype/test-categ_byname.c: Likewise.
20089         * tests/unictype/test-categ_name.c: Likewise.
20090         * tests/unictype/test-categ_none.c: Likewise.
20091         * tests/unictype/test-categ_of.c: Likewise.
20092         * tests/unictype/test-categ_or.c: Likewise.
20093         * tests/unictype/test-categ_test_withtable.c: Likewise.
20094         * tests/unictype/test-combining.c: Likewise.
20095         * tests/unictype/test-decdigit.c: Likewise.
20096         * tests/unictype/test-digit.c: Likewise.
20097         * tests/unictype/test-mirror.c: Likewise.
20098         * tests/unictype/test-numeric.c: Likewise.
20099         * tests/unictype/test-pr_byname.c: Likewise.
20100         * tests/unictype/test-pr_test.c: Likewise.
20101         * tests/unictype/test-predicate-part1.h: Likewise.
20102         * tests/unictype/test-scripts.c: Likewise.
20103         * tests/unictype/test-sy_c_ident.c: Likewise.
20104         * tests/unictype/test-sy_java_ident.c: Likewise.
20105         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
20106         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
20107         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
20108         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
20109         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
20110         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
20111         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
20112         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
20113         * tests/uninorm/test-canonical-decomposition.c: Likewise.
20114         * tests/uninorm/test-compat-decomposition.c: Likewise.
20115         * tests/uninorm/test-composition.c: Likewise.
20116         * tests/uninorm/test-decomposing-form.c: Likewise.
20117         * tests/uninorm/test-decomposition.c: Likewise.
20118         * tests/uninorm/test-u8-nfc.c: Likewise.
20119         * tests/uninorm/test-u8-nfd.c: Likewise.
20120         * tests/uninorm/test-u8-nfkc.c: Likewise.
20121         * tests/uninorm/test-u8-nfkd.c: Likewise.
20122         * tests/uninorm/test-u8-normcmp.c: Likewise.
20123         * tests/uninorm/test-u8-normcoll.c: Likewise.
20124         * tests/uninorm/test-u16-nfc.c: Likewise.
20125         * tests/uninorm/test-u16-nfd.c: Likewise.
20126         * tests/uninorm/test-u16-nfkc.c: Likewise.
20127         * tests/uninorm/test-u16-nfkd.c: Likewise.
20128         * tests/uninorm/test-u16-normcmp.c: Likewise.
20129         * tests/uninorm/test-u16-normcoll.c: Likewise.
20130         * tests/uninorm/test-u32-nfc.c: Likewise.
20131         * tests/uninorm/test-u32-nfd.c: Likewise.
20132         * tests/uninorm/test-u32-nfkc.c: Likewise.
20133         * tests/uninorm/test-u32-nfkd.c: Likewise.
20134         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20135         * tests/uninorm/test-u32-normcmp.c: Likewise.
20136         * tests/uninorm/test-u32-normcoll.c: Likewise.
20137         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
20138         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20139         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20140         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20141         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20142         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20143         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20144         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20145         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20146         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20147         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20148         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20149         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20150         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20151         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20152         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20153         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20154         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20155         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20156         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20157         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20158         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20159         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20160         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20161         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20162         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20163         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20164         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20165         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20166         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
20167         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
20168         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
20169         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
20170         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20171         * tests/uniwidth/test-u8-width.c: Likewise.
20172         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20173         * tests/uniwidth/test-u16-width.c: Likewise.
20174         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20175         * tests/uniwidth/test-u32-width.c: Likewise.
20176         * tests/uniwidth/test-uc_width.c: Likewise.
20177         * tests/uniwidth/test-uc_width2.c: Likewise.
20178         * modules/acl-tests (Files): Add tests/macros.h.
20179         * modules/areadlink-tests (Files): Likewise.
20180         * modules/areadlink-with-size-tests (Files): Likewise.
20181         * modules/areadlinkat-tests (Files): Likewise.
20182         * modules/areadlinkat-with-size-tests (Files): Likewise.
20183         * modules/argmatch-tests (Files): Likewise.
20184         * modules/argv-iter-tests (Files): Likewise.
20185         * modules/array-list-tests (Files): Likewise.
20186         * modules/array-mergesort-tests (Files): Likewise.
20187         * modules/array-oset-tests (Files): Likewise.
20188         * modules/avltree-list-tests (Files): Likewise.
20189         * modules/avltree-oset-tests (Files): Likewise.
20190         * modules/avltreehash-list-tests (Files): Likewise.
20191         * modules/base64-tests (Files): Likewise.
20192         * modules/binary-io-tests (Files): Likewise.
20193         * modules/bitrotate-tests (Files): Likewise.
20194         * modules/btowc-tests (Files): Likewise.
20195         * modules/byteswap-tests (Files): Likewise.
20196         * modules/c-ctype-tests (Files): Likewise.
20197         * modules/c-stack-tests (Files): Likewise.
20198         * modules/c-strcase-tests (Files): Likewise.
20199         * modules/c-strcasestr-tests (Files): Likewise.
20200         * modules/c-strstr-tests (Files): Likewise.
20201         * modules/canonicalize-lgpl-tests (Files): Likewise.
20202         * modules/canonicalize-tests (Files): Likewise.
20203         * modules/carray-list-tests (Files): Likewise.
20204         * modules/ceilf-tests (Files): Likewise.
20205         * modules/ceill-tests (Files): Likewise.
20206         * modules/chown-tests (Files): Likewise.
20207         * modules/cloexec-tests (Files): Likewise.
20208         * modules/copy-file-tests (Files): Likewise.
20209         * modules/count-one-bits-tests (Files): Likewise.
20210         * modules/dprintf-posix-tests (Files): Likewise.
20211         * modules/dup2-tests (Files): Likewise.
20212         * modules/dup3-tests (Files): Likewise.
20213         * modules/duplocale-tests (Files): Likewise.
20214         * modules/fbufmode-tests (Files): Likewise.
20215         * modules/fchdir-tests (Files): Likewise.
20216         * modules/fcntl-safer-tests (Files): Likewise.
20217         * modules/fcntl-tests (Files): Likewise.
20218         * modules/fdopendir-tests (Files): Likewise.
20219         * modules/fdutimensat-tests (Files): Likewise.
20220         * modules/fflush-tests (Files): Likewise.
20221         * modules/filevercmp-tests (Files): Likewise.
20222         * modules/flock-tests (Files): Likewise.
20223         * modules/floorf-tests (Files): Likewise.
20224         * modules/floorl-tests (Files): Likewise.
20225         * modules/fnmatch-tests (Files): Likewise.
20226         * modules/fopen-safer-tests (Files): Likewise.
20227         * modules/fopen-tests (Files): Likewise.
20228         * modules/fpending-tests (Files): Likewise.
20229         * modules/fprintf-posix-tests (Files): Likewise.
20230         * modules/fpurge-tests (Files): Likewise.
20231         * modules/freadable-tests (Files): Likewise.
20232         * modules/freadahead-tests (Files): Likewise.
20233         * modules/freading-tests (Files): Likewise.
20234         * modules/freadptr-tests (Files): Likewise.
20235         * modules/freadseek-tests (Files): Likewise.
20236         * modules/freopen-tests (Files): Likewise.
20237         * modules/frexp-nolibm-tests (Files): Likewise.
20238         * modules/frexp-tests (Files): Likewise.
20239         * modules/frexpl-nolibm-tests (Files): Likewise.
20240         * modules/frexpl-tests (Files): Likewise.
20241         * modules/fseek-tests (Files): Likewise.
20242         * modules/fseeko-tests (Files): Likewise.
20243         * modules/fstrcmp-tests (Files): Likewise.
20244         * modules/fsync-tests (Files): Likewise.
20245         * modules/ftell-tests (Files): Likewise.
20246         * modules/ftello-tests (Files): Likewise.
20247         * modules/func-tests (Files): Likewise.
20248         * modules/futimens-tests (Files): Likewise.
20249         * modules/fwritable-tests (Files): Likewise.
20250         * modules/fwriting-tests (Files): Likewise.
20251         * modules/getcwd-tests (Files): Likewise.
20252         * modules/getdate-tests (Files): Likewise.
20253         * modules/getdelim-tests (Files): Likewise.
20254         * modules/getdtablesize-tests (Files): Likewise.
20255         * modules/getgroups-tests (Files): Likewise.
20256         * modules/getline-tests (Files): Likewise.
20257         * modules/getndelim2-tests (Files): Likewise.
20258         * modules/glob-tests (Files): Likewise.
20259         * modules/hash-tests (Files): Likewise.
20260         * modules/i-ring-tests (Files): Likewise.
20261         * modules/iconv-tests (Files): Likewise.
20262         * modules/iconv_open-utf-tests (Files): Likewise.
20263         * modules/idpriv-drop-tests (Files): Likewise.
20264         * modules/idpriv-droptemp-tests (Files): Likewise.
20265         * modules/inet_ntop-tests (Files): Likewise.
20266         * modules/inet_pton-tests (Files): Likewise.
20267         * modules/isblank-tests (Files): Likewise.
20268         * modules/isfinite-tests (Files): Likewise.
20269         * modules/isinf-tests (Files): Likewise.
20270         * modules/isnan-tests (Files): Likewise.
20271         * modules/isnand-nolibm-tests (Files): Likewise.
20272         * modules/isnand-tests (Files): Likewise.
20273         * modules/isnanf-nolibm-tests (Files): Likewise.
20274         * modules/isnanf-tests (Files): Likewise.
20275         * modules/isnanl-nolibm-tests (Files): Likewise.
20276         * modules/isnanl-tests (Files): Likewise.
20277         * modules/lchown-tests (Files): Likewise.
20278         * modules/ldexpl-tests (Files): Likewise.
20279         * modules/link-tests (Files): Likewise.
20280         * modules/linkat-tests (Files): Likewise.
20281         * modules/linked-list-tests (Files): Likewise.
20282         * modules/linkedhash-list-tests (Files): Likewise.
20283         * modules/localename-tests (Files): Likewise.
20284         * modules/lseek-tests (Files): Likewise.
20285         * modules/lstat-tests (Files): Likewise.
20286         * modules/mbmemcasecmp-tests (Files): Likewise.
20287         * modules/mbmemcasecoll-tests (Files): Likewise.
20288         * modules/mbrtowc-tests (Files): Likewise.
20289         * modules/mbscasecmp-tests (Files): Likewise.
20290         * modules/mbscasestr-tests (Files): Likewise.
20291         * modules/mbschr-tests (Files): Likewise.
20292         * modules/mbscspn-tests (Files): Likewise.
20293         * modules/mbsinit-tests (Files): Likewise.
20294         * modules/mbsncasecmp-tests (Files): Likewise.
20295         * modules/mbsnrtowcs-tests (Files): Likewise.
20296         * modules/mbspbrk-tests (Files): Likewise.
20297         * modules/mbspcasecmp-tests (Files): Likewise.
20298         * modules/mbsrchr-tests (Files): Likewise.
20299         * modules/mbsrtowcs-tests (Files): Likewise.
20300         * modules/mbsspn-tests (Files): Likewise.
20301         * modules/mbsstr-tests (Files): Likewise.
20302         * modules/memchr-tests (Files): Likewise.
20303         * modules/memchr2-tests (Files): Likewise.
20304         * modules/memcmp-tests (Files): Likewise.
20305         * modules/memmem-tests (Files): Likewise.
20306         * modules/memrchr-tests (Files): Likewise.
20307         * modules/mkdir-tests (Files): Likewise.
20308         * modules/mkfifo-tests (Files): Likewise.
20309         * modules/mkfifoat-tests (Files): Likewise.
20310         * modules/mknod-tests (Files): Likewise.
20311         * modules/nanosleep-tests (Files): Likewise.
20312         * modules/nl_langinfo-tests (Files): Likewise.
20313         * modules/obstack-printf-tests (Files): Likewise.
20314         * modules/open-tests (Files): Likewise.
20315         * modules/openat-tests (Files): Likewise.
20316         * modules/pipe-filter-gi-tests (Files): Likewise.
20317         * modules/pipe-filter-ii-tests (Files): Likewise.
20318         * modules/pipe2-tests (Files): Likewise.
20319         * modules/popen-safer-tests (Files): Likewise.
20320         * modules/popen-tests (Files): Likewise.
20321         * modules/posixtm-tests (Files): Likewise.
20322         * modules/pread-tests (Files): Likewise.
20323         * modules/printf-frexp-tests (Files): Likewise.
20324         * modules/printf-frexpl-tests (Files): Likewise.
20325         * modules/printf-posix-tests (Files): Likewise.
20326         * modules/priv-set-tests (Files): Likewise.
20327         * modules/quotearg-tests (Files): Likewise.
20328         * modules/random_r-tests (Files): Likewise.
20329         * modules/rawmemchr-tests (Files): Likewise.
20330         * modules/rbtree-list-tests (Files): Likewise.
20331         * modules/rbtree-oset-tests (Files): Likewise.
20332         * modules/rbtreehash-list-tests (Files): Likewise.
20333         * modules/readlink-tests (Files): Likewise.
20334         * modules/remove-tests (Files): Likewise.
20335         * modules/rename-tests (Files): Likewise.
20336         * modules/renameat-tests (Files): Likewise.
20337         * modules/rmdir-tests (Files): Likewise.
20338         * modules/round-tests (Files): Likewise.
20339         * modules/roundf-tests (Files): Likewise.
20340         * modules/roundl-tests (Files): Likewise.
20341         * modules/safe-alloc-tests (Files): Likewise.
20342         * modules/setenv-tests (Files): Likewise.
20343         * modules/sigaction-tests (Files): Likewise.
20344         * modules/signbit-tests (Files): Likewise.
20345         * modules/sleep-tests (Files): Likewise.
20346         * modules/snprintf-posix-tests (Files): Likewise.
20347         * modules/snprintf-tests (Files): Likewise.
20348         * modules/sprintf-posix-tests (Files): Likewise.
20349         * modules/stat-tests (Files): Likewise.
20350         * modules/stat-time-tests (Files): Likewise.
20351         * modules/strcasestr-tests (Files): Likewise.
20352         * modules/strchrnul-tests (Files): Likewise.
20353         * modules/strerror-tests (Files): Likewise.
20354         * modules/striconv-tests (Files): Likewise.
20355         * modules/striconveh-tests (Files): Likewise.
20356         * modules/striconveha-tests (Files): Likewise.
20357         * modules/strsignal-tests (Files): Likewise.
20358         * modules/strstr-tests (Files): Likewise.
20359         * modules/strtod-tests (Files): Likewise.
20360         * modules/strverscmp-tests (Files): Likewise.
20361         * modules/symlink-tests (Files): Likewise.
20362         * modules/symlinkat-tests (Files): Likewise.
20363         * modules/trunc-tests (Files): Likewise.
20364         * modules/truncf-tests (Files): Likewise.
20365         * modules/truncl-tests (Files): Likewise.
20366         * modules/uname-tests (Files): Likewise.
20367         * modules/unicase/cased-tests (Files): Likewise.
20368         * modules/unicase/ignorable-tests (Files): Likewise.
20369         * modules/unicase/locale-language-tests (Files): Likewise.
20370         * modules/unicase/tolower-tests (Files): Likewise.
20371         * modules/unicase/totitle-tests (Files): Likewise.
20372         * modules/unicase/toupper-tests (Files): Likewise.
20373         * modules/unicase/u8-casecmp-tests (Files): Likewise.
20374         * modules/unicase/u8-casecoll-tests (Files): Likewise.
20375         * modules/unicase/u8-casefold-tests (Files): Likewise.
20376         * modules/unicase/u8-is-cased-tests (Files): Likewise.
20377         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
20378         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
20379         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
20380         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
20381         * modules/unicase/u8-tolower-tests (Files): Likewise.
20382         * modules/unicase/u8-totitle-tests (Files): Likewise.
20383         * modules/unicase/u8-toupper-tests (Files): Likewise.
20384         * modules/unicase/u16-casecmp-tests (Files): Likewise.
20385         * modules/unicase/u16-casecoll-tests (Files): Likewise.
20386         * modules/unicase/u16-casefold-tests (Files): Likewise.
20387         * modules/unicase/u16-is-cased-tests (Files): Likewise.
20388         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
20389         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
20390         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
20391         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
20392         * modules/unicase/u16-tolower-tests (Files): Likewise.
20393         * modules/unicase/u16-totitle-tests (Files): Likewise.
20394         * modules/unicase/u16-toupper-tests (Files): Likewise.
20395         * modules/unicase/u32-casecmp-tests (Files): Likewise.
20396         * modules/unicase/u32-casecoll-tests (Files): Likewise.
20397         * modules/unicase/u32-casefold-tests (Files): Likewise.
20398         * modules/unicase/u32-is-cased-tests (Files): Likewise.
20399         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
20400         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
20401         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
20402         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
20403         * modules/unicase/u32-tolower-tests (Files): Likewise.
20404         * modules/unicase/u32-totitle-tests (Files): Likewise.
20405         * modules/unicase/u32-toupper-tests (Files): Likewise.
20406         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
20407         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
20408         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
20409         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
20410         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
20411         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
20412         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
20413         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
20414         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
20415         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
20416         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
20417         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
20418         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
20419         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
20420         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
20421         * modules/unictype/bidicategory-name-tests (Files): Likewise.
20422         * modules/unictype/bidicategory-of-tests (Files): Likewise.
20423         * modules/unictype/bidicategory-test-tests (Files): Likewise.
20424         * modules/unictype/block-list-tests (Files): Likewise.
20425         * modules/unictype/block-of-tests (Files): Likewise.
20426         * modules/unictype/block-test-tests (Files): Likewise.
20427         * modules/unictype/category-C-tests (Files): Likewise.
20428         * modules/unictype/category-Cc-tests (Files): Likewise.
20429         * modules/unictype/category-Cf-tests (Files): Likewise.
20430         * modules/unictype/category-Cn-tests (Files): Likewise.
20431         * modules/unictype/category-Co-tests (Files): Likewise.
20432         * modules/unictype/category-Cs-tests (Files): Likewise.
20433         * modules/unictype/category-L-tests (Files): Likewise.
20434         * modules/unictype/category-Ll-tests (Files): Likewise.
20435         * modules/unictype/category-Lm-tests (Files): Likewise.
20436         * modules/unictype/category-Lo-tests (Files): Likewise.
20437         * modules/unictype/category-Lt-tests (Files): Likewise.
20438         * modules/unictype/category-Lu-tests (Files): Likewise.
20439         * modules/unictype/category-M-tests (Files): Likewise.
20440         * modules/unictype/category-Mc-tests (Files): Likewise.
20441         * modules/unictype/category-Me-tests (Files): Likewise.
20442         * modules/unictype/category-Mn-tests (Files): Likewise.
20443         * modules/unictype/category-N-tests (Files): Likewise.
20444         * modules/unictype/category-Nd-tests (Files): Likewise.
20445         * modules/unictype/category-Nl-tests (Files): Likewise.
20446         * modules/unictype/category-No-tests (Files): Likewise.
20447         * modules/unictype/category-P-tests (Files): Likewise.
20448         * modules/unictype/category-Pc-tests (Files): Likewise.
20449         * modules/unictype/category-Pd-tests (Files): Likewise.
20450         * modules/unictype/category-Pe-tests (Files): Likewise.
20451         * modules/unictype/category-Pf-tests (Files): Likewise.
20452         * modules/unictype/category-Pi-tests (Files): Likewise.
20453         * modules/unictype/category-Po-tests (Files): Likewise.
20454         * modules/unictype/category-Ps-tests (Files): Likewise.
20455         * modules/unictype/category-S-tests (Files): Likewise.
20456         * modules/unictype/category-Sc-tests (Files): Likewise.
20457         * modules/unictype/category-Sk-tests (Files): Likewise.
20458         * modules/unictype/category-Sm-tests (Files): Likewise.
20459         * modules/unictype/category-So-tests (Files): Likewise.
20460         * modules/unictype/category-Z-tests (Files): Likewise.
20461         * modules/unictype/category-Zl-tests (Files): Likewise.
20462         * modules/unictype/category-Zp-tests (Files): Likewise.
20463         * modules/unictype/category-Zs-tests (Files): Likewise.
20464         * modules/unictype/category-and-not-tests (Files): Likewise.
20465         * modules/unictype/category-and-tests (Files): Likewise.
20466         * modules/unictype/category-byname-tests (Files): Likewise.
20467         * modules/unictype/category-name-tests (Files): Likewise.
20468         * modules/unictype/category-none-tests (Files): Likewise.
20469         * modules/unictype/category-of-tests (Files): Likewise.
20470         * modules/unictype/category-or-tests (Files): Likewise.
20471         * modules/unictype/category-test-withtable-tests (Files): Likewise.
20472         * modules/unictype/combining-class-tests (Files): Likewise.
20473         * modules/unictype/ctype-alnum-tests (Files): Likewise.
20474         * modules/unictype/ctype-alpha-tests (Files): Likewise.
20475         * modules/unictype/ctype-blank-tests (Files): Likewise.
20476         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
20477         * modules/unictype/ctype-digit-tests (Files): Likewise.
20478         * modules/unictype/ctype-graph-tests (Files): Likewise.
20479         * modules/unictype/ctype-lower-tests (Files): Likewise.
20480         * modules/unictype/ctype-print-tests (Files): Likewise.
20481         * modules/unictype/ctype-punct-tests (Files): Likewise.
20482         * modules/unictype/ctype-space-tests (Files): Likewise.
20483         * modules/unictype/ctype-upper-tests (Files): Likewise.
20484         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
20485         * modules/unictype/decimal-digit-tests (Files): Likewise.
20486         * modules/unictype/digit-tests (Files): Likewise.
20487         * modules/unictype/mirror-tests (Files): Likewise.
20488         * modules/unictype/numeric-tests (Files): Likewise.
20489         * modules/unictype/property-alphabetic-tests (Files): Likewise.
20490         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
20491         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
20492         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
20493         Likewise.
20494         * modules/unictype/property-bidi-block-separator-tests (Files):
20495         Likewise.
20496         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
20497         Likewise.
20498         * modules/unictype/property-bidi-common-separator-tests (Files):
20499         Likewise.
20500         * modules/unictype/property-bidi-control-tests (Files): Likewise.
20501         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
20502         Likewise.
20503         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
20504         Likewise.
20505         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
20506         Likewise.
20507         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
20508         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
20509         Likewise.
20510         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
20511         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
20512         Likewise.
20513         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
20514         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
20515         * modules/unictype/property-bidi-segment-separator-tests (Files):
20516         Likewise.
20517         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
20518         * modules/unictype/property-byname-tests (Files): Likewise.
20519         * modules/unictype/property-combining-tests (Files): Likewise.
20520         * modules/unictype/property-composite-tests (Files): Likewise.
20521         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
20522         * modules/unictype/property-dash-tests (Files): Likewise.
20523         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
20524         * modules/unictype/property-default-ignorable-code-point-tests (Files):
20525         Likewise.
20526         * modules/unictype/property-deprecated-tests (Files): Likewise.
20527         * modules/unictype/property-diacritic-tests (Files): Likewise.
20528         * modules/unictype/property-extender-tests (Files): Likewise.
20529         * modules/unictype/property-format-control-tests (Files): Likewise.
20530         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
20531         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
20532         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
20533         * modules/unictype/property-hex-digit-tests (Files): Likewise.
20534         * modules/unictype/property-hyphen-tests (Files): Likewise.
20535         * modules/unictype/property-id-continue-tests (Files): Likewise.
20536         * modules/unictype/property-id-start-tests (Files): Likewise.
20537         * modules/unictype/property-ideographic-tests (Files): Likewise.
20538         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
20539         * modules/unictype/property-ids-trinary-operator-tests (Files):
20540         Likewise.
20541         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
20542         * modules/unictype/property-iso-control-tests (Files): Likewise.
20543         * modules/unictype/property-join-control-tests (Files): Likewise.
20544         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
20545         * modules/unictype/property-line-separator-tests (Files): Likewise.
20546         * modules/unictype/property-logical-order-exception-tests (Files):
20547         Likewise.
20548         * modules/unictype/property-lowercase-tests (Files): Likewise.
20549         * modules/unictype/property-math-tests (Files): Likewise.
20550         * modules/unictype/property-non-break-tests (Files): Likewise.
20551         * modules/unictype/property-not-a-character-tests (Files): Likewise.
20552         * modules/unictype/property-numeric-tests (Files): Likewise.
20553         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
20554         * modules/unictype/property-other-default-ignorable-code-point-tests
20555         (Files): Likewise.
20556         * modules/unictype/property-other-grapheme-extend-tests (Files):
20557         Likewise.
20558         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
20559         * modules/unictype/property-other-id-start-tests (Files): Likewise.
20560         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
20561         * modules/unictype/property-other-math-tests (Files): Likewise.
20562         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
20563         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
20564         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
20565         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
20566         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
20567         * modules/unictype/property-private-use-tests (Files): Likewise.
20568         * modules/unictype/property-punctuation-tests (Files): Likewise.
20569         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
20570         * modules/unictype/property-radical-tests (Files): Likewise.
20571         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
20572         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
20573         * modules/unictype/property-space-tests (Files): Likewise.
20574         * modules/unictype/property-terminal-punctuation-tests (Files):
20575         Likewise.
20576         * modules/unictype/property-test-tests (Files): Likewise.
20577         * modules/unictype/property-titlecase-tests (Files): Likewise.
20578         * modules/unictype/property-unassigned-code-value-tests (Files):
20579         Likewise.
20580         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
20581         * modules/unictype/property-uppercase-tests (Files): Likewise.
20582         * modules/unictype/property-variation-selector-tests (Files): Likewise.
20583         * modules/unictype/property-white-space-tests (Files): Likewise.
20584         * modules/unictype/property-xid-continue-tests (Files): Likewise.
20585         * modules/unictype/property-xid-start-tests (Files): Likewise.
20586         * modules/unictype/property-zero-width-tests (Files): Likewise.
20587         * modules/unictype/scripts-tests (Files): Likewise.
20588         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
20589         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
20590         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
20591         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
20592         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
20593         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
20594         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
20595         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
20596         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
20597         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
20598         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
20599         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
20600         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
20601         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
20602         * modules/uninorm/composition-tests (Files): Likewise.
20603         * modules/uninorm/decomposing-form-tests (Files): Likewise.
20604         * modules/uninorm/decomposition-tests (Files): Likewise.
20605         * modules/uninorm/filter-tests (Files): Likewise.
20606         * modules/uninorm/nfc-tests (Files): Likewise.
20607         * modules/uninorm/nfd-tests (Files): Likewise.
20608         * modules/uninorm/nfkc-tests (Files): Likewise.
20609         * modules/uninorm/nfkd-tests (Files): Likewise.
20610         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
20611         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
20612         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
20613         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
20614         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
20615         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
20616         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
20617         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
20618         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
20619         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
20620         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
20621         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
20622         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
20623         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
20624         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
20625         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
20626         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
20627         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
20628         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
20629         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
20630         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
20631         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
20632         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
20633         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
20634         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
20635         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
20636         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
20637         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
20638         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
20639         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
20640         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
20641         * modules/uniwidth/u8-width-tests (Files): Likewise.
20642         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
20643         * modules/uniwidth/u16-width-tests (Files): Likewise.
20644         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
20645         * modules/uniwidth/u32-width-tests (Files): Likewise.
20646         * modules/uniwidth/width-tests (Files): Likewise.
20647         * modules/unlink-tests (Files): Likewise.
20648         * modules/unsetenv-tests (Files): Likewise.
20649         * modules/usleep-tests (Files): Likewise.
20650         * modules/utimens-tests (Files): Likewise.
20651         * modules/utimensat-tests (Files): Likewise.
20652         * modules/vasnprintf-posix-tests (Files): Likewise.
20653         * modules/vasnprintf-tests (Files): Likewise.
20654         * modules/vasprintf-posix-tests (Files): Likewise.
20655         * modules/vasprintf-tests (Files): Likewise.
20656         * modules/vdprintf-posix-tests (Files): Likewise.
20657         * modules/vfprintf-posix-tests (Files): Likewise.
20658         * modules/vprintf-posix-tests (Files): Likewise.
20659         * modules/vsnprintf-posix-tests (Files): Likewise.
20660         * modules/vsnprintf-tests (Files): Likewise.
20661         * modules/vsprintf-posix-tests (Files): Likewise.
20662         * modules/wcrtomb-tests (Files): Likewise.
20663         * modules/wcsnrtombs-tests (Files): Likewise.
20664         * modules/wcsrtombs-tests (Files): Likewise.
20665         * modules/wctype-tests (Files): Likewise.
20666         * modules/wcwidth-tests (Files): Likewise.
20667         * modules/xmemdup0-tests (Files): Likewise.
20668         * modules/xprintf-posix-tests (Files): Likewise.
20669         * modules/xvasprintf-tests (Files): Likewise.
20670
20671 2009-12-24  Eric Blake  <ebb9@byu.net>
20672
20673         test-nanosleep: fix typo
20674         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
20675         patch.
20676         Reported by Bruno Haible.
20677
20678 2009-12-24  Bruno Haible  <bruno@clisp.org>
20679
20680         Reduce namespace pollution on glibc systems.
20681         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
20682         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
20683         systems.
20684         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
20685         <getopt.h> on glibc systems.
20686         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
20687         systems.
20688         * lib/fcntl.c: Include <unistd.h> here instead.
20689
20690 2009-12-24  Bruno Haible  <bruno@clisp.org>
20691
20692         * lib/stdlib.in.h (includes): Fix typo in today's commit.
20693
20694 2009-12-24  Eric Blake  <ebb9@byu.net>
20695
20696         tests: add signature checks
20697         * tests/signature.h (SIGNATURE_CHECK): New file.
20698         * modules/atexit-tests (Files): Use it.
20699         * modules/btowc-tests (Files): Likewise.
20700         * modules/canonicalize-lgpl-tests (Files): Likewise.
20701         * modules/ceilf-tests (Files): Likewise.
20702         * modules/ceill-tests (Files): Likewise.
20703         * modules/chown-tests (Files): Likewise.
20704         * modules/dprintf-posix-tests (Files): Likewise.
20705         * modules/dup2-tests (Files): Likewise.
20706         * modules/dup3-tests (Files): Likewise.
20707         * modules/duplocale-tests (Files): Likewise.
20708         * modules/fchdir-tests (Files): Likewise.
20709         * modules/fcntl-tests (Files): Likewise.
20710         * modules/fdopendir-tests (Files): Likewise.
20711         * modules/fflush-tests (Files): Likewise.
20712         * modules/flock-tests (Files): Likewise.
20713         * modules/floorf-tests (Files): Likewise.
20714         * modules/floorl-tests (Files): Likewise.
20715         * modules/fnmatch-tests (Files): Likewise.
20716         * modules/fopen-tests (Files): Likewise.
20717         * modules/fprintf-posix-tests (Files): Likewise.
20718         * modules/freopen-tests (Files): Likewise.
20719         * modules/frexp-nolibm-tests (Files): Likewise.
20720         * modules/frexp-tests (Files): Likewise.
20721         * modules/frexpl-nolibm-tests (Files): Likewise.
20722         * modules/frexpl-tests (Files): Likewise.
20723         * modules/fseek-tests (Files): Likewise.
20724         * modules/fseeko-tests (Files): Likewise.
20725         * modules/fsync-tests (Files): Likewise.
20726         * modules/ftell-tests (Files): Likewise.
20727         * modules/ftello-tests (Files): Likewise.
20728         * modules/futimens-tests (Files): Likewise.
20729         * modules/getaddrinfo-tests (Files): Likewise.
20730         * modules/getcwd-tests (Files): Likewise.
20731         * modules/getdelim-tests (Files): Likewise.
20732         * modules/getdtablesize-tests (Files): Likewise.
20733         * modules/getgroups-tests (Files): Likewise.
20734         * modules/gethostname-tests (Files): Likewise.
20735         * modules/getline-tests (Files): Likewise.
20736         * modules/getopt-posix-tests (Files): Likewise.
20737         * modules/gettimeofday-tests (Files): Likewise.
20738         * modules/glob-tests (Files): Likewise.
20739         * modules/iconv-tests (Files): Likewise.
20740         * modules/inet_ntop-tests (Files): Likewise.
20741         * modules/inet_pton-tests (Files): Likewise.
20742         * modules/isblank-tests (Files): Likewise.
20743         * modules/lchown-tests (Files): Likewise.
20744         * modules/ldexpl-tests (Files): Likewise.
20745         * modules/link-tests (Files): Likewise.
20746         * modules/linkat-tests (Files): Likewise.
20747         * modules/lseek-tests (Files): Likewise.
20748         * modules/lstat-tests (Files): Likewise.
20749         * modules/mbrtowc-tests (Files): Likewise.
20750         * modules/mbsinit-tests (Files): Likewise.
20751         * modules/mbsnrtowcs-tests (Files): Likewise.
20752         * modules/mbsrtowcs-tests (Files): Likewise.
20753         * modules/memchr-tests (Files): Likewise.
20754         * modules/memcmp-tests (Files): Likewise.
20755         * modules/memmem-tests (Files): Likewise.
20756         * modules/memrchr-tests (Files): Likewise.
20757         * modules/mkdir-tests (Files): Likewise.
20758         * modules/mkfifo-tests (Files): Likewise.
20759         * modules/mkfifoat-tests (Files): Likewise.
20760         * modules/mknod-tests (Files): Likewise.
20761         * modules/nanosleep-tests (Files): Likewise.
20762         * modules/nl_langinfo-tests (Files): Likewise.
20763         * modules/obstack-printf-tests (Files): Likewise.
20764         * modules/open-tests (Files): Likewise.
20765         * modules/openat-tests (Files): Likewise.
20766         * modules/perror-tests (Files): Likewise.
20767         * modules/pipe2-tests (Files): Likewise.
20768         * modules/poll-tests (Files): Likewise.
20769         * modules/popen-tests (Files): Likewise.
20770         * modules/posix_spawn-tests (Files): Likewise.
20771         * modules/posix_spawnp-tests (Files): Likewise.
20772         * modules/pread-tests (Files): Likewise.
20773         * modules/printf-posix-tests (Files): Likewise.
20774         * modules/pty-tests (Files): Likewise.
20775         * modules/random_r-tests (Files): Likewise.
20776         * modules/rawmemchr-tests (Files): Likewise.
20777         * modules/readlink-tests (Files): Likewise.
20778         * modules/remove-tests (Files): Likewise.
20779         * modules/rename-tests (Files): Likewise.
20780         * modules/renameat-tests (Files): Likewise.
20781         * modules/rmdir-tests (Files): Likewise.
20782         * modules/round-tests (Files): Likewise.
20783         * modules/roundf-tests (Files): Likewise.
20784         * modules/roundl-tests (Files): Likewise.
20785         * modules/select-tests (Files): Likewise.
20786         * modules/setenv-tests (Files): Likewise.
20787         * modules/sigaction-tests (Files): Likewise.
20788         * modules/sleep-tests (Files): Likewise.
20789         * modules/snprintf-posix-tests (Files): Likewise.
20790         * modules/snprintf-tests (Files): Likewise.
20791         * modules/sprintf-posix-tests (Files): Likewise.
20792         * modules/stat-tests (Files): Likewise.
20793         * modules/strcasestr-tests (Files): Likewise.
20794         * modules/strchrnul-tests (Files): Likewise.
20795         * modules/strerror-tests (Files): Likewise.
20796         * modules/strsignal-tests (Files): Likewise.
20797         * modules/strstr-tests (Files): Likewise.
20798         * modules/strtod-tests (Files): Likewise.
20799         * modules/strverscmp-tests (Files): Likewise.
20800         * modules/symlink-tests (Files): Likewise.
20801         * modules/symlinkat-tests (Files): Likewise.
20802         * modules/times-tests (Files): Likewise.
20803         * modules/trunc-tests (Files): Likewise.
20804         * modules/truncf-tests (Files): Likewise.
20805         * modules/truncl-tests (Files): Likewise.
20806         * modules/tsearch-tests (Files): Likewise.
20807         * modules/uname-tests (Files): Likewise.
20808         * modules/unlink-tests (Files): Likewise.
20809         * modules/unsetenv-tests (Files): Likewise.
20810         * modules/usleep-tests (Files): Likewise.
20811         * modules/utimensat-tests (Files): Likewise.
20812         * modules/vasprintf-tests (Files): Likewise.
20813         * modules/vdprintf-posix-tests (Files): Likewise.
20814         * modules/vfprintf-posix-tests (Files): Likewise.
20815         * modules/vprintf-posix-tests (Files): Likewise.
20816         * modules/vsnprintf-posix-tests (Files): Likewise.
20817         * modules/vsnprintf-tests (Files): Likewise.
20818         * modules/vsprintf-posix-tests (Files): Likewise.
20819         * modules/wcrtomb-tests (Files): Likewise.
20820         * modules/wcsnrtombs-tests (Files): Likewise.
20821         * modules/wcsrtombs-tests (Files): Likewise.
20822         * modules/wcwidth-tests (Files): Likewise.
20823         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
20824         * tests/test-isinf.c (isinf): Likewise.
20825         * tests/test-isnan.c (isnan): Likewise.
20826         * tests/test-signbit.c (signbit): Likewise.
20827         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
20828         declaration, either as macro or with correct signature.
20829         (select): Ensure function under test is declared with correct
20830         signature in correct header.
20831         * tests/test-atexit.c (atexit): Likewise.
20832         * tests/test-btowc.c (btowc): Likewise.
20833         * tests/test-canonicalize-lgpl.c (realpath)
20834         (canonicalize_file_name): Likewise.
20835         * tests/test-ceilf1.c (ceilf): Likewise.
20836         * tests/test-ceill.c (ceill): Likewise.
20837         * tests/test-chown.c (chown): Likewise.
20838         * tests/test-dprintf-posix.c (dprintf): Likewise.
20839         * tests/test-dup2.c (dup2): Likewise.
20840         * tests/test-dup3.c (dup3): Likewise.
20841         * tests/test-duplocale.c (duplocale): Likewise.
20842         * tests/test-fchdir.c (fchdir): Likewise.
20843         * tests/test-fchownat.c (fchownat): Likewise.
20844         * tests/test-fcntl.c (fcntl): Likewise.
20845         * tests/test-fdopendir.c (fdopendir): Likewise.
20846         * tests/test-fflush.c (fflush): Likewise.
20847         * tests/test-flock.c (flock): Likewise.
20848         * tests/test-floorf1.c (floorf): Likewise.
20849         * tests/test-floorl.c (floorl): Likewise.
20850         * tests/test-fnmatch.c (fnmatch): Likewise.
20851         * tests/test-fopen.c (fopen): Likewise.
20852         * tests/test-fprintf-posix.c (fprintf): Likewise.
20853         * tests/test-freopen.c (freopen): Likewise.
20854         * tests/test-frexp.c (frexp): Likewise.
20855         * tests/test-frexpl.c (frexpl): Likewise.
20856         * tests/test-fseek.c (fseek): Likewise.
20857         * tests/test-fseeko.c (fseeko): Likewise.
20858         * tests/test-fstatat.c (fstatat): Likewise.
20859         * tests/test-fsync.c (fsync): Likewise.
20860         * tests/test-ftell.c (ftell): Likewise.
20861         * tests/test-ftello.c (ftello): Likewise.
20862         * tests/test-futimens.c (futimens): Likewise.
20863         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
20864         (gai_strerror): Likewise.
20865         * tests/test-getcwd.c (getcwd): Likewise.
20866         * tests/test-getdelim.c (getdelim): Likewise.
20867         * tests/test-getdtablesize.c (getdtablesize): Likewise.
20868         * tests/test-getgroups.c (getgroups): Likewise.
20869         * tests/test-gethostname.c (gethostname): Likewise.
20870         * tests/test-getline.c (getline): Likewise.
20871         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
20872         Likewise.
20873         * tests/test-gettimeofday.c (gettimeofday): Likewise.
20874         * tests/test-glob.c (glob, globfree): Likewise.
20875         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
20876         * tests/test-inet_ntop.c (inet_ntop): Likewise.
20877         * tests/test-inet_pton.c (inet_pton): Likewise.
20878         * tests/test-isblank.c (isblank): Likewise.
20879         * tests/test-lchown.c (lchown): Likewise.
20880         * tests/test-ldexpl.c (ldexpl): Likewise.
20881         * tests/test-link.c (link): Likewise.
20882         * tests/test-linkat.c (linkat): Likewise.
20883         * tests/test-lseek.c (lseek): Likewise.
20884         * tests/test-lstat.c (lstat): Likewise.
20885         * tests/test-mbrtowc.c (mbrtowc): Likewise.
20886         * tests/test-mbsinit.c (mbsinit): Likewise.
20887         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
20888         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
20889         * tests/test-memchr.c (memchr): Likewise.
20890         * tests/test-memcmp.c (memcmp): Likewise.
20891         * tests/test-memmem.c (memmem): Likewise.
20892         * tests/test-memrchr.c (memrchr): Likewise.
20893         * tests/test-mkdir.c (mkdir): Likewise.
20894         * tests/test-mkdirat.c (mkdirat): Likewise.
20895         * tests/test-mkfifo.c (mkfifo): Likewise.
20896         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
20897         * tests/test-mknod.c (mknod): Likewise.
20898         * tests/test-nanosleep.c (nanosleep): Likewise.
20899         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
20900         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
20901         Likewise.
20902         * tests/test-open.c (open): Likewise.
20903         * tests/test-openat.c (openat): Likewise.
20904         * tests/test-perror.c (perror): Likewise.
20905         * tests/test-pipe2.c (pipe2): Likewise.
20906         * tests/test-poll.c (poll): Likewise.
20907         * tests/test-popen.c (popen, pclose): Likewise.
20908         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
20909         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
20910         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
20911         (posix_spawn_file_actions_destroy)
20912         (posix_spawn_file_actions_addclose)
20913         (posix_spawn_file_actions_addopen)
20914         (posix_spawn_file_actions_adddup2): Likewise.
20915         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
20916         * tests/test-pread.c (pread): Likewise.
20917         * tests/test-printf-posix.c (printf): Likewise.
20918         * tests/test-pty.c (openpty, forkpty): Likewise.
20919         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
20920         (random_r): Likewise.
20921         * tests/test-rawmemchr.c (rawmemchr): Likewise.
20922         * tests/test-readlink.c (readlink): Likewise.
20923         * tests/test-remove.c (remove): Likewise.
20924         * tests/test-rename.c (rename): Likewise.
20925         * tests/test-renameat.c (renameat): Likewise.
20926         * tests/test-rmdir.c (rmdir): Likewise.
20927         * tests/test-round1.c (round): Likewise.
20928         * tests/test-roundf1.c (roundf): Likewise.
20929         * tests/test-roundl.c (roundl): Likewise.
20930         * tests/test-setenv.c (setenv): Likewise.
20931         * tests/test-sigaction.c (sigaction): Likewise.
20932         * tests/test-sleep.c (sleep): Likewise.
20933         * tests/test-snprintf.c (snprintf): Likewise.
20934         * tests/test-sprintf-posix.c (sprintf): Likewise.
20935         * tests/test-stat.c (stat): Likewise.
20936         * tests/test-stpncpy.c (stpncpy): Likewise.
20937         * tests/test-strcasestr.c (strcasestr): Likewise.
20938         * tests/test-strchrnul.c (strchrnul): Likewise.
20939         * tests/test-strerror.c (strerror): Likewise.
20940         * tests/test-strsignal.c (strsignal): Likewise.
20941         * tests/test-strstr.c (strstr): Likewise.
20942         * tests/test-strtod.c (strtod): Likewise.
20943         * tests/test-strverscmp.c (strverscmp): Likewise.
20944         * tests/test-symlink.c (symlink): Likewise.
20945         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
20946         * tests/test-times.c (times): Likewise.
20947         * tests/test-trunc1.c (trunc): Likewise.
20948         * tests/test-truncf1.c (truncf): Likewise.
20949         * tests/test-truncl.c (truncl): Likewise.
20950         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
20951         Likewise.
20952         * tests/test-uname.c (uname): Likewise.
20953         * tests/test-unlink.c (unlink): Likewise.
20954         * tests/test-unlinkat.c (unlinkat): Likewise.
20955         * tests/test-unsetenv.c (unsetenv): Likewise.
20956         * tests/test-usleep.c (usleep): Likewise.
20957         * tests/test-utimensat.c (utimensat): Likewise.
20958         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
20959         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
20960         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
20961         * tests/test-vprintf-posix.c (vprintf): Likewise.
20962         * tests/test-vsnprintf.c (vsnprintf): Likewise.
20963         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
20964         * tests/test-wcrtomb.c (wcrtomb): Likewise.
20965         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
20966         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
20967         * tests/test-wcwidth.c (wcwidth): Likewise.
20968
20969         build: pull in conditional headers during GNULIB_POSIXCHECK
20970         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
20971         definitions from any conditionally-included headers.
20972         * lib/stdlib.in.h (includes): Likewise.
20973         * lib/unistd.in.h (includes): Likewise.
20974
20975 2009-12-24  Bruno Haible  <bruno@clisp.org>
20976
20977         * tests/test-argv-iter.c: Include header file being tested immediately
20978         after config.h.
20979         * tests/test-base64.c: Likewise.
20980         * tests/test-flock.c: Likewise.
20981         * tests/test-fsync.c: Likewise.
20982         * tests/test-getdate.c: Likewise.
20983         * tests/test-getndelim2.c: Likewise.
20984         * tests/test-isfinite.c: Likewise.
20985         * tests/test-isinf.c: Likewise.
20986         * tests/test-strerror.c: Likewise.
20987         * tests/test-strsignal.c: Likewise.
20988
20989 2009-12-23  Eric Blake  <ebb9@byu.net>
20990
20991         unistd: work around cygwin bug
20992         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
20993         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
20994         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20995
20996 2009-12-23  Bruno Haible  <bruno@clisp.org>
20997
20998         localename: More tests.
20999         * tests/test-localename.c (SIZEOF): New macro.
21000         (categories): New variable.
21001         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
21002         test_locale_name_default): Add test w.r.t. thread locale.
21003         (test_locale_name_thread): New function.
21004         (main): Invoke it.
21005
21006         localename: Make aware of thread locale.
21007         * lib/localename.h (gl_locale_name_thread): New declaration.
21008         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
21009         behaviour with respect to thread locale.
21010         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
21011         <langinfo.h>, glthread/lock.h.
21012         (SIZE_BITS): New macro.
21013         (string_hash): New function.
21014         (struct hash_node): New type.
21015         (HASH_TABLE_SIZE): New macro.
21016         (struniq_hash_table, struniq_lock): New variables.
21017         (struniq): New function.
21018         (gl_locale_name_thread): New function.
21019         (gl_locale_name): Invoke it.
21020         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
21021         * modules/localename (Depends-on): Add lock.
21022         Reported by Mike Gran <spk121@yahoo.com>.
21023
21024 2009-12-23  Eric Blake  <ebb9@byu.net>
21025
21026         va-args: new module
21027         * modules/va-args: New file.
21028         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
21029         * MODULES.html.sh (Core language properties): Mention it.
21030
21031         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
21032         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
21033         named alias for __attribute__((__unused__)).
21034         * lib/chown.c: Update client.
21035         * lib/fchmodat.c: Likewise.
21036         * lib/fts.c: Likewise.
21037         * lib/getdate.y: Likewise.
21038         * lib/getgroups.c: Likewise.
21039         * lib/getopt.c: Likewise.
21040         * lib/getugroups.c: Likewise.
21041         * lib/mkdir.c: Likewise.
21042         * lib/mkfifo.c: Likewise.
21043         * lib/mkfifoat.c: Likewise.
21044         * lib/mknod.c: Likewise.
21045         * lib/mknodat.c: Likewise.
21046         * lib/readlink.c: Likewise.
21047         * lib/se-context.in.h: Likewise.
21048         * lib/se-selinux.in.h: Likewise.
21049         * lib/sockets.c: Likewise.
21050         * lib/symlink.c: Likewise.
21051         * lib/symlinkat.c: Likewise.
21052         * lib/unicodeio.c: Likewise.
21053         * lib/unistr.h: Likewise.
21054         * tests/test-areadlink.c: Likewise.
21055         * tests/test-areadlinkat.c: Likewise.
21056         * tests/test-filenamecat.c: Likewise.
21057         * tests/test-fseeko.c: Likewise.
21058         * tests/test-ftello.c: Likewise.
21059         * tests/test-getdate.c: Likewise.
21060         * tests/test-getgroups.c: Likewise.
21061         * tests/test-gethostname.c: Likewise.
21062         * tests/test-quotearg.c: Likewise.
21063         * tests/test-version-etc.c: Likewise.
21064         * tests/test-xalloc-die.c: Likewise.
21065         * tests/test-xfprintf-posix.c: Likewise.
21066         * tests/test-xprintf-posix.c: Likewise.
21067         * tests/test-xvasprintf.c: Likewise.
21068
21069         tests: avoid compiler warnings
21070         * tests/test-fcntl.c (main): Delete unused parameters.
21071         * tests/test-freopen-safer.c (main): Likewise.
21072         * tests/test-xalloc-die.c (main): Mark unused parameters.
21073         * tests/test-fseeko.c (main): Likewise.
21074         * tests/test-ftello.c (main): Likewise.
21075         * tests/test-nanosleep.c (main): Avoid declaration warning.
21076         * tests/test-sleep.c (main): Likewise.
21077         * tests/test-unsetenv.c (main): Silence warning about string
21078         literal.
21079         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21080
21081 2009-12-23  Bruno Haible  <bruno@clisp.org>
21082
21083         * tests/test-localename.c (test_locale_name): New function, extracted
21084         from main. Also test mixed situations.
21085         (test_locale_name_posix, test_locale_name_environ,
21086         test_locale_name_default): New functions.
21087         (main): Invoke them all.
21088         * modules/localename-tests (configure.ac): Test for newlocale.
21089
21090 2009-12-23  Bruno Haible  <bruno@clisp.org>
21091
21092         unistd: Ensure getcwd gets declared before being overridden.
21093         * lib/unistd.in.h: Conditionally include <io.h>.
21094
21095 2009-12-22  Bruno Haible  <bruno@clisp.org>
21096
21097         wchar: Diagnose broken combination of glibc and gcc versions and flags.
21098         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
21099         (gl_WCHAR_H): Invoke it.
21100         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
21101         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
21102         Reported by Karl Berry <karl@freefriends.org>.
21103
21104 2009-12-22  Eric Blake  <ebb9@byu.net>
21105
21106         math, unistd: avoid redundant includes
21107         * lib/math.in.h (isnan): No need to re-include <math.h>.
21108         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
21109
21110         getsubopt: work around cygwin bug
21111         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
21112         avoid conflicting with system getsubopt.
21113         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
21114         bug.
21115
21116         getopt: synchronize from glibc
21117         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
21118         parameter order.  Adjust all callers.
21119         (_getopt_internal_r, main): Adjust quoting in error messages.
21120         Drop considerations for outdated POSIX 1003.2 error message.
21121         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
21122         callers.
21123         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
21124
21125         test-getopt: test stderr behavior
21126         * modules/getopt-posix-tests (Depends-on): Add dup2.
21127         * tests/test-getopt.c (ASSERT): Avoid stderr.
21128         (main): Move stderr to a temporary file.
21129         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
21130         Instead, add parameter to inform caller if output occurred.
21131         (test_getopt): Adjust all existing tests to expect silence, and
21132         add new tests of leading ":".
21133         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21134         glibc shortcomings with leading "-:" or "+:" in optstring.
21135         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21136         Likewise.
21137         * doc/posix-functions/getopt.texi (getopt): Likewise.
21138
21139         test-getopt: enhance test
21140         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
21141         supports optind=0.
21142         * tests/test-getopt.c (OPTIND_MIN): Move...
21143         * tests/test-getopt.h (OPTIND_MIN): ...here.
21144         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
21145         Require that optind=0 works, since modern BSD supports it in
21146         addition to optreset, and since coreutils expects it.
21147         (test_getopt_long_only): New test.
21148         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21149         glibc shortcomings with 'W;', and enforcement of optind=0.
21150         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21151         Likewise.
21152
21153 2009-12-21  Bruno Haible  <bruno@clisp.org>
21154
21155         localename: Improvements for MacOS X and Cygwin.
21156         * lib/localename.h (gl_locale_name_environ): New declaration.
21157         * lib/localename.c (gl_locale_name_environ): New function, extracted from
21158         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
21159         (gl_locale_name_posix): Invoke it.
21160         (gl_locale_name_default): Add comments. Use Windows native API also on
21161         Cygwin.
21162
21163 2009-12-21  Bruno Haible  <bruno@clisp.org>
21164
21165         Update list of Win32 locale ids.
21166         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
21167         (LANG_SAMI): Renamed from LANG_SAAMI.
21168         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
21169         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
21170         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
21171         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
21172         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
21173         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
21174         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
21175         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
21176         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
21177         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
21178         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
21179         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
21180         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
21181         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
21182         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
21183         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
21184         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
21185         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
21186         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
21187         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
21188         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
21189         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
21190         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
21191         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
21192         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
21193         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
21194         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
21195         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
21196         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
21197         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
21198         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
21199         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
21200         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
21201         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
21202         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
21203         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
21204         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
21205         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
21206         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
21207         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
21208         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
21209         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
21210         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
21211         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
21212         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
21213         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
21214         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
21215         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
21216         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
21217         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
21218         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
21219         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
21220         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
21221         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
21222         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
21223         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
21224         Add more languages and countries for Sami, Sorbian. Add more countries
21225         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
21226         for Pashto. Change country for Syriac, Tswana.
21227
21228 2009-12-21  Eric Blake  <ebb9@byu.net>
21229
21230         test-utimens: avoid spurious failure
21231         * tests/test-chown.h (nap): Factor...
21232         * tests/nap.h: ...into new file.
21233         * tests/test-lchown.h (nap): Avoid duplication.
21234         * tests/test-utimens-common.h (nap): Use shared implementation,
21235         necessary on file systems with 1-second resolution.
21236         * modules/chown-tests (Files): Include new file.
21237         * modules/fdutimensat-tests (Files): Likewise.
21238         * modules/futimens-tests (Files): Likewise.
21239         * modules/lchown-tests (Files): Likewise.
21240         * modules/openat-tests (Files): Likewise.
21241         * modules/utimens-tests (Files): Likewise.
21242         * modules/utimensat-tests (Files): Likewise.
21243
21244 2009-12-19  Eric Blake  <ebb9@byu.net>
21245
21246         futimens, utimensat: work around Linux bug
21247         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
21248         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21249         * lib/utimensat.c (rpl_utimensat): Work around it.
21250         * lib/futimens.c (rpl_futimens): Adjust comment.
21251
21252         utimens: work around Linux ctime bug
21253         * lib/utimens.c (detect_ctime_bug): New helper function.
21254         (update_timespec): Differentiate between workaround needed for
21255         this bug vs. what is needed for systems that lack utimensat.
21256         (fdutimens, lutimens): Work around bug.
21257
21258         utimens: check for ctime update
21259         * tests/test-utimens-common.h (check_ctime): Define.
21260         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
21261         * tests/test-futimens.h (test_futimens): Likewise.
21262         * tests/test-lutimens.h (test_lutimens): Likewise.
21263         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21264         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21265
21266 2009-12-19  Bruno Haible  <bruno@clisp.org>
21267
21268         dprintf-posix: Check against memory leak fixed on 2009-12-15.
21269         * tests/test-dprintf-posix2.sh: New file.
21270         * tests/test-dprintf-posix2.c: New file.
21271         * modules/dprintf-posix-tests (Files): Add them.
21272         (configure.ac): Check for getrlimit and setrlimit.
21273         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21274
21275 2009-12-19  Bruno Haible  <bruno@clisp.org>
21276
21277         fprintf-posix: Check against memory leak fixed on 2009-12-15.
21278         * tests/test-fprintf-posix3.sh: New file.
21279         * tests/test-fprintf-posix3.c: New file.
21280         * modules/fprintf-posix-tests (Files): Add them.
21281         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21282
21283 2009-12-19  Eric Blake  <ebb9@byu.net>
21284
21285         dirfd: fix prototype
21286         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
21287         * lib/dirfd.c (dirfd): Likewise.
21288
21289         canonicalize: reduce memory usage
21290         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
21291         allocation to size.
21292         Reported by Solar Designer <solar@openwall.com>.
21293
21294 2009-12-19  Bruno Haible  <bruno@clisp.org>
21295
21296         New module attribute 'Applicability'.
21297         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
21298         * gnulib-tool: New option --extract-applicability.
21299         (func_usage): Document it.
21300         (sed_extract_prog): Recognize it.
21301         (func_get_applicability): New function.
21302         (func_import): Generalize handling of 'link-warning' module.
21303         * modules/link-warning (Applicability): New section.
21304         * modules/arg-nonnull (Applicability): New section.
21305         Repoted by Simon Josefsson <simon@josefsson.org>.
21306
21307 2009-12-19  Bruno Haible  <bruno@clisp.org>
21308
21309         fflush: tweak
21310         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
21311         * lib/fseeko.c (rpl_fseeko): Likewise.
21312
21313 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
21314
21315         * lib/gl_list.h: Fix typo in comment.
21316
21317 2009-12-16  Eric Blake  <ebb9@byu.net>
21318
21319         fcntl: use to simplify other modules
21320         * modules/cloexec (Depends-on): Add fcntl.
21321         * modules/fchdir (Depends-on): Likewise.
21322         * modules/fd-safer-flag (Depends-on): Likewise.
21323         * modules/unistd-safer (Depends-on): Likewise.
21324         * modules/dup3 (configure.ac): Set module indicator.
21325         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
21326         missing.
21327         * lib/fchdir.c (_gl_register_dup): Fix comment.
21328         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
21329         * lib/dup-safer.c (dup_safer): Likewise.
21330         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
21331         * lib/dup3.c (dup3): Likewise.
21332         * tests/test-fchdir.c (main): Enhance test.
21333         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
21334
21335         fcntl: port portions of fcntl to mingw
21336         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
21337         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
21338         replacement for mingw.
21339         * modules/fcntl (Description): Update.
21340         (Depends-on): Add dup2.
21341         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
21342         * modules/fcntl-h (Makefile.am): Substitute it.
21343         * lib/fcntl.in.h (fcntl): Update declaration.
21344         (F_DUPFD, F_GETFD): New macros, when needed.
21345         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21346         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
21347         * tests/test-fcntl.c (check_flags, main): Enhance test for items
21348         we now guarantee.
21349
21350         fcntl: work around cygwin bug in F_DUPFD
21351         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
21352         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
21353         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
21354         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
21355         * doc/posix-functions/fcntl.texi (fcntl): Document it.
21356
21357         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
21358         * modules/fcntl (Files): List new files.
21359         (configure.ac): Run a test.
21360         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
21361         * lib/fcntl.c (rpl_fcntl): Likewise.
21362         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
21363         (gl_FCNTL_H): Always replace fcntl.h.
21364         * modules/fcntl-h (Makefile.am): Substitute witnesses.
21365         * lib/fcntl.in.h (fcntl): Declare replacement.
21366         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
21367         needed, plus a witness.
21368         * doc/posix-functions/fcntl.texi (fcntl): Document this.
21369         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21370         * tests/test-fcntl.c: New file.
21371         * modules/fcntl-tests: Likewise.
21372
21373         binary-io: avoid potential compilation warning
21374         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
21375         directives.
21376
21377         fflush: avoid compilation error on NetBSD
21378         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
21379         between off_t and fpos_t, since the latter is sometimes a struct.
21380         * lib/fseeko.c (rpl_fseeko): Likewise.
21381         Reported by Alexander Nasonov <alnsn@yandex.ru>.
21382
21383 2009-12-15  Eric Blake  <ebb9@byu.net>
21384
21385         fcntl-h, stdio, sys_ioctl: fix declarations
21386         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
21387         function must not take arguments.
21388         * lib/sys_ioctl.in.h (ioctl): Likewise.
21389         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
21390         (open): Add a link warning.
21391
21392 2009-12-15  Jim Meyering  <meyering@redhat.com>
21393
21394         areadlink, areadlink-with-size: relax license to LGPLv2+
21395         * modules/areadlink (License): Relax to LGPLv2+.
21396         * modules/areadlink-with-size (License): Likewise.
21397
21398 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
21399             Bruno Haible  <bruno@clisp.org>
21400
21401         *printf: Fix memory leak.
21402         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
21403         * lib/vfprintf.c (vfprintf): Likewise.
21404         * lib/dprintf.c (dprintf): Likewise.
21405         * lib/vdprintf.c (vdprintf): Likewise.
21406
21407 2009-12-14  Eric Blake  <ebb9@byu.net>
21408
21409         accept4: adjust module dependencies
21410         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
21411
21412         utimens: one more try at avoiding compiler warning
21413         * lib/utimens.c (lutimens): Lower scope of result.
21414
21415 2009-12-13  Bruno Haible  <bruno@clisp.org>
21416
21417         Move the malloc checking from module 'list' to new module 'xlist'.
21418         * modules/xlist: New file.
21419         * lib/gl_xlist.h: New file.
21420         * lib/gl_xlist.c: New file.
21421         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
21422         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
21423         gl_list_add_last, gl_list_add_before, gl_list_add_after,
21424         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
21425         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
21426         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
21427         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
21428         gl_sortedlist_nx_add): New declarations.
21429         (struct gl_list_implementation): Rename and change methods accordingly.
21430         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
21431         (gl_list_nx_create): Renamed from gl_list_create.
21432         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21433         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21434         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21435         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21436         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21437         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21438         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21439         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21440         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
21441         gl_list_create_empty.
21442         (gl_list_nx_create): Renamed from gl_list_create.
21443         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21444         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21445         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21446         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21447         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21448         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21449         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21450         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21451         * lib/gl_array_list.c: Don't include xalloc.h.
21452         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
21453         NULL upon out-of-memory.
21454         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
21455         out-of-memory.
21456         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
21457         Change return type to 'int'.
21458         (gl_array_nx_set_at): Renamed from gl_array_set_at.
21459         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21460         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
21461         upon out-of-memory.
21462         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
21463         upon out-of-memory.
21464         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
21465         upon out-of-memory.
21466         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
21467         upon out-of-memory.
21468         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
21469         out-of-memory.
21470         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
21471         Update.
21472         (gl_array_list_implementation): Update.
21473         * lib/gl_carray_list.c: Don't include xalloc.h.
21474         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
21475         Return NULL upon out-of-memory.
21476         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
21477         out-of-memory.
21478         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
21479         Change return type to 'int'.
21480         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
21481         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21482         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
21483         upon out-of-memory.
21484         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
21485         upon out-of-memory.
21486         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
21487         out-of-memory.
21488         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
21489         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
21490         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
21491         Update.
21492         (gl_carray_list_implementation): Update.
21493         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
21494         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
21495         gl_linked_create_empty. Return NULL upon out-of-memory.
21496         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
21497         out-of-memory.
21498         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
21499         Change return type to 'int'. Return -1 upon out-of-memory.
21500         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
21501         out-of-memory.
21502         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
21503         upon out-of-memory.
21504         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
21505         upon out-of-memory.
21506         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
21507         NULL upon out-of-memory.
21508         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
21509         upon out-of-memory.
21510         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
21511         out-of-memory.
21512         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
21513         Update.
21514         * lib/gl_linked_list.c: Don't include xalloc.h.
21515         (gl_linked_list_implementation): Update.
21516         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
21517         (add_to_bucket): Change return type to 'int'.
21518         (gl_linkedhash_list_implementation): Update.
21519         * lib/gl_anytree_list1.h (free_subtree): New function.
21520         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
21521         gl_tree_create_empty. Return NULL upon out-of-memory.
21522         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
21523         Change return type to 'int'. Return -1 upon out-of-memory.
21524         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
21525         out-of-memory.
21526         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
21527         (gl_tree_remove_node): New function, moved here from
21528         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
21529         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
21530         Update.
21531         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
21532         malloc, not xmalloc. Return NULL upon out-of-memory.
21533         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21534         out-of-memory.
21535         (gl_tree_remove_node_from_tree): New function, extracted from
21536         gl_tree_remove_node.
21537         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21538         upon out-of-memory.
21539         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21540         out-of-memory.
21541         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21542         upon out-of-memory.
21543         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21544         upon out-of-memory.
21545         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21546         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
21547         not xmalloc. Return NULL upon out-of-memory.
21548         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21549         out-of-memory.
21550         (gl_tree_remove_node_from_tree): New function, extracted from
21551         gl_tree_remove_node.
21552         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21553         upon out-of-memory.
21554         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21555         out-of-memory.
21556         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21557         upon out-of-memory.
21558         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21559         upon out-of-memory.
21560         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21561         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
21562         gl_anytree_list1.h before gl_anyavltree_list2.h.
21563         (gl_avltree_list_implementation): Update.
21564         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
21565         gl_anytree_list1.h before gl_anyavltree_list2.h.
21566         (gl_rbtree_list_implementation): Update.
21567         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
21568         Change return type to 'int'. Return -1 upon out-of-memory. Use
21569         __builtin_expect.
21570         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
21571         (gl_avltreehash_list_implementation): Update.
21572         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
21573         (gl_rbtreehash_list_implementation): Update.
21574         * modules/array-list (Depends-on): Remove xalloc.
21575         * modules/carray-list (Depends-on): Likewise.
21576         * modules/linked-list (Depends-on): Likewise.
21577         * modules/linkedhash-list (Depends-on): Likewise.
21578         * modules/avltree-list (Depends-on): Likewise.
21579         * modules/rbtree-list (Depends-on): Likewise.
21580         * modules/avltreehash-list (Depends-on): Likewise.
21581         * modules/rbtreehash-list (Depends-on): Likewise.
21582
21583         * modules/xsublist: New file.
21584         * lib/gl_xsublist.h: New file.
21585         * lib/gl_xsublist.c: New file.
21586         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
21587         (gl_sublist_nx_create): New declaration.
21588         * lib/gl_sublist.c: Don't include xalloc.h.
21589         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
21590         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
21591         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
21592         Change return type to 'int'. Return -1 upon out-of-memory.
21593         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
21594         upon out-of-memory.
21595         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
21596         NULL upon out-of-memory.
21597         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
21598         upon out-of-memory.
21599         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
21600         NULL upon out-of-memory.
21601         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
21602         NULL upon out-of-memory.
21603         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
21604         upon out-of-memory.
21605         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
21606         (gl_sublist_list_implementation): Update.
21607         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
21608         upon out-of-memory.
21609         * modules/sublist (Depends-on): Remove xalloc.
21610
21611         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
21612         * tests/test-carray_list.c: Likewise.
21613         * tests/test-linked_list.c: Likewise.
21614         * tests/test-linkedhash_list.c: Likewise.
21615         * tests/test-avltree_list.c: Likewise.
21616         * tests/test-rbtree_list.c: Likewise.
21617         * tests/test-avltreehash_list.c: Likewise.
21618         * tests/test-rbtreehash_list.c: Likewise.
21619         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
21620         * modules/carray-list-tests (Makefile.am): Likewise.
21621         * modules/linked-list-tests (Makefile.am): Likewise.
21622         * modules/linkedhash-list-tests (Makefile.am): Likewise.
21623         * modules/avltree-list-tests (Makefile.am): Likewise.
21624         * modules/rbtree-list-tests (Makefile.am): Likewise.
21625         * modules/avltreehash-list-tests (Makefile.am): Likewise.
21626         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
21627
21628         * NEWS: Mention the changes.
21629
21630         * lib/clean-temp.c: Include gl_xlist.h.
21631         * modules/clean-temp (Depends-on): Add xlist.
21632
21633         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
21634         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
21635
21636         * tests/test-array_oset.c: Include gl_xlist.h.
21637         * modules/array-oset-tests (Depends-on): Add xlist.
21638
21639         Reported by José E. Marchesi <jemarch@gnu.org>.
21640
21641 2009-12-13  Bruno Haible  <bruno@clisp.org>
21642
21643         Move the malloc checking from module 'oset' to new module 'xoset'.
21644         * modules/xoset: New file.
21645         * lib/gl_xoset.h: New file.
21646         * lib/gl_xoset.c: New file.
21647         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
21648         declarations.
21649         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
21650         (struct gl_oset_implementation): Rename and change methods accordingly.
21651         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
21652         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21653         'int'. Mark as __warn_unused_result__.
21654         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
21655         gl_oset_create_empty.
21656         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21657         'int'.
21658         * lib/gl_array_oset.c: Don't include xalloc.h.
21659         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
21660         malloc, not xmalloc.
21661         (grow): Change return type to 'int'. Don't call xalloc_die.
21662         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
21663         to 'int'.
21664         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
21665         'int'.
21666         (gl_array_oset_implementation): Update.
21667         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
21668         gl_tree_create_empty.
21669         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
21670         'int'.
21671         * lib/gl_avltree_oset.c: Don't include xalloc.h.
21672         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21673         xmalloc.
21674         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21675         not xmalloc.
21676         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21677         xmalloc.
21678         (gl_avltree_oset_implementation): Update.
21679         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
21680         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21681         xmalloc.
21682         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21683         not xmalloc.
21684         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21685         xmalloc.
21686         (gl_rbtree_oset_implementation): Update.
21687         * modules/array-oset (Depends-on): Remove xalloc.
21688         * modules/avltree-oset (Depends-on): Likewise.
21689         * modules/rbtree-oset (Depends-on): Likewise.
21690         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
21691         * tests/test-avltree_oset.c: Likewise.
21692         * tests/test-rbtree_oset.c: Likewise.
21693         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21694         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
21695         * modules/rbtree-oset-tests (Makefile.am): Likewise.
21696         * NEWS: Mention the change.
21697
21698 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
21699
21700         maint.mk: allow a project to override release-prep commands
21701         * top/maint.mk (alpha, beta, stable): Move release-preparatory
21702         commands into a new rule.
21703         (release-prep): New rule.
21704         (release-prep-hook): New overridable variable.
21705
21706 2009-12-13  Bruno Haible  <bruno@clisp.org>
21707
21708         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
21709
21710 2009-12-13  Jim Meyering  <meyering@redhat.com>
21711
21712         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
21713         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
21714
21715 2009-12-12  Bruno Haible  <bruno@clisp.org>
21716
21717         duplocale: Tweak.
21718         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
21719
21720 2009-12-12  Karl Berry  <karl@gnu.org>
21721
21722         * config/srclist.txt (strtoll.c): tab changes, no more sync.
21723
21724 2009-12-12  Bruno Haible  <bruno@clisp.org>
21725
21726         * m4/po.m4: Undo incorrect untabification.
21727
21728 2009-12-12  Bruno Haible  <bruno@clisp.org>
21729
21730         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
21731         * modules/c-strtod (Depends-on): Add locale.
21732         * modules/c-strtold (Depends-on): Likewise.
21733
21734 2009-12-12  Bruno Haible  <bruno@clisp.org>
21735
21736         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
21737
21738 2009-12-11  Eric Blake  <ebb9@byu.net>
21739
21740         setenv: relax requirement in light of POSIX ruling
21741         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
21742         not NULL.
21743         * tests/test-setenv.c (main): Relax test.
21744         * tests/test-unsetenv.c (main): Likewise.
21745         * doc/posix-functions/setenv.texi (setenv): Document this.
21746         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21747
21748 2009-12-11  Bruno Haible  <bruno@clisp.org>
21749
21750         New module 'fd-safer-flag'.
21751         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
21752         * lib/dup-safer.c (dup_safer_flag): Remove function.
21753         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
21754         * lib/fd-safer.c (fd_safer_flag): Remove function.
21755         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
21756         * modules/cloexec (configure.ac): Drop indicator macro.
21757         * modules/fd-safer-flag: New file.
21758         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
21759         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
21760         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
21761
21762 2009-12-11  Bruno Haible  <bruno@clisp.org>
21763
21764         Tests for module 'nl_langinfo'.
21765         * modules/nl_langinfo-tests: New file.
21766         * tests/test-nl_langinfo.sh: New file.
21767         * tests/test-nl_langinfo.c: New file.
21768
21769         New module 'nl_langinfo'.
21770         * lib/nl_langinfo.c: New file.
21771         * m4/nl_langinfo.m4: New file.
21772         * modules/nl_langinfo: New file.
21773         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
21774
21775 2009-12-11  Bruno Haible  <bruno@clisp.org>
21776
21777         Tests for module 'langinfo'.
21778         * modules/langinfo-tests: New file.
21779         * tests/test-langinfo.c: New file.
21780
21781         New module 'langinfo'.
21782         * lib/langinfo.in.h: New file.
21783         * m4/langinfo_h.m4: New file.
21784         * modules/langinfo: New file.
21785         * doc/posix-headers/langinfo.texi: Mention the new module.
21786
21787 2009-12-11  Bruno Haible  <bruno@clisp.org>
21788
21789         * lib/config.charset: Untabify.
21790
21791 2009-12-11  Bruno Haible  <bruno@clisp.org>
21792
21793         * modules/unistd-safer (configure.ac): Drop indicator macro.
21794
21795 2009-12-11  Bruno Haible  <bruno@clisp.org>
21796
21797         Move pipe2-safer code to its own file.
21798         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
21799         * lib/pipe-safer.c (pipe2_safer): Remove function.
21800         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
21801         (Makefile.am): Add it to lib_SOURCES.
21802
21803 2009-12-10  Bruno Haible  <bruno@clisp.org>
21804
21805         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
21806
21807 2009-12-10  Bruno Haible  <bruno@clisp.org>
21808
21809         Declare which arguments expect non-NULL values, for GCC and clang.
21810         * build-aux/arg-nonnull.h: New file.
21811         * modules/arg-nonnull: New file.
21812         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
21813         (inet_ntop, inet_pton): Use it.
21814         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
21815         (closedir, dirfd, opendir, scandir, alphasort): Use it.
21816         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
21817         (open, openat): Use it.
21818         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
21819         (fnmatch): Use it.
21820         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
21821         (getopt, getopt_long, getopt_long_only): Use it.
21822         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
21823         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
21824         Use it.
21825         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
21826         (iconv_open): Use it.
21827         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
21828         (strtoimax, strtoumax): Use it.
21829         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
21830         (duplocale): Use it.
21831         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
21832         (frexp, frexpl): Use it.
21833         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
21834         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
21835         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
21836         (tsearch, tfind, tdelete, twalk): Use it.
21837         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
21838         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21839         sigpending): Use it.
21840         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
21841         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21842         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21843         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21844         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21845         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21846         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21847         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21848         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21849         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21850         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21851         Use it.
21852         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
21853         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
21854         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
21855         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
21856         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
21857         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
21858         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
21859         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
21860         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
21861         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
21862         strtoull, unsetenv): Use it.
21863         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
21864         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21865         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21866         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21867         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21868         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
21869         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
21870         (strcasecmp, strncasecmp): Use it.
21871         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
21872         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
21873         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
21874         rpl_setsockopt): Use it.
21875         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
21876         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
21877         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
21878         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
21879         (gettimeofday): Use it.
21880         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
21881         (times): Use it.
21882         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
21883         (uname): Use it.
21884         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
21885         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
21886         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
21887         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
21888         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
21889         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
21890         unlinkat, write): Use it.
21891         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
21892         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
21893         * lib/argv-iter.h: Include arg-nonnull.h.
21894         (_ATTRIBUTE_NONNULL_): Remove macro.
21895         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
21896         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
21897         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
21898         optimization.
21899         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
21900         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
21901         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
21902         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
21903         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
21904         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
21905         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
21906         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
21907         * modules/arpa_inet (Depends-on): Add arg-nonnull.
21908         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
21909         * modules/dirent (Depends-on): Add arg-nonnull.
21910         (Makefile.am): Insert arg-nonnull.h into dirent.h.
21911         * modules/fcntl-h (Depends-on): Add arg-nonnull.
21912         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
21913         * modules/fnmatch (Depends-on): Add arg-nonnull.
21914         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
21915         * modules/getopt-posix (Depends-on): Add arg-nonnull.
21916         (Makefile.am): Insert arg-nonnull.h into getopt.h.
21917         * modules/glob (Depends-on): Add arg-nonnull.
21918         (Makefile.am): Insert arg-nonnull.h into glob.h.
21919         * modules/iconv_open (Depends-on): Add arg-nonnull.
21920         (Makefile.am): Insert arg-nonnull.h into iconv.h.
21921         * modules/inttypes (Depends-on): Add arg-nonnull.
21922         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
21923         * modules/locale (Depends-on): Add arg-nonnull.
21924         (Makefile.am): Insert arg-nonnull.h into locale.h.
21925         * modules/math (Depends-on): Add arg-nonnull.
21926         (Makefile.am): Insert arg-nonnull.h into math.h.
21927         * modules/netdb (Depends-on): Add arg-nonnull.
21928         (Makefile.am): Insert arg-nonnull.h into netdb.h.
21929         * modules/search (Depends-on): Add arg-nonnull.
21930         (Makefile.am): Insert arg-nonnull.h into search.h.
21931         * modules/signal (Depends-on): Add arg-nonnull.
21932         (Makefile.am): Insert arg-nonnull.h into signal.h.
21933         * modules/spawn (Depends-on): Add arg-nonnull.
21934         (Makefile.am): Insert arg-nonnull.h into spawn.h.
21935         * modules/stdio (Depends-on): Add arg-nonnull.
21936         (Makefile.am): Insert arg-nonnull.h into stdio.h.
21937         * modules/stdlib (Depends-on): Add arg-nonnull.
21938         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
21939         * modules/string (Depends-on): Add arg-nonnull.
21940         (Makefile.am): Insert arg-nonnull.h into string.h.
21941         * modules/strings (Depends-on): Add arg-nonnull.
21942         (Makefile.am): Insert arg-nonnull.h into strings.h.
21943         * modules/sys_socket (Depends-on): Add arg-nonnull.
21944         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
21945         * modules/sys_stat (Depends-on): Add arg-nonnull.
21946         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
21947         * modules/sys_time (Depends-on): Add arg-nonnull.
21948         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
21949         * modules/sys_times (Depends-on): Add arg-nonnull.
21950         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
21951         * modules/sys_utsname (Depends-on): Add arg-nonnull.
21952         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
21953         * modules/time (Depends-on): Add arg-nonnull.
21954         (Makefile.am): Insert arg-nonnull.h into time.h.
21955         * modules/unistd (Depends-on): Add arg-nonnull.
21956         (Makefile.am): Insert arg-nonnull.h into unistd.h.
21957         * modules/wchar (Depends-on): Add arg-nonnull.
21958         (Makefile.am): Insert arg-nonnull.h into wchar.h.
21959         * modules/argv-iter (Depends-on): Add arg-nonnull.
21960         * tests/test-canonicalize.c (null_ptr): New function.
21961         (main): Use it.
21962         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
21963         (main): Use it.
21964         * tests/test-memmem.c (null_ptr): New function.
21965         (main): Use it.
21966         Reported by Jim Meyering.
21967
21968 2009-12-10  Bruno Haible  <bruno@clisp.org>
21969
21970         Use spaces for indentation, not tabs.
21971         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21972         * m4/*.m4: Untabify.
21973         * build-aux/*.h: Untabify.
21974         * tests/**/*.[hc]: Untabify.
21975         * README: New section "Indent with spaces, not TABs", based on
21976         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
21977         * NEWS: Mention the change.
21978
21979 2009-12-10  Bruno Haible  <bruno@clisp.org>
21980
21981         pty test: Fix link error.
21982         * modules/pty-tests (Makefile.am): Add the default LDADD value to
21983         test_pty_LDADD.
21984
21985 2009-12-07  Simon Josefsson  <simon@josefsson.org>
21986
21987         * modules/pty: New file.
21988         * modules/pty-tests: New file.
21989         * m4/pty.m4: New file.
21990         * tests/test-pty.c: New file.
21991         * doc/glibc-headers/pty.texi: Modified.
21992         * doc/glibc-functions/forkpty.texi: Modified.
21993         * doc/glibc-functions/openpty.texi: Modified.
21994
21995 2009-12-10  Bruno Haible  <bruno@clisp.org>
21996
21997         Avoid syntax error in C++ mode.
21998         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
21999
22000 2009-12-10  Bruno Haible  <bruno@clisp.org>
22001
22002         Use sed with option -e.
22003         * gnulib-tool (func_version, func_emit_copyright_notice,
22004         func_emit_initmacro_end, func_import, func_create_testdir): Pass
22005         option -e to sed.
22006         * modules/link-warning (Makefile.am): Likewise.
22007
22008 2009-12-10  Jim Meyering  <meyering@redhat.com>
22009
22010         mgetgroups: do not write bytes beyond end of malloc'd buffer
22011         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
22012         username, we call getgroups with a one-element-shorter buffer,
22013         but still told it the length was original, max_n_groups.
22014
22015 2009-12-09  Eric Blake  <ebb9@byu.net>
22016
22017         cloexec: relax license
22018         * modules/cloexec (Maintainer): Add myself.
22019         (License): Use LGPL, not GPL.
22020
22021         link-warning: optimize generation
22022         * modules/link-warning (Makefile.am): Reduce process usage.
22023
22024 2009-12-09  Bruno Haible  <bruno@clisp.org>
22025
22026         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
22027         workaround was added on 2009-11-17.
22028
22029 2009-12-09  Jim Meyering  <meyering@redhat.com>
22030             Bruno Haible  <bruno@clisp.org>
22031
22032         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
22033         * modules/link-warning (Makefile.am): Make the comment-removing sed
22034         command more robust in the face of bootstrap-prepended comment lines.
22035
22036 2009-12-09  Bruno Haible  <bruno@clisp.org>
22037
22038         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
22039         most one group.
22040
22041 2009-12-09  Simon Josefsson <simon@josefsson.org>
22042             Bruno Haible  <bruno@clisp.org>
22043
22044         * build-aux/link-warning.h: Add copyright notice.
22045         * modules/link-warning (Makefile.am): Generate link-warning.h from
22046         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
22047         * NEWS: Mention change in link-warning module.
22048         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
22049         * modules/dirent (Makefile.am): Add dependency to dirent.h.
22050         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
22051         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
22052         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
22053         * modules/math (Makefile.am): Add dependency to math.h.
22054         * modules/search (Makefile.am): Add dependency to search.h.
22055         * modules/signal (Makefile.am): Add dependency to signal.h.
22056         * modules/spawn (Makefile.am): Add dependency to spawn.h.
22057         * modules/stdio (Makefile.am): Add dependency to stdio.h.
22058         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
22059         * modules/string (Makefile.am): Add dependency to string.h.
22060         * modules/strings (Makefile.am): Add dependency to strings.h.
22061         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
22062         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
22063         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
22064         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
22065         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
22066         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
22067         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
22068         * modules/unistd (Makefile.am): Add dependency to unistd.h.
22069         * modules/wchar (Makefile.am): Add dependency to wchar.h.
22070
22071 2009-12-09  Bruno Haible  <bruno@clisp.org>
22072
22073         fchdir: Optimize away rpl_fstat when possible.
22074         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
22075         REPLACE_OPEN_DIRECTORY.
22076         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
22077
22078 2009-12-09  Bruno Haible  <bruno@clisp.org>
22079
22080         * lib/fchdir.c: Update comment.
22081
22082 2009-12-09  Bruno Haible  <bruno@clisp.org>
22083
22084         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
22085
22086 2009-12-08  Eric Blake  <ebb9@byu.net>
22087
22088         fchdir: avoid memory leak on re-registration.
22089         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
22090
22091 2009-12-08  Jim Meyering  <meyering@redhat.com>
22092
22093         init.sh: avoid Solaris 10 /bin/sh portability problem
22094         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
22095         sourced script:
22096           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
22097           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
22098           bar
22099         tests/init.sh relied on that, accepting a --set-path=DIR argument,
22100         and two tests used that idiom.
22101         * tests/init.sh: Update suggested usage comments.
22102         (path_prepend_): New function, to be used in place
22103         of the --src-path=DIR option.
22104         (setup_): Move PATH-prepending code into path_prepend_.
22105         * tests/test-pread.sh: Adapt to new usage.
22106         * tests/test-xalloc-die.sh: Likewise.
22107
22108 2009-12-08  Simon Josefsson  <simon@josefsson.org>
22109
22110         * doc/gnulib.texi (Glibc pty.h): Add.
22111         * doc/glibc-functions/forkpty.texi: Add.
22112         * doc/glibc-functions/openpty.texi: Add.
22113         Suggested by Bruno Haible.
22114
22115 2009-12-08  Eric Blake  <ebb9@byu.net>
22116
22117         fchdir: fix logic bugs
22118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
22119         * tests/test-fchdir.c (main): Enhance test.
22120         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
22121         is in use.
22122
22123         dup2: fix logic bugs
22124         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
22125         REPLACE_DUP2 to decide when rpl_dup2 is needed.
22126         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
22127         exists.
22128         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
22129
22130 2009-12-07  Eric Blake  <ebb9@byu.net>
22131
22132         unlink: fix m4 detection
22133         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
22134
22135         unistd-safer: add unit test
22136         * modules/unistd-safer-tests: New file.
22137         * tests/test-dup-safer.c: Likewise.
22138         * tests/test-cloexec.c (setmode): Avoid compiler warning.
22139         * tests/test-dup2.c (setmode): Likewise.
22140         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
22141
22142         cloexec: preserve text vs. binary across dup_cloexec
22143         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
22144         mode.
22145         * modules/dup2-tests (Depends-on): Add binary-io.
22146         * modules/cloexec-tests (Depends-on): Likewise.
22147         * tests/test-dup2.c (setmode, is_mode): New helpers.
22148         (main): Add tests that translation mode is preserved.
22149         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
22150         Reported by Bruno Haible.
22151
22152         mgetgroups: reduce duplicate listings
22153         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
22154         resulting array.
22155         * tests/test-chown.h (test_chown): Simplify client.
22156         * tests/test-lchown.h (test_lchown): Likewise.
22157
22158 2009-12-06  Bruno Haible  <bruno@clisp.org>
22159
22160         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
22161         value.
22162
22163 2009-12-06  Bruno Haible  <bruno@clisp.org>
22164
22165         * lib/progname.c: Include stdio.h, stdlib.h.
22166         (set_program_name): Reject a NULL argument.
22167
22168 2009-12-05  Eric Blake  <ebb9@byu.net>
22169
22170         pipe2-safer: new module
22171         * modules/pipe2-safer: New file.
22172         * lib/unistd-safer.h (pipe2_safer): New prototype.
22173         * lib/unistd--.h (pipe2): New wrapper.
22174         * lib/pipe-safer.c (pipe2_safer): New function.
22175         * modules/pipe (Depends-on): Add pipe2-safer.
22176         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
22177
22178         stdlib-safer: preserve cloexec flag for mkostemp[s]
22179         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
22180         fd_safer_flag.
22181
22182         unistd-safer: allow preservation of cloexec status via flag
22183         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
22184         prototypes.
22185         * lib/dup-safer.c (dup_safer_flag): New function.
22186         * lib/fd-safer.c (fd_safer_flag): Likewise.
22187         * modules/cloexec (configure.ac): Set witness.
22188
22189         test-dup2: enhance test
22190         * modules/dup2-tests (Depends-on): Add cloexec.
22191         * tests/test-dup2.c (main): Enhance test.
22192
22193         cloexec: add dup_cloexec
22194         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
22195         header and comments.
22196         * lib/cloexec.c (set_cloexec_flag): Add comments.
22197         (dup_cloexec): New function, with mingw implementation borrowed
22198         from...
22199         * lib/w32spawn.h (dup_noinherit): ...here.
22200         * modules/execute (Depends-on): Add cloexec.
22201         * modules/pipe (Depends-on): Likewise.
22202         * modules/cloexec (Depends-on): Add dup2.
22203         * modules/cloexec-tests (Files): New file.
22204         * tests/test-cloexec.c: Likewise.
22205
22206         test-xalloc-die: fix test for mingw
22207         * modules/xalloc-die-tests (Files): Add tests/init.sh.
22208         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
22209         directory and .exe suffix off argv[0] output.
22210
22211         test-fseeko: fix test for mingw
22212         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
22213         than undefining fseek, so test will pass on mingw.
22214
22215 2009-12-05  Bruno Haible  <bruno@clisp.org>
22216
22217         * lib/progname.h (set_program_name): Clarify specification.
22218         * lib/progname.c (set_program_name): Likewise.
22219         Reported by Jim Meyering.
22220
22221 2009-12-05  Jim Meyering  <meyering@redhat.com>
22222
22223         maint.mk: backslash-escape parens in default regexp
22224         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
22225         backslash-escape the literal parentheses.
22226
22227         maint.mk: news-date-check: use grep -E
22228         * top/maint.mk (today): Define a Make variable, not a...
22229         (news-date-check): ...shell variable.
22230         (news-date-regexp): Use the Make variable.
22231         Use grep's -E option.  Change the failing diagnostic to mention
22232         the variable, $(news-date-regexp).
22233
22234 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
22235
22236         maintainer-makefile: allow customization of NEWS entry format
22237         * top/maint.mk (news-date-regexp): New overridable variable.
22238         (news-date-check): Use it.
22239
22240 2009-12-04  Eric Blake  <ebb9@byu.net>
22241
22242         mgetgroups: add xgetgroups, and avoid ENOSYS failures
22243         * lib/mgetgroups.h (xgetgroups): New prototype.
22244         * lib/mgetgroups.c (xgetgroups): New wrapper.
22245         (mgetgroups): Handle ENOSYS.
22246         * modules/mgetgroups (Depends-on): Add realloc.
22247         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
22248
22249         mgetgroups: avoid argument promotion issues with -1
22250         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
22251         for invalid gid_t.
22252         * tests/test-chown.h (getegid, test_chown): Likewise.
22253         * tests/test-lchown.h (getegid, test_lchown): Likewise.
22254
22255 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
22256
22257         exclude: Fix header file problems.
22258         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
22259
22260 2009-12-01  Jim Meyering  <meyering@redhat.com>
22261
22262         fts: fts_open: do not let an empty string cause immediate failure
22263         This is required in support of GNU rm, for which the command
22264         "rm A '' B" must process and remove both A and B, in spite of
22265         the empty string argument.
22266         * lib/fts.c (fts_open): Do not let the presence of an empty string
22267         cause fts_open to fail immediately.  Most fts-using tools must be
22268         able to process all arguments, in order, and can be expected to
22269         diagnose such arguments themselves.
22270
22271 2009-11-30  Eric Blake  <ebb9@byu.net>
22272
22273         utimens: fix compilation error
22274         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
22275         Declare variable at right scope.
22276
22277 2009-11-29  Jim Meyering  <meyering@redhat.com>
22278
22279         bootstrap: handle perl-5.11's changed --version output
22280         * build-aux/bootstrap (get_version): Handle perl separately,
22281         since perl-5.11's --version output is different.
22282
22283 2009-11-28  Jim Meyering  <meyering@redhat.com>
22284
22285         userspec: depend on the inttostr module, too
22286         * modules/userspec (Depends-on): Add inttostr.
22287
22288         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
22289         * lib/userspec.c (parse_with_separator): Do not accept a user ID
22290         number of MAXUID when it evaluates to (uid_t) -1.
22291         Likewise for group ID.  Reported by Matt McCutchen in
22292         <http://savannah.gnu.org/bugs/?28113>
22293
22294         userspec: reformat to use spaces, not TABs
22295         * lib/userspec.c: Expand TABs to spaces.
22296         Add Emacs' "indent-tabs-mode: nil" hint.
22297
22298 2009-11-27  Eric Blake  <ebb9@byu.net>
22299
22300         getopt-gnu: flush out another BSD bug
22301         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
22302         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
22303         flush out BSD bug.
22304         * tests/test-getopt.h (test_getopt): End lists with NULL.
22305         * tests/test-getopt_long.h (test_getopt_long): Likewise.
22306         (test_getopt_long_posix): Enhance test.
22307         * modules/getopt-posix-tests (Depends-on): Add stdbool.
22308         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
22309         getopt-gnu.
22310         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22311         Likewise.
22312
22313 2009-11-27  Simon Josefsson  <simon@josefsson.org>
22314
22315         * modules/idpriv-droptemp-tests (Notice): Fix text.
22316
22317 2009-11-27  Jim Meyering  <meyering@redhat.com>
22318
22319         test-xalloc-die: avoid spurious failure due to libtool argv difference
22320         In a libtool-enabled project, this test would fail due to a difference
22321         in the emitted program name, e.g.,
22322         -test-xalloc-die: memory exhausted
22323         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
22324         Use program to avoid that.
22325         * modules/xalloc-die-tests (Depends-on): Add progname.
22326         * tests/test-xalloc-die.c: Include progname.h".
22327         (program_name): Remove decl.
22328         (main): Call set_program_name.
22329         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
22330
22331 2009-11-26  Richard Jones  <rjones@redhat.com>
22332
22333         w32sock: leave win32 error in place.
22334         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
22335
22336 2009-11-26  Eric Blake  <ebb9@byu.net>
22337
22338         init.sh: suggest to use skip_ and fail_ functions in comments
22339         * tests/init.sh: Add a sentence.
22340
22341 2009-11-25  Bruno Haible  <bruno@clisp.org>
22342
22343         init.sh: add documentation in comments
22344         * tests/init.sh: Add some developer and user documentation.
22345
22346 2009-11-26  Jim Meyering  <meyering@redhat.com>
22347
22348         init.sh: accommodate even those who specify bogus srcdir manually
22349         * tests/init.sh: Normally, srcdir is guaranteed by automake and
22350         configure-time tests to be sanitized, so that there is no need to
22351         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
22352         (with no double quotes) suffices.  However, since tests may be
22353         invoked manually, and since you may explicitly set srcdir to the
22354         name of a directory containing spaces, do quote its uses here.
22355         * tests/test-pread.sh: Likewise.
22356         Suggested by Bruno Haible.
22357
22358         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
22359         * tests/test-pread.sh: Write no data into the pipe, because
22360         test-pread actually reads none.  This avoids a diagnostic,
22361         "bash: echo: write error: Broken pipe", that arises in the unusual
22362         event something is ignoring SIGPIPE, and might be interpreted
22363         as some sort of failure.  Reported by Bruno Haible.
22364
22365 2009-11-25  Jim Meyering  <meyering@redhat.com>
22366
22367         test-pread: cover failure with ESPIPE and EINVAL
22368         * tests/test-pread.c (main): Test for failure, too.
22369         * tests/test-pread.sh: Invoke with stdin on a pipe.
22370         Suggested by Eric Blake.
22371
22372         pread: improvement and fix
22373         * modules/pread (Depends-on): Depend on lseek, for portability to
22374         e.g., mingw.  Suggested by Eric Blake.
22375         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
22376
22377         unistd.in.h: correct declaration of pread
22378         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
22379         Reported by Richard W.M. Jones.
22380
22381         test-pread.sh: distribute the test script
22382         * modules/pread-tests (Files): Include test-pread.sh.
22383
22384         test-pread.sh: clean up
22385         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
22386         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
22387         That is unnecessary, since it's always ".".
22388         Suggestion from Eric Blake.
22389
22390         test-pread.sh: make executable
22391         * tests/test-pread.sh: Set executable bit.
22392         Reported by Eric Blake.
22393
22394         correct typo in test-pread.sh
22395         * tests/test-pread.sh: Add #! line.
22396
22397         test pread
22398         * tests/test-pread.c: New file.
22399         * tests/test-pread.sh: Likewise.
22400         * modules/pread-tests: Likewise.
22401
22402         pread: new module
22403         * modules/pread: New file.
22404         * lib/unistd.in.h (pread): Define/declare.
22405         * lib/pread.c (pread): New file.
22406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
22407         * modules/unistd (Makefile.am): Substitute witnesses.
22408         * doc/posix-functions/pread.texi (pread): Update.
22409         * MODULES.html.sh: Add pread.
22410
22411 2009-11-25  Jim Meyering  <meyering@redhat.com>
22412
22413         tests/init.sh: new file to be used via most *.sh tests
22414         * tests/init.sh: New file.
22415
22416 2009-11-25  Eric Blake  <ebb9@byu.net>
22417
22418         utimens: work around older Linux failure with symlinks
22419         * lib/utimens.c (lutimensat_works_really): New variable.
22420         (fdutimens, lutimens): Use it to manage kernels that support
22421         nanosecond times on files, but not on symlinks.
22422         Reported by OndÅ™ej Vašík.
22423
22424         utimes: fix configure grammar
22425         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
22426
22427 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
22428
22429         regex: Fix fastmap for multibyte character ranges.
22430         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
22431         characters when a multibyte character range is included.
22432
22433 2009-11-22  Andy Wingo  <wingo@pobox.com>
22434
22435         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
22436         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
22437
22438 2009-11-24  Bruno Haible  <bruno@clisp.org>
22439
22440         doc: Most *_l functions exist in MacOS X 10.5.
22441         * doc/posix-functions/duplocale.texi: Update platforms list.
22442         * doc/posix-functions/freelocale.texi: Likewise.
22443         * doc/posix-functions/newlocale.texi: Likewise.
22444         * doc/posix-functions/uselocale.texi: Likewise.
22445         * doc/posix-functions/isalnum_l.texi: Likewise.
22446         * doc/posix-functions/isalpha_l.texi: Likewise.
22447         * doc/posix-functions/isblank_l.texi: Likewise.
22448         * doc/posix-functions/iscntrl_l.texi: Likewise.
22449         * doc/posix-functions/isdigit_l.texi: Likewise.
22450         * doc/posix-functions/isgraph_l.texi: Likewise.
22451         * doc/posix-functions/islower_l.texi: Likewise.
22452         * doc/posix-functions/isprint_l.texi: Likewise.
22453         * doc/posix-functions/ispunct_l.texi: Likewise.
22454         * doc/posix-functions/isspace_l.texi: Likewise.
22455         * doc/posix-functions/isupper_l.texi: Likewise.
22456         * doc/posix-functions/iswalnum_l.texi: Likewise.
22457         * doc/posix-functions/iswalpha_l.texi: Likewise.
22458         * doc/posix-functions/iswblank_l.texi: Likewise.
22459         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22460         * doc/posix-functions/iswctype_l.texi: Likewise.
22461         * doc/posix-functions/iswdigit_l.texi: Likewise.
22462         * doc/posix-functions/iswgraph_l.texi: Likewise.
22463         * doc/posix-functions/iswlower_l.texi: Likewise.
22464         * doc/posix-functions/iswprint_l.texi: Likewise.
22465         * doc/posix-functions/iswpunct_l.texi: Likewise.
22466         * doc/posix-functions/iswspace_l.texi: Likewise.
22467         * doc/posix-functions/iswupper_l.texi: Likewise.
22468         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22469         * doc/posix-functions/isxdigit_l.texi: Likewise.
22470         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
22471         * doc/posix-functions/strcasecmp_l.texi: Likewise.
22472         * doc/posix-functions/strcoll_l.texi: Likewise.
22473         * doc/posix-functions/strfmon_l.texi: Likewise.
22474         * doc/posix-functions/strftime_l.texi: Likewise.
22475         * doc/posix-functions/strncasecmp_l.texi: Likewise.
22476         * doc/posix-functions/strxfrm_l.texi: Likewise.
22477         * doc/posix-functions/tolower_l.texi: Likewise.
22478         * doc/posix-functions/toupper_l.texi: Likewise.
22479         * doc/posix-functions/towctrans_l.texi: Likewise.
22480         * doc/posix-functions/towlower_l.texi: Likewise.
22481         * doc/posix-functions/towupper_l.texi: Likewise.
22482         * doc/posix-functions/wcscoll_l.texi: Likewise.
22483         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22484         * doc/posix-functions/wctrans_l.texi: Likewise.
22485         * doc/posix-functions/wctype_l.texi: Likewise.
22486         * doc/glibc-functions/strptime_l.texi: Likewise.
22487         * doc/glibc-functions/strtod_l.texi: Likewise.
22488         * doc/glibc-functions/strtof_l.texi: Likewise.
22489         * doc/glibc-functions/strtol_l.texi: Likewise.
22490         * doc/glibc-functions/strtold_l.texi: Likewise.
22491         * doc/glibc-functions/strtoll_l.texi: Likewise.
22492         * doc/glibc-functions/strtoul_l.texi: Likewise.
22493         * doc/glibc-functions/strtoull_l.texi: Likewise.
22494         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22495         * doc/glibc-functions/wcstod_l.texi: Likewise.
22496         * doc/glibc-functions/wcstof_l.texi: Likewise.
22497         * doc/glibc-functions/wcstol_l.texi: Likewise.
22498         * doc/glibc-functions/wcstold_l.texi: Likewise.
22499         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22500         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22501         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22502
22503 2009-11-24  Bruno Haible  <bruno@clisp.org>
22504
22505         duplocale: Fix logic bug.
22506         * lib/duplocale.c: Don't include <langinfo.h>.
22507         (_NL_LOCALE_NAME): Remove macro.
22508         (rpl_duplocale): Use setlocale instead of nl_langinfo.
22509         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
22510
22511 2009-11-23  Jim Meyering  <meyering@redhat.com>
22512
22513         test-update-copyright: don't hard-code /usr/bin/perl
22514         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
22515         perl to print the current year.  Gilles Espinasse reported that
22516         the replaced use of perl was hard-coded as /usr/bin/perl.
22517
22518 2009-11-23  Bruno Haible  <bruno@clisp.org>
22519
22520         duplocale: Add support for glibc 2.3.x.
22521         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
22522
22523 2009-11-22  Bruno Haible  <bruno@clisp.org>
22524
22525         vasnprintf: Tiny optimization.
22526         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
22527         MacOS X.
22528
22529 2009-11-22  Bruno Haible  <bruno@clisp.org>
22530
22531         Tests for module 'duplocale'.
22532         * modules/duplocale-tests: New file.
22533         * tests/test-duplocale.c: New file.
22534
22535         New module 'duplocale'.
22536         * m4/duplocale.m4: New file.
22537         * lib/locale.in.h (duplocale): New declaration.
22538         * lib/duplocale.c: New file.
22539         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
22540         gl_LOCALE_H_DEFAULTS): New macros.
22541         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
22542         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
22543         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
22544         REPLACE_DUPLOCALE.
22545         * modules/duplocale: New file.
22546         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
22547
22548 2009-11-22  Bruno Haible  <bruno@clisp.org>
22549
22550         * modules/locale-tests (configure.ac): Test for newlocale function.
22551         * tests/test-locale.c: When the system has extended locale functions,
22552         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
22553
22554         locale: Make locale_t available when possible.
22555         * lib/locale.in.h: Include <xlocale.h> when it exists.
22556         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
22557         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
22558         * modules/locale (Depends-on): Add extensions.
22559         (Makefile.am): Also substitute HAVE_XLOCALE_H.
22560         * doc/posix-headers/locale.texi: Document the problem with locale_t.
22561
22562 2009-11-22  Bruno Haible  <bruno@clisp.org>
22563
22564         Add comments.
22565         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
22566         invocation.
22567         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
22568         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22569         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22570
22571 2009-11-22  Bruno Haible  <bruno@clisp.org>
22572
22573         error: account for the possibility of freopen (stdout).
22574         * lib/error.c: Include <unistd.h>.
22575         (flush_stdout): New function, extracted from error and error_at_line.
22576         Determine stdout's fd dynamically.
22577         (error, error_at_line): Invoke flush_stdout.
22578         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
22579         * modules/error (Depends-on): Add unistd.
22580
22581 2009-11-22  Bruno Haible  <bruno@clisp.org>
22582
22583         diffseq: Add comment.
22584         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
22585
22586 2009-11-22  Jim Meyering  <meyering@redhat.com>
22587
22588         c-stack: avoid defining an unused static function
22589         * lib/c-stack.c (find_stack_direction): Do not define this function
22590         when it will not be used.
22591
22592         diffseq: avoid spurious gcc warnings
22593         * lib/diffseq.h (IF_LINT2): Define.
22594         (compareseq): Use it to initialize two members of "part".
22595         This avoids two used-uninitialized warnings.
22596
22597 2009-11-21  Jim Meyering  <meyering@redhat.com>
22598
22599         c-stack: avoid "ignoring return value of `write'" warning
22600         * lib/c-stack.c: Include "ignore-value.h".
22601         (die): Explicitly ignore each write return value.
22602         * modules/c-stack (Depends-on): Add ignore-value.
22603
22604 2009-11-21  Bruno Haible  <bruno@clisp.org>
22605
22606         diffseq: reduce scope of variable 'best'.
22607         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
22608         variable, earlier used for two different purposes.
22609
22610 2009-11-21  Jim Meyering  <meyering@redhat.com>
22611
22612         diffseq: remove useless assignment to "best"
22613         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
22614         assignment.  At that point "best" is already guaranteed to be zero.
22615
22616 2009-11-20  Eric Blake  <ebb9@byu.net>
22617
22618         build: mention ftp redirector in release announcements
22619         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
22620         values that used to come from cfg.mk; mention FTP redirect URL.
22621         * build-aux/announce-gen: Mention the mirror list.
22622         Suggested by Karl Berry.
22623
22624         nanosleep: improve port to mingw
22625         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
22626         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
22627         LIB_NANOSLEEP, but only when needed.
22628         * modules/select (Link): Document LIBSOCKET.
22629         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
22630         enough.
22631
22632         nanosleep: work around cygwin bug
22633         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
22634         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
22635         bug.
22636         (getnow): Delete, not needed.
22637         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
22638         LIB_CLOCK_GETTIME.
22639         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
22640         clock-time, gettime.
22641         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
22642         bug.
22643         * modules/nanosleep-tests: New test.
22644         * tests/test-nanosleep.c: New file.
22645
22646         sleep: work around cygwin bug
22647         * lib/sleep.c (rpl_sleep): Work around the bug.
22648         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
22649         (gl_PREREQ_SLEEP): Delete unused macro.
22650         * modules/sleep (Depends-on): Add verify.
22651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22652         * modules/unistd (Makefile.am): Substitute witness.
22653         * lib/unistd.in.h (sleep): Update prototype.
22654         * doc/posix-functions/sleep.texi (sleep): Document the bug.
22655         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
22656         * modules/sleep-tests (Depends-on): Check for alarm.
22657
22658 2009-11-20  Jim Meyering  <meyering@redhat.com>
22659
22660         maint.mk: improve sc_prohibit_magic_number_exit
22661         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
22662         so it does not match uses like System.exit(1).
22663         Add comments showing how to correct all offenders.
22664
22665 2009-11-19  Eric Blake  <ebb9@byu.net>
22666
22667         xalloc-die-tests: add missing library
22668         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
22669
22670         test-xvasprintf: silence compiler warnings
22671         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
22672         empty string from gcc.
22673
22674 2009-11-19  Jim Meyering  <meyering@redhat.com>
22675
22676         xfreopen: new module, from coreutils
22677         * modules/xfreopen: New module.
22678         * lib/xfreopen.c: New file.
22679         * lib/xfreopen.h: New file.
22680         * MODULES.html.sh (File stream based Input/Output"): Add it.
22681
22682 2009-11-19  Eric Blake  <ebb9@byu.net>
22683
22684         manywarnings: depend on warnings
22685         * modules/manywarnings (Depends-on): Add warnings.
22686
22687         build: avoid compiler warnings
22688         * lib/select.c (rpl_select): Delete unused variable.
22689         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
22690
22691 2009-11-18  Eric Blake  <ebb9@byu.net>
22692
22693         tests: avoid false negative with --with-packager
22694         * tests/test-version-etc.sh: Discard packager information.
22695         * tests/test-argp-version-etc-1.sh: Likewise.
22696         Reported by Mike Frysinger.
22697
22698         utimens: fix regression on Solaris
22699         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
22700         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
22701         can only change fd timestamps via futimesat.  Instead, use an
22702         additional witness macro to avoid BSD bug.
22703         Reported by Jim Meyering.
22704
22705 2009-11-17  Eric Blake  <ebb9@byu.net>
22706
22707         usleep: use it to simplify tests
22708         * modules/stat-time-tests (Depends-on): Add usleep.
22709         (configure.ac): Drop usleep check.
22710         * modules/chown-tests (Depends-on, configure.ac): Likewise.
22711         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
22712         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
22713         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
22714         * modules/openat-tests (Depends-on, configure.ac): Likewise.
22715         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
22716         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
22717         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
22718         Likewise.
22719         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
22720         * tests/test-lchown.h (nap): Likewise.
22721         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
22722         * tests/test-stat-time.c (nap): Likewise.
22723         * tests/test-utimens-common.h (nap): Update comments.
22724
22725         usleep: new module
22726         * modules/usleep: New file.
22727         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22728         * lib/usleep.c (usleep): Likewise.
22729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22730         * modules/unistd (Makefile.am): Substitute witnesses.
22731         * lib/unistd.in.h (usleep): Add declaration.
22732         * doc/pastposix-functions/usleep.texi (usleep): Document this.
22733         * MODULES.html.sh (Date and time): Likewise.
22734         * modules/usleep-tests (Depends-on): New test.
22735         * tests/test-usleep.c: New file.
22736
22737         chown: work around OpenBSD bug
22738         * lib/chown.c (rpl_chown): Work around the bug.
22739         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
22740         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
22741         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
22742         * modules/chown (Depends-on): Add stdbool.
22743         * modules/lchown (Depends-on): Likewise.
22744         * doc/posix-functions/chown.texi (chown): Document the bug.
22745         * doc/posix-functions/lchown.texi (lchown): Likewise.
22746         * tests/test-lchown.h (test_chown): Relax test.
22747
22748         mkstemp: avoid conflict with C++ keyword template
22749         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
22750         * lib/mkostemp.c (mkostemp): Likewise.
22751         * lib/mkostemps.c (mkostemps): Likewise.
22752         * lib/mkstemp.c (mkstemp): Likewise.
22753         * lib/mkstemps.c (mkstemps): Likewise.
22754
22755         xalloc-die-tests: optimize
22756         * tests/test-xalloc-die.sh: Reduce number of processes.
22757
22758 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22759
22760         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
22761         patch from ludo@gnu.org (Ludovic Courtès).
22762
22763 2009-11-17  Jim Meyering  <meyering@redhat.com>
22764
22765         version-etc: use proper license string
22766         * modules/version-etc (License): Use LGPL, not LGPLv3+.
22767         * modules/version-etc-fsf: Likewise.
22768
22769 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22770
22771         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
22772         printed to stdout.  Deal with EOL differences.
22773
22774 2009-11-17  Eric Blake  <ebb9@byu.net>
22775
22776         unsetenv: work around Solaris bug
22777         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
22778         * lib/unsetenv.c (rpl_unsetenv): Work around it.
22779         Reported by Jim Meyering.
22780
22781         vasnprintf: avoid compiler warnings
22782         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
22783         variables.
22784         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
22785
22786 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22787
22788         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
22789         settings since xalloc-die is no longer the self test,
22790         xalloc-die.sh is.
22791
22792 2009-11-17  Jim Meyering  <meyering@redhat.com>
22793
22794         test-xalloc-die.sh: make the code agree with the commit log
22795         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
22796         at the end, just in case you happen to have a test-xalloc-die
22797         program in some other PATH directory.
22798
22799         test-xalloc-die.sh: fix a portability bug
22800         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
22801         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
22802         Otherwise, argv[0] (as often seen in diagnostics) would be too
22803         system-dependent, sometimes with, and sometimes without the leading "./".
22804
22805         version-etc-fsf: relax license to LGPLv3+
22806         * modules/version-etc-fsf (License): Relax license.
22807
22808 2009-11-16  Eric Blake  <ebb9@byu.net>
22809
22810         xalloc-die-tests: avoid printing null pointer
22811         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
22812         shell script.
22813         * tests/test-xalloc-die.c (program_name): Declare.
22814         * tests/test-xalloc-die.sh (tmpfiles): New file.
22815
22816         setenv, unsetenv: work around various bugs
22817         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
22818         (setenv) [HAVE_SETENV]: Work around bugs.
22819         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
22820         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
22821         for bugs.
22822         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
22823         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
22824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
22825         * modules/stdlib (Makefile.am): Update substitutions.
22826         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
22827         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
22828         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22829         * modules/setenv-tests: New test.
22830         * modules/unsetenv-tests: Likewise.
22831         * tests/test-setenv.c: New file.
22832         * tests/test-unsetenv.c: Likewise.
22833
22834 2009-11-16  Jim Meyering  <meyering@redhat.com>
22835
22836         version-etc: relax license to LGPLv3+
22837         * modules/version-etc (License): Relax license.
22838
22839         better AC_REQUIRE expanded-before-required-warning avoidance
22840         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
22841         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
22842         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
22843         which is no longer needed.
22844
22845 2009-11-16  Eric Blake  <ebb9@byu.net>
22846
22847         test-freading: clean up temporary file
22848         * tests/test-freading.c (main): Remove file on success, and use
22849         ASSERT more liberally.
22850         Reported by Jim Meyering.
22851
22852 2009-11-16  Jim Meyering  <meyering@redhat.com>
22853
22854         avoid new AC_REQUIRE expanded-before-required warnings
22855         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
22856         merely using it.
22857         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
22858         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
22859
22860 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22861
22862         * tests/test-xalloc-die.c: New file.
22863         * modules/xalloc-die-tests: New file.
22864         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
22865         XFAIL_TESTS so it can be appended by modules.
22866
22867 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22868
22869         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
22870         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
22871
22872 2009-11-14  Eric Blake  <ebb9@byu.net>
22873
22874         fnmatch: avoid compiler warning
22875         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
22876         to silence compiler warning about mismatch signedness in ?:.
22877         Reported by Robert Millan.
22878
22879         intprops: add double-inclusion guard
22880         * lib/intprops.h: Allow idempotent includes.
22881         Suggested by Bruce Korb.
22882
22883         openat: detect Solaris fchownat bug
22884         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
22885         penalizing glibc chownat when only lchownat is broken.
22886         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
22887         trailing slash bugs.
22888         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
22889         * modules/openat-tests (Files): Include more files.
22890         (Depends-on): Add mgetgroups, sleep, stat-time.
22891         (configure.ac): Add additional checks.
22892         (Makefile.am): Build new test.
22893         * tests/test-fchownat.c: New file.
22894
22895         lchown: detect Solaris and FreeBSD bug
22896         * lib/lchown.c (rpl_lchown): Work around bug.
22897         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
22898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22899         * modules/unistd (Makefile.am): Populate it.
22900         * lib/unistd.in.h (lchown): Update declaration.
22901         * doc/posix-functions/lchown.texi (lchown): Document the bug.
22902         * modules/lchown-tests: New file.
22903         * tests/test-lchown.h (test_lchown): Likewise.
22904         * tests/test-lchown.c (main): Likewise.
22905
22906         chown: detect Solaris and FreeBSD bug
22907         * lib/chown.c (rpl_chown): Work around bug.
22908         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
22909         (gl_PREREQ_CHOWN): Delete.
22910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22911         * modules/unistd (Makefile.am): Populate it.
22912         * lib/unistd.in.h (chown): Update declaration.
22913         * lib/lchown.c (chown): Update client.
22914         * modules/lchown (Depends-on): Add lstat.
22915         * doc/posix-functions/chown.texi (chown): Document the bug.
22916         * doc/posix-functions/getgroups.texi (getgroups): Document
22917         getgroups pitfall.
22918         * modules/chown-tests: New file.
22919         * tests/test-chown.h (test_chown): Likewise.
22920         * tests/test-chown.c (main): Likewise.
22921
22922 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
22923
22924         gnulib-tool: correctly detect absence of m4 directories
22925         * gnulib-tool: Avoid extra newline on data passed to wc -l.
22926
22927 2009-11-14  Jim Meyering  <meyering@redhat.com>
22928
22929         maint.mk: Prohibit inclusion of "xalloc.h" without use.
22930         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22931
22932 2009-11-14  John W. Eaton  <jwe@gnu.org>
22933
22934         strftime.h: wrap funtion declaration in extern "C" block
22935         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
22936
22937 2009-11-13  Eric Blake  <ebb9@byu.net>
22938
22939         getgroups: avoid compiler warning
22940         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
22941
22942         getgroups: work around FreeBSD bug
22943         * lib/getgroups.c (rpl_getgroups): Work around the bug.
22944         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
22945         * doc/posix-functions/getgroups.texi (getgroups): Document it.
22946         * tests/test-getgroups.c (main): Fix buffer overrun.
22947
22948         getgroups: avoid compilation failure
22949         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
22950         * modules/getgroups (Depends-on): Add stdint.
22951
22952 2009-11-13  Jim Meyering  <meyering@redhat.com>
22953
22954         test-getgroups: avoid compilation failure
22955         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
22956
22957 2009-11-13  Eric Blake  <ebb9@byu.net>
22958
22959         mgetgroups: new module, taken from coreutils
22960         * modules/mgetgroups: New file.
22961         * lib/mgetgroups.h: Likewise.
22962         * lib/mgetgroups.c (mgetgroups): Likewise.
22963         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
22964         * MODULES.html.sh (Users and groups): Mention it.
22965
22966         getgroups: don't expose GETGROUPS_T to user
22967         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
22968         an element at a time if GETGROUPS_T is wrong size.
22969         * lib/getugroups.h (getugroups): Change signature.
22970         * lib/unistd.in.h (getgroups): Likewise.
22971         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
22972         signature needs fixing.
22973         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
22974         AC_TYPE_GETGROUPS.
22975         * modules/group-member (Depends-on): Add getgroups.
22976         * lib/group-member.c (group_info, get_group_info): Use gid_t.
22977         (group_member): Rely on getgroups replacement.
22978         * lib/getugroups.c (getugroups): Use gid_t.
22979         * tests/test-getgroups.c (main): Likewise.
22980         * NEWS: Mention the signature change.
22981         * doc/posix-functions/getgroups.texi (getgroups): Mention the
22982         problem with signature.
22983         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
22984         GETGROUPS_T is still useful for setgroups.
22985
22986         getgroups, getugroups: provide stubs for mingw
22987         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
22988         * lib/getugroups.c (getugroups): Likewise.
22989         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
22990         function.  Modernize replacement scheme.
22991         (gl_PREREQ_GETGROUPS): Delete.
22992         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
22993         * modules/getgroups (configure.ac): Declare witness.
22994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22995         * modules/unistd (Depends-on): Substitute witness.
22996         * lib/unistd.in.h (getgroups): Declare replacement.
22997
22998         getgroups: avoid calling exit
22999         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
23000         drop xalloc.
23001         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
23002         dependencies.
23003         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
23004         exiting, in the rare case of malloc failure.
23005
23006         getgroups: fix logic error
23007         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
23008         has more than 20 groups.
23009         * modules/getgroups-tests: New test.
23010         * tests/test-getgroups.c: New file.
23011
23012 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23013
23014         * tests/test-base64.c: Improve.
23015
23016 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23017
23018         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
23019         Blake <ebb9@byu.net>.
23020
23021 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23022
23023         * tests/test-xvasprintf.c: Add %s%s related checks.
23024
23025 2009-11-12  Eric Blake  <ebb9@byu.net>
23026
23027         version-etc: match standards.texi style
23028         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
23029         and use <> only for URLs.
23030
23031 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
23032
23033         fts: do not fail on a submount during traversal
23034         * lib/fts.c (fts_build): Read the stat info again after opening
23035         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
23036         Original report at http://bugzilla.redhat.com/501848.
23037
23038 2009-11-12  Jim Meyering  <meyering@redhat.com>
23039
23040         bootstrap: sync from coreutils
23041         * build-aux/bootstrap (bootstrap_epilogue): New function.
23042         Use git_modules_config in one more place.  This make bootstrap's
23043         --gnulib-srcdir option more useful for testing.
23044
23045         bootstrap: generalize autoheader check
23046         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
23047         AC_CONFIG_HEADERS.
23048
23049 2009-11-11  Eric Blake  <ebb9@byu.net>
23050
23051         mkfifoat: use new modules for Solaris and BSD bugs
23052         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
23053         * lib/mkfifoat.c (mknodat): Split...
23054         * lib/mknodat.c (mknodat): ...into new file.
23055         * modules/mkfifoat (Files): Ship new file.
23056         (Depends-on): Add mkfifo, mknod.
23057         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
23058         (Depends-on): Add symlink.
23059         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
23060         redundant with test_mkfifo.h.
23061         (do_mkfifoat, do_mknodat): New helpers.
23062
23063         mknod: new module
23064         * modules/mknod: New file.
23065         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
23066         * lib/mknod.c (mknod): Likewise.
23067         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23068         defaults.
23069         * modules/sys_stat (Makefile.am): Substitute them.
23070         * lib/sys_stat.in.h (mknod): Declare replacement.
23071         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23072         Document it.
23073         * doc/posix-functions/mknod.texi (mknod): Likewise.
23074         * modules/mknod-tests: New test.
23075         * tests/test-mknod.c: Likewise.
23076
23077         mkfifo: new module
23078         * modules/mkfifo: New file.
23079         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23080         * lib/mkfifo.c (mkfifo): Likewise.
23081         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23082         defaults.
23083         * modules/sys_stat (Makefile.am): Substitute them.
23084         * lib/sys_stat.in.h (mkfifo): Declare replacement.
23085         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23086         Document it.
23087         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
23088         * modules/mkfifo-tests: New test.
23089         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
23090         from test-mkfifoat.c.
23091         * tests/test-mkfifo.c: New file.
23092
23093         readlink: detect FreeBSD bug
23094         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
23095         slash on symlink.
23096         * doc/posix-functions/readlink.texi (readlink): Document the bug.
23097         * tests/test-readlink.h (test_readlink): Enhance test.
23098
23099         symlink: detect FreeBSD bug
23100         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
23101         slash on symlink.
23102         * doc/posix-functions/symlink.texi (symlink): Document the bug.
23103         * tests/test-symlink.h (test_symlink): Enhance test.
23104
23105 2009-11-10  Eric Blake  <ebb9@byu.net>
23106
23107         link: detect FreeBSD bug
23108         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
23109         symlink.
23110         * doc/posix-functions/link.texi (link): Document the bug.
23111         * tests/test-link.h (test_link): Enhance test.
23112         * tests/test-linkat.c (main): Update caller.
23113
23114         unlink, remove: detect FreeBSD bug
23115         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
23116         slash on symlink.
23117         * doc/posix-functions/unlink.texi (unlink): Document the bug.
23118         * doc/posix-functions/remove.texi (remove): Likewise.
23119         * tests/test-unlink.h (test_unlink): Enhance test.
23120         * tests/test-remove.c (main): Likewise.
23121
23122 2009-11-09  Eric Blake  <ebb9@byu.net>
23123
23124         rename: detect FreeBSD bug
23125         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
23126         slash on symlink.
23127         * modules/renameat-tests (Depends-on): Add filenamecat.
23128         * tests/test-rename.h (test_rename): Allow one more errno.
23129         * tests/test-renameat.c (main): Likewise.
23130         * doc/posix-functions/rename.texi (rename): Document the bug.
23131
23132         open: detect FreeBSD bug
23133         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
23134         symlink.
23135         * doc/posix-functions/open.texi (open): Document the bug.
23136         * doc/posix-functions/utimes.texi (utimes): Likewise.
23137         * tests/test-open.h (test_open): Add parameters, and test symlink
23138         handling.
23139         * tests/test-open.c (main): Adjust caller.
23140         * tests/test-fcntl-safer.c (main): Likewise.
23141         * modules/open-tests (Depends-on): Add stdbool, symlink.
23142         * modules/fcntl-safer-tests (Depends-on): Likewise.
23143         * tests/test-openat.c (main): Add test-open tests.
23144
23145         stat: detect FreeBSD bug
23146         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
23147         symlink.
23148         * doc/posix-functions/stat.texi (stat): Document the bug.
23149         * tests/test-stat.h (test_stat_func): Add argument.
23150         * tests/test-stat.c (main): Adjust caller.
23151         * tests/test-fstatat.c (main): Likewise.
23152         * modules/stat-tests (Depends-on): Add stdbool, symlink.
23153         Reported by Jim Meyering.
23154
23155 2009-11-09  James Youngman  <jay@gnu.org>
23156
23157         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
23158         * lib/strftime.c: Correct placement of #include "ignore-value.h".
23159
23160 2009-11-08  Jim Meyering  <meyering@redhat.com>
23161
23162         utimens: remove invalid futimesat call
23163         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
23164         It used the file descriptor of the target file as the DIR_FD
23165         parameter and NULL as the file name.  That caused failure with
23166         errno == EFAULT on FreeBSD-8.0-rc2
23167
23168 2009-11-07  Eric Blake  <ebb9@byu.net>
23169
23170         fflush, freadseek: use fseeko, not fseek
23171         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
23172         (clear_ungetc_buffer): Avoid potential problems on large files.
23173         * lib/freadseek.c (freadseek): Likewise.
23174         * modules/freadseek (Depends-on): Add fseeko.
23175         * modules/fseek (configure.ac): Set a witness.
23176         * tests/test-fflush.c (main): Use fseeko.
23177         * tests/test-fpurge.c (fseek): Disable link warning.
23178         * tests/test-freadable.c (fseek): Likewise.
23179         * tests/test-freading.c (fseek): Likewise.
23180         * tests/test-fseeko.c (fseek): Likewise.
23181         * tests/test-ftell.c (fseek): Likewise.
23182         * tests/test-ftello.c (fseek): Likewise.
23183         * tests/test-fwritable.c (fseek): Likewise.
23184         * tests/test-fwriting.c (fseek): Likewise.
23185
23186 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23187
23188         * modules/memchr (Depends-on): Drop getpagesize dependency.
23189
23190 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23191
23192         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
23193         Reported by Ludovic Courtès.
23194         * build-aux/pmccabe2html: Improve example usage.
23195         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
23196
23197 2009-11-06  Jim Meyering  <meyering@redhat.com>
23198
23199         do-release-commit-and-tag: New module.
23200         Automate the release-commit and tag process.
23201         * build-aux/do-release-commit-and-tag: New script, from coreutils.
23202         * modules/do-release-commit-and-tag: New file.
23203         * MODULES.html.sh (Support for maintaining and releasing): Add it.
23204
23205 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23206
23207         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
23208         because test-select.c uses inet_pton.
23209
23210 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23211
23212         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
23213         GETADDRINFO_LIB.  Bump serial number.
23214         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
23215         Suggested by Eric Blake <ebb9@byu.net>.
23216
23217 2009-11-05  Eric Blake  <ebb9@byu.net>
23218
23219         strtod: detect darwin bug
23220         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
23221         Reported by Leo Davis.
23222
23223         freopen-safer: new module
23224         * modules/freopen-safer: New module.
23225         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
23226         * lib/freopen-safer.c (freopen_safer): New file.
23227         * lib/stdio-safer.h (freopen_safer): New declaration.
23228         * lib/stdio--.h (freopen): New override.
23229         * MODULES.html.sh (File stream based Input/Output): Mention it.
23230         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
23231         freopen-safer module.
23232         * doc/posix-functions/stderr.texi (stderr): Likewise.
23233         * doc/posix-functions/stdin.texi (stdin): Likewise.
23234         * doc/posix-functions/stdout.texi (stdout): Likewise.
23235         * modules/freopen-safer-tests: New test.
23236         * tests/test-reopen-safer.c: New file.
23237
23238 2009-11-05  Jim Meyering  <meyering@redhat.com>
23239
23240         maint.mk: Prohibit inclusion of "close-stream.h" without use.
23241         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23242
23243 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23244
23245         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
23246
23247 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23248
23249         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
23250
23251 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23252
23253         Fix link error.
23254         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23255         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23256
23257 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23258
23259         * tests/test-func.c: Also test value of __func__.
23260
23261 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23262
23263         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
23264         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
23265
23266 2009-11-05  Bruno Haible  <bruno@clisp.org>
23267
23268         Fix link error.
23269         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23270         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23271         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
23272
23273 2009-11-05  Bruno Haible  <bruno@clisp.org>
23274
23275         Tests for module 'inet_pton'.
23276         * modules/inet_pton-tests: New file.
23277         * tests/test-inet_pton.c: New file.
23278
23279 2009-11-05  Bruno Haible  <bruno@clisp.org>
23280
23281         Tests for module 'inet_ntop'.
23282         * modules/inet_ntop-tests: New file.
23283         * tests/test-inet_ntop.c: New file.
23284
23285 2009-11-04  Eric Blake  <ebb9@byu.net>
23286
23287         stdlib-safer: wrap all mkstemp variants
23288         * modules/mkostemp (configure.ac): Set witness.
23289         * modules/mkostemps (configure.ac): Likewise.
23290         * modules/mkstemps (configure.ac): Likewise.
23291         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
23292         (mkstemps_safer): Wrap more functions.
23293         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
23294         wrapping.
23295         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
23296         (mkstemps_safer): Implement the wrappers.
23297
23298         mkstemps, mkostemps: new modules
23299         * modules/mkostemps: New module.
23300         * modules/mkstemps: Likewise.
23301         * lib/mkostemps.c (mkostemps): New file.
23302         * lib/mkstemps.c (mkstemps): Likewise.
23303         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
23304         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
23305         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
23306         * modules/stdlib (Makefile.am): Substitute them.
23307         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
23308         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
23309         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23310         * doc/gnulib.texi (Glibc stdlib.h): Include them.
23311         * MODULES.html.sh (File system functions): Mention them.
23312
23313         tempname: resync from glibc
23314         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
23315         same values for __GT_FILE as glibc.  Abort even when assertions
23316         are disabled.
23317         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
23318         match its value otherwise.  Allow idempotent inclusion.
23319         * lib/mkdtemp.c (mkdtemp): Adjust caller.
23320         * lib/mkostemp.c (mkostemp): Likewise.
23321         * lib/mkstemp.c (mkstemp): Likewise.
23322         * lib/tmpfile.c (tmpfile): Likewise.
23323         * NEWS: Document this.
23324
23325         utimens: fix use of futimens on older Linux
23326         * lib/utimens.c (fdutimens): Use updated, rather than original,
23327         timespec to avoid bug in older Linux kernel.
23328         Reported by Simon Josefsson.
23329
23330 2009-11-04  Bruno Haible  <bruno@clisp.org>
23331
23332         Make num_processors more flexible and consistent.
23333         * lib/nproc.h (enum nproc_query): New type.
23334         (num_processors): Add a 'query' argument.
23335         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
23336         (num_processors): Add a 'query' argument. Test the value of the
23337         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
23338         mingw, count the number of CPUs available for the current process.
23339         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
23340         Check for sched_getaffinity and sched_getaffinity_np.
23341         * modules/nproc (Depends-on): Add c-ctype, extensions.
23342         * NEWS: Mention the change.
23343
23344 2009-11-03  Bruno Haible  <bruno@clisp.org>
23345
23346         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
23347
23348 2009-11-03  Jim Meyering  <meyering@redhat.com>
23349
23350         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
23351         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
23352         if it is defined.
23353
23354 2009-11-02  Eric Blake  <ebb9@byu.net>
23355
23356         mktime, timegm: share common declaration
23357         * lib/mktime-internal.h: New file.
23358         * lib/mktime.c: Use it rather than open-coding a declaration.
23359         * lib/timegm.c: Likewise.
23360         * modules/mktime (Files): Ship it.
23361         * modules/timegm (Files): Likewise.
23362         Suggested by Bruno Haible.
23363
23364         test-update-copyright: update test to match script changes
23365         * tests/test-update-copyright.sh: Avoid hard-coding perl
23366         location.  Don't update *.bak created by earlier runs.
23367
23368 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23369             Simon Josefsson  <simon@josefsson.org>
23370             Bruno Haible  <bruno@clisp.org>
23371
23372         Fix link error on Solaris 8.
23373         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
23374         also in libnsl. Define also INET_PTON_LIB.
23375         * modules/inet_pton (Link): New section.
23376
23377 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23378             Bruno Haible  <bruno@clisp.org>
23379
23380         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
23381         * modules/inet_ntop (Link): New section.
23382         Reported by Boyan Kasarov <bkasarov@gmail.com>.
23383
23384 2009-11-02  Eric Blake  <ebb9@byu.net>
23385
23386         maint: avoid compiler warnings in m4 macros
23387         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
23388         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
23389
23390 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23391
23392         * m4/pmccabe2html.m4: Remove file.
23393         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
23394         function.  Change maintainer.
23395         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
23396         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
23397         Courtès).
23398
23399 2009-10-31  Eric Blake  <ebb9@byu.net>
23400
23401         fseeko: fix m4 regression
23402         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
23403         regression from 2009-10-27.
23404         Reported by Ralf Wildenhues.
23405
23406 2009-10-31  Jim Meyering  <meyering@redhat.com>
23407
23408         inttostr: aesthetics and improved (compile-time) safety
23409         Define inttype_is_signed rather than inttype_is_unsigned,
23410         since the sole use is via "#if inttype_is_signed".
23411         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
23412         inttype_is_unsigned.
23413         * lib/offtostr.c (inttype_is_signed): Likewise.
23414         * lib/uinttostr.c (inttype_is_signed): Likewise.
23415         * lib/umaxtostr.c (inttype_is_signed): Likewise.
23416         * lib/inttostr.c (inttostr): Use verify to cross-check the
23417         inttype_is_signed value and the signedness of the actual type.
23418         * modules/inttostr (Depends-on): Add verify.
23419
23420 2009-10-30  Eric Blake  <ebb9@byu.net>
23421
23422         build: avoid compiler warnings
23423         * lib/fchmodat.c (lchmod): Mark unused variables.
23424         * lib/getopt.c (_getopt_initialize): Likewise.
23425         * lib/mktime.c (__mktime_internal): Provide prototype.
23426         * lib/inttostr.c (inttostr): Avoid compiler warning even with
23427         older gcc that do not understand #pragma GCC diagnostic.
23428         * lib/uinttostr.c (inttype_is_unsigned): Define.
23429         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
23430
23431 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
23432
23433         stat: fix compilation on AIX
23434         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
23435         only see struct stat64.
23436
23437 2009-10-30  Eric Blake  <ebb9@byu.net>
23438
23439         exclude: make more robust
23440         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
23441         rather than masking a coding bug.
23442         Suggested by Bruno Haible.
23443
23444 2009-10-30  Jim Meyering  <meyering@redhat.com>
23445
23446         perl scripts: remove #!/usr/bin/perl in favor of more portable...
23447         Rather than putting #!/usr/bin/perl on the first line,
23448         start with a variant of what's recommended by "man perlrun" that
23449         invokes the first "perl" program from your shell's search path.
23450         * build-aux/gitlog-to-changelog: Replace #!... as above.
23451         Add a "Local Variables" perl mode setting.
23452         Prompted by a patch from Ludovic Courtès.
23453         Improved by Eric Blake.
23454         * build-aux/useless-if-before-free: Likewise.
23455         * build-aux/announce-gen: Likewise.
23456         * build-aux/update-copyright: Likewise.
23457
23458 2009-10-29  Eric Blake  <ebb9@byu.net>
23459
23460         filenamecat-lgpl: adjust clients
23461         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
23462         filenamecat.
23463         * modules/renameat (Depends-on): Likewise.
23464
23465         filenamecat: split into filenamecat-lgpl
23466         * modules/filenamecat-lgpl: New module.
23467         * modules/filenamecat (Files): Move library-safe files into
23468         filenamecat-lgpl.
23469         (Depends-on): Add filenamecat-lgpl.
23470         (configure.ac): Declare witness.
23471         * lib/filenamecat.h (file_name_concat): Only declare when using
23472         GPL module.
23473         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
23474         Move...
23475         * lib/filenamecat-lgpl.c: ...into new file.
23476         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
23477         (gl_FILE_NAME_CONCAT): Use it.
23478         * MODULES.html.sh (File system functions): Mention new module.
23479
23480         argp: avoid memory leak
23481         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
23482         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
23483         base_name, since the latter malloc()s and can call exit().
23484         Leak introduced 2006-07-03.
23485
23486         dirname-lgpl: adjust clients that don't need full dirname
23487         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
23488         * modules/filenamecat (Depends-on): Likewise.
23489         * modules/linkat (Depends-on): Likewise.
23490         * modules/mkancesdirs (Depends-on): Likewise.
23491         * modules/mkdir (Depends-on): Likewise.
23492         * modules/openat (Depends-on): Likewise.
23493         * modules/savewd (Depends-on): Likewise.
23494         * modules/rename (Depends-on): Likewise.
23495         (License): Relax license.
23496         * modules/mkdir-tests (Depends-on): Drop progname.
23497         (Makefile.am): Delete unneeded LDADD.
23498         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
23499
23500         dirname: split into dirname-lgpl
23501         * modules/dirname-lgpl: New module.
23502         * modules/dirname (Files): Move library-safe files into
23503         dirname-lgpl.
23504         (Depends-on): Add dirname-lgpl.
23505         (configure.ac): Declare witness.
23506         * modules/double-slash-root (License): Relax license.
23507         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
23508         module.
23509         * lib/dirname.c (dir_len, mdir_name): Move...
23510         * lib/dirname-lgpl.c: ...into new file.
23511         * lib/basename.c (last_component, base_len): Move...
23512         * lib/basename-lgpl.c: ...into new file.
23513         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
23514         (gl_DIRNAME): Use it.
23515         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
23516         Mention new module.
23517         * modules/dirname-tests (Depends-on): Add progname.
23518         * tests/test-dirname.c (program_name): Delete.
23519
23520         mkdir: make safe for libraries
23521         * modules/mkdir (Depends-on): Drop xalloc.
23522         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
23523         exit.
23524
23525         tests: avoid some compiler warnings
23526         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
23527         literals.
23528         * tests/test-memchr.c (main): Avoid type mismatch.
23529         * tests/test-arpa_inet.c (main): Avoid unused parameters.
23530         * tests/test-base64.c (main): Likewise.
23531         * tests/test-getdelim.c (main): Likewise.
23532         * tests/test-gethostname.c (main): Likewise.
23533         * tests/test-getline.c (main): Likewise.
23534         * tests/test-netinet_in.c (main): Likewise.
23535         * tests/test-select.c (open_server_socket, main): Likewise.
23536         * tests/test-select-stdin.c (main): Likewise.
23537         * tests/test-sockets.c (main): Likewise.
23538         * tests/test-strsignal.c (main): Likewise.
23539         * tests/test-sys_select.c (main): Likewise.
23540         * tests/test-sys_socket.c (main): Likewise.
23541         * tests/test-u64.c (main): Likewise.
23542         * tests/test-xfprintf-posix.c (main): Likewise.
23543         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
23544
23545         sockets: avoid compiler warning
23546         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
23547
23548         maint: detect usage(1) and other suspicious exits
23549         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
23550
23551 2009-10-29  Jim Meyering  <meyering@redhat.com>
23552
23553         timespec: long-to-int truncation could make timespec_cmp malfunction
23554         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
23555         a multiple of 2^32 nanoseconds as no difference.
23556
23557 2009-10-28  Jim Meyering  <meyering@redhat.com>
23558
23559         fprintftime: wrap macro code argument in "do {...} while(0)"
23560         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
23561         cpy macro must be a statement that can be followed by a semicolon.
23562         Now that the else clause contains a comment and is hence longer
23563         than one line, I require curly braces.  That in turn requires
23564         that we wrap this code block in the standard do...while(0).
23565
23566         fprintftime: remove stray semicolon from previous change
23567         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
23568
23569         fprintftime: avoid a warning about ignored fwrite return value
23570         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
23571         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
23572         that is unsafe.
23573         * modules/fprintftime (Depends-on): Add ignore-value.
23574
23575         exclude: avoid an unwarranted warning
23576         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
23577
23578 2009-10-27  Eric Blake  <ebb9@byu.net>
23579
23580         fseek: avoid compilation failure when fflush is replaced
23581         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
23582         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
23583         module is in use.
23584         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
23585         module is not in use; since REPLACE_FSEEK worked otherwise.
23586         (GNULIB_FTELLO): Likewise for ftell.
23587         Reported by Ian Beckwith and others.
23588
23589 2009-10-27  Bruno Haible  <bruno@clisp.org>
23590
23591         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
23592         Reported by Jim Meyering.
23593
23594 2009-10-27  Jim Meyering  <jim@meyering.net>
23595             Bruno Haible  <bruno@clisp.org>
23596
23597         Avoid warning despite dropping the return value of fwrite.
23598         * lib/unicodeio.c: Include ignore-value.h.
23599         (fwrite_success_callback): Explicitly ignore fwrite's return value.
23600         * modules/unicodeio (Depends-on): Add ignore-value.
23601
23602 2009-10-26  Eric Blake  <ebb9@byu.net>
23603
23604         areadlinkat: fix fallback path
23605         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
23606         pointer and zero.
23607
23608 2009-10-22  Pádraig Brady  <P@draigBrady.com>
23609
23610         Use a better IO block size for modern systems
23611         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
23612         * lib/md2.c: Likewise.
23613         * lib/md4.c: Likewise.
23614         * lib/md5.c: Likewise.
23615         * lib/sha1.c: Likewise.
23616         * lib/sha256.c: Likewise.
23617         * lib/sha512.c: Likewise.
23618
23619 2009-10-22  Eric Blake  <ebb9@byu.net>
23620
23621         tests: avoid several compiler warnings
23622         * tests/test-getcwd.c (main): Avoid buffer underflow.
23623         * tests/test-getdate.c (main): String literals are not safe with
23624         putenv, so use setenv.  Declare unused argument.
23625         * modules/getdate-tests (Depends-on): Add setenv.
23626         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
23627         problems with string literals in char *.
23628         * tests/test-hash.c (main): Avoid shadowing declaration.
23629         (insert_new): Treat string literals as char const *.
23630         * tests/test-getopt.h (test_getopt): Likewise.
23631         (getopt_loop): Alter types to minimize casting elsewhere.
23632         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
23633         (test_getopt_long_posix): Likewise.
23634         (do_getopt_long): Add wrapper to minimize casting.
23635         * tests/test-atexit.c (clear_temp_file): Use void.
23636         * tests/test-areadlink-with-size.c (main): Declare unused
23637         arguments.
23638         * tests/test-areadlink.c (main): Likewise.
23639         * tests/test-areadlinkat-with-size.c (main): Likewise.
23640         * tests/test-areadlinkat.c (main): Likewise.
23641         * tests/test-canonicalize-lgpl.c (main): Likewise.
23642         * tests/test-canonicalize.c (main): Likewise.
23643         * tests/test-dirent-safer.c (main): Likewise.
23644         * tests/test-dirname.c (main): Likewise.
23645         * tests/test-dup2.c (main): Likewise.
23646         * tests/test-fchdir.c (main): Likewise.
23647         * tests/test-fcntl-h.c (main): Likewise.
23648         * tests/test-fcntl-safer.c (main): Likewise.
23649         * tests/test-fdopendir.c (main): Likewise.
23650         * tests/test-fdutimensat.c (main): Likewise.
23651         * tests/test-fflush.c (main): Likewise.
23652         * tests/test-filenamecat.c (main): Likewise.
23653         * tests/test-filevercmp.c (main): Likewise.
23654         * tests/test-fopen-safer.c (main): Likewise.
23655         * tests/test-fopen.c (main): Likewise.
23656         * tests/test-fpending.c (main): Likewise.
23657         * tests/test-fpurge.c (main): Likewise.
23658         * tests/test-freading.c (main): Likewise.
23659         * tests/test-fstatat.c (main): Likewise.
23660         * tests/test-fsync.c (main): Likewise.
23661         * tests/test-futimens.c (main): Likewise.
23662         * tests/test-getndelim2.c (main): Likewise.
23663         * tests/test-gettimeofday.c (main): Likewise.
23664         * tests/test-getopt.c (main): Likewise.
23665         * tests/test-i-ring.c (main): Likewise.
23666         * tests/test-inttypes.c (main): Likewise.
23667         * tests/test-link.c (main): Likewise.
23668         * tests/test-lstat.c (main): Likewise.
23669         * tests/test-math.c (main): Likewise.
23670         * tests/test-md5.c (main): Likewise.
23671         * tests/test-memchr2.c (main): Likewise.
23672         * tests/test-memrchr.c (main): Likewise.
23673         * tests/test-mkdir.c (main): Likewise.
23674         * tests/test-mkdirat.c (main): Likewise.
23675         * tests/test-mkfifoat.c (main): Likewise.
23676         * tests/test-open.c (main): Likewise.
23677         * tests/test-openat-safer.c (main): Likewise.
23678         * tests/test-openat.c (main): Likewise.
23679         * tests/test-quotearg.c (main): Likewise.
23680         * tests/test-rawmemchr.c (main): Likewise.
23681         * tests/test-readlink.c (main): Likewise.
23682         * tests/test-remove.c (main): Likewise.
23683         * tests/test-rename.c (main): Likewise.
23684         * tests/test-renameat.c (main): Likewise.
23685         * tests/test-rmdir.c (main): Likewise.
23686         * tests/test-sha1.c (main): Likewise.
23687         * tests/test-signal.c (main): Likewise.
23688         * tests/test-sigaction.c (main): Likewise.
23689         * tests/test-stat.c (main): Likewise.
23690         * tests/test-stat-time.c (main): Likewise.
23691         * tests/test-stddef.c (main): Likewise.
23692         * tests/test-stdint.c (main): Likewise.
23693         * tests/test-stdio.c (main): Likewise.
23694         * tests/test-stdlib.c (main): Likewise.
23695         * tests/test-strchrnul.c (main): Likewise.
23696         * tests/test-strerror.c (main): Likewise.
23697         * tests/test-string.c (main): Likewise.
23698         * tests/test-strtod.c (main): Likewise.
23699         * tests/test-strverscmp.c (main): Likewise.
23700         * tests/test-symlink.c (main): Likewise.
23701         * tests/test-symlinkat.c (main): Likewise.
23702         * tests/test-sys_stat.c (main): Likewise.
23703         * tests/test-sys_time.c (main): Likewise.
23704         * tests/test-time.c (main): Likewise.
23705         * tests/test-unistd.c (main): Likewise.
23706         * tests/test-unlink.c (main): Likewise.
23707         * tests/test-unlinkat.c (main): Likewise.
23708         * tests/test-utimens.c (main): Likewise.
23709         * tests/test-utimensat.c (main): Likewise.
23710         * tests/test-version-etc.c (main): Likewise.
23711         * tests/test-wchar.c (main): Likewise.
23712         * tests/test-wctype.c (main): Likewise.
23713         * tests/test-xprintf-posix.c (main): Likewise.
23714         * tests/test-posixtm.c (main): Likewise.
23715         (STREQ): Delete unused macro.
23716         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
23717         shadowed variables.
23718         * tests/test-memchr.c (main): Likewise.
23719
23720 2009-10-21  Eric Blake  <ebb9@byu.net>
23721
23722         areadlinkat: avoid failure on older glibc
23723         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
23724         rather than mis-comparing 0 against FUNC_RESULT of char*.
23725
23726 2009-10-21  Bruno Haible  <bruno@clisp.org>
23727
23728         * modules/stpncpy (License): Relicense under LGPLv2+.
23729         Reported by David Lutterkort <lutter@redhat.com>.
23730
23731 2009-10-20  Eric Blake  <ebb9@byu.net>
23732
23733         utimensat: work around Solaris 9 bug
23734         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
23735         has trailing slash bugs.
23736         * tests/test-lutimens.h (test_lutimens): Enhance test.
23737         * tests/test-utimens.h (test_utimens): Likewise.
23738         * doc/posix-functions/utime.texi (utime): Enhance documentation.
23739         * doc/posix-functions/utimes.texi (utimes): Likewise.
23740         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23741         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
23742         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
23743         * doc/posix-functions/futimens.texi (futimens): Likewise.
23744
23745         fdutimensat: new module
23746         * modules/fdutimensat: New file.
23747         * lib/fdutimensat.c (fdutimensat): Likewise.
23748         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
23749         * MODULES.html.sh (File system functions): Mention module.
23750         * modules/fdutimensat-tests: New test.
23751         * tests/test-fdutimensat.c: Likewise.
23752
23753         doc: regenerate INSTALL
23754         * doc/INSTALL: Reflect recent autoconf update.
23755         * doc/INSTALL.ISO: Likewise.
23756         * doc/INSTALL.UTF-8: Likewise.
23757
23758 2009-10-20  Pádraig Brady  <P@draigBrady.com>
23759
23760         acl: warn if ACL support is not detected
23761         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
23762
23763 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
23764
23765         * lib/nproc.h: Add extern "C" block for C++.
23766
23767 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
23768             Bruno Haible  <bruno@clisp.org>
23769
23770         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
23771         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
23772         * doc/posix-functions/isalpha.texi: Likewise.
23773         * doc/posix-functions/isblank.texi: Likewise.
23774         * doc/posix-functions/iscntrl.texi: Likewise.
23775         * doc/posix-functions/isdigit.texi: Likewise.
23776         * doc/posix-functions/isgraph.texi: Likewise.
23777         * doc/posix-functions/islower.texi: Likewise.
23778         * doc/posix-functions/isprint.texi: Likewise.
23779         * doc/posix-functions/ispunct.texi: Likewise.
23780         * doc/posix-functions/isspace.texi: Likewise.
23781         * doc/posix-functions/isupper.texi: Likewise.
23782         * doc/posix-functions/isxdigit.texi: Likewise.
23783
23784 2009-10-18  Bruno Haible  <bruno@clisp.org>
23785
23786         Tests for module 'isblank'.
23787         * modules/isblank-tests: New file.
23788         * tests/test-isblank.c: New file.
23789
23790         New module 'isblank'.
23791         * lib/isblank.c: New file.
23792         * m4/isblank.m4: New file.
23793         * modules/isblank: New file.
23794         * doc/posix-functions/isblank.texi: Mention the new module.
23795
23796 2009-10-18  Bruno Haible  <bruno@clisp.org>
23797
23798         New module 'ctype'.
23799         * lib/ctype.in.h: New file.
23800         * m4/ctype.m4: New file.
23801         * modules/ctype: New file.
23802         * doc/posix-headers/ctype.texi: Mention the new module.
23803
23804 2009-10-18  Jim Meyering  <meyering@redhat.com>
23805
23806         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
23807         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
23808         right after its initialization, rather than farther down.
23809         Keeping these in close proximity makes it easier to ensure
23810         that each such variable is initialized.  E.g.,
23811
23812             LIB_CLOCK_GETTIME=
23813             AC_SUBST([LIB_CLOCK_GETTIME])
23814
23815         This change also increments these serial numbers.
23816         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
23817         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23818         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23819
23820 2009-10-18  Bruno Haible  <bruno@clisp.org>
23821
23822         Don't let environment variables perturb build.
23823         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
23824         (gl_PREREQ_GETHRXTIME): ... not here.
23825
23826 2009-10-18  Bruno Haible  <bruno@clisp.org>
23827
23828         Avoid symlink attack in localcharset module.
23829         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
23830         (O_NOFOLLOW): Define fallback.
23831         (get_charset_aliases): Don't open the file if it is a symbolic link.
23832         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
23833         gl_FCNTL_H.
23834         (gl_FCNTL_H): Require it.
23835         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
23836         * modules/localcharset (Files): Add m4/fcntl_h.m4.
23837         Reported by Fergal Glynn <fglynn@veracode.com>.
23838
23839 2009-10-18  Bruno Haible  <bruno@clisp.org>
23840
23841         Implement nproc for mingw.
23842         * lib/nproc.c: Include <windows.h>
23843         (num_processors): On native Windows platforms, try GetSystemInfo.
23844
23845 2009-10-18  Bruno Haible  <bruno@clisp.org>
23846
23847         Implement nproc for IRIX.
23848         * lib/nproc.c: Include <sys/sysmp.h>.
23849         (num_processors): On IRIX systems, try sysmp.
23850         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
23851
23852 2009-10-18  Bruno Haible  <bruno@clisp.org>
23853
23854         Implement nproc for HP-UX.
23855         * lib/nproc.c: Include <sys/pstat.h>
23856         (num_processors): On HP-UX systems, try pstat_getdynamic.
23857         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
23858         pstat_getdynamic.
23859
23860 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
23861             Bruno Haible  <bruno@clisp.org>
23862
23863         Implement nproc for NetBSD, OpenBSD.
23864         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
23865         (ARRAY_SIZE): New macro.
23866         (num_processors): On BSD systems, try sysctl of HW_NCPU.
23867         * m4/nproc.m4: New file.
23868         * modules/nproc (Files): Add m4/nproc.m4.
23869         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
23870         (Makefile.am): Instead, augment lib_SOURCES.
23871
23872 2009-10-18  Bruno Haible  <bruno@clisp.org>
23873
23874         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
23875         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
23876         sys/param.h.
23877
23878 2009-10-16  Eric Blake  <ebb9@byu.net>
23879
23880         utimensat: new module
23881         * modules/utimensat: New file.
23882         * lib/utimensat.c (utimensat): Likewise.
23883         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23884         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
23885         so we can work around Linux bugs.
23886         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23887         * modules/sys_stat (Makefile.am): Substitute them.
23888         * lib/sys_stat.in.h (utimensat): Declare it.
23889         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23890         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23891         * modules/utimensat-tests: New test.
23892         * tests/test-utimensat.c: Likewise.
23893
23894         utimens: let lutimens work on non-symlinks
23895         * lib/utimens.c (lutimens): Fall back to utimens rather than
23896         failing with ENOSYS, when file is not a symlink.
23897         (utimens): Reduce redirection.
23898         * tests/test-lutimens.h (test_lutimens): Update test to cover
23899         non-symlinks.
23900         * tests/test-utimens.h (test_utimens): Update test to cover
23901         symlinks.
23902         * tests/test-utimens.c (main): Update caller.
23903
23904         utimens: cache whether utimensat syscall works
23905         * lib/utimens.c (utimensat_works_really): New cache variable.
23906         (fdutimens, lutimens): Use it to avoid failing syscall.
23907
23908         test-stat-time, test-utimens: improve portability
23909         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
23910         ext4 on alpha, and for cygwin.
23911         * tests/test-utimens-common.h: New file.
23912         (nap): Factor delays into single function.
23913         * tests/test-lutimens.h (test_lutimens): Use new header.
23914         * tests/test-futimens.h (test_futimens): Likewise.
23915         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
23916         timestamps to occur from same machine, as was done previously for
23917         test_utimens.
23918         * modules/utimens-tests (Files): Ship new file.
23919         * modules/futimens-tests (Files): Likewise.
23920         Reported in part by Jim Meyering.
23921
23922         sys_stat: sort replacement declarations
23923         * lib/sys_stat.in.h: Sort declarations.
23924         * lib/futimens.c (futimens): Fix typo.
23925
23926 2009-10-15  Jim Meyering  <meyering@redhat.com>
23927
23928         don't let environment settings perturb build
23929         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
23930         could cause a configure-time and/or build-time malfunction.
23931         Typically, a configure-time function-in-library test is performed
23932         via code like this:
23933
23934           LIB_VAR=
23935           AC_SUBST([LIB_VAR])
23936           prefix_saved_LIBS=$LIBS
23937             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
23938                        [test "$ac_cv_search_FUNC" = "none required" ||
23939                         LIB_VAR=$ac_cv_search_FUNC])
23940           LIBS=$prefix_saved_LIBS
23941
23942         However, in each of the files affected by this change, the LIB_VAR=
23943         initialization was omitted.  Thus, when set in the environment, its
23944         value would propagate into generated Makefiles when FUNC is not found
23945         in LIB_NAME.
23946         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
23947         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23948         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23949
23950 2009-10-14  Eric Blake  <ebb9@byu.net>
23951
23952         fchdir: avoid infinite recursion in mingw
23953         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
23954         recursing.
23955
23956         test-stat-time: port to mingw
23957         * tests/test-stat-time.c (force_unlink): Return a value.
23958         (test_ctime) [W32]: Fix compilation error.
23959         (nap): Don't call usleep with too large an argument.  Use
23960         force_unlink.
23961         * doc/pastposix-functions/usleep.texi (usleep): Document the
23962         portability issue.
23963
23964 2009-10-13  Jim Meyering  <meyering@redhat.com>
23965
23966         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
23967         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
23968         * modules/pipe-filter-ii: Likewise.
23969         * modules/sys_socket-tests: Likewise.
23970         * modules/tsearch-tests: Likewise.
23971         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
23972         (check): Depend on it.
23973
23974 2009-10-12  Eric Blake  <ebb9@byu.net>
23975
23976         utimens-tests: port to NFS file systems
23977         * tests/test-utimens.h (test_utimens): Refactor utimecmp
23978         comparisons to avoid spurious failures from timestamp drift
23979         between NFS machines.
23980
23981 2009-10-12  Eric Blake  <ebb9@byu.net>
23982
23983         stat-time-tests: minor cleanups
23984         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
23985         * tests/test-stat-time.c (nap): Separate assignment from call.
23986         Suggested by Paolo Bonzini and Bruno Haible.
23987
23988         sys_stat: guarantee struct timespec
23989         * lib/sys_stat.in.h (includes): Always include <time.h>
23990         * modules/sys_stat (Depends-on): Add time.
23991         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
23992         mode_t permission values.
23993         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
23994         get at subsecond timestamps.
23995
23996 2009-10-10  Eric Blake  <ebb9@byu.net>
23997
23998         futimens: new module
23999         * modules/futimens: New file.
24000         * lib/futimens.c (futimens): Likewise.
24001         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
24002         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
24003         we can work around Linux bugs.
24004         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24005         * modules/sys_stat (Makefile.am): Substitute them.
24006         * lib/sys_stat.in.h (futimens): Declare it.
24007         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24008         * doc/posix-functions/futimens.texi (futimens): Likewise.
24009         * modules/futimens-tests: New test.
24010         * tests/test-futimens.c: Likewise.
24011
24012         utimens: introduce fdutimens
24013         * lib/utimens.h (fdutimens): New prototype.
24014         * lib/utimens.c (gl_futimens): Move guts...
24015         (fdutimens): ...to new interface.
24016         * tests/test-utimens.c (do_fdutimens): Use it.
24017
24018         utimens: add UTIME_NOW and UTIME_OMIT support
24019         * lib/utimens.c (validate_timespec, update_timespec): New helper
24020         functions.
24021         (gl_futimens, lutimens): Use them.
24022         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
24023         stdbool, sys_stat.
24024         (Link): Mention resulting library dependency.
24025         * modules/utimecmp (Link): Likewise.
24026         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
24027         (Makefile.am): Pick up library dependency.
24028         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
24029         definition.
24030         * tests/test-sys_stat.c: Test the definitions.
24031         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
24032         * NEWS: Document library dependency.
24033
24034         utimecmp: support symlink timestamps
24035         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
24036         hashing when possible.  Use pathconf when available.
24037         (SYSCALL_RESOLUTION): Recognize tighter resolution.
24038         * modules/utimecmp (Depends-on): Add lstat.
24039
24040         utimens: add lutimens interface
24041         * lib/utimens.c (lutimens): New function.
24042         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
24043         * lib/utimens.h (lutimens): Declare new interface.
24044         * tests/test-utimens.c (main): Enhance test.
24045         * tests/test-lutimens.h (test_lutimens): New file.
24046         * modules/utimens-tests (Files): Distribute it.
24047         (Depends-on): Add symlink.
24048         (configure.ac): Check for usleep.
24049
24050         utimens: validate futimens usage
24051         * lib/utimens.c (gl_futimens): Require valid fd up front, using
24052         fewer syscalls on failure later on.  Avoid compiler warning on
24053         mingw.
24054         * modules/utimens (Depends-on): Add dup2.
24055
24056         utimens: add test
24057         * modules/utimens-tests: New test.
24058         * tests/test-utimens.h: New file.
24059         * tests/test-futimens.h: Likewise.
24060         * tests/test-utimens.c: Likewise.
24061
24062         doc: mention timestamp portability issues
24063         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
24064         instead.
24065         * doc/posix-functions/utime.texi (utime): Likewise.
24066         * doc/posix-functions/utimes.texi (utimes): Likewise.
24067         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
24068         instead.
24069         * doc/posix-functions/futimens.texi (futimens): Mention utimens
24070         module.
24071         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24072         Mention weakness with symlink timestamps.
24073         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
24074         to utimensat/futimens instead.
24075         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
24076
24077         test-dup2: enhance test
24078         * tests/test-dup2.c (main): Also check AT_FDCWD.
24079
24080         test-stat-time: avoid more spurious failures
24081         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
24082         xfs; and avoid race if the two timestamps cross quantization edge.
24083
24084         relocatable: prefer 'file system' over 'filesystem'
24085         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
24086         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
24087         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
24088         * doc/relocatable.texi (Enabling Relocatability): Likewise.
24089         * lib/relocatable.c (compute_curr_prefix): Likewise.
24090
24091 2009-10-10  Jim Meyering  <meyering@redhat.com>
24092
24093         stat-time-tests: check for the usleep function
24094         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
24095
24096 2009-10-10  Bruno Haible  <bruno@clisp.org>
24097
24098         * modules/xnanosleep: Put the Link section after the Include section.
24099
24100 2009-10-09  Eric Blake  <ebb9@byu.net>
24101
24102         dup2: work around FreeBSD 6.1 bug
24103         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
24104         * doc/posix-functions/dup2.texi (dup2): Document it.
24105         Reported by Nelson H. F. Beebe and Jim Meyering.
24106
24107         test-stat-time: port to buggy NFS clients
24108         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
24109         (test_ctime): Also skip test if mtime and ctime are skewed.
24110
24111         maint: prefer 'file system' over 'filesystem'
24112         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24113         * doc/posix-functions/lstat.texi (lstat): Likewise.
24114         * lib/file-has-acl.c (file_has_acl): Likewise.
24115         * lib/fwriteerror.c [TEST]: Likewise.
24116         * tests/test-areadlink.h (test_areadlink): Likewise.
24117         * tests/test-areadlinkat-with-size.c (main): Likewise.
24118         * tests/test-areadlinkat.c (main): Likewise.
24119         * tests/test-canonicalize-lgpl.c (main): Likewise.
24120         * tests/test-canonicalize.c (main): Likewise.
24121         * tests/test-fstatat.c (main): Likewise.
24122         * tests/test-linkat.c (main): Likewise.
24123         * tests/test-lstat.h (test_lstat_func): Likewise.
24124         * tests/test-mkdir.h (test_mkdir): Likewise.
24125         * tests/test-readlink.h (test_readlink): Likewise.
24126         * tests/test-remove.c (main): Likewise.
24127         * tests/test-rename.h (test_rename): Likewise.
24128         * tests/test-renameat.c (main): Likewise.
24129         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24130         * tests/test-symlink.h (test_symlink): Likewise.
24131         * tests/test-symlinkat.c (main): Likewise.
24132         * tests/test-unlink.h (test_unlink_func): Likewise.
24133         * tests/test-unlinkat.c (main): Likewise.
24134
24135         maint: make realtime library usage explicit
24136         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
24137         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
24138         * modules/settime (Link): Likewise.
24139         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
24140
24141         test-stat-time: speed up execution
24142         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
24143         warning on mingw.
24144         (nap): New helper function.
24145         (prepare_test): Use it to reduce sleep time.
24146         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
24147         execution.
24148         * modules/stat-time-tests (configure.ac): Check for usleep.
24149
24150 2009-10-09  Jim Meyering  <meyering@redhat.com>
24151
24152         selinux-h: always use getfilecon wrappers
24153         * lib/getfilecon.c: New file.
24154         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
24155         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
24156         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
24157         (fgetfilecon): Provide a stub.
24158         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
24159         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
24160         file unconditionally.
24161         When <selinux/selinux.h> is found, arrange to use wrappers.
24162         * modules/selinux-h (Files): Add getfilecon.c.
24163         (Makefile.am): Substitute include-next-related bits
24164         into the now-always-generated selinux/selinux.h file.
24165         * doc/glibc-functions/lgetfilecon.texi: New file.
24166         * doc/glibc-functions/fgetfilecon.texi: New file.
24167         * doc/glibc-functions/getfilecon.texi: New file.
24168         * doc/glibc-functions/getfilecon-desc.texi: New file.
24169         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
24170         which to pull in the new files.
24171         * MODULES.html.sh (Misc): Add selinux-h.
24172
24173 2009-10-08  Jim Meyering  <meyering@redhat.com>
24174
24175         unistd: fix comment typo
24176         * lib/unistd.in.h (euidaccess): Fix a comment typo.
24177
24178 2009-10-08  Eric Blake  <ebb9@byu.net>
24179
24180         areadlink: use SIZE_MAX consistently
24181         * modules/areadlink (Depends-on): Add stdint.
24182         * modules/areadlink-with-size (Depends-on): Likewise.
24183         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
24184         gives NULL; drop sys/types, since unistd gives size_t; and add
24185         stdint for SIZE_MAX.
24186         (SIZE_MAX): Rely on headers.
24187         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
24188         and add stdint.
24189         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
24190         (SIZE_MAX): Likewise.
24191         (INITIAL_BUF_SIZE): Turn into enum.
24192         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
24193
24194 2009-10-08  Jim Meyering  <meyering@redhat.com>
24195
24196         areadlinkat: avoid compilation failure
24197         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
24198         Fix typo in comment.
24199
24200 2009-10-07  Eric Blake  <ebb9@byu.net>
24201
24202         areadlinkat-with-size: new module
24203         * modules/areadlinkat-with-size: New module.
24204         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
24205         * lib/areadlink.h (areadlinkat): Declare it.
24206         * MODULES.html.sh (File system functions): Mention it.
24207         * modules/areadlinkat-with-size-tests: New test.
24208         * tests/test-areadlinkat-with-size.c: New file.
24209
24210         xreadlinkat: new module
24211         * modules/xreadlinkat: New module.
24212         * lib/xreadlinkat.c (xreadlinkat): New file.
24213         * lib/xreadlink.h (xreadlinkat): Declare it.
24214         * MODULES.html.sh (File system functions): Mention it.
24215
24216         areadlinkat: new module
24217         * lib/at-func.c (FUNC_FAIL): New define.
24218         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
24219         * modules/areadlinkat: New module.
24220         * lib/linkat.c (areadlinkat): Move...
24221         * lib/areadlinkat.c (areadlinkat): ...to new file.
24222         * lib/areadlink.h (areadlinkat): Declare it.
24223         * modules/linkat (Depends-on): Add areadlinkat.
24224         * MODULES.html.sh (File system functions): Mention it.
24225         * modules/areadlinkat-tests: New test.
24226         * tests/test-areadlinkat.c: New file.
24227
24228         areadlink, areadlink-with-size: add tests
24229         * modules/areadlink-tests: New test.
24230         * modules/areadlink-with-size-tests: Likewise.
24231         * tests/test-areadlink.h: New file.
24232         * tests/test-areadlink.c: Likewise.
24233         * tests/test-areadlink-with-size.c: Likewise.
24234
24235         maint: minor cleanups
24236         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
24237         _UNUSED_PARAMETER_ instead.
24238         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
24239         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
24240         * modules/linkat-tests (Files): Distribute test-link.h.
24241
24242         openat, utimens: whitespace cleanup
24243         * lib/openat.c: Prefer space throughout, rather than mix of 8
24244         spaces vs. tabs.
24245         * lib/at-func.c: Likewise.
24246         * lib/utimens.c: Likewise.
24247
24248         openat: avoid using wrong fd
24249         * lib/openat.c (openat_permissive): Reject user's fd if saving the
24250         working directory chooses same fd.
24251         * lib/at-func.c (AT_FUNC_NAME): Likewise.
24252
24253         mkdir, mkdirat: fix cygwin 1.5.x bug
24254         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
24255         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
24256         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
24257         bug.
24258         (gl_PREREQ_MKDIR): Delete unused macro.
24259         * modules/mkdir (Files): Track file rename.
24260         (configure.ac): Update macro name.
24261         * modules/openat (Depends-on): Add mkdir.
24262         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
24263
24264         mkdir, mkdirat: add tests
24265         * modules/mkdir-tests: New test.
24266         * tests/test-mkdir.h: New file.
24267         * tests/test-mkdir.c: Likewise.
24268         * tests/test-mkdirat.c: Likewise.
24269         * modules/openat-tests (Files): Add new files.
24270         (Makefile.am): Run new test.
24271
24272 2009-10-06  Eric Blake  <ebb9@byu.net>
24273
24274         doc: tweak *at function documentation
24275         * doc/posix-functions/faccessat.texi (faccessat): Mention
24276         known issue with replacement.
24277         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
24278         * doc/posix-functions/linkat.texi (linkat): Likewise.
24279         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24280         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24281         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24282         * doc/posix-functions/renameat.texi (renameat): Likewise.
24283         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24284
24285         openat: fix GNU/Hurd bug in unlinkat
24286         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
24287         broken.
24288         * doc/posix-functions/unlink.texi (unlink): Document this.
24289         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
24290
24291         fdopendir: fix GNU/Hurd bug
24292         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
24293         allowing non-directory fds.
24294         * lib/fdopendir.c (rpl_fdopendir): Work around it.
24295         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24296         * modules/dirent (Makefile.am): Substitute it.
24297         * lib/dirent.in.h (fdopendir): Declare replacement.
24298         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
24299         * tests/test-fdopendir.c (main): Test something other than
24300         /dev/null, since on Hurd that behaves like a directory.
24301
24302         test-symlink: port to GNU/Hurd
24303         * tests/test-symlink.h (test_symlink): Relax expected errno.
24304
24305         doc: tweak more cygwin information
24306         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
24307         now compatible with glibc.
24308         * doc/posix-functions/getopt.texi (getopt): Likewise.
24309
24310         getopt-gnu: add another test
24311         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
24312         guarantee behavior relied on by m4.
24313         * tests/test-getopt.c (main): Use it.
24314         * modules/getopt-posix-tests (Depends-on): Add setenv.
24315         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
24316
24317         getopt: fix compilation on darwin
24318         * lib/getopt.in.h (includes): Leave breadcrumbs during system
24319         include.
24320         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
24321         Reported by Ludovic Courtès.
24322
24323 2009-10-06  Bruno Haible  <bruno@clisp.org>
24324
24325         * modules/size_max (Description): Discourage its use.
24326         Reported by Simon Josefsson.
24327
24328 2009-10-06  Jim Meyering  <meyering@redhat.com>
24329
24330         linkat: avoid compilation failure
24331         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
24332
24333 2009-10-05  Eric Blake  <ebb9@byu.net>
24334
24335         linkat: support Linux 2.6.17
24336         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
24337         linkat on Linux, but allow cache variable override.
24338         * lib/linkat.c (rpl_linkat): Define override.
24339         * modules/linkat (Depends-on): Add symlinkat.
24340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
24341         * modules/unistd (Makefile.am): Substitute it.
24342         * lib/unistd.in.h (linkat): Declare replacement.
24343         Reported by Pádraig Brady.
24344
24345         quotearg: port test to systems with C.UTF-8 locale
24346         * tests/test-quotearg.c (struct result_strings): Add another
24347         member, differentiating between C.ASCII and C.UTF-8 handling.
24348         (compare_strings): Add parameter.
24349         (main): Adjust all callers.
24350
24351         getopt: avoid clash with FreeBSD _getopt_internal
24352         * lib/getopt.in.h (_getopt_internal): Override the name.
24353         * lib/getopt_int.h (includes): Pick up any overrides.
24354         Reported by Reuben Thomas.
24355
24356         hash: allow C89 compilation
24357         * lib/hash.c (check_tuning): Move declaration before statement.
24358         Reported by Reuben Thomas.
24359
24360 2009-10-05  Karl Berry  <karl@gnu.org>
24361
24362         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
24363
24364 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
24365             Bruno Haible  <bruno@clisp.org>
24366
24367         * lib/uname.c (uname): Use a table-driven algorithm to compute
24368         Windows NT versions.
24369
24370 2009-10-04  Bruno Haible  <bruno@clisp.org>
24371
24372         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
24373         program_invocation_short_name.
24374         * modules/progname (configure.ac): Test for presence of
24375         program_invocation_short_name.
24376         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24377
24378 2009-10-04  Bruno Haible  <bruno@clisp.org>
24379
24380         * lib/progname.c (set_program_name): Fix comment.
24381         Reported by Jim Meyering.
24382
24383 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24384             Bruno Haible  <bruno@clisp.org>
24385
24386         * lib/uname.c: Include <string.h>.
24387         (uname): Do only one call to GetVersionEx in the common case.
24388
24389 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24390             Bruno Haible  <bruno@clisp.org>
24391
24392         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
24393         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
24394         (uname): Add support for Windows CE and various non-x86 CPU types.
24395
24396 2009-10-03  Bruno Haible  <bruno@clisp.org>
24397
24398         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
24399         invocation to tests/configure.ac.
24400         Reported by Ian Beckwith <ianb@erislabs.net>.
24401
24402 2009-10-02  Eric Blake  <ebb9@byu.net>
24403
24404         fchdir: avoid compiler warning
24405         * lib/fchdir.c (canonicalize_file_name)
24406         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
24407
24408         test-open: support mingw errno values
24409         * tests/test-open.h (test_open): Relax test.
24410         * tests/test-fopen.h (test_fopen): Likewise.
24411         * tests/test-openat-safer.c (main): Likewise.
24412
24413         open: fix opening directory on mingw
24414         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
24415
24416         test-open: on GNU/Hurd, /dev/null is a directory
24417         * tests/test-fopen.h (main): Rename...
24418         (test_fopen): ...to this.  Use a guaranteed non-directory when
24419         confirming open behavior on trailing slash.
24420         * tests/test-openat-safer.c (main): Likewise.
24421         * tests/test-open.h (main): Likewise....
24422         (test_open): ...to this.
24423         * tests/test-fopen.c (main): Adjust caller.
24424         * tests/test-fopen-safer.c (main): Likewise.
24425         * tests/test-open.c (main): Likewise.
24426         * tests/test-fcntl-safer.c (main): Likewise.
24427         Reported by Samuel Thibault.
24428
24429         rename, fchdir: don't ignore chdir failure
24430         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
24431         * lib/rename.c (rpl_rename) [W32]: Likewise.
24432         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
24433         an empty destination directory if source cannot be renamed,
24434         although there is still possibility for failure.
24435         * doc/posix-functions/rename.texi (rename): Document the race.
24436         Reported by Jim Meyering.
24437
24438         maint: cleanup whitespace in recent commits
24439         * lib/rename.c (rpl_rename): Remove tabs.
24440         * tests/test-link.h (test_link): Likewise.
24441         * lib/fchdir.c (get_name): Likewise.
24442         Reported by Jim Meyering.
24443
24444 2009-10-02  Ben Pfaff  <blp@gnu.org>
24445
24446         relocatable-prog-wrapper: Add missing dependency on
24447         double-slash-root.
24448         * modules/relocatable-prog-wrapper: Add dependency.
24449         Reported by Ian Beckwith <ianb@erislabs.net>.
24450
24451 2009-10-02  Eric Blake  <ebb9@byu.net>
24452
24453         renameat: fix Solaris bugs
24454         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
24455         needed fixing.
24456         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
24457         * modules/stdio (Makefile.am): Substitute it.
24458         * lib/stdio.in.h (renameat): Declare replacement.
24459         * lib/renameat.c (rpl_renameat): Implement fix.
24460
24461         renameat: new module
24462         * modules/renameat: New file.
24463         * lib/renameat.c (renameat): Likewise.
24464         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
24465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24466         * modules/stdio (Makefile.am): Substitute them.
24467         * lib/stdio.in.h (renameat): Declare it.
24468         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24469         * doc/posix-functions/renameat.texi (renameat): Likewise.
24470         * modules/renameat-tests: New test.
24471         * tests/test-renameat.c: Likewise.
24472
24473         rename: fix mingw bugs
24474         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
24475         directory overwrite bugs.
24476
24477         rename: fix another cygwin 1.5 bug
24478         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
24479         checks.
24480         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
24481         unnecessary cygwin workarounds.  Also work around bug with moving
24482         full directory onto an empty one.
24483         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
24484
24485         rename-dest-slash: merge into rename module
24486         * modules/rename-dest-slash (Status): Mark obsolete.
24487         (Depends-on): Add rename.
24488         (Files): Let rename do it all.
24489         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
24490         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
24491         * m4/rename-dest-slash.m4: ...so this file can be deleted.
24492         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
24493         * lib/rename.c (rpl_rename): Update comments.
24494
24495         rename: fix cygwin 1.5.x bugs
24496         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
24497         * lib/rename.c (rpl_rename): Work around them.
24498         * modules/rename (Depends-on): Add same-inode.
24499
24500         rename: fix Solaris 10 bug
24501         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24502         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
24503         was the only bug.
24504
24505         rename: fix Solaris 9 bug
24506         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
24507         on non-directory.  Avoid calling exit.
24508         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
24509         strdup.
24510         * modules/rename-tests (Depends-on): Drop lstat.
24511         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24512         (gl_PREREQ_RENAME): Delete unused macro.
24513
24514         rename-dest-slash: fix NetBSD bug
24515         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
24516         links.
24517         * modules/rename-dest-slash (Depends-on): Add same-inode.
24518
24519         rename-tests: new test, exposes several platform bugs
24520         * modules/rename-tests: New file.
24521         * tests/test-rename.h: Likewise.
24522         * tests/test-rename.c: Likewise.
24523         * doc/posix-functions/rename.texi (rename): Improve documentation,
24524         including bugs that will eventually be fixed in gnulib.
24525
24526 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
24527
24528         * lib/uname.c: Include <stdlib.h>
24529         (uname): Assume version info is available.
24530
24531 2009-10-02  Jim Meyering  <meyering@redhat.com>
24532
24533         gnu-web-doc-update: correct --help output
24534         * build-aux/gnu-web-doc-update: Make --help output relevant.
24535
24536         gnu-web-doc-update: add standard options
24537         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
24538
24539         gnu-web-doc-update: New module.
24540         Use this script to automatically update the on-line web documentation
24541         for your GNU project at http://www.gnu.org/software/$pkg/manual/
24542         * modules/gnu-web-doc-update: New file, from coreutils.
24543         * build-aux/gnu-web-doc-update: New script.
24544
24545 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
24546
24547         link: LoadLibrary is not needed.
24548         * lib/link.c: Use GetModuleHandle.
24549
24550 2009-10-01  Eric Blake  <ebb9@byu.net>
24551
24552         getopt: bump serial number
24553         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
24554         change.
24555
24556         tests: tighten link, rmdir, and remove tests
24557         * tests/test-link.h (includes): No need to use <config.h> here.
24558         Clean up if directory hard link was created, otherwise test for
24559         trailing '.'.
24560         * tests/test-linkat.c (main): Simplify.
24561         * tests/test-remove.c (main): Enhance test for trailing '.'.
24562         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24563
24564 2009-10-01  Jim Meyering  <meyering@redhat.com>
24565
24566         maint.mk: requiring "make major" was annoying, for a "minor" release.
24567         What is intended is "stable", to contrast with alpha and beta,
24568         so require "make stable", not "make major".
24569         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
24570         (get_tool_versions): Likewise.
24571         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
24572
24573 2009-09-30  Ben Pfaff  <blp@gnu.org>
24574
24575         Fix broken build of replacement for Windows tmpfile().
24576         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
24577         flags argument added along with the 'mkostemp' module.
24578
24579 2009-09-28  Bruno Haible  <bruno@clisp.org>
24580
24581         Avoid identifier clash with POSIX function 'remove' defined as a macro.
24582         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
24583         to 'remove_elt'.
24584         (gl_list_remove): Update.
24585         * lib/gl_list.c (gl_list_remove): Update.
24586         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
24587         to 'remove_elt'.
24588         (gl_oset_remove): Update.
24589         * lib/gl_list.c (gl_oset_remove): Update.
24590         Reported by Eric Blake.
24591
24592 2009-09-28  Eric Blake  <ebb9@byu.net>
24593
24594         doc: mention yet more cygwin 1.7 status
24595         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
24596         cygwin.
24597         * doc/glibc-functions/execvpe.texi (execvpe): New file.
24598         * doc/gnulib.texi (Glibc unistd.h): Mention it.
24599
24600         argp: fix test failure
24601         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
24602         that are not upper-case.  Pass correct range to tolower.
24603
24604 2009-09-27  Jim Meyering  <meyering@redhat.com>
24605
24606         test-yesno: work around sparc-dash here-document infelicity
24607         Without this change, the literal \177 byte in a here document
24608         would make dash 0.5.5.1-3 access uninitialized memory.
24609         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
24610         Instead, use a marker, "@", and filter through tr to create the desired
24611         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
24612
24613 2009-09-27  Bruno Haible  <bruno@clisp.org>
24614
24615         Disable untested support for new flavours of ACLs on AIX.
24616         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
24617         progress.
24618         * lib/set-mode-acl.c (qset_acl): Likewise.
24619
24620 2008-12-07  Bruno Haible  <bruno@clisp.org>
24621
24622         Add support for new flavours of ACLs on AIX. (Untested.)
24623         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
24624         (file_has_acl): Add support for newer AIX.
24625         * lib/set-mode-acl.c (qset_acl): Likewise.
24626         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
24627         Rainer Tammer <tammer@tammer.net>.
24628
24629 2009-09-26  Eric Blake  <ebb9@byu.net>
24630
24631         argp: fix compilation of getopt
24632         * lib/getopt.in.h (includes): Use different guard than glibc.
24633         Reported by Sergey Poznyakoff.
24634
24635         doc: mention more cygwin 1.7 status
24636         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
24637         bug.
24638         * doc/posix-functions/execl.texi (execl): Likewise.
24639         * doc/posix-functions/execle.texi (execle): Likewise.
24640         * doc/posix-functions/execlp.texi (execlp): Likewise.
24641         * doc/posix-functions/execv.texi (execv): Likewise.
24642         * doc/posix-functions/execve.texi (execve): Likewise.
24643         * doc/posix-functions/execvp.texi (execvp): Likewise.
24644         * doc/glibc-functions/canonicalize_file_name.texi
24645         (canonicalize_file_name): Cygwin 1.7 now provides this.
24646         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
24647         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
24648         on AT_SYMLINK_NOFOLLOW.
24649
24650 2009-09-24  Eric Blake  <ebb9@byu.net>
24651
24652         test-linkat: make test more robust
24653         * tests/test-linkat.c (main): Avoid collision with EEXIST.
24654
24655         getopt: fix inclusion guards for cygwin
24656         * modules/getopt-posix (Depends-on): Add include-next.
24657         (Makefile.am): Substitute more items in replacement header.
24658         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
24659         <getopt.h>.
24660         * lib/getopt.in.h (includes): Use split inclusion guard, and
24661         prefer <getopt.h> over include <unistd.h> when one is present.
24662         (option): Also override name of 'struct option'.
24663
24664         same-inode: revert prior change; it is not yet ready
24665         * NEWS: Undo mention of this change.
24666         * lib/same-inode.h (same-inode.h): Undo tri-state change.
24667         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24668         * lib/cycle-check.c (cycle_check): Likewise.
24669         * lib/same.c (same_name): Likewise.
24670         * lib/at-func2.c (at_func2): Likewise.
24671
24672 2009-09-23  Eric Blake  <ebb9@byu.net>
24673
24674         linkat: new module
24675         * modules/linkat: New file.
24676         * lib/at-func2.c (at_func2): Likewise.
24677         * lib/linkat.c (linkat): Likewise.
24678         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24679         * lib/openat-priv.h (at_func2): Add declaration.
24680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24681         * modules/unistd (Makefile.am): Substitute them.
24682         * lib/unistd.in.h (linkat): Declare it.
24683         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24684         * doc/posix-functions/linkat.texi (linkat): Likewise.
24685         * doc/posix-functions/link.texi (link): Tweak wording.
24686         * tests/test-link.c (main): Move guts...
24687         * tests/test-link.h (test_link): ...into new file.
24688         * modules/linkat-tests: New test.
24689         * tests/test-linkat.c: Likewise.
24690         * modules/link-tests (Files): Ship new file.
24691         (Depends-on): Add stdbool.
24692
24693         dirname: add library-safe mdir_name
24694         * lib/dirname.h (mdir_name): New prototype.
24695         * lib/dirname.c (dir_name): Move guts...
24696         (mdir_name): ...to new function that avoids xalloc_die.
24697
24698         fchdir: another mingw fix
24699         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
24700         * lib/fchdir.c (get_name): New helper method; skips canonicalize
24701         on mingw (where it has not yet been ported), and make it optional
24702         elsewhere.
24703         (_gl_register_fd): Use it.
24704
24705         same-inode: make SAME_INODE tri-state, to port to mingw
24706         * NEWS: Mention this change.
24707         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
24708         st_ino always being 0.
24709         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24710         * lib/cycle-check.c (cycle_check): Likewise.
24711         * lib/same.c (same_name): Likewise.
24712
24713         lstat: avoid mingw compilation error
24714         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
24715         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
24716         lstat ourselves.
24717         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
24718         was adequate.
24719         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
24720         the checks for lstat.
24721         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
24722
24723         link: fix test failure on Solaris 9
24724         * lib/link.c (rpl_link): Don't assume link will catch bogus
24725         trailing slash on source.
24726
24727         test-symlinkat: enhance test
24728         * tests/test-readlink.c (main): Move guts...
24729         * tests/test-readlink.h (test_readlink): ...into new file.
24730         * tests/test-symlink.c (main): Move guts...
24731         * tests/test-symlink.h (test_symlink): ...into new file.
24732         * tests/test-symlinkat.c (main): Use new files for further
24733         coverage.
24734         (do_symlink, do_readlink): New helper functions.
24735         * modules/symlink-tests (Files): Ship new file.
24736         (Depends-on): Add stdbool.
24737         * modules/readlink-tests (Files): Ship new file.
24738         (Depends-on): Add stdbool.
24739         * modules/symlinkat-tests (Files): Use new files.
24740
24741 2009-09-23  Eric Blake  <ebb9@byu.net>
24742
24743         readlink: document portability issue with symlink length
24744         * doc/posix-functions/lstat.texi (lstat): Mention that some file
24745         systems have bogus st_size on symlinks, and mention the
24746         areadlink-with-size module.
24747         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24748         * doc/posix-functions/readlink.texi (readlink): Mention the
24749         areadlink module, and ERANGE failure.
24750         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24751         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
24752
24753         readlink: fix Solaris 9 bug with trailing slash
24754         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
24755         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
24756         * doc/posix-functions/readlink.texi (readlink): Document this.
24757         * modules/readlink-tests: New test.
24758         * tests/test-readlink.c: Likewise.
24759
24760         readlink: fix cygwin 1.5.x bug with return type
24761         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
24762         * lib/unistd.in.h (readlink): Use ssize_t.
24763         * lib/readlink.c (readlink): Likewise.
24764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24765         * modules/unistd (Makefile.am): Substitute it.
24766         * lib/unistd.in.h (readlink): Declare replacement.
24767         * doc/posix-functions/readlink.texi (readlink): Document this.
24768
24769         symlink: use throughout gnulib
24770         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
24771         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
24772         symlink is not used.
24773         * modules/symlinkat (Depends-on): Add symlink.
24774         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24775         * modules/canonicalize-tests (Depends-on): Likewise.
24776         * modules/lstat-tests (Depends-on): Likewise.
24777         * modules/openat-tests (Depends-on): Likewise.
24778         * modules/remove-tests (Depends-on): Likewise.
24779         * modules/rmdir-tests (Depends-on): Likewise.
24780         * modules/unlink-tests (Depends-on): Likewise.
24781         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
24782         * tests/test-canonicalize.c (symlink): Likewise.
24783         * tests/test-fstatat.c (symlink): Likewise.
24784         * tests/test-lstat.c (symlink): Likewise.
24785         * tests/test-remove.c (symlink): Likewise.
24786         * tests/test-rmdir.c (symlink): Likewise.
24787         * tests/test-unlink.c (symlink): Likewise.
24788         * tests/test-unlinkat.c (symlink): Likewise.
24789
24790         symlink: new module, for Solaris 9 bug
24791         * modules/symlink: New file.
24792         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24793         * lib/symlink.c: Likewise.
24794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24795         * modules/unistd (Makefile.am): Substitute them.
24796         * lib/unistd.in.h (symlink): Declare replacement.
24797         * MODULES.html.sh (File system functions): Mention it.
24798         * doc/posix-functions/symlink.texi (symlink): Likewise.
24799         * modules/symlink-tests: New test.
24800         * tests/test-symlink.c: Likewise.
24801
24802 2009-09-23  Bruno Haible  <bruno@clisp.org>
24803
24804         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
24805         when needed.
24806         Test case: gnulib-tool --import --with-tests atexit inttypes.
24807         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
24808
24809 2009-09-23  Bruno Haible  <bruno@clisp.org>
24810
24811         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
24812         subcommand, not in a subshell.
24813
24814 2009-09-22  Eric Blake  <ebb9@byu.net>
24815
24816         unistd: sort replacement declarations
24817         * lib/unistd.in.h: Sort declarations.
24818
24819         open, openat: minor optimization
24820         * lib/open.c (open): If open succeeded, len is non-zero.
24821         * lib/openat.c (rpl_openat): Likewise.
24822
24823         link-follow: ensure correct result
24824         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
24825         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
24826         distinguish between possible failures.
24827
24828 2009-09-21  Eric Blake  <ebb9@byu.net>
24829
24830         fts: avoid compiler warning
24831         * lib/fts.c (dirent_inode_sort_may_be_useful)
24832         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
24833
24834 2009-09-19  Bruno Haible  <bruno@clisp.org>
24835
24836         * lib/progreloc.c (canonicalize_file_name): New declaration.
24837
24838 2009-09-19  Eric Blake  <ebb9@byu.net>
24839
24840         link: fix quoting
24841         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
24842
24843         openat: fix openat bugs on Solaris 9
24844         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
24845         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
24846         * modules/openat (Depends-on): Add open.
24847         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
24848         * modules/fcntl-h (Makefile.am): Substitute it.
24849         * lib/fcntl.in.h (openat): Declare replacement.
24850         * doc/posix-functions/openat.texi (openat): Document this.
24851
24852         openat: move fstatat and unlinkat into correct files
24853         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
24854         compiled.
24855         * lib/openat.c (fstatat, unlinkat): Move...
24856         * lib/fstatat.c (fstatat): ...into correct files.
24857         * lib/unlinkat.c (unlinkat): Likewise.
24858
24859         openat: fix unlinkat bugs on Solaris 9
24860         * lib/unlinkat.c (unlinkat): New file.
24861         * modules/openat (Depends-on): Add unlink.
24862         (Files): Distribute it.
24863         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
24864         trailing slash behavior is broken.
24865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24866         * modules/unistd (Makefile.am): Substitute it.
24867         * lib/unistd.in.h (unlinkat): Declare replacement.
24868         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
24869
24870         openat: fix fstatat bugs on Solaris 9
24871         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
24872         stat.
24873         * doc/posix-functions/fstatat.texi (fstatat): Document this.
24874
24875         test-unlinkat: enhance test, to expose Solaris 9 bug
24876         * tests/test-unlink.c (main): Factor guts...
24877         * tests/test-unlink.h (test_rmdir_func): ...into new file.
24878         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
24879         * tests/test-rmdir.c (main): Adjust caller.
24880         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
24881         (unlinker): New helper function.
24882         (rmdirat): Enhance check.
24883         * modules/rmdir-tests (Depends-on): Add stdbool.
24884         * modules/unlink-tests (Depends-on): Likewise.
24885         (Files): Add test-unlink.h.
24886         * modules/openat-tests (Files): Likewise.
24887         (Depends-on): Add unlinkdir.
24888
24889         test-fstatat: new test, to expose Solaris 9 bugs
24890         * tests/test-stat.c (main): Factor guts...
24891         * tests/test-stat.h (test_stat_func): ...into new file.
24892         * tests/test-lstat.c (main): Factor guts...
24893         * tests/test-lstat.h (test_lstat_func): ...into new file.
24894         * tests/test-fstatat.c: New file.
24895         * modules/stat-tests (Files): Add test-stat.h.
24896         * modules/lstat-tests (Files): Add test-lstat.h.
24897         (Depends-on): Add stdbool.
24898         * modules/openat-tests (Depends-on): Add pathmax.
24899         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
24900         (Makefile.am): Run new test.
24901
24902         remove: new module, for mingw and Solaris 9 bugs
24903         * modules/remove: New file.
24904         * lib/remove.c: Likewise.
24905         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
24906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24907         * modules/stdio (Makefile.am): Use them.
24908         * lib/stdio.in.h (remove): Declare replacement.
24909         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24910         * doc/posix-functions/remove.texi (remove): Likewise.
24911         * modules/remove-tests: New test.
24912         * tests/test-remove.c: Likewise.
24913
24914         unlink: new module, for Solaris 9 bug
24915         * modules/unlink: New file.
24916         * lib/unlink.c: Likewise.
24917         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24919         * modules/unistd (Makefile.am): Use them.
24920         * lib/unistd.in.h (stat): Declare replacement.
24921         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24922         * doc/posix-functions/unlink.texi (unlink): Likewise.
24923         * modules/unlink-tests: New test.
24924         * tests/test-unlink.c: Likewise.
24925
24926         lstat: fix Solaris 9 bug
24927         * lib/lstat.c (lstat): Also check for trailing slash on
24928         non-symlink, non-directories.  Use stat module to simplify logic.
24929         * doc/posix-functions/lstat.texi (lstat): Document it.
24930         * modules/lstat-tests (Depends-on): Add errno, same-inode.
24931         (configure.ac): Check for symlink.
24932         * tests/test-lstat.c (main): Add more tests.
24933
24934         stat: add as dependency to other modules
24935         * modules/chown (Depends-on): Add stat.
24936         * modules/euidaccess (Depends-on): Likewise.
24937         * modules/fchdir (Depends-on): Likewise.
24938         * modules/isdir (Depends-on): Likewise.
24939         * modules/link (Depends-on): Likewise.
24940         * modules/lstat (Depends-on): Likewise.
24941         * modules/mkdir-p (Depends-on): Likewise.
24942         * modules/modechange (Depends-on): Likewise.
24943         * modules/open (Depends-on): Likewise.
24944         * modules/readlink (Depends-on): Likewise.
24945         * modules/same (Depends-on): Likewise.
24946
24947         stat: fix Solaris 9 bug
24948         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
24949         slash.
24950         * lib/stat.c (rpl_stat): Work around it.
24951         * doc/posix-functions/stat.texi (stat): Update documentation.
24952
24953         stat: new module, for mingw bug
24954         * modules/stat: New file.
24955         * lib/stat.c: Likewise.
24956         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24957         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24958         * modules/sys_stat (Makefile.am): Use them.
24959         * lib/sys_stat.in.h (stat): Declare replacement.
24960         * lib/openat.c (fstatat): Deal with lstat and stat being function
24961         macros.
24962         * modules/openat (Depends-on): Add inline.
24963         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24964         * doc/posix-functions/stat.texi (stat): Likewise.
24965         * modules/stat-tests: New test.
24966         * tests/test-stat.c: Likewise.
24967
24968 2009-09-19  Jim Meyering  <meyering@redhat.com>
24969
24970         syntax-check: detect unnecessary inclusion of canonicalize.h
24971         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
24972
24973 2009-09-19  Eric Blake  <ebb9@byu.net>
24974
24975         canonicalize-lgpl: adjust clients to use correct header
24976         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24977         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
24978         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
24979         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
24980         * lib/progreloc.c (includes): Likewise.
24981
24982 2009-09-19  Jim Meyering  <meyering@redhat.com>
24983
24984         test-posixtm.c: correct a comment
24985         * tests/test-posixtm.c: Correct first-line comment.
24986         Spotted by Eric Blake.
24987
24988 2009-09-16  Jim Meyering  <meyering@redhat.com>
24989
24990         posixtm-tests: make T const-correct; add a test case
24991         * tests/test-posixtm.c (T): Declare const.
24992         Add a test for -(2^31+1).
24993         Remove useless can-succeed-only-in-2002 test.
24994
24995         posixtm-tests: adjust the sole failing test
24996         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
24997         expected output matches what mktime now produces.  Cross-checked via
24998         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
24999
25000         posixtm: move #ifdef'd tests into a new module
25001         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
25002         * tests/test-posixtm.c: ... this new file.
25003         * modules/posixtm-tests: New module.
25004
25005 2009-09-19  Eric Blake  <ebb9@byu.net>
25006
25007         openat: simplify use of at-func.c
25008         * lib/at-func.c (includes): Include prerequisites here, to
25009         simplify requirements on client files.
25010         * lib/openat-priv.h: Add double-inclusion guard.
25011         * lib/faccessat.c (includes): Simplify.
25012         * lib/fchmodat.c (includes): Likewise.
25013         * lib/fchownat.c (includes): Likewise.
25014         * lib/mkdirat.c (includes): Likewise.
25015         * lib/mkfifoat.c (includes): Likewise.
25016         * lib/symlinkat.c (includes): Likewise.
25017
25018         openat: allow return of fd 0
25019         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
25020         * modules/save-cwd (Depends-on): Replace fcntl-safer with
25021         unistd-safer.
25022         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
25023         <fcntl.h>; this module does not leak fds.
25024         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
25025         must be allowed to return 0, leaving openat_safer to add the
25026         safety.
25027         (openat_permissive): Avoid writing to just-opened fd 2 if
25028         restoring the current directory fails.
25029         * lib/openat-die.c (openat_restore_fail): Add comment.
25030         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
25031         (save_cwd): Guarantee safe fd, but without use of open_safer.
25032         * tests/test-openat.c: New test.
25033         * modules/openat-tests (Files, Makefile.am): Distribute and build
25034         new file.
25035
25036         relocatable-prog-wrapper: fix build
25037         * modules/relocatable-prog-wrapper (Files): Update name of
25038         canonicalize m4 file, broken on 2009-09-17.
25039         Reported by emad hajjar <aleppos@hotmail.com>.
25040
25041 2009-09-19  Bruno Haible  <bruno@clisp.org>
25042
25043         * lib/safe-alloc.h: Use the standard header with GPL copyright.
25044         * lib/safe-alloc.c: Likewise.
25045         Reported by Ian Beckwith <ianb@erislabs.net>.
25046
25047 2009-09-18  Bruno Haible  <bruno@clisp.org>
25048
25049         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
25050         Reported by <erobles@sensacd.com.mx>.
25051
25052 2009-09-17  Eric Blake  <ebb9@byu.net>
25053
25054         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
25055         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
25056         slashes when checking if last component is missing.
25057         * tests/test-canonicalize.c (main): Test this.
25058
25059         canonicalize, canonicalize-lgpl: honor // if distinct from /
25060         * modules/canonicalize (Files): Add double-slash-root.m4.
25061         * modules/canonicalize-lgpl (Files): Likewise.
25062         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25063         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
25064         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
25065         fallback definition.
25066         (canonicalize_filename_mode): Use it to protect //.
25067         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
25068         (__realpath): Likewise.
25069         * tests/test-canonicalize.c (main): Test this.
25070         * tests/test-canonicalize-lgpl.c (main): Likewise.
25071         * modules/canonicalize-tests (Depends-on): Add same-inode.
25072         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25073
25074         canonicalize-lgpl: fix glibc bug with trailing slash
25075         * m4/canonicalize-lgpl.m4: Move contents...
25076         * m4/canonicalize.m4: ...here.
25077         (gl_CANONICALIZE_LGPL): Factor realpath check...
25078         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
25079         glibc 2.3.5 bug, fixed 2005-04-27.
25080         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
25081         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
25082         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
25083         * modules/canonicalize-lgpl (Files): Manage file rename.
25084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25085         * modules/stdlib (Makefile.am): Substitute witness.
25086         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
25087         is needed.
25088         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
25089         replacement is required.
25090         * lib/canonicalize.c (canonicalize_file_name): Likewise.
25091         * doc/glibc-functions/canonicalize_file_name.texi
25092         (canonicalize_file_name): Document this.
25093         * doc/posix-functions/realpath.texi (realpath): Likewise.
25094
25095         canonicalize-lgpl: reject non-directory with trailing slash
25096         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
25097         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
25098         catches failures in glibc 2.3.5.
25099         * tests/test-canonicalize.c (main): Likewise.
25100
25101         canonicalize-lgpl: use native realpath if it works
25102         * lib/canonicalize-lgpl.c (realpath): Guard with
25103         FUNC_REALPATH_WORKS.
25104         * lib/stdlib.in.h (realpath): Make declaration optional based on
25105         HAVE_REALPATH.
25106         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
25107         native realpath works.
25108         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25109         * modules/stdlib (Makefile.am): Substitute witness.
25110
25111         canonicalize, canonicalize-lgpl: use <stdlib.h>
25112         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
25113         (Include): Mention <stdlib.h>.
25114         (configure.ac): Mention functions we provide.
25115         * modules/canonicalize (configure.ac): Likewise.
25116         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
25117         realpath if canonicalize_file_name is missing.
25118         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
25119         * modules/stdlib (Makefile.am): Substitute witnesses.
25120         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
25121         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
25122         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
25123         * NEWS: Document this.
25124         * doc/glibc-functions/canonicalize_file_name.texi
25125         (canonicalize_file_name): Likewise.
25126         * doc/posix-functions/realpath.texi (realpath): Likewise.
25127         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
25128
25129         test-canonicalize: consolidate into single C program
25130         * tests/test-canonicalize.sh: Delete; move setup into...
25131         * tests/test-canonicalize.c (main): ...the program, making it
25132         easier to run in debugger.  Add some tests.
25133         * modules/canonicalize-tests (Files): Remove unused file.
25134         (Depends-on): Add progname.
25135         (configure.ac, Makefile.am): Simplify.
25136
25137         test-canonicalize-lgpl: consolidate into single C program
25138         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
25139         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
25140         easier to run in debugger.  Add some tests.
25141         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
25142         (configure.ac, Makefile.am): Simplify.
25143
25144         canonicalize: avoid resolvepath
25145         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
25146         unnecessary checks.
25147         * lib/canonicalize.c (includes): Simplify.
25148         (canonicalize_file_name): Drop resolvepath implementation.
25149         * modules/canonicalize (Depends-on): Drop filenamecat.
25150
25151         canonicalize: don't lose errno
25152         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
25153         over calls to free.
25154
25155         canonicalize: simplify errno handling
25156         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
25157         assignment.
25158
25159         canonicalize, canonicalize-lgpl: update module dependencies
25160         * modules/canonicalize (Depends-on): Add extensions, lstat,
25161         pathmax, stdlib.
25162         (Files): Drop pathmax.h.
25163         (configure.ac): Adjust macro name.
25164         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
25165         lstat, stdlib, sys_stat.
25166         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
25167         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
25168         extensions.
25169         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
25170         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
25171         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
25172         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
25173         declaration, if available.
25174         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
25175         we can rely on the readlink module.
25176         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
25177         (includes): Use <unistd.h> unconditionally.
25178
25179 2009-09-17  Eric Blake  <ebb9@byu.net>
25180
25181         maint: make Include sections of modules consistent
25182         * modules/alloca: Use only header name; no need to list #include.
25183         * modules/alloca-opt: Likewise.
25184         * modules/arpa_inet: Likewise.
25185         * modules/canon-host: Likewise.
25186         * modules/configmake: Likewise.
25187         * modules/dirent: Likewise.
25188         * modules/eealloc: Likewise.
25189         * modules/environ: Likewise.
25190         * modules/fchdir: Likewise.
25191         * modules/fcntl: Likewise.
25192         * modules/fcntl-h: Likewise.
25193         * modules/gethrxtime: Likewise.
25194         * modules/gettime: Likewise.
25195         * modules/ignore-value: Likewise.
25196         * modules/inet_ntop: Likewise.
25197         * modules/inet_pton: Likewise.
25198         * modules/inttypes: Likewise.
25199         * modules/isnand-nolibm: Likewise.
25200         * modules/isnanf-nolibm: Likewise.
25201         * modules/mbchar: Likewise.
25202         * modules/mbfile: Likewise.
25203         * modules/mbiter: Likewise.
25204         * modules/mbuiter: Likewise.
25205         * modules/netdb: Likewise.
25206         * modules/netinet_in: Likewise.
25207         * modules/nproc: Likewise.
25208         * modules/pagealign_alloc: Likewise.
25209         * modules/poll: Likewise.
25210         * modules/printf-frexp: Likewise.
25211         * modules/pthread: Likewise.
25212         * modules/putenv: Likewise.
25213         * modules/random_r: Likewise.
25214         * modules/relocatable-prog: Likewise.
25215         * modules/search: Likewise.
25216         * modules/select: Likewise.
25217         * modules/selinux-h: Likewise.
25218         * modules/settime: Likewise.
25219         * modules/signal: Likewise.
25220         * modules/size_max: Likewise.
25221         * modules/socklen: Likewise.
25222         * modules/ssize_t: Likewise.
25223         * modules/stdarg: Likewise.
25224         * modules/stdbool: Likewise.
25225         * modules/stddef: Likewise.
25226         * modules/stdint: Likewise.
25227         * modules/stdio: Likewise.
25228         * modules/stdlib: Likewise.
25229         * modules/string: Likewise.
25230         * modules/strings: Likewise.
25231         * modules/sys_file: Likewise.
25232         * modules/sys_ioctl: Likewise.
25233         * modules/sys_select: Likewise.
25234         * modules/sys_socket: Likewise.
25235         * modules/sys_stat: Likewise.
25236         * modules/sys_time: Likewise.
25237         * modules/sys_times: Likewise.
25238         * modules/sys_utsname: Likewise.
25239         * modules/sys_wait: Likewise.
25240         * modules/sysexits: Likewise.
25241         * modules/time: Likewise.
25242         * modules/times: Likewise.
25243         * modules/tmpfile: Likewise.
25244         * modules/trim: Likewise.
25245         * modules/unistd: Likewise.
25246         * modules/wchar: Likewise.
25247         * modules/wctype: Likewise.
25248
25249 2009-09-17  Bruno Haible  <bruno@clisp.org>
25250
25251         Make getdate.y compile on QNX and NetBSD 5 / i386.
25252         * m4/getdate.m4 (gl_GETDATE): Conditionally define
25253         TIME_T_FITS_IN_LONG_INT.
25254         * lib/getdate.y (long_time_t): New type.
25255         (relative_time): Change type of 'seconds' field to long_time_t.
25256         (get_date): Update types of local variables. Check against overflow
25257         during conversion from long_time_t to time_t.
25258         Reported by Matt Kraai <kraai@ftbfs.org>
25259         and Hasso Tepper <hasso@netbsd.org>.
25260
25261 2009-09-17  Bruno Haible  <bruno@clisp.org>
25262
25263         * modules/COPYING: Update copyright years.
25264         * modules/README: Likeiwse.
25265         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
25266         Reported by Ian Beckwith <ianb@erislabs.net>.
25267
25268 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25269
25270         * users.txt: Update references for gnuit package.
25271
25272 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25273
25274         * m4/getdelim.m4: Fix typo in copyright line.
25275
25276 2009-09-17  Bruno Haible  <bruno@clisp.org>
25277
25278         * lib/atoll.c: Use the standard header with GPL copyright.
25279         * lib/argz.in.h: Likewise.
25280         * lib/glob.c: Likewise.
25281         * lib/glob-libc.h: Likewise.
25282         * lib/random_r.c: Likewise.
25283         * lib/siglist.h: Likewise.
25284         * lib/strsignal.c: Likewise.
25285         Reported by Ian Beckwith <ianb@erislabs.net>.
25286
25287 2009-09-17  Eric Blake  <ebb9@byu.net>
25288
25289         rmdir: ensure correct dependency order
25290         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
25291
25292 2009-09-17  Bruno Haible  <bruno@clisp.org>
25293
25294         Disable assertion that fails on NetBSD 5 / i386.
25295         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
25296         Reported by Sam Steingold <sds@gnu.org>
25297         and Hasso Tepper <hasso@netbsd.org>.
25298
25299 2009-09-16  Eric Blake  <ebb9@byu.net>
25300
25301         unlinkdir: port to mingw
25302         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
25303         on which no one can unlink a directory.
25304
25305         stdlib: sort witness names
25306         * modules/stdlib (Makefile.am): Sort replacements.
25307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25308         * lib/stdlib.in.h: Likewise.
25309
25310         parse-duration-tests: avoid link failure
25311         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
25312         LIBINTL.
25313         Reported by Tom G. Christensen.
25314
25315         openat-tests: ensure unlinkat behaves like rmdir
25316         * tests/test-rmdir.c (main): Factor guts...
25317         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
25318         * modules/rmdir-tests (Files): Ship new file.
25319         * modules/openat-tests: New test.
25320         * tests/test-unlinkat.c: Likewise.
25321
25322         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
25323         * modules/rmdir-errno (Status, Notice): Now obsolete.
25324
25325         rmdir: work around cygwin 1.5.x and mingw bugs
25326         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
25327         * lib/rmdir.c (rmdir): Work around it.
25328         * modules/rmdir (Status, Notice): No longer obsolete.
25329         (Files): Add dos.m4.
25330         (Depends-on): Add unistd.
25331         (configure.ac): Set witnesses.
25332         (License): Relax to LGPLv2+.
25333         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
25334         * modules/unistd (Makefile.am): Substitute witnesses.
25335         * lib/unistd.in.h (rmdir): Declare replacement.
25336         * doc/posix-functions/rmdir.texi (rmdir): Document this.
25337         * modules/rmdir-tests: New tests.
25338         * tests/test-rmdir.c: Likewise.
25339
25340 2009-09-15  Eric Blake  <ebb9@byu.net>
25341
25342         fchdir: improve use of replacement functions
25343         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
25344         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
25345         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
25346         REPLACE_CLOSEDIR.
25347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
25348         * modules/sys_stat (Makefile.am): Substitute correct witness.
25349         * modules/dirent (Makefile.am): Likewise.
25350         * modules/unistd (Makefile.am): Likewise.
25351         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
25352         * lib/unistd.in.h (dup): Likewise.
25353         * lib/sys_stat.in.h (fstat): Likewise.
25354
25355         maint: ignore gnulib-tool temp files
25356         * .gitignore: Ignore files created during gnulib-tool --test.
25357
25358 2009-09-13  Jim Meyering  <meyering@redhat.com>
25359
25360         posixtm: don't reject a time that specify "60" as the number of seconds
25361         * lib/posixtm.c (posixtime): The code to reject invalid dates
25362         would also reject a time specified with the .60 suffix.
25363         But POSIX allows that, in order to accommodate leap seconds.
25364         So don't reject it.
25365         (main): Adjust tests accordingly.
25366         * modules/posixtm (Depends-on): Add stpcpy.
25367
25368 2009-09-11  Jim Meyering  <meyering@redhat.com>
25369
25370         announce-gen: include [$release_type] in emitted Subject:
25371         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
25372         e.g., [stable] in the emitted Subject: line.
25373
25374 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25375
25376         Remove obsolete macros from several modules.
25377         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
25378         obsolete Autoconf macros with their modern counterparts.
25379         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
25380         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
25381         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
25382         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
25383         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
25384         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25385         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25386         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25387         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25388         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
25389         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
25390         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
25391         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
25392         * m4/sockets.m4 (gl_SOCKETS): Likewise.
25393         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
25394         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
25395         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
25396         * m4/time_r.m4 (gl_TIME_R): Likewise.
25397         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25398         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
25399         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
25400
25401         Fix copyright header in build-aux scripts.
25402         * build-aux/git-version-gen: Fix copyright header to match GPLv3
25403         recommendation.
25404         * build-aux/ncftpput-ftp: Likewise.
25405         * build-aux/update-copyright: Likewise.
25406
25407 2009-09-09  Eric Blake  <ebb9@byu.net>
25408
25409         test-link: allow Linux choice of errno
25410         * tests/test-link.c (main): Relax test for alternate error.
25411
25412         strndup: fix improper m4 caching
25413         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
25414         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
25415         (gl_PREREQ_STRNDUP): Delete.
25416         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
25417         * modules/string (Makefile.am): Substitute it.
25418         * lib/string.in.h (strndup): Modernize prototype.
25419
25420         getcwd: port to mingw
25421         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
25422         different from the POSIX assumptions made throughout the getcwd
25423         module; fortunately, the mingw getcwd does not need replacement.
25424         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
25425         * modules/getcwd-tests: New test.
25426         * tests/test-getcwd.c: Likewise.
25427
25428         link: fix platform bugs
25429         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
25430         * lib/link.c (link): Work around them.  Fix related mingw bug.
25431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
25432         * modules/unistd (Makefile.am): Substitute it.
25433         * lib/unistd.in.h (link): Declare replacement.
25434         * doc/posix-functions/link.texi (link): Document this.
25435         * modules/link (Depends-on): Add strdup-posix, sys_stat.
25436
25437         test-link: consolidate into single C program, test more cases
25438         * tests/test-link.sh: Delete.
25439         * tests/test-link.c: Test more error conditions.  Exposes bugs on
25440         at least Cygwin and Solaris.
25441         * modules/link-tests (Files): Remove unused file.
25442         (Depends-on): Add errno, sys_stat.
25443         (Makefile.am): Simplify.
25444
25445 2009-09-08  Bruno Haible  <bruno@clisp.org>
25446
25447         Work around towlower, towupper bug on mingw.
25448         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
25449         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
25450         * doc/posix-functions/towlower.texi: Mention the mingw bug.
25451         * doc/posix-functions/towupper.texi: Likewise.
25452         Reported by Eric Blake.
25453
25454 2009-09-08  Jim Meyering  <meyering@redhat.com>
25455
25456         build: don't try to run autoheader if we don't use it
25457         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
25458         is not used in configure.ac.
25459
25460 2009-09-08  Eric Blake  <ebb9@byu.net>
25461
25462         euidaccess: fix compilation error
25463         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
25464
25465         rawmemchr: relax license
25466         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
25467         okay.
25468         Reported by Jim Meyering.
25469
25470         mkfifoat: new module
25471         * modules/mkfifoat: New file.
25472         * lib/mkfifoat.c: Likewise.
25473         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
25474         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25475         * modules/sys_stat (Makefile.am): Use them.
25476         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
25477         * MODULES.html.sh (File system functions): Mention module.
25478         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25479         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25480         * modules/mkfifoat-tests: New test.
25481         * tests/test-mkfifoat.c: Likewise.
25482
25483         strchrnul: relax license
25484         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
25485         okay.
25486         Reported by Jim Meyering.
25487
25488 2009-09-08  Eric Blake  <ebb9@byu.net>
25489
25490         fstatat: fix compilation on Solaris
25491         * lib/fstatat.c (includes): Add fcntl.h.
25492         Reported by Pádraig Brady.
25493
25494 2009-09-07  Eric Blake  <ebb9@byu.net>
25495
25496         rename: modernize replacement
25497         * modules/rename (Depends-on): Add stdio.
25498         (configure.ac): Declare witness.
25499         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
25500         stdio take care of replacement.
25501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
25502         * modules/stdio (Makefile.am): Substitute them.
25503         * lib/stdio.in.h (rename): Declare replacement.
25504         * lib/rename.c (includes): Allow cross-compilation to non-windows
25505         machines.
25506         * doc/posix-functions/rename.texi (rename): Improve
25507         documentation.
25508
25509         stdio: sort witness names
25510         * modules/stdio (Makefile.am): Sort replacements.
25511         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25512         * lib/stdio.in.h: Likewise.
25513
25514         getcwd: minor cleanups
25515         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
25516         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
25517
25518         openat: provide more convenience names
25519         * modules/faccessat (configure.ac): Add C witness.
25520         * lib/unistd.in.h (readlinkat): Fix typo.
25521         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
25522         convenience wrappers.
25523         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
25524         wrappers in syntax checks.
25525
25526 2009-09-06  Eric Blake  <ebb9@byu.net>
25527
25528         doc: fix comments in recent patches
25529         * lib/faccessat.c: Mention correct function.
25530         * lib/fchmodat.c: Likewise.
25531         * lib/fchownat.c: Likewise.
25532         * lib/symlinkat.c: Likewise.
25533         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
25534         constants.
25535
25536         faccessat, symlinkat: continue cleanup of previous patch
25537         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
25538         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25539         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
25540         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
25541         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
25542         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
25543         set.
25544
25545 2009-09-06  Bruno Haible  <bruno@clisp.org>
25546
25547         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
25548         (fstatat): Declare if GNULIB_FSTATAT is set.
25549         (mkdirat): Declare if GNULIB_MKDIRAT is set.
25550         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
25551         (unlinkat): Declare if GNULIB_UNLINKAT is set.
25552         * modules/fcntl-h (Files): Remove m4/openat.m4.
25553         * modules/sys_stat (Files): Remove m4/openat.m4.
25554         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
25555         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
25556         * modules/unistd (Files): Remove m4/openat.m4.
25557         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
25558         GNULIB_OPENAT.
25559         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
25560         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
25561         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
25562         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
25563         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
25564         gl_OPENAT_DEFAULTS.
25565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
25566         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
25567         Don't require gl_OPENAT_DEFAULTS.
25568         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
25569         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
25570         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
25571         (gl_OPENAT_DEFAULTS): Remove macro.
25572
25573 2009-09-06  Bruno Haible  <bruno@clisp.org>
25574
25575         * modules/openat (configure.ac): Remove unneeded witness.
25576
25577 2009-09-06  Bruno Haible  <bruno@clisp.org>
25578
25579         Set errno to ENOSYS when a function is entirely unsupported.
25580         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
25581         EOPNOTSUPP.
25582         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25583         * modules/chown (Depends-on): Remove errno.
25584
25585 2009-09-06  Bruno Haible  <bruno@clisp.org>
25586
25587         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
25588
25589 2009-09-06  Bruno Haible  <bruno@clisp.org>
25590
25591         * lib/sys_stat.in.h: Fix preprocessor command indentation.
25592
25593 2009-09-06  Ben Pfaff  <blp@gnu.org>
25594             Bruno Haible  <bruno@clisp.org>
25595
25596         Work around a glibc bug in strtok_r.
25597         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
25598         Undefine if UNDEFINE_STRTOK_R is set.
25599         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
25600         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25601         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
25602         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
25603         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
25604         UNDEFINE_STRTOK_R.
25605         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
25606
25607 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25608
25609         exclude: minor fix
25610         * lib/exclude.c: Include wctype.h
25611
25612 2009-09-06  Akim Demaille  <demaille@gostai.com>
25613
25614         bootstrap: improve error message
25615         * build-aux/bootstrap (find_tool): Upon failure, report the list
25616         of candidates.
25617         Honor the initial value of the envvar.
25618
25619 2009-09-05  Eric Blake  <ebb9@byu.net>
25620
25621         symlinkat: new module
25622         * modules/symlinkat: New file.
25623         * lib/symlinkat.c: Likewise.
25624         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
25625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25626         * modules/unistd (Makefile.am): Use them.
25627         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
25628         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
25629         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
25630         * MODULES.html.sh (File system functions): Mention module.
25631         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25632         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25633         * modules/symlinkat-tests: New test.
25634         * tests/test-symlinkat.c: Likewise.
25635
25636         test-openat-safer: add more checks
25637         * tests/test-openat-safer.c (main): Check more code paths.
25638
25639 2009-09-05  Jim Meyering  <meyering@redhat.com>
25640
25641         syntax-check: detect unnecessary inclusion of openat.h
25642         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
25643
25644 2009-09-05  Bruno Haible  <bruno@clisp.org>
25645
25646         Support towlower, towupper.
25647         * doc/posix-functions/towlower.texi: Mention module wctype.
25648         * doc/posix-functions/towupper.texi: Likewise.
25649         * lib/wctype.in.h (towlower, towupper): New functions.
25650         * tests/test-wctype.c: Include stdio.h, stdlib.h.
25651         (ASSERT): New macro.
25652         (e): New variable.
25653         (main): Test also towlower, towupper. Test WEOF argument.
25654         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25655
25656 2009-09-05  Bruno Haible  <bruno@clisp.org>
25657
25658         Fix conversion behaviour when the input is invalid.
25659         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
25660         mark occurring in first pass of indirect conversion.
25661         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
25662         input.
25663         Found by clang's static analyzer.
25664
25665 2009-09-05  Bruno Haible  <bruno@clisp.org>
25666
25667         * tests/test-striconveh.c (main): Test indirect conversion on platforms
25668         where direct conversion is possible.
25669
25670 2009-09-04  Eric Blake  <ebb9@byu.net>
25671
25672         openat: fail with ENOENT on empty name
25673         * lib/openat-proc.c (openat_proc_name): Special-case the empty
25674         buffer.
25675
25676         link-follow: fix logic bug in prior patch
25677         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
25678         reversed sense of yes and no in prior patch.  Avoid confusing
25679         compilation failure with desired semantics.
25680
25681         link-follow: accomodate mingw and cross-compilation
25682         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
25683         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
25684         cross-compilation results to -1, to make linkat easier to
25685         implement when cross-compiling.  Trivially support mingw.
25686         * modules/link-follow (configure.ac): Call new name.
25687         * NEWS: Mention this.
25688
25689 2009-09-03  Eric Blake  <ebb9@byu.net>
25690
25691         faccessat: compile replacement
25692         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
25693         needed.
25694
25695         fts: fix compilation error
25696         * lib/fts.c (includes): Re-add "openat.h", for
25697         openat_needs_fchdir.
25698
25699         faccessat: new module
25700         * modules/faccessat: New file.
25701         * lib/faccessat.c: Likewise.
25702         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25704         * modules/unistd (Makefile.am): Use it.
25705         * lib/unistd.in.h (faccessat): Declare it.
25706         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
25707         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
25708         * MODULES.html.sh (File system functions): Mention it.
25709         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
25710         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25711
25712         euidaccess: prefer POSIX over non-standard implementation
25713         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
25714         * lib/euidaccess.c (euidaccess): Use it if available.
25715
25716         openat: make template easier to use
25717         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
25718         AT_FUNC_F2 to be undefined.
25719         (VALIDATE_FLAG): New macro; use it to reject bad flags.
25720         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
25721         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
25722         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
25723         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
25724         Likewise.
25725         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
25726         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
25727         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
25728         Likewise.
25729
25730         openat: declare in POSIX headers
25731         * NEWS: Mention this.
25732         * modules/openat (configure.ac): Declare witnesses.
25733         (Depends-on): Add fcntl-h, sys_stat, unistd.
25734         (Include): Mention correct headers.
25735         * modules/fcntl-h (Depends-on): Add link-warning.
25736         (Files): Add openat.m4.
25737         (Makefile.am): Substitute witnesses.
25738         * modules/sys_stat (Files, Makefile.am): Likewise.
25739         * modules/unistd (Files, Makefile.am): Likewise.
25740         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
25741         (gl_OPENAT_DEFAULTS): New macro.
25742         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
25743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
25744         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
25745         (SYS_STAT_H): Remove unused variable.
25746         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
25747         * lib/fcntl--.h (includes): Remove unneeded header.
25748         * lib/openat-safer.c (includes): Likewise.
25749         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
25750         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
25751         appropriate headers.
25752         (__OPENAT_PREFIX): Delete.
25753         * lib/fcntl.in.h (openat): Provide declaration.
25754         (AT_FDCWD): Fix Solaris bug.
25755         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
25756         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
25757         * lib/fchmodat.c (includes):  Adjust to find declaration.
25758         * lib/fchownat.c (includes): Likewise.
25759         * lib/mkdirat.c (includes): Likewise.
25760         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
25761         still visible.
25762
25763 2009-09-02  Eric Blake  <ebb9@byu.net>
25764
25765         errno: use consistently
25766         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
25767         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
25768         * lib/canonicalize.c (ELOOP): Likewise.
25769         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
25770         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
25771         * lib/lchown.c (EOPNOTSUPP): Likewise.
25772         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
25773         * lib/savewd.c (ESTALE): Likewise.
25774         * lib/settime.c (ENOSYS): Likewise.
25775         * lib/utimens.c (ENOSYS): Likewise.
25776         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
25777         * lib/chdir-safer.c (ELOOP): Likewise.
25778         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
25779         * modules/c-stack (Depends-on): Add errno.
25780         * modules/canonicalize (Depends-on): Likewise.
25781         * modules/chdir-safer (Depends-on): Likewise.
25782         * modules/fdopendir (Depends-on): Likewise.
25783         * modules/inet_ntop (Depends-on): Likewise.
25784         * modules/inet_pton (Depends-on): Likewise.
25785         * modules/lchown (Depends-on): Likewise.
25786         * modules/openat (Depends-on): Likewise.
25787         * modules/savewd (Depends-on): Likewise.
25788         * modules/settime (Depends-on): Likewise.
25789         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
25790
25791         fts: avoid leaking fds
25792         * modules/fts (Depends-on): Add cloexec.
25793         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
25794         flag.
25795
25796         fts: make directory fds more robust
25797         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
25798         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
25799
25800         backupfile, chdir-long, fts, savedir: make safer
25801         * lib/backupfile.c (includes): Use "dirent--.h", since
25802         numbered_backup can write to stderr during readdir.
25803         * lib/savedir.c (includes): Likewise.
25804         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
25805         emulation can write to stderr on failure.
25806         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
25807         * lib/getcwd.c: Document why opendir_safer is unused.
25808         * lib/glob.c: Likewise.
25809         * lib/scandir.c: Likewise.
25810         * lib/openat-proc.c: Likewise, for open_safer.
25811         * modules/backupfile (Depends-on): Add dirent-safer.
25812         * modules/savedir (Depends-on): Likewise.
25813         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
25814         * modules/chdir-long (Depends-on): Add openat-safer.
25815
25816         openat-safer: new module
25817         * modules/openat-safer: New file.
25818         * lib/openat-safer.c: Likewise.
25819         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
25820         * lib/fcntl-safer.h (openat_safer): Declare.
25821         * lib/fcntl--.h (openat): Override.
25822         * MODULES.html.sh (File descriptor based I/O): Mention it.
25823         * lib/openat.h: Add double-inclusion guards.
25824         * lib/openat.c (includes): Only include "fcntl-safer.h", not
25825         "fcntl--.h", so we can implement openat.
25826         * modules/openat-safer-tests: New test.
25827         * tests/test-openat-safer.c: New file.
25828
25829         dirent-safer: new module
25830         * modules/dirent-safer: New file.
25831         * lib/dirent--.h: Likewise.
25832         * lib/dirent-safer.h: Likewise.
25833         * lib/opendir-safer.c: Likewise.
25834         * m4/dirent-safer.m4: Likewise.
25835         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
25836         * modules/dirent-safer-tests: New test.
25837         * tests/test-dirent-safer.c: New file.
25838         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
25839
25840         fdopendir: optimize on mingw
25841         * lib/unistd.in.h (_gl_directory_name): New prototype.
25842         * lib/fchdir.c (_gl_directory_name): Implement it.
25843         (fchdir): Use it to simplify implementation.
25844         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
25845         fchdir, when available, to avoid calling [f]chdir().
25846
25847         fdopendir: split into its own module
25848         * lib/openat.c (fdopendir): Move...
25849         * lib/fdopendir.c: ...into new file.
25850         * modules/fdopendir: New module.
25851         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
25852         * modules/openat (Depends-on): Add fdopendir.
25853         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
25854         fdopendir here.
25855         * modules/savedir (Depends-on): Only need fdopendir, not full
25856         openat.
25857         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
25858         * lib/openat.h (fdopendir): Drop prototype.
25859         * lib/dirent.in.h (fdopendir): Provide prototype.
25860         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
25861         * modules/dirent (Makefile.am): Substitute them.
25862         * MODULES.html.sh (File system functions): Mention it.
25863         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
25864         * modules/fdopendir-tests: New file.
25865         * tests/test-fdopendir.c: Likewise.
25866
25867         fchdir: use more consistent macro convention
25868         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
25869         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
25870         REPLACE_FCHDIR, rather than relying on config.h macros.
25871         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
25872         inside a single make-time REPLACE_FCHDIR block, rather than using
25873         the config.h FCHDIR_REPLACEMENT.
25874         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
25875         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
25876         Manage fstat replacement.
25877         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
25878         REPLACE_FCHDIR.
25879         * modules/sys_stat (Files): Add m4/unistd_h.m4.
25880         (Makefile.am): Substitute REPLACE_FCHDIR.
25881         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
25882         FCHDIR_REPLACEMENT.
25883         * lib/dup-safer.c (dup_safer): Likewise.
25884         * lib/dup2.c (rpl_dup2): Likewise.
25885         * lib/dup3.c (rpl_dup3): Likewise.
25886         * lib/open.c (rpl_open): Likewise.
25887
25888         fchdir: simplify error handling, and support dup3
25889         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
25890         stdbool, malloc-posix, realloc-posix.
25891         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
25892         (ensure_dirs_slot): Return false on allocation failure.
25893         (rpl_dup2): Delete.
25894         (_gl_register_dup): New function.
25895         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
25896         (_gl_register_fd): Close fd on allocation failure.
25897         * lib/fcntl.in.h (_gl_register_fd): Update signature.
25898         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
25899         prototype.
25900         (rpl_dup2_fchdir): Delete prototype.
25901         * lib/open.c (open): Update caller.
25902         * lib/dup2.c (dup2): Track fchdir metadata.
25903         * lib/dup3.c (dup3): Likewise.
25904         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
25905         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
25906
25907 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25908
25909         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
25910         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
25911         don't pass arguments to AC_OUTPUT.
25912
25913 2009-09-02  Bruno Haible  <bruno@clisp.org>
25914
25915         * modules/mkdtemp (License): Relicense under LGPLv2+.
25916         Reported by Paolo Bonzini.
25917
25918 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25919
25920         Replace uses of obsolete autoconf macros in Jim's modules.
25921         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
25922         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
25923         can evoke a warning from autoconf when run with -Wobsolete
25924         enabled.  They were declared obsolete for good reasons (see
25925         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
25926         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
25927         should not continue using the deprecated macros.
25928         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
25929         obsolete Autoconf macros with modern counterparts.
25930         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25931         * m4/dos.m4 (gl_AC_DOS): Likewise.
25932         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
25933         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25934         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
25935         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
25936         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
25937         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
25938         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
25939         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
25940         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
25941         Likewise.
25942         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25943         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25944         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
25945         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
25946         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25947         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25948
25949 2009-09-01  Eric Blake  <ebb9@byu.net>
25950
25951         fchdir: fix off-by-one bug in previous patch
25952         * lib/fchdir.c (rpl_fstat): Use correct bounds.
25953         (_gl_unregister_fd): Delete useless if.
25954
25955 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
25956
25957         maint.mk: sort the list of syntax-check rules
25958         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
25959         easier to get a sense of progress when the rules are run sequentially
25960         and take a long time.
25961
25962 2009-09-01  Simon Josefsson  <simon@josefsson.org>
25963
25964         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
25965         * modules/netinet_in: Likewise.
25966         * modules/sys_file: Likewise.
25967         * modules/sys_ioctl: Likewise.
25968         * modules/sys_select: Likewise.
25969         * modules/sys_socket: Likewise.
25970         * modules/sys_stat: Likewise.
25971         * modules/sys_time: Likewise.
25972         * modules/sys_times: Likewise.
25973         * modules/sys_utsname: Likewise.
25974         * modules/sys_wait: Likewise.
25975
25976 2009-09-01  Jim Meyering  <meyering@redhat.com>
25977
25978         fts: help ensure that return values are not ignored
25979         * lib/fts_.h (__GNUC_PREREQ): Define.
25980         (__attribute_warn_unused_result__): Define.
25981         (fts_children, fts_close, fts_open, fts_read): Declare with
25982         __attribute_warn_unused_result__.
25983
25984         fts: fts_close now fails also when closing a dir file descriptor fails
25985         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
25986         and propagate to caller, along with errno.
25987
25988         announce-gen: correct formatting in --help output
25989         * build-aux/announce-gen (usage): Move the one-line description in
25990         --help output "up", to where it belongs, just after Usage:.
25991
25992 2009-08-31  Eric Blake  <ebb9@byu.net>
25993
25994         fchdir: port to mingw
25995         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
25996         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
25997         opened, then use a substitute.
25998         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
25999         replacement.
26000         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
26001         (_gl_register_fd): No need to check stat if open already filters
26002         all directories.
26003         (fchdir): Fix error condition to match POSIX.
26004         * modules/fchdir (Depends-on): Add sys_stat.
26005         * doc/posix-functions/open.texi (open): Document the limitation.
26006         * modules/fchdir-tests: New file.
26007         * tests/test-fchdir.c: Likewise.
26008
26009         canonicalize: allow cross-testing from cygwin to mingw
26010         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
26011         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
26012         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
26013         Likewise.
26014         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
26015         target does not support symlinks.
26016         * tests/test-canonicalize-lgpl.sh: Likewise.
26017
26018         chown: avoid compilation warning on mingw
26019         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
26020         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
26021         mingw.
26022         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26023         * modules/chown (Depends-on): Add errno.
26024
26025 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26026
26027         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
26028         command.
26029
26030 2009-08-31  Jim Meyering  <meyering@redhat.com>
26031
26032         canonicalize: remove useless initialization
26033         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
26034         initialization of local, "end".
26035
26036 2009-08-30  Bruno Haible  <bruno@clisp.org>
26037
26038         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
26039         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
26040         ENOSYS.
26041
26042 2009-08-30  Bruno Haible  <bruno@clisp.org>
26043
26044         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
26045         /usr/xpg4/bin/tr when it exists.
26046         * tests/test-pipe-filter-gi1.sh: Likewise.
26047
26048 2009-08-30  Bruno Haible  <bruno@clisp.org>
26049
26050         Work around deficient /usr/bin/id program on Solaris.
26051         * tests/test-file-has-acl.sh (ID): New variable.
26052         * tests/test-set-mode-acl.sh (ID): Likewise.
26053         * tests/test-copy-acl.sh (ID): Likewise.
26054         * tests/test-copy-file.sh (ID): Likewise.
26055
26056 2009-08-30  Bruno Haible  <bruno@clisp.org>
26057
26058         New module 'xstriconveh'.
26059         * lib/xstriconveh.h: New file.
26060         * lib/xstriconveh.c: New file.
26061         * modules/xstriconveh: New file.
26062
26063 2009-08-30  Bruno Haible  <bruno@clisp.org>
26064
26065         Make it easier to use mem_cd_iconveh.
26066         * lib/striconveh.h (iconveh_t): New type.
26067         (iconveh_open, iconveh_close): New declarations.
26068         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26069         with a single 'const iconveh_t *' argument.
26070         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
26071         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26072         with a single 'const iconveh_t *' argument.
26073         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
26074         * tests/test-striconveh.c (main): Update.
26075         * NEWS: Mention the change.
26076
26077 2009-08-30  Bruno Haible  <bruno@clisp.org>
26078
26079         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
26080         problem.
26081
26082 2009-08-30  Bruno Haible  <bruno@clisp.org>
26083
26084         Work around iconv_open problem on Solaris.
26085         * lib/iconv_open-solaris.gperf: New file.
26086         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
26087         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
26088         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
26089         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
26090         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
26091         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
26092
26093 2009-08-29  Jim Meyering  <meyering@redhat.com>
26094
26095         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
26096         * top/maint.mk (cvs-check): Remove target; it was just an alias
26097         to the better-named vc-diff-check.
26098         (maintainer-distcheck): Remove rule.  It was used only from
26099         the (alpha/beta/major) target, and all of its commands but one
26100         were coreutils-specific.
26101         (vc-dist): Remove rule.
26102         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
26103         Run vc-diff-check, not vc-dist.
26104         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
26105
26106 2009-08-27  Bruno Haible  <bruno@clisp.org>
26107
26108         * tests/test-bitrotate.c (main): Remove test that uses a shift count
26109         of 0.
26110
26111 2009-08-27  Bruno Haible  <bruno@clisp.org>
26112
26113         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
26114         compilers.
26115         * doc/func.texi: Document the SunPRO C bug.
26116
26117 2009-08-27  Bruno Haible  <bruno@clisp.org>
26118
26119         Fix link error on Solaris.
26120         * tests/test-parse-duration.c (xstrdup): Remove function.
26121
26122 2009-08-26  Pádraig Brady  <P@draigbrady.com>
26123
26124         ignore-value: handle pointer types, too
26125         * lib/ignore-value.h (__attribute__): Remove definition.
26126         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
26127         of a more concise and more-often effective "(void) i" statement.
26128         (ignore_ptr): New function to suppress warnings from functions that
26129         return pointers, and to make it explicit that one function doesn't
26130         handle all cases.
26131
26132 2009-08-25  Bruno Haible  <bruno@clisp.org>
26133
26134         dup2: work around a Linux bug.
26135         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
26136         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
26137         * doc/posix-functions/dup2.texi: Mention the Linux bug.
26138         Reported by Simon Josefsson.
26139
26140 2009-08-25  Jim Meyering  <meyering@redhat.com>
26141
26142         libguestfs uses gnulib
26143         * users.txt: Add libguestfs.
26144
26145 2009-08-24  Eric Blake  <ebb9@byu.net>
26146
26147         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
26148         * lib/pipe2.c (includes): Add binary-io.h.
26149         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
26150
26151 2009-08-24  Bruno Haible  <bruno@clisp.org>
26152
26153         Tolerate declared but missing accept4 syscall.
26154         * lib/accept4.c (accept4): Invoke original accept4 function first, if
26155         available.
26156         * lib/sys_socket.in.h (accept4): If the function is already present,
26157         override it.
26158         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
26159         * modules/accept4 (Makefile.am): Compile accept4.c always.
26160         Reported by Paolo Bonzini and Eric Blake.
26161
26162 2009-08-23  Bruno Haible  <bruno@clisp.org>
26163
26164         New module 'accept4'.
26165         * lib/sys_socket.in.h (accept4): New declaration.
26166         * lib/accept4.c: New file.
26167         * m4/accept4.m4: New file.
26168         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26169         GNULIB_ACCEPT4, HAVE_ACCEPT4.
26170         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
26171         HAVE_ACCEPT4.
26172         * modules/accept4: New file.
26173         * doc/glibc-functions/accept4.texi: Mention the new module.
26174
26175 2009-08-24  Jim Meyering  <meyering@redhat.com>
26176
26177         progname: also set global program_invocation_name, when possible
26178         Before this change, a libtool-enabled program that calls glibc's
26179         error function would report the program name as
26180         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
26181         * modules/progname (configure.ac): Check for a declaration of
26182         program_invocation_name.
26183         * lib/progname.c:  Include <errno.h>.
26184         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
26185         Set program_invocation_name.
26186
26187 2009-08-23  Bruno Haible  <bruno@clisp.org>
26188
26189         * lib/dup3.c: Include <string.h>.
26190
26191 2009-08-23  Bruno Haible  <bruno@clisp.org>
26192
26193         * lib/dup3.c (dup3): Test only once whether the system actually exists.
26194         * lib/pipe2.c (pipe2): Likewise.
26195         Suggested by Eric Blake.
26196
26197 2009-08-23  Bruno Haible  <bruno@clisp.org>
26198
26199         Tolerate declared but missing dup3 syscall.
26200         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
26201         * lib/unistd.in.h (dup3): If the function is already present,
26202         override it.
26203         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
26204         * modules/dup3 (Makefile.am): Compile dup3.c always.
26205         Reported by Paolo Bonzini.
26206
26207 2009-08-23  Bruno Haible  <bruno@clisp.org>
26208
26209         Tolerate declared but missing pipe2 syscall.
26210         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
26211         available.
26212         * lib/unistd.in.h (pipe2): If the function is already present,
26213         override it.
26214         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
26215         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
26216         Reported by Paolo Bonzini.
26217
26218 2009-08-23  Bruno Haible  <bruno@clisp.org>
26219
26220         * lib/pipe2.c (pipe2): Move #ifs inside function.
26221
26222 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26223
26224         quotearg: document limitations of quote_these_too
26225         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
26226         those limitations are created.
26227         * lib/quotearg.h (set_char_quoting): Document that digits and
26228         letters that are special after backslash are not permitted.
26229         (quotearg_char): Cross-reference set_char_quoting documentation.
26230
26231 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
26232
26233         quotearg: implement custom_quoting_style
26234         * lib/quotearg.c: (struct quoting_options): Add left_quote and
26235         right_quote fields.
26236         (set_custom_quoting): New public function.
26237         (quotearg_buffer_restyled): Add left_quote and right_quote
26238         arguments, handle them very much like locale quoting, and update
26239         all uses.
26240         (quotearg_n_custom): New public function.
26241         (quotearg_n_custom_mem): New public function.
26242         (quotearg_custom): New public function.
26243         (quotearg_custom_mem): New public function.
26244         * lib/quotearg.h: Prototype and document new public functions.
26245         (enum quoting_style): For escape_quoting_style and
26246         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
26247         ignored even though they're otherwise like c_quoting_style.
26248         Add custom_quoting_style member and document with comparison to
26249         clocale_quoting_style.
26250         * tests/test-quotearg.c (custom_quotes): New array.
26251         (custom_results): New array.
26252         (main): Extend to test custom quoting.
26253
26254 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26255
26256         quotearg: fix right quote escaping when it's in quote_these_too
26257         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
26258         quote, be sure to prepend only one backslash.
26259         * tests/test-quotearg.c (use_quote_double_quotes): New function.
26260         (main): Test it.
26261
26262 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26263
26264         quotearg-tests: test escaping of embedded locale quotes
26265         * tests/test-quotearg.c (struct result_strings): Add member for
26266         new input.
26267         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
26268         (inputs): Add new input.
26269         (results_g): Add expected results.
26270         (flag_results): Likewise.
26271         (locale_results): Likewise.
26272         (compare_strings): Check those.
26273
26274 2009-08-23  Bruno Haible  <bruno@clisp.org>
26275
26276         Tests for module 'dup3'.
26277         * modules/dup3-tests: New file.
26278         * tests/test-dup3.c: New file.
26279
26280         New module 'dup3'.
26281         * lib/unistd.in.h (dup3): New declaration.
26282         * lib/dup3.c: New file.
26283         * m4/dup3.m4: New file.
26284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
26285         HAVE_DUP3.
26286         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
26287         * modules/dup3: New file.
26288         * doc/glibc-functions/dup3.texi: Mention the new module.
26289
26290 2009-08-23  Bruno Haible  <bruno@clisp.org>
26291
26292         Tweak the dup2 test.
26293         * tests/test-dup2.c (main): Create the test file empty. Verify that an
26294         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
26295         the test file is still empty. Fix argument order of lseek.
26296
26297 2009-08-23  Bruno Haible  <bruno@clisp.org>
26298
26299         Avoid test link errors when the modules getopt-gnu, gettext are used.
26300         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
26301         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26302
26303 2009-08-23  Bruno Haible  <bruno@clisp.org>
26304
26305         Fix getdtablesize() on mingw.
26306         * lib/getdtablesize.c (getdtablesize): Implement differently.
26307         * lib/unistd.in.h (getdtablesize): Improve comment.
26308
26309 2009-08-23  Bruno Haible  <bruno@clisp.org>
26310
26311         New module 'mkostemp'.
26312         Based on Ulrich Drepper's 2007-08-10 change in glibc.
26313         * lib/stdlib.in.h (mksotemp): New declaration.
26314         * lib/mkostemp.c: New file, from glibc with modifications.
26315         * lib/tempname.h (GT_FILE): Remove outdated comment.
26316         (gen_tempname): Add flags argument.
26317         * lib/tempname.c (__GT_BIGFILE): Remove macro.
26318         (__GT_FILE): Map to 1.
26319         (small_open, large_open): Remove macros.
26320         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
26321         * lib/mkstemp.c (mkstemp): Update.
26322         * lib/mkdtemp.c (mkdtemp): Likewise.
26323         * m4/mkostemp.m4: New file.
26324         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
26325         HAVE_MKOSTEMP.
26326         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
26327         HAVE_MKOSTEMP.
26328         * modules/mkostemp: New file, based on modules/mkstemp.
26329         * doc/glibc-functions/mkostemp.texi: Mention the new module.
26330         * NEWS: Mention the change.
26331
26332 2009-08-23  Bruno Haible  <bruno@clisp.org>
26333
26334         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
26335         Reported by Eric Blake.
26336
26337 2009-08-23  Bruno Haible  <bruno@clisp.org>
26338
26339         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
26340         Reported by Eric Blake.
26341
26342 2009-08-23  Bruno Haible  <bruno@clisp.org>
26343
26344         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
26345         * modules/pipe2 (Depends-on): Likewise.
26346
26347 2009-08-23  Eric Blake  <ebb9@byu.net>
26348
26349         fcntl-h: add O_TTY_INIT support
26350         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
26351         * tests/test-fcntl-h.c (o): Test it.
26352         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26353
26354         fcntl-h: rename from fcntl, in preparation for fcntl(2)
26355         * modules/fcntl: Move <fcntl.h> header replacement...
26356         * modules/fcntl-h: ...to new name, so as not to collide with
26357         like-named function.
26358         * tests/test-fcntl.c: Rename...
26359         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
26360         * modules/fcntl-tests: Rename...
26361         * modules/fcntl-h-tests: ...to this.  Update test file name.
26362         * modules/chdir-long (Depends-on): Update clients.
26363         * modules/chdir-safer (Depends-on): Likewise.
26364         * modules/fcntl-safer (Depends-on): Likewise.
26365         * modules/fts (Depends-on): Likewise.
26366         * modules/mkancesdirs (Depends-on): Likewise.
26367         * modules/mkdir-p (Depends-on): Likewise.
26368         * modules/open (Depends-on): Likewise.
26369         * modules/savewd (Depends-on): Likewise.
26370         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
26371         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26372
26373 2009-08-22  Bruno Haible  <bruno@clisp.org>
26374
26375         * modules/binary-io (License): Relicense under LGPL.
26376         * modules/pipe2 (License): Likewise.
26377
26378 2009-08-22  Bruno Haible  <bruno@clisp.org>
26379
26380         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
26381         return value.
26382         * lib/pipe-filter-gi.c (filter_init): Likewise.
26383         Reported by Eric Blake.
26384
26385 2009-08-22  Bruno Haible  <bruno@clisp.org>
26386
26387         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
26388         * modules/pipe (Depends-on): Add pipe2.
26389
26390 2009-08-22  Bruno Haible  <bruno@clisp.org>
26391
26392         Tests for module 'pipe2'.
26393         * modules/pipe2-tests: New file.
26394         * tests/test-pipe2.c: New file.
26395
26396         New module 'pipe2'.
26397         * lib/unistd.in.h (pipe2): New declaration.
26398         * lib/pipe2.c: New file.
26399         * m4/pipe2.m4: New file.
26400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
26401         HAVE_PIPE2.
26402         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
26403         * modules/pipe2: New file.
26404         * doc/glibc-functions/pipe2.texi: Mention the new module.
26405
26406 2009-08-22  Bruno Haible  <bruno@clisp.org>
26407
26408         Reference some new glibc functions.
26409         * doc/glibc-functions/accept4.texi: New file.
26410         * doc/glibc-functions/dup3.texi: New file.
26411         * doc/glibc-functions/mkostemp.texi: New file.
26412         * doc/glibc-functions/pipe2.texi: New file.
26413         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
26414         (Glibc sys/socket.h): Refer to accept4.
26415         (Glibc unistd.h): Refer to dup3, pipe2.
26416         Reported by Eric Blake.
26417
26418 2009-08-22  Jim Meyering  <meyering@redhat.com>
26419             Bruno Haible  <bruno@clisp.org>
26420
26421         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
26422         This makes it so packages using automake-1.11's silent-rules option
26423         can print e.g., a single "GEN    configmake.h" line, rather than
26424         the 30+ statements that perform the job.  If you want to see the
26425         actual commands, you can still run "make V=1".
26426         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
26427         so that make output is abbreviated when those variables are defined
26428         appropriately.
26429         * modules/argz: Likewise.
26430         * modules/arpa_inet: Likewise.
26431         * modules/byteswap: Likewise.
26432         * modules/configmake: Likewise.
26433         * modules/dirent: Likewise.
26434         * modules/errno: Likewise.
26435         * modules/fcntl: Likewise.
26436         * modules/float: Likewise.
26437         * modules/fnmatch: Likewise.
26438         * modules/getopt-posix: Likewise.
26439         * modules/glob: Likewise.
26440         * modules/iconv_open: Likewise.
26441         * modules/inttypes: Likewise.
26442         * modules/localcharset: Likewise.
26443         * modules/locale: Likewise.
26444         * modules/math: Likewise.
26445         * modules/netdb: Likewise.
26446         * modules/netinet_in: Likewise.
26447         * modules/poll: Likewise.
26448         * modules/posix_spawnp-tests: Likewise.
26449         * modules/sched: Likewise.
26450         * modules/search: Likewise.
26451         * modules/selinux-h: Likewise.
26452         * modules/signal: Likewise.
26453         * modules/spawn: Likewise.
26454         * modules/stdarg: Likewise.
26455         * modules/stdbool: Likewise.
26456         * modules/stddef: Likewise.
26457         * modules/stdint: Likewise.
26458         * modules/stdio: Likewise.
26459         * modules/stdlib: Likewise.
26460         * modules/string: Likewise.
26461         * modules/strings: Likewise.
26462         * modules/sys_file: Likewise.
26463         * modules/sys_ioctl: Likewise.
26464         * modules/sys_select: Likewise.
26465         * modules/sys_socket: Likewise.
26466         * modules/sys_stat: Likewise.
26467         * modules/sys_time: Likewise.
26468         * modules/sys_times: Likewise.
26469         * modules/sys_utsname: Likewise.
26470         * modules/sys_wait: Likewise.
26471         * modules/sysexits: Likewise.
26472         * modules/time: Likewise.
26473         * modules/unistd: Likewise.
26474         * modules/wchar: Likewise.
26475         * modules/wctype: Likewise.
26476
26477 2009-08-22  Jim Meyering  <meyering@redhat.com>
26478
26479         announce-gen: detect write failure
26480         * build-aux/announce-gen: Add Coda at end.
26481         Remove equivalent-but-more-verbose block at top.
26482
26483 2009-08-19  Akim Demaille  <demaille@gostai.com>
26484
26485         bootstrap: --help to stdout.
26486         * bootstrap (usage): Don't send --help to stderr.
26487         Use a here doc instead of a long string.
26488
26489 2009-08-21  Eric Blake  <ebb9@byu.net>
26490
26491         test-popen-safer: split from test-popen
26492         * tests/test-popen.c (main): Move...
26493         * tests/test-popen.h: ...into new file.
26494         * tests/test-popen-safer2.c: New file.
26495         * modules/popen-tests (Files): Add test-popen.h.
26496         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
26497         Suggested by Bruno Haible.
26498
26499         test-fcntl-safer: split from test-open
26500         * tests/test-open.c (main): Move...
26501         * tests/test-open.h: ...into new file.
26502         * tests/test-fcntl-safer.c: New file.
26503         * modules/open-tests (Files): Add test-open.h.
26504         * modules/fcntl-safer-tests: New file.
26505         Suggested by Bruno Haible.
26506
26507         test-fopen-safer: split from test-fopen
26508         * tests/test-fopen.c (main): Move...
26509         * tests/test-fopen.h: ...into new file.
26510         * tests/test-fopen-safer.c: New file.
26511         * modules/fopen-tests (Files): Add test-fopen.h.
26512         * modules/fopen-safer-tests: New file.
26513         Suggested by Bruno Haible.
26514
26515 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26516
26517         popen-safer: test O_CLOEXEC at run-time.
26518         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
26519
26520 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26521
26522         fcntl: move more flags to the header
26523         * lib/cloexec.c: Do not define FD_CLOEXEC here.
26524         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
26525         * lib/fcntl.in.h: Do both things here.
26526
26527 2009-08-21  Jim Meyering  <meyering@redhat.com>
26528
26529         consistently remove $@-t before redirecting to it
26530         * modules/argz: Remove $@-t and $@ before redirecting to the former.
26531         * modules/alloca-opt: Likewise.
26532         * modules/byteswap: Likewise.
26533         * modules/fnmatch: Likewise.
26534         * modules/getopt-posix: Likewise.
26535         * modules/glob: Likewise.
26536         * modules/poll: Likewise.
26537         * modules/posix_spawnp-tests: Likewise.
26538         * modules/sys_socket: Likewise.
26539         * modules/sysexits: Likewise.
26540
26541 2009-08-21  Eric Blake  <ebb9@byu.net>
26542
26543         popen: simplify access to original popen
26544         * lib/popen.c (rpl_popen): No need to worry about popen being a
26545         macro.
26546         Reported by Bruno Haible.
26547
26548 2009-08-20  Eric Blake  <ebb9@byu.net>
26549
26550         build: avoid some compiler warnings
26551         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
26552         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
26553         type.
26554         (new_exclude_segment, excluded_file_pattern_p)
26555         (excluded_file_name_p): Reduce scope.
26556         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
26557         old-style declaration.
26558
26559 2009-08-20  Simon Josefsson  <simon@josefsson.org>
26560
26561         * tests/test-exclude1.sh: Handle Windows EOL.
26562         * tests/test-exclude2.sh: Likewise.
26563         * tests/test-exclude3.sh: Likewise.
26564         * tests/test-exclude4.sh: Likewise.
26565         * tests/test-exclude5.sh: Likewise.
26566         * tests/test-exclude6.sh: Likewise.
26567         * tests/test-exclude7.sh: Likewise.
26568
26569 2009-08-19  Akim Demaille  <demaille@gostai.com>
26570
26571         bootstrap: find sha1sum when named gsha1sum.
26572         * bootstrap (find_tool): New.
26573         ($SHA1SUM): New.
26574         Use it.
26575
26576 2009-08-20  Jim Meyering  <meyering@redhat.com>
26577
26578         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
26579         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
26580         expression that converts "." in a file name to "\." in the resulting
26581         regexp.  Start with a dummy statement, so that prior shell variable
26582         definitions are expanded portably.  Reported by Simon Josefsson.
26583
26584 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
26585
26586         Fix polling for writeability of a screen buffer.
26587         * lib/poll.c: Distinguish input and screen buffers for the
26588         Win32 implementation.
26589         * lib/select.c: Likewise.
26590
26591 2009-08-19  Eric Blake  <ebb9@byu.net>
26592
26593         popen-safer: prevent popen from clobbering std descriptors
26594         * modules/popen-safer: New file.
26595         * lib/popen-safer.c: Likewise.
26596         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
26597         * lib/stdio--.h (popen): Provide override.
26598         * lib/stdio-safer.h (popen_safer): Provide declaration.
26599         * tests/test-popen.c (includes): Partially test this.
26600         * modules/popen-safer-tests: New file, for more tests.
26601         * tests/test-popen-safer.c: Likewise.
26602         * MODULES.html.sh (file stream based Input/Output): Mention it.
26603
26604         tests: test some of the *-safer modules
26605         * modules/fopen-safer (Depends-on): Add fopen.
26606         * modules/fcntl-safer (Depends-on): Add fcntl.
26607         * modules/stdlib-safer (Depends-on): Add stdlib.
26608         (configure.ac): Set indicator.
26609         * modules/unistd-safer (configure.ac): Likewise.
26610         * modules/tmpfile-safer (configure.ac): Likewise.
26611         (Depends-on): Add tmpfile.
26612         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
26613         active.
26614         * tests/test-fopen.c (includes): Test safer versions when they are
26615         in use.
26616         * tests/test-open.c (includes): Likewise.
26617
26618         popen: fix cygwin 1.5 bug when stdin closed
26619         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
26620         * modules/popen: New file.
26621         * modules/popen-tests: Likewise.
26622         * tests/test-popen.c: Likewise.
26623         * m4/popen.m4: Likewise.
26624         * lib/popen.c: Likewise.
26625         * lib/stdio.in.h (popen): New declaration.
26626         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
26627         * modules/stdio (Makefile.am): Likewise.
26628         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
26629
26630 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
26631
26632         maint.mk: give full control over update-copyright exclusions
26633         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
26634         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
26635         (update-copyright): Don't force inclusion of top-level
26636         ChangeLog.  Don't force exclusion of all COPYING files, but make
26637         them the default exclusion instead.
26638
26639 2009-08-16  Bruno Haible  <bruno@clisp.org>
26640
26641         Fix test failures on Solaris 10.
26642         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
26643         tests when Solaris iconv() is used.
26644         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
26645         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
26646         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
26647         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
26648         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
26649
26650 2009-08-16  Bruno Haible  <bruno@clisp.org>
26651
26652         Fix test failures on Solaris 10.
26653         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
26654         'tr' program and pass it as first argument.
26655         * tests/test-pipe-filter-gi1.sh: Likewise.
26656         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
26657         program as first argument.
26658         * tests/test-pipe-filter-gi1.c (main): Likewise.
26659
26660 2009-08-16  Eric Blake  <ebb9@byu.net>
26661
26662         fpurge: fix previous commits
26663         * modules/fpurge (Makefile.am): Make replacement conditional,
26664         partially reverting 2007-04-29 change; missed in previous
26665         attempt.
26666         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
26667         is missing.
26668
26669 2009-08-16  Bruno Haible  <bruno@clisp.org>
26670
26671         Clarify fpurge's effect on the file position.
26672         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
26673         * tests/test-fpurge.c (main): Make a second pass for checking the file
26674         position.
26675
26676 2009-08-16  Bruno Haible  <bruno@clisp.org>
26677
26678         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
26679         declaration of fpurge is missing.
26680         * tests/test-fpurge.c (main): Check that the file has not more contents
26681         than expected. Close the file before removing it.
26682
26683 2009-08-15  Eric Blake  <ebb9@byu.net>
26684
26685         fpurge: don't wrap working cygwin implementation
26686         * lib/fpurge.c (fpurge): Fix comment typo.
26687         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
26688         1.7 to avoid replacement.
26689         * tests/test-fpurge.c (main): Enhance test.
26690
26691 2009-08-15  Eric Blake  <ebb9@byu.net>
26692         and Jim Meyering  <meyering@redhat.com>
26693
26694         test-update-copyright: skip if perl is insufficient
26695         * tests/test-update-copyright.sh: Failure to run maintainer tool
26696         should not cause testsuite failure on cygwin 1.5.
26697
26698 2009-08-14  Eric Blake  <ebb9@byu.net>
26699
26700         doc: mention more functions added in cygwin 1.7.0
26701         * doc/posix-headers/limits.texi (limits.h): Update for recent
26702         cygwin additions.
26703         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
26704         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
26705         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
26706         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
26707         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
26708
26709 2009-08-14  Eric Blake  <ebb9@byu.net>
26710
26711         maint.mk: simplify update-copyright rule
26712         * top/maint.mk (update-copyright-local): Delete, and document how
26713         to do it in cfg.mk instead.
26714         (update-copyright-exclude-regexp): Delete, and document how to do
26715         it in .x-update-copyright instead.
26716         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
26717         exclude ChangeLog.
26718
26719 2009-08-14  Bruno Haible  <bruno@clisp.org>
26720
26721         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
26722
26723 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26724
26725         maint.mk: support update-copyright-env
26726         * top/maint.mk (update-copyright-env): Define place-holder.
26727         (update-copyright): Expand $(update-copyright-env) before
26728         invoking update-copyright.
26729
26730 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26731
26732         update-copyright: implement forced reformatting
26733         * build-aux/update-copyright: Implement and document
26734         UPDATE_COPYRIGHT_FORCE.
26735         * tests/test-update-copyright.sh: Test it.
26736
26737 2009-08-14  Eric Blake  <ebb9@byu.net>
26738         and Bruno Haible  <bruno@clisp.org>
26739
26740         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
26741         * tests/test-locale.c: Revert previous patch related to NULL.
26742         * tests/test-stdio.c: Likewise.
26743         * tests/test-stdlib.c: Likewise.
26744         * tests/test-string.c: Likewise.
26745         * tests/test-unistd.c: Likewise.
26746         * modules/time-tests (Depends-on): Add verify.
26747         * modules/wchar-tests (Depends-on): Likewise.
26748         * tests/test-time.c: Test for NULL compliance.
26749         * tests/test-wchar.c: Likewise.
26750         * modules/locale (Depends-on): Add stddef.
26751         * modules/stdio (Depends-on): Likewise.
26752         * modules/stdlib (Depends-on): Likewise.
26753         * modules/string (Depends-on): Likewise.
26754         * modules/time (Depends-on): Likewise.
26755         * modules/unistd (Depends-on): Likewise.
26756         * modules/wchar (Depends-on): Likewise.
26757         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
26758         * lib/stdlib.in.h (includes): Likewise.
26759         * lib/string.in.h (includes): Likewise.
26760         * lib/time.in.h (includes): Likewise.
26761         * lib/unistd.in.h (includes): Likewise.
26762         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
26763         replaced.
26764         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26765         * m4/stddef_h.m4: New file.
26766         * modules/stddef: Likewise.
26767         * lib/stddef.in.h: Likewise.
26768         * modules/stddef-tests: Likewise.
26769         * tests/test-stddef.c: Likewise.
26770         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
26771         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
26772         * doc/posix-headers/locale.texi (locale.h): Likewise.
26773         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
26774         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26775         * doc/posix-headers/string.texi (string.h): Likewise.
26776         * doc/posix-headers/time.texi (time.h): Likewise.
26777         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
26778         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
26779
26780 2009-08-14  Eric Blake  <ebb9@byu.net>
26781
26782         doc: improve git diff of texinfo files
26783         * .gitattributes: Add rule for *.texi files, with hint on how to
26784         use it.
26785         Copied from m4, and based on a report by Bruno Haible.
26786
26787 2009-08-14  Bruno Haible  <bruno@clisp.org>
26788
26789         Disable multithread support by default on Cygwin 1.5.x for real.
26790         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
26791
26792 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26793
26794         update-copyright: much ado about intervals
26795         * build-aux/update-copyright: Implement and document
26796         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
26797         of copyright year intervals.
26798         Also, document UPDATE_COPYRIGHT_YEAR.
26799         * tests/test-update-copyright.sh: Test it.
26800
26801         update-copyright: convert 2-digit to 4-digit years
26802         * build-aux/update-copyright: Implement and document.
26803         * tests/test-update-copyright.sh: Update.
26804
26805 2009-08-14  Jim Meyering  <meyering@redhat.com>
26806
26807         test-exclude: avoid coreutils "make check" failure
26808         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
26809         just as in test-argmatch.c.
26810
26811 2009-08-13  Eric Blake  <ebb9@byu.net>
26812
26813         test-dup2: fix bad assumption
26814         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
26815         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
26816
26817         test-version-etc: fix CRLF portability issue
26818         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
26819         recognize \r.
26820         * tests/test-argp-version-etc-1.sh: Likewise.
26821
26822         getopt: update client modules
26823         * modules/argp (Depends-on): Use getopt-gnu.
26824         * modules/git-merge-changelog (Depends-on): Likewise.
26825         * modules/long-options (Depends-on): Likewise.
26826         * modules/xstrtol (Depends-on): Likewise.
26827
26828 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26829
26830         * tests/test-version-etc.sh: Don't fail on different
26831         project/version.  Don't fail on CRLF differences.  Rewrite to use
26832         multiple -e instead of multiple sed forks, suggested by Eric Blake
26833         <ebb9@byu.net>.
26834         * tests/test-argp-version-etc-1.sh: Likewise.
26835
26836 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26837
26838         * tests/test-version-etc.sh: Don't fail on different
26839         project/version.
26840
26841 2009-08-12  Bruno Haible  <bruno@clisp.org>
26842
26843         Tests for modules 'getopt-posix', 'getopt-gnu'.
26844         * modules/getopt-posix-tests: New file.
26845         * tests/test-getopt.c: New file.
26846         * tests/test-getopt.h: New file.
26847         * tests/test-getopt_long.h: New file.
26848
26849         New modules 'getopt-posix', 'getopt-gnu'.
26850         * modules/getopt-gnu: New file, renamed from modules/getopt.
26851         * modules/getopt-posix: New file.
26852         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
26853         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
26854         (gl_GETOPT): Remove macro.
26855         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
26856         Disable the test against BSD systems that declare optreset. Test
26857         against mingw bug. Test against lack of support of optional arguments
26858         on many platforms.
26859         * doc/glibc-headers/getopt.texi: Update module name and list of
26860         relevant platforms.
26861         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
26862         'getopt-gnu' and more portability problems.
26863         * NEWS: Mention the changes.
26864
26865 2009-08-12  Bruno Haible  <bruno@clisp.org>
26866
26867         Ensure that optarg etc. get declared by <unistd.h>.
26868         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
26869         AC_USE_SYSTEM_EXTENSIONS.
26870         * modules/getopt (Depends-on): Add 'extensions'.
26871
26872 2009-08-12  Bruno Haible  <bruno@clisp.org>
26873
26874         Avoid test link errors.
26875         * modules/pipe-filter-ii-tests (Makefile.am): Define
26876         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
26877         * modules/pipe-filter-gi-tests (Makefile.am): Define
26878         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
26879         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26880
26881 2009-08-12  Bruno Haible  <bruno@clisp.org>
26882
26883         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
26884         gl_GETOPT_SUBSTITUTE before.
26885         (gl_GETOPT): Use it.
26886         * m4/argp.m4 (gl_ARGP): Update.
26887         Reported by Sergey Poznyakoff.
26888
26889         * m4/getopt.m4: Reorder macros.
26890         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
26891         (gl_GETOPT_SUBSTITUTE): Remove macro.
26892
26893 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26894
26895         Minor improvement in gitlog-to-changelog
26896
26897         * build-aux/gitlog-to-changelog: New option `--format' makes
26898         output format string configurable.
26899
26900 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26901
26902         Optimize exclude: use hash tables for non-wildcard patterns.
26903
26904         * lib/exclude.c: Include hash.h and mbuiter.h
26905         (struct exclude_pattern, exclude_segment): New data types.
26906         (struct exclude): Rewrite.
26907         (fnmatch_pattern_has_wildcards): New function.
26908         (new_exclude_segment, free_exclude_segment): New functions.
26909         (excluded_file_pattern_p, excluded_file_name_p): New functions.
26910         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
26911         * lib/exclude.h (is_fnmatch_pattern): New prototype.
26912         * modules/exclude: Depend on hash and mbuiter.
26913
26914         * modules/exclude-tests: New file.
26915         * tests/test-exclude.c: New file.
26916         * tests/test-exclude1.sh: New file.
26917         * tests/test-exclude2.sh: New file.
26918         * tests/test-exclude3.sh: New file.
26919         * tests/test-exclude4.sh: New file.
26920         * tests/test-exclude5.sh: New file.
26921         * tests/test-exclude6.sh: New file.
26922         * tests/test-exclude7.sh: New file.
26923
26924 2009-08-12  Bruno Haible  <bruno@clisp.org>
26925
26926         Ensure that getopt() gets declared by <unistd.h>.
26927         * lib/unistd.in.h: Conditionally include getopt.h.
26928         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
26929         Set GNULIB_UNISTD_H_GETOPT.
26930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26931         GNULIB_UNISTD_H_GETOPT.
26932         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
26933
26934 2009-08-12  Bruno Haible  <bruno@clisp.org>
26935
26936         Clarify logic.
26937         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
26938         gl_replace_getopt instead of GETOPT_H.
26939
26940 2009-08-12  Bruno Haible  <bruno@clisp.org>
26941
26942         * m4/getopt.m4: Add comments.
26943
26944 2009-08-12  Bruno Haible  <bruno@clisp.org>
26945
26946         Disable multithread support by default on Cygwin 1.5.x.
26947         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
26948         set gl_use_threads=no if not specified otherwise.
26949
26950 2009-08-11  Bruno Haible  <bruno@clisp.org>
26951
26952         Avoid compilation error on NetBSD 5.0.
26953         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
26954         * tests/test-stdio.c: Likewise.
26955         * tests/test-stdlib.c: Likewise.
26956         * tests/test-string.c: Likewise.
26957         * tests/test-unistd.c: Likewise.
26958         Reported by Greg Troxel <gdt@ir.bbn.com>
26959         at <https://savannah.gnu.org/support/?106973>.
26960
26961 2009-08-11  Bruno Haible  <bruno@clisp.org>
26962
26963         * modules/dup2-tests (Depends-on): Remove close.
26964
26965         Undo 2009-07-19 commit.
26966         * modules/acl-tests (Depends-on): Remove close.
26967         * modules/binary-io-tests (Depends-on): Likewise.
26968         * modules/closein-tests (Depends-on): Likewise.
26969         * modules/flock-tests (Depends-on): Likewise.
26970         * modules/fsync-tests (Depends-on): Likewise.
26971         * modules/lseek-tests (Depends-on): Likewise.
26972         * modules/pipe-tests (Depends-on): Likewise.
26973         * modules/posix_spawn-tests (Depends-on): Likewise.
26974         * modules/posix_spawnp-tests (Depends-on): Likewise.
26975         * modules/stat-time-tests (Depends-on): Likewise.
26976         * modules/yesno-tests (Depends-on): Likewise.
26977
26978 2009-08-10  Bruno Haible  <bruno@clisp.org>
26979
26980         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
26981
26982 2009-08-10  Bruno Haible  <bruno@clisp.org>
26983
26984         Fix a gcc warning.
26985         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
26986
26987 2009-08-10  Bruno Haible  <bruno@clisp.org>
26988
26989         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
26990         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
26991         not only the first time.
26992         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
26993         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
26994         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
26995         is 1, not only the the first time.
26996
26997 2009-08-10  Bruno Haible  <bruno@clisp.org>
26998
26999         Make it possible to use module 'gethostname' without module 'close'.
27000         * lib/unistd.in.h (close): Evoke a link error only if
27001         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27003         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27004         * modules/unistd (Makefile.am): Substitute
27005         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27006         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
27007         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27008         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27009         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27010         * modules/sys_ioctl (Makefile.am): Substitute
27011         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27012         * modules/socket (configure.ac): On native Windows, set
27013         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
27014         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27015         Reported by Sam Steingold <sds@gnu.org>.
27016
27017 2009-08-10  Bruno Haible  <bruno@clisp.org>
27018
27019         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
27020         * modules/ioctl (configure.ac): Likewise.
27021
27022 2009-08-10  Bruno Haible  <bruno@clisp.org>
27023
27024         Avoid collision between gnulib wrapper and libintl wrapper.
27025         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
27026         already defined in intl/printf.c.
27027         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
27028         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
27029
27030 2009-08-09  Bruno Haible  <bruno@clisp.org>
27031
27032         Make <sys/select.h> really self-contained, also on Solaris 10.
27033         * lib/sys_select.in.h: Include <string.h>.
27034         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
27035         Solaris 10 problem.
27036         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
27037         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
27038         Reported by Jim Meyering.
27039
27040 2009-08-09  Bruno Haible  <bruno@clisp.org>
27041
27042         Avoid warnings from 'aclocal' that are due to a use of macro name
27043         AM_XGETTEXT_OPTION that is not defined in automake.
27044         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
27045         automake.
27046         * modules/error (configure.ac): Likewise.
27047         * modules/propername (configure.ac): Likewise.
27048         * modules/vasprintf (configure.ac): Likewise.
27049         * modules/verror (configure.ac): Likewise.
27050         * modules/xprintf (configure.ac): Likewise.
27051         * modules/xvasprintf (configure.ac): Likewise.
27052
27053 2009-08-08  Bruno Haible  <bruno@clisp.org>
27054
27055         Avoid compilation error in C++ mode.
27056         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
27057         Reported by Sam Steingold <sds@gnu.org>.
27058
27059 2009-08-08  Bruno Haible  <bruno@clisp.org>
27060
27061         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
27062         for the various Unix platforms.
27063         * doc/posix-headers/limits.texi: Update platforms list regarding
27064         HOST_NAME_MAX.
27065         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27066
27067 2009-08-07  Jim Meyering  <meyering@redhat.com>
27068
27069         selinux-at: fix typo in a comment
27070         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
27071         Spotted by Paolo Bonzini.
27072
27073         selinux-at: remove redundant m4 code, add documentation
27074         * modules/selinux-at (configure.ac): Remove redundant code.
27075         LIB_SELINUX is already set via the dependent module, selinux-h.
27076         (Include): Add quotes around selinux-at.h.
27077         * lib/selinux-at.h: Add documentation.
27078         Reported by Bruno Haible in
27079         http://marc.info/?l=gnulib-bug&m=124958988300749
27080
27081 2009-08-07  Bruno Haible  <bruno@clisp.org>
27082
27083         Avoid link error on MacOS X 10.3 and 10.4.
27084         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
27085         on non-ELF systems.
27086         * lib/argp-pv.c (argp_program_version): Likewise.
27087         Reported by Simon Josefsson.
27088
27089 2009-08-07  Simon Josefsson  <simon@josefsson.org>
27090
27091         * tests/test-version-etc.sh: Use $EXEEXT.
27092
27093 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
27094
27095         update-copyright: update documentation to point to maint.mk
27096         * build-aux/update-copyright: Here.
27097
27098 2009-08-06  Jim Meyering  <meyering@redhat.com>
27099
27100         maint.mk: support update-copyright-local
27101         * top/maint.mk (update-copyright-local): Define place-holder.
27102         (update-copyright): Depend on $(update-copyright-local).
27103
27104 2009-08-06  Jim Meyering  <meyering@redhat.com>
27105
27106         selinux-at: new module
27107         Initially written for coreutils, this module will soon be
27108         used by findutils, too.
27109         * MODULES.html.sh [Misc]: Add selinux-at.
27110         * lib/selinux-at.h: New file, from coreutils.
27111         * lib/selinux-at.c: Likewise.
27112         * modules/selinux-at: Likewise.
27113         (License): Change from LGPL to GPL, since it depends
27114         on the GPL'd openat module.
27115
27116         doc: update README
27117         * README: Remove references to cogito.
27118         Remove cvs-repo-updating instructions from 2007.
27119         Don't imply that CVS is better if you have limited disk space.
27120
27121 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27122
27123         update-copyright: support C-style comments
27124         * build-aux/update-copyright: Implement and document.
27125         * tests/test-update-copyright.sh: Test.
27126
27127 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27128
27129         update-copyright: support omitted "(C)"
27130         * build-aux/update-copyright: Implement and document.  Also,
27131         allow variable whitespace before "(C)".
27132         * tests/test-update-copyright.sh: Test.
27133
27134 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27135
27136         update-copyright: don't trip on non-FSF copyright statements
27137         * build-aux/update-copyright: Fix so that the first correctly
27138         formatted FSF copyright statement is recognized no matter what
27139         appears before it.  Update documentation.
27140         * tests/test-update-copyright.sh: Test that.
27141
27142 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27143
27144         update-copyright: clean up code a little
27145         * build-aux/update-copyright: Append "_re" to the name of any
27146         variable holding a regular expression.
27147         Replace "old" and "new" with "stmt" in variable names.
27148         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
27149         handled correctly.
27150         Format code more consistently.
27151
27152 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27153
27154         update-copyright-tests: improve portability
27155         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
27156         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
27157
27158 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27159
27160         update-copyright: support @copyright{} and &copy;
27161         * build-aux/update-copyright: Implement and document.
27162         * tests/test-update-copyright.sh: Test.
27163
27164 2009-08-04  Jim Meyering  <meyering@redhat.com>
27165
27166         update-copyright-tests: correctly test EOL=\r\n handling
27167         * tests/test-update-copyright.sh: Put \r at the end of some lines
27168         for the dos-eol tests.  Based on a patch by Joel E. Denny.
27169
27170         maint.mk: make update-copyright exclusion list more configurable
27171         * top/maint.mk (update-copyright): Default to excluding COPYING,
27172         but allow an override, in case someone does want to update that file.
27173
27174         maint.mk: don't update copyright date in COPYING
27175         * top/maint.mk (update-copyright): Exclude COPYING.
27176
27177         maint.mk: add a copyright-updating rule
27178         * top/maint.mk (update-copyright): New rule.
27179         Derived from coreutils/Makefile.am.
27180
27181         update-copyright: rename some variables
27182         * build-aux/update-copyright: Rename a few variables for clarity.
27183         Tweak syntax.  List Joel E. Denny as coauthor.
27184
27185 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27186
27187         update-copyright: fix bug for 2-digit last year and add tests
27188         * build-aux/update-copyright: Fix bug.
27189         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
27190         specified.
27191         * modules/update-copyright-tests: New
27192         * tests/test-update-copyright.sh: New.
27193
27194 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27195
27196         update-copyright: handle leading tabs in line prefix
27197         * build-aux/update-copyright: Count leading tabs as 8 spaces
27198         when computing margin.  This helps with the formatting of
27199         ChangeLogs, for example.
27200         Fix documentation a little.
27201
27202 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27203
27204         update-copyright: support EOL=\r\n
27205         * build-aux/update-copyright: Implement that.
27206
27207 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27208
27209         update-copyright: automatically format copyright statements
27210         * build-aux/update-copyright: Implement that.
27211         Also, be a little more predictable and safer by always failing
27212         when the full copyright format is not perfectly recognized as an
27213         unbroken whole.  Discussed at
27214         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
27215         Rewrite documentation.
27216
27217 2009-08-03  Bruno Haible  <bruno@clisp.org>
27218
27219         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
27220
27221 2009-08-02  Bruno Haible  <bruno@clisp.org>
27222
27223         Tests for module 'uname'.
27224         * modules/uname-tests: New file.
27225         * tests/test-uname.c: New file.
27226
27227         New module 'uname'.
27228         * lib/uname.c: New file.
27229         * m4/uname.m4: New file.
27230         * modules/uname: New file.
27231         * doc/posix-functions/uname.texi: Mention the new module.
27232
27233 2009-08-02  Bruno Haible  <bruno@clisp.org>
27234
27235         Tests for module 'sys_utsname'.
27236         * modules/sys_utsname-tests: New file.
27237         * tests/test-sys_utsname.c: New file.
27238
27239         New module 'sys_utsname'.
27240         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
27241         * m4/sys_utsname_h.m4: New file.
27242         * modules/sys_utsname: New file.
27243         * doc/posix-headers/sys_utsname.texi: Mention the new module.
27244
27245 2009-08-02  Bruno Haible  <bruno@clisp.org>
27246
27247         Implicitly initialize the sockets library.
27248         * lib/gethostname.c: Include sockets.h.
27249         (rpl_gethostname): Invoke gl_sockets_startup.
27250         * lib/socket.c: Include sockets.h.
27251         (rpl_socket): Invoke gl_sockets_startup.
27252         * modules/gethostname (Depends-on): Add sockets.
27253         * modules/socket (Depends-on): Likewise.
27254         * tests/test-poll.c: Don't include sockets.h.
27255         (main): Don't invoke gl_sockets_startup.
27256         * tests/test-select.c: Don't include sockets.h.
27257         (main): Don't invoke gl_sockets_startup.
27258
27259 2009-08-02  Bruno Haible  <bruno@clisp.org>
27260
27261         Allow multiple calls to gl_sockets_startup.
27262         * lib/sockets.c (initialized_sockets_version): New variable.
27263         (gl_sockets_startup): Do nothing if already called for this or a higher
27264         version.
27265         (gl_sockets_cleanup): Reset initialized_sockets_version.
27266
27267 2009-08-03  Simon Josefsson  <simon@josefsson.org>
27268
27269         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
27270         different project/version.
27271
27272 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
27273             Bruno Haible  <bruno@clisp.org>
27274
27275         Tests for module 'pipe-filter-gi'.
27276         * modules/pipe-filter-gi-tests: New file.
27277         * tests/test-pipe-filter-gi1.sh: New file.
27278         * tests/test-pipe-filter-gi1.c: New file.
27279         * tests/test-pipe-filter-gi2.sh: New file.
27280         * tests/test-pipe-filter-gi2-main.c: New file.
27281         * tests/test-pipe-filter-gi2-child.c: New file.
27282
27283         New module 'pipe-filter-gi'.
27284         * lib/pipe-filter-gi.c: New file.
27285         * modules/pipe-filter-gi: New file.
27286
27287 2009-08-02  Bruno Haible  <bruno@clisp.org>
27288             Paolo Bonzini  <bonzini@gnu.org>
27289
27290         Tests for module 'pipe-filter-ii'.
27291         * modules/pipe-filter-ii-tests: New file.
27292         * tests/test-pipe-filter-ii1.sh: New file.
27293         * tests/test-pipe-filter-ii1.c: New file.
27294         * tests/test-pipe-filter-ii2.sh: New file.
27295         * tests/test-pipe-filter-ii2-main.c: New file.
27296         * tests/test-pipe-filter-ii2-child.c: New file.
27297
27298         New module 'pipe-filter-ii'.
27299         * lib/pipe-filter.h: New file.
27300         * lib/pipe-filter-ii.c: New file.
27301         * lib/pipe-filter-aux.h: New file.
27302         * modules/pipe-filter-ii: New file.
27303
27304 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27305
27306         * lib/gc-libgcrypt.c: Change copyright to FSF.
27307         * lib/gc-gnulib.c: Likewise.
27308
27309 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
27310
27311         * lib/gethostname.c: Include limits.h.
27312
27313 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27314             Bruno Haible  <bruno@clisp.org>
27315
27316         Ensure HOST_NAME_MAX as part of the gethostname module.
27317         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
27318         define also HOST_NAME_MAX.
27319         * tests/test-gethostname.c: Include <limits.h>.
27320         (main): Check also HOST_NAME_MAX.
27321         * doc/posix-headers/limits.texi: Document the mingw problem.
27322
27323 2009-08-02  Bruno Haible  <bruno@clisp.org>
27324
27325         * lib/gethostname.c (gethostname): Fix handling of large len argument.
27326         Add comments.
27327
27328 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27329
27330         * lib/gethostname.c: Add Windows wrapper.
27331         * m4/gethostname.m4: Look for gethostname in -lws2_32.
27332         * modules/gethostname: Depend on sys_socket & errno, for also
27333         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
27334         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
27335
27336 2009-07-31  Jim Meyering  <meyering@redhat.com>
27337
27338         getloadavg: fix symbol name in comment
27339         * lib/getloadavg.c: Correct a typo I introduced when adding
27340         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
27341         Matt Kraai spotted the problem.
27342
27343 2009-07-29  Matt Kraai  <mkraai@beckman.com>
27344
27345         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
27346         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
27347         code also if ! defined N_NAME_POINTER.
27348         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
27349         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
27350         but the n_name member is a 12-byte array.
27351
27352 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
27353
27354         update-copyright: generalize comment handling
27355         * build-aux/update-copyright: Handle copyright statements
27356         within more comment styles.
27357         Document usage.
27358         Report any file with an external copyright holder or parse failure.
27359
27360 2009-07-29  Jim Meyering  <meyering@redhat.com>
27361
27362         mktime: correct setting of REPLACE_MKTIME
27363         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
27364
27365         update-copyright: new module
27366         * modules/update-copyright: New file.
27367         * build-aux/update-copyright: New file.
27368         * MODULES.html.sh (maint+release support): Add update-copyright.
27369
27370 2009-07-27  Bruno Haible  <bruno@clisp.org>
27371
27372         Fix compilation error when <ctime> is used and mktime is replaced.
27373         * lib/time.in.h (mktime): New declaration.
27374         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
27375         REPLACE_MKTIME instead of defining mktime in config.h.
27376         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
27377         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
27378         Reported by Ross McFarland <rwmcfa1@neces.com>.
27379
27380 2009-07-27  Bruno Haible  <bruno@clisp.org>
27381
27382         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
27383         Reported by Matt Kraai <mkraai@beckman.com>.
27384
27385 2009-07-25  Jim Meyering  <meyering@redhat.com>
27386
27387         maint.mk: avoid warnings about missing files
27388         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
27389         diagnostic when .prev-version does not exist.
27390         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
27391         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
27392         nonexistent cfg.mk.
27393         Suggestions from Simon Josefsson.
27394
27395 2009-07-25  Bruno Haible  <bruno@clisp.org>
27396
27397         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
27398         defined as macros. Needed on QNX 6.4.1.
27399         Reported by Matt Kraai <mkraai@beckman.com>.
27400
27401 2009-07-23  Jim Meyering  <meyering@redhat.com>
27402
27403         maint.mk: invoke "make dist" with a working value of XZ_OPT
27404         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
27405
27406 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
27407
27408         Make fseeko.c compile on QNX.
27409         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
27410
27411 2009-07-22  Peter Simons  <simons@cryp.to>
27412
27413         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
27414         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
27415         * lib/md4.h: Likewise.
27416         * lib/md5.h: Likewise.
27417         * lib/sha1.h: Likewise.
27418         * lib/sha256.h: Likewise.
27419         * lib/sha512.h: Likewise.
27420
27421         tests-sha1: don't assign literal string to 'char *' variable
27422         * tests/test-sha1.c (main): Declare locals with "const" to match
27423         attributes of the right hand side.
27424
27425 2009-07-21  Eric Blake  <ebb9@byu.net>
27426
27427         dup2: fix more mingw problems
27428         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
27429         fd to itself.
27430         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27431         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
27432         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
27433         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
27434         care of mingw bugs.
27435
27436 2009-07-21  Jim Meyering  <meyering@redhat.com>
27437
27438         vc-list-files: avoid failure when /bin/sh is dash
27439         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
27440         On some Debian based systems, /bin/sh is a symlink to dash, and running
27441         this command would omit the "/" following each 'tests' prefix:
27442           dash -x build-aux/vc-list-files -C . tests
27443         That is because bash and dash work differently:
27444           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
27445           bash ok
27446           dash odd
27447
27448 2009-07-21  Eric Blake  <ebb9@byu.net>
27449
27450         dup2-tests: test previous patch
27451         * modules/dup2-tests: New file.
27452         * tests/test-dup2.c: Likewise.
27453         * tests/test-open.c (main): Avoid unspecified behavior.
27454         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
27455         test.
27456
27457         dup2: work around mingw and cygwin 1.5 bug
27458         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
27459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27460         * modules/unistd (Makefile.am): Substitute it.
27461         * lib/unistd.in.h (dup2): Declare the replacement.
27462         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
27463         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
27464         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
27465         * modules/execute (Depends-on): Add dup2.
27466         * modules/fseterr (Depends-on): Likewise.
27467         * modules/pipe (Depends-on): Likewise.
27468         * modules/posix_spawn-internal (Depends-on): Likewise.
27469
27470 2009-07-21  Bruno Haible  <bruno@clisp.org>
27471
27472         * modules/.gitattributes: New file.
27473
27474 2009-07-20  Bruno Haible  <bruno@clisp.org>
27475
27476         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
27477         (main): Use it.
27478
27479 2009-07-20  Eric Blake  <ebb9@byu.net>
27480
27481         test-pipe: make a bit more robust.
27482         * tests/test-pipe.c (myerr): Allow error messages regardless of
27483         what we do to stderr.
27484         (test_pipe): Rearrange to avoid deadlock.
27485         (child_main): Try a larger read, to ensure we avoided deadlock.
27486         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
27487         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
27488         if misused.
27489
27490 2009-07-19  Jim Meyering  <meyering@redhat.com>
27491
27492         fts: avoid false-positive cycle-detection
27493         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
27494         for each new command line argument.
27495
27496 2009-07-19  Bruno Haible  <bruno@clisp.org>
27497
27498         Fix build error on mingw with the modules sys_select and unistd.
27499         * modules/acl-tests (Depends-on): Add close.
27500         * modules/binary-io-tests (Depends-on): Likewise.
27501         * modules/closein-tests (Depends-on): Likewise.
27502         * modules/flock-tests (Depends-on): Likewise.
27503         * modules/fsync-tests (Depends-on): Likewise.
27504         * modules/lseek-tests (Depends-on): Likewise.
27505         * modules/pipe-tests (Depends-on): Likewise.
27506         * modules/posix_spawn-tests (Depends-on): Likewise.
27507         * modules/posix_spawnp-tests (Depends-on): Likewise.
27508         * modules/stat-time-tests (Depends-on): Likewise.
27509         * modules/yesno-tests (Depends-on): Likewise.
27510
27511 2009-07-19  Bruno Haible  <bruno@clisp.org>
27512
27513         Unify conditionals.
27514         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
27515         macros, not at the compiler macros.
27516         * lib/pipe.c: Likewise.
27517         * lib/execute.c: Likewise.
27518         * lib/spawni.c: Likewise.
27519
27520 2009-07-19  Bruno Haible  <bruno@clisp.org>
27521
27522         Fix handling of closed stdin/stdout/stderr on mingw.
27523         * lib/w32spawn.h: Include unistd.h.
27524         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
27525         file descriptor with O_NOINHERIT flag.
27526         (fd_safer_noinherit): New function, based on fd-safer.c.
27527         (dup_safer_noinherit): New function, based on dup-safer.c.
27528         (undup_safer_noinherit): New function.
27529         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
27530         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
27531         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
27532         instead of fd_safer.
27533         * tests/test-pipe.c: Include <windows.h>.
27534         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
27535         result.
27536
27537         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
27538         from main.
27539         (test_pipe): Pass an extra argument for disambiguation.
27540         (main): Invoke parent_main or child_main.
27541
27542         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
27543         consistently.
27544
27545 2009-07-18  Eric Blake  <ebb9@byu.net>
27546
27547         test-pipe: fix mingw build
27548         * tests/test-pipe.c (main): Avoid fcntl on mingw.
27549
27550 2009-07-18  Bruno Haible  <bruno@clisp.org>
27551
27552         * modules/pipe-tests (Makefile.am): Fix typo.
27553
27554 2009-07-18  Eric Blake  <ebb9@byu.net>
27555
27556         error: fix mingw build
27557         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
27558         Reported by Bruno Haible.
27559
27560         error: avoid undefined use of stdout
27561         * lib/error.c (error, error_at_line): Check that fd 1 is open
27562         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
27563         is handling faults and the close_stdout module wants to report the
27564         detection of closed stdout as an error.
27565
27566 2009-07-17  Eric Blake  <ebb9@byu.net>
27567
27568         pipe: be robust in face of closed fds
27569         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
27570         should cause child to misbehave.
27571         * modules/pipe-tests: New module.
27572         * tests/test-pipe.c: New file.
27573         * tests/test-pipe.sh: New file.
27574         Reported by Akim Demaille.
27575
27576 2009-07-14  Bruno Haible  <bruno@clisp.org>
27577
27578         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
27579         Reported by anonymous kc.
27580
27581 2009-07-07  Jim Meyering  <meyering@redhat.com>
27582
27583         maint.mk: don't look for translatable strings in *.m4 or *.mk
27584         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
27585         when searching for translatable strings.
27586
27587 2009-07-05  Jim Meyering  <meyering@redhat.com>
27588
27589         remove superfluous parentheses in STREQ definition
27590         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
27591         * lib/getugroups.c (STREQ): Likewise.
27592         * lib/fnmatch.c (STREQ): Likewise.
27593         Spotted by Bruno Haible.
27594
27595 2009-07-04  Jim Meyering  <meyering@redhat.com>
27596
27597         argv-iter: new module
27598         * MODULES.html.sh: Add argv-iter.
27599         * lib/argv-iter.c, lib/argv-iter.h: New files.
27600         * modules/argv-iter: New file.
27601         * modules/argv-iter-tests: New file.
27602         * tests/test-argv-iter.c: Test it.
27603
27604 2009-07-04  Bruno Haible  <bruno@clisp.org>
27605
27606         Fix assertion.
27607         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
27608         contains more exact copies of a given entry than file2, leave the extra
27609         copies unpaired rather than aborting.
27610         Reported by Eric Blake.
27611
27612 2009-07-02  Bruno Haible  <bruno@clisp.org>
27613
27614         Speedup git-merge-changelog for git cherry-pick.
27615         * lib/git-merge-changelog.c (struct entries_mapping): New type.
27616         (entries_mapping_get): New function, extracted from compute_mapping.
27617         (entries_mapping_reverse_get): New function.
27618         (compute_mapping): Add a 'full' argument. Return the result in a
27619         'struct entries_mapping'.
27620         (main): Update. Access the mappings through entries_mapping_get.
27621         Reported by Eric Blake.
27622
27623 2009-07-02  Bruno Haible  <bruno@clisp.org>
27624
27625         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
27626         best_i.
27627
27628 2009-07-02  Bruno Haible  <bruno@clisp.org>
27629
27630         Speed up approximate search for matching ChangeLog entries.
27631         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
27632         argument. Call fstrcmp_bounded instead of fstrcmp.
27633         (compute_mapping, try_split_merged_entry, main): Update callers.
27634
27635 2009-07-02  Bruno Haible  <bruno@clisp.org>
27636
27637         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
27638
27639 2009-06-30  Bruno Haible  <bruno@clisp.org>
27640
27641         Reduce the number of uc_is_cased calls.
27642         * lib/unicase.h (casing_suffix_context_t): Add
27643         'first_char_except_ignorable' field.
27644         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
27645         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
27646         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
27647         Update initializer.
27648         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
27649         case-ignorable characters.
27650         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
27651         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
27652         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
27653         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
27654         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
27655
27656 2009-06-30  Bruno Haible  <bruno@clisp.org>
27657
27658         Tests for module 'unicase/ignorable'.
27659         * modules/unicase/ignorable-tests: New file.
27660         * tests/unicase/test-ignorable.c: New file, generated by
27661         gen-uni-tables.
27662
27663         Tests for module 'unicase/cased'.
27664         * modules/unicase/cased-tests: New file.
27665         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
27666         * tests/unicase/test-predicate-part1.h: New file, derived from
27667         tests/unictype/test-predicate-part1.h.
27668         * tests/unicase/test-predicate-part2.h: New file, same as
27669         tests/unictype/test-predicate-part2.h.
27670
27671         Fix evaluation of "Before C" condition of FINAL_SIGMA.
27672         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
27673         (output_casing_properties): New function.
27674         (main): Call it.
27675         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
27676         * lib/unicase/cased.c: Include unictype/bitmap.h.
27677         (uc_is_cased): Define through a bitmap lookup.
27678         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
27679         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
27680         (uc_is_case_ignorable): Define through a bitmap lookup.
27681         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
27682         lib/unictype/bitmap.h.
27683         (Depends-on): Add inline. Clean up.
27684         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
27685         lib/unictype/bitmap.h.
27686         (Depends-on): Add inline. Clean up.
27687         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
27688         recognition.
27689         * tests/unicase/test-u16-tolower.c (main): Likewise.
27690         * tests/unicase/test-u32-tolower.c (main): Likewise.
27691
27692 2009-06-30  Bruno Haible  <bruno@clisp.org>
27693
27694         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
27695         * lib/unicase/u16-casemap.c: Likewise.
27696         * lib/unicase/u32-casemap.c: Likewise.
27697
27698 2009-06-29  Bruno Haible  <bruno@clisp.org>
27699
27700         Define u32_casefold as a wrapper around u32_ct_casefold.
27701         * lib/unicase/u32-casefold.c: Update.
27702         * modules/unicase/u32-casefold (Depends-on): Add
27703         unicase/u32-ct-casefold, unicase/empty-prefix-context,
27704         unicase/empty-suffix-context. Clean up.
27705
27706         Define u16_casefold as a wrapper around u16_ct_casefold.
27707         * lib/unicase/u16-casefold.c: Update.
27708         * modules/unicase/u16-casefold (Depends-on): Add
27709         unicase/u16-ct-casefold, unicase/empty-prefix-context,
27710         unicase/empty-suffix-context. Clean up.
27711
27712         Define u8_casefold as a wrapper around u8_ct_casefold.
27713         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
27714         * lib/unicase/u8-casefold.c: Update.
27715         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
27716         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27717
27718         Define u32_totitle as a wrapper around u32_ct_totitle.
27719         * lib/unicase/u32-totitle.c: Update.
27720         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
27721         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27722
27723         Define u16_totitle as a wrapper around u16_ct_totitle.
27724         * lib/unicase/u16-totitle.c: Update.
27725         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
27726         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27727
27728         Define u8_totitle as a wrapper around u8_ct_totitle.
27729         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
27730         functions.
27731         (FUNC): Delegate to U_CT_TOTITLE.
27732         * lib/unicase/u8-totitle.c: Update.
27733         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
27734         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27735
27736         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
27737         invocation.
27738         * modules/unicase/u32-tolower (Depends-on): Add
27739         unicase/empty-prefix-context, unicase/empty-suffix-context.
27740
27741         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
27742         invocation.
27743         * modules/unicase/u16-tolower (Depends-on): Add
27744         unicase/empty-prefix-context, unicase/empty-suffix-context.
27745
27746         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
27747         * modules/unicase/u8-tolower (Depends-on): Add
27748         unicase/empty-prefix-context, unicase/empty-suffix-context.
27749
27750         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
27751         invocation.
27752         * modules/unicase/u32-toupper (Depends-on): Add
27753         unicase/empty-prefix-context, unicase/empty-suffix-context.
27754
27755         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
27756         invocation.
27757         * modules/unicase/u16-toupper (Depends-on): Add
27758         unicase/empty-prefix-context, unicase/empty-suffix-context.
27759
27760         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
27761         * modules/unicase/u8-toupper (Depends-on): Add
27762         unicase/empty-prefix-context, unicase/empty-suffix-context.
27763
27764         New module 'unicase/u32-ct-casefold'.
27765         * lib/unicase/u32-ct-casefold.c: New file.
27766         * modules/unicase/u32-ct-casefold: New file.
27767
27768         New module 'unicase/u16-ct-casefold'.
27769         * lib/unicase/u16-ct-casefold.c: New file.
27770         * modules/unicase/u16-ct-casefold: New file.
27771
27772         New module 'unicase/u8-ct-casefold'.
27773         * lib/unicase/u8-ct-casefold.c: New file.
27774         * lib/unicase/u-ct-casefold.h: New file, derived from
27775         lib/unicase/u-casefold.h.
27776         * modules/unicase/u8-ct-casefold: New file.
27777
27778         New module 'unicase/u32-ct-totitle'.
27779         * lib/unicase/u32-ct-totitle.c: New file.
27780         * modules/unicase/u32-ct-totitle: New file.
27781
27782         New module 'unicase/u16-ct-totitle'.
27783         * lib/unicase/u16-ct-totitle.c: New file.
27784         * modules/unicase/u16-ct-totitle: New file.
27785
27786         New module 'unicase/u8-ct-totitle'.
27787         * lib/unicase/u8-ct-totitle.c: New file.
27788         * lib/unicase/u-ct-totitle.h: New file, derived from
27789         lib/unicase/u-totitle.h.
27790         * modules/unicase/u8-ct-totitle: New file.
27791
27792         New module 'unicase/u32-ct-tolower'.
27793         * lib/unicase/u32-ct-tolower.c: New file.
27794         * modules/unicase/u32-ct-tolower: New file.
27795
27796         New module 'unicase/u16-ct-tolower'.
27797         * lib/unicase/u16-ct-tolower.c: New file.
27798         * modules/unicase/u16-ct-tolower: New file.
27799
27800         New module 'unicase/u8-ct-tolower'.
27801         * lib/unicase/u8-ct-tolower.c: New file.
27802         * modules/unicase/u8-ct-tolower: New file.
27803
27804         New module 'unicase/u32-ct-toupper'.
27805         * lib/unicase/u32-ct-toupper.c: New file.
27806         * modules/unicase/u32-ct-toupper: New file.
27807
27808         New module 'unicase/u16-ct-toupper'.
27809         * lib/unicase/u16-ct-toupper.c: New file.
27810         * modules/unicase/u16-ct-toupper: New file.
27811
27812         New module 'unicase/u8-ct-toupper'.
27813         * lib/unicase/u8-ct-toupper.c: New file.
27814         * modules/unicase/u8-ct-toupper: New file.
27815
27816         Add context arguments to u*_casemap functions.
27817         * lib/unicase/unicasemap.h: Include unicase.h.
27818         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
27819         suffix_context arguments.
27820         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
27821         functions.
27822         (FUNC): Add prefix_context and suffix_context arguments. Use
27823         uc_is_cased and uc_is_case_ignorable.
27824         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
27825         * lib/unicase/u16-casemap.c: Likewise.
27826         * lib/unicase/u32-casemap.c: Likewise.
27827         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
27828         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27829         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
27830         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27831         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
27832         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27833
27834         New module 'unicase/u32-suffix-context'.
27835         * lib/unicase/u32-suffix-context.c: New file.
27836         * modules/unicase/u32-suffix-context: New file.
27837
27838         New module 'unicase/u16-suffix-context'.
27839         * lib/unicase/u16-suffix-context.c: New file.
27840         * modules/unicase/u16-suffix-context: New file.
27841
27842         New module 'unicase/u8-suffix-context'.
27843         * lib/unicase/u8-suffix-context.c: New file.
27844         * lib/unicase/u-suffix-context.h: New file.
27845         * modules/unicase/u8-suffix-context: New file.
27846
27847         New module 'unicase/empty-suffix-context'.
27848         * lib/unicase/empty-suffix-context.c: New file.
27849         * modules/unicase/empty-suffix-context: New file.
27850
27851         New module 'unicase/u32-prefix-context'.
27852         * lib/unicase/u32-prefix-context.c: New file.
27853         * modules/unicase/u32-prefix-context: New file.
27854
27855         New module 'unicase/u16-prefix-context'.
27856         * lib/unicase/u16-prefix-context.c: New file.
27857         * modules/unicase/u16-prefix-context: New file.
27858
27859         New module 'unicase/u8-prefix-context'.
27860         * lib/unicase/u8-prefix-context.c: New file.
27861         * lib/unicase/u-prefix-context.h: New file.
27862         * lib/unicase/context.h: New file.
27863         * modules/unicase/u8-prefix-context: New file.
27864
27865         New module 'unicase/empty-prefix-context'.
27866         * lib/unicase/empty-prefix-context.c: New file.
27867         * modules/unicase/empty-prefix-context: New file.
27868
27869         New module 'unicase/ignorable'.
27870         * lib/unicase/ignorable.c: New file.
27871         * modules/unicase/ignorable: New file.
27872
27873         New module 'unicase/cased'.
27874         * lib/unicase/caseprop.h: New file.
27875         * lib/unicase/cased.c: New file.
27876         * modules/unicase/cased: New file.
27877
27878         New functions for case mapping of substrings.
27879         * lib/unicase.h (casing_prefix_context_t): New type.
27880         (unicase_empty_prefix_context): New variable.
27881         (u8_casing_prefix_context, u16_casing_prefix_context,
27882         u32_casing_prefix_context, u8_casing_prefixes_context,
27883         u16_casing_prefixes_context, u32_casing_prefixes_context): New
27884         declarations.
27885         (casing_suffix_context_t): New type.
27886         (unicase_empty_suffix_context): New variable.
27887         (u8_casing_suffix_context, u16_casing_suffix_context,
27888         u32_casing_suffix_context, u8_casing_suffixes_context,
27889         u16_casing_suffixes_context, u32_casing_suffixes_context,
27890         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
27891         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
27892         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
27893         declarations.
27894
27895 2009-06-28  Jim Meyering  <meyering@redhat.com>
27896
27897         boostrap: indent only with spaces
27898         * build-aux/bootstrap: Indent only with spaces, never TABs.
27899
27900         bootstrap: split long lines
27901         * build-aux/bootstrap: Keep line length < 80.
27902
27903         bootstrap: sync from coreutils
27904         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
27905         just as autoreconf does.  Verify a list of prerequisite
27906         package-name,version-number pairs if defined in bootstrap.conf.
27907         Refer to README-prereq, if prerequisites are not satisfied.
27908
27909 2009-06-27  Eric Blake  <ebb9@byu.net>
27910
27911         tests: add test for bogus NULL definition
27912         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
27913         * tests/test-stdlib.c: Likewise.
27914         * tests/test-string.c: Likewise.
27915         * tests/test-locale.c: Likewise.
27916         * tests/test-unistd.c: Likewise.
27917         * modules/stdio-tests (Depends-on): Add verify.
27918         * modules/stdlib-tests (Depends-on): Likewise.
27919         * modules/string-tests (Depends-on): Likewise.
27920         * modules/locale-tests (Depends-on): Likewise.
27921         * modules/unistd-tests (Depends-on): Likewise.
27922
27923 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
27924
27925         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
27926         self-explaining comment.
27927         * m4/selinux-selinux-h: Update serial.
27928         (gl_LIBSELINUX): New macro, adding a warning for missing development
27929         packages to code extracted from...
27930         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
27931         Add warning for missing development packages here, too.
27932
27933 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
27934
27935         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
27936
27937 2009-06-25  Eric Blake  <ebb9@byu.net>
27938
27939         version-etc: fix regression
27940         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
27941         gcc.
27942         (version_etc): Use it, to catch bugs with trailing NULL.
27943         * lib/version-etc.c (version_etc_arn): Delete unused argument.
27944         (version_etc_va): Fix logic bug.
27945         * modules/version-etc-tests: Add test.
27946         * tests/test-version-etc.c: New file.
27947         * tests/test-version-etc.sh: Likewise.
27948
27949 2009-06-25  Sam Steingold  <sds@gnu.org>
27950
27951         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
27952         mbtowc declaration.
27953
27954 2009-06-25  Eric Blake  <ebb9@byu.net>
27955
27956         fpurge: migrate into <stdio.h>
27957         * lib/fpurge.h: Delete...
27958         * lib/stdio.in.h (fpurge): ...and declare here, instead.
27959         * lib/fpurge.c (fpurge): Change declaring header.
27960         * modules/fpurge (Files): Drop deleted file.
27961         (Depends-on): Add stdio.
27962         (configure.ac): Set witness.
27963         * modules/stdio (Makefile.am): Support fpurge macros.
27964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27965         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
27966         * lib/fflush.c: Update client.
27967         * tests/test-fpurge.c: Likewise.
27968         * NEWS: Mention the change.
27969
27970 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27971
27972         * lib/argp-version-etc.c (program_authors): Add const
27973         qualifier.
27974         * lib/version-etc.c: Fix typos in the comments.
27975         * modules/argp-version-etc: Depends on version-etc.
27976
27977 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27978
27979         argp-version-etc: new module.
27980
27981         * lib/argp-version-etc.c: New file.
27982         * lib/argp-version-etc.h: New file.
27983         * modules/argp-version-etc: New file.
27984         * modules/argp-version-etc-tests: New file.
27985         * tests/test-argp-version-etc.c: New test.
27986         * tests/test-argp-version-etc-1.sh: New test.
27987
27988 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27989
27990         Provide additional interfaces and documentation for version-etc
27991         module.
27992
27993         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
27994         interfaces.
27995         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
27996         prototypes.
27997
27998 2009-06-24  Bruno Haible  <bruno@clisp.org>
27999
28000         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
28001         HAVE_LIB${NAME} macro.
28002         Reported by Sam Steingold <sds@gnu.org>.
28003
28004 2009-06-23  Simon Josefsson  <simon@josefsson.org>
28005
28006         * modules/hash-tests (test_hash_LDADD): Link to libintl when
28007         needed.
28008
28009 2009-06-21  Bruno Haible  <bruno@clisp.org>
28010
28011         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
28012         work.
28013         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
28014         together with LIB${NAME}, LTLIB${NAME}.
28015         Reported by Sam Steingold <sds@gnu.org>.
28016
28017 2009-06-20  Jim Meyering  <meyering@redhat.com>
28018
28019         tests: make sc_require_test_exit_idiom more generic
28020         * top/maint.mk (Exit_witness_file): New overridable variable.
28021         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
28022         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
28023
28024 2009-06-19  Jim Meyering  <meyering@redhat.com>
28025
28026         hash: reverse order of src/dst parameters in an internal interface
28027         * lib/hash.c (transfer_entries): Reverse order of parameters to
28028         put DST before SRC.  Adjust callers.
28029
28030         tests: test-hash: avoid wholesale duplication
28031         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
28032         Instead, use a loop and add a single conditional.
28033
28034         tests: test-hash: allow seed selection via a command line argument
28035         * tests/test-hash.c (get_seed): New function.
28036         (main): Use it.
28037
28038 2009-06-19  Eric Blake  <ebb9@byu.net>
28039
28040         hash: avoid memory leak on allocation failure
28041         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
28042         failure.  Factor repeated algorithm...
28043         (transfer_entries): ...into new helper routine.
28044         (hash_delete): React to hash_rehash return value.
28045
28046         hash: reduce memory pressure in hash_rehash no-op case
28047         * lib/hash.c (next_prime): Avoid overflow.
28048         (hash_initialize): Factor bucket size computation...
28049         (compute_bucket_size): ...into new helper function.
28050         (hash_rehash): Use new function and open coding to reduce memory
28051         pressure, and avoid a memory leak in USE_OBSTACK code.
28052         Reported by Jim Meyering.
28053
28054 2009-06-18  Eric Blake  <ebb9@byu.net>
28055
28056         hash: make rotation more obvious
28057         * modules/hash (Depends-on): Add bitrotate and stdint.
28058         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
28059         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
28060         (SIZE_MAX): Rely on headers for definition.
28061         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
28062         (raw_hasher): Use rotr_sz.
28063         Suggested by Jim Meyering.
28064
28065         hash: fix memory leak in last patch
28066         * lib/hash.c (hash_rehash): Avoid memory leak.
28067
28068         hash: avoid no-op rehashing
28069         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
28070
28071         hash: provide default callback functions
28072         * lib/hash.c (raw_hasher, raw_comparator): New functions.
28073         (hash_initialize): Use them as defaults.
28074         * tests/test-hash.c (main): Test this.
28075
28076         hash: minor optimization
28077         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
28078         when possible.
28079         (hash_initialize): Document this promise.
28080         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
28081         * tests/test-hash.c (hash_compare_strings): Test this.
28082
28083 2009-06-18  Bruno Haible  <bruno@clisp.org>
28084
28085         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
28086         going to be replaced anyway.
28087
28088 2009-06-18  Bruno Haible  <bruno@clisp.org>
28089
28090         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
28091         in one place.
28092         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
28093         be replaced anyway.
28094
28095 2009-06-18  Eric Blake  <ebb9@byu.net>
28096
28097         hash: check for resize before insertion
28098         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
28099         threshold before insertion, so that a pathological hash_rehash
28100         that fills every bucket can still trigger another rehash.
28101
28102 2009-06-18  Jim Meyering  <meyering@redhat.com>
28103
28104         hash-tests: add a loop around the small tests
28105         * tests/test-hash.c (main): Repeat small tests with selected
28106         small initial table sizes.
28107
28108 2009-06-17  Eric Blake  <ebb9@byu.net>
28109
28110         hash: minor cleanups
28111         * lib/hash.h (hash_entry): Make opaque, by moving...
28112         * lib/hash.c (hash_entry): ...here.
28113         (hash_insert): Clarify restrictions on what can be inserted.
28114         (hash_get_next): Clarify when it is safe to remove an element
28115         during traversal.
28116         (check_tuning): Skip verification when tuning is known safe.
28117         (hash_initialize): Clarify restrictions on tuning.
28118
28119 2009-06-17  Jim Meyering  <jim@meyering.net>
28120         and Eric Blake  <ebb9@byu.net>
28121
28122         hash-tests: new module
28123         * modules/hash-tests: New file.
28124         * tests/test-hash.c: New file.
28125
28126 2009-06-17  Eric Blake  <ebb9@byu.net>
28127
28128         strstr-simple: document new module
28129         * MODULES.html.sh: Document new module.
28130
28131         strstr, strcasestr: replace on platforms with broken memchr
28132         * modules/strstr: Split into...
28133         * modules/strstr-simple: ...new module that does not care about
28134         performance, but does care about glibc bug.
28135         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
28136         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
28137         if platform memchr is broken, per Debian bug 521737.
28138         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
28139         memchr.
28140         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
28141         * doc/posix-functions/strstr.texi (strstr): Document the fix.
28142         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28143         * modules/mountlist (Depends-on): Add strstr-simple.
28144         * modules/gen-uni-tables (Depends-on): Likewise.
28145         * modules/argz (Depends-on): Add strstr.
28146
28147 2009-06-17  Bruno Haible  <bruno@clisp.org>
28148
28149         * modules/posix_spawn-internal (Depends-on): Add errno.
28150
28151 2009-06-17  Bruno Haible  <bruno@clisp.org>
28152
28153         Define missing ESTALE on Interix 3.5.
28154         * lib/errno.in.h (ESTALE): Assign a value if missing.
28155         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
28156         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
28157         missing.
28158         * doc/posix-headers/errno.texi: Mention the Interix bug.
28159         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
28160
28161 2009-06-15  Eric Blake  <ebb9@byu.net>
28162
28163         memchr, memchr2: add valgrind exception
28164         * lib/memchr.valgrind: New file.
28165         * lib/memchr2.valgrind: New file.
28166         * modules/memchr (Files): Distribute valgrind file.
28167         * modules/memchr2 (Files): Likewise.
28168
28169         docs: memchr is no longer obsolete
28170         * MODULES.html.sh: Move memchr from obsolete to string.h section.
28171         * lib/string.in.h (memchr): Simplify logic.
28172
28173 2009-06-14  Jim Meyering  <meyering@redhat.com>
28174
28175         link-follow: fix the "checking..." message to not mention trailing slash
28176         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
28177         never considered trailing slashes.
28178
28179 2009-06-14  Bruno Haible  <bruno@clisp.org>
28180
28181         * m4/memchr.m4: Mention also the bug on IA-64.
28182         * doc/posix-functions/memchr.texi: Likewise.
28183
28184 2009-06-12  Eric Blake  <ebb9@byu.net>
28185
28186         memchr: detect broken x86_64 and alpha implementations
28187         * modules/memchr-tests (Depends-on): Move mmap detection...
28188         * modules/memchr (Depends-on): ...here.
28189         (configure.ac): Set indicator.
28190         * lib/string.in.h (memchr): Declare replacement.
28191         * modules/string (Makefile.am): Trigger replacement.
28192         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28193         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
28194         bugs.
28195         * doc/posix-functions/memchr.texi (memchr): Document the bug.
28196         * modules/getpagesize (License): Relax license.
28197
28198 2009-06-11  Bruno Haible  <bruno@clisp.org>
28199
28200         * lib/idpriv.h: Add more references.
28201
28202 2009-06-08  Bruno Haible  <bruno@clisp.org>
28203
28204         Tests for module 'idpriv-droptemp'.
28205         * modules/idpriv-droptemp-tests: New file.
28206         * tests/test-idpriv-droptemp.sh: New file.
28207         * tests/test-idpriv-droptemp.su.sh: New file.
28208         * tests/test-idpriv-droptemp.c: New file.
28209
28210         New module 'idpriv-droptemp'.
28211         * lib/idpriv-droptemp.c: New file.
28212         * modules/idpriv-droptemp: New file.
28213
28214 2009-06-08  Bruno Haible  <bruno@clisp.org>
28215
28216         Tests for module 'idpriv-drop'.
28217         * modules/idpriv-drop-tests: New file.
28218         * tests/test-idpriv-drop.sh: New file.
28219         * tests/test-idpriv-drop.su.sh: New file.
28220         * tests/test-idpriv-drop.c: New file.
28221
28222         New module 'idpriv-drop'.
28223         * lib/idpriv.h: New file.
28224         * lib-idpriv-drop.c: New file.
28225         * m4/idpriv.m4: New file.
28226         * modules/idpriv-drop: New file.
28227
28228 2009-06-08  Bruno Haible  <bruno@clisp.org>
28229
28230         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
28231         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28232         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28233         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28234         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28235         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28236         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28237
28238 2009-06-08  Eric Blake  <ebb9@byu.net>
28239
28240         test-strstr: use memory fence, when possible
28241         * tests/test-strstr.c (main): Use memory fence, in order to be
28242         more likely to trigger Debian bug 521737.
28243         * modules/strstr-tests (Files): Pull in additional files.
28244
28245         memchr: no longer obsolete, for wider field testing
28246         * modules/memchr (Status, Notice): Delete, this module is no
28247         longer obsolete.
28248         * modules/vasnprintf (Depends-on): Add memchr.
28249
28250 2009-06-07  Jim Meyering  <meyering@redhat.com>
28251
28252         hash: declare some functions with the warn_unused_result attribute
28253         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
28254
28255 2009-06-07  Bruno Haible  <bruno@clisp.org>
28256
28257         * tests/test-alignof.c: Don't test int64_t if it does not exist.
28258         Reported by Eric Blake.
28259
28260 2009-06-06  Eric Blake  <ebb9@byu.net>
28261
28262         test-alignof: fix typo with long double
28263         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
28264         compiler error.
28265
28266 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
28267
28268         Escape non-texinfo { and }s.
28269         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
28270         markup error.
28271
28272 2009-06-04  Jim Meyering  <meyering@redhat.com>
28273
28274         gitlog-to-changelog: don't infloop on an empty commit log
28275         * build-aux/gitlog-to-changelog: Warn about an empty log message.
28276         Reported by Boris Petersen <transacid@centerim.org>.
28277
28278 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
28279
28280         version-etc: extend for packagers
28281         Add three new configure options, intended for packagers:
28282           --with-packager="packager name"
28283           --with-packager-version="packager-specific version"
28284           --with-packager-bug-reports="packager bug reporting"
28285         An example with coreutils:
28286           $ ./configure \
28287             --with-packager=Gentoo \
28288             --with-packager-bug-report=http://bugs.gentoo.org/ \
28289             --with-packager-version="patchset 1.6"
28290           $ ./src/ls --version | head -n2
28291           ls (GNU coreutils) 7.1-dirty
28292           Packaged by Gentoo (patchset 1.6)
28293         Note that the bug reporting info via --help doesn't show up because
28294         coreutils uses its own custom emit_bug_reporting_address() implementation
28295         in src/system.h.  If it didn't, it'd look like:
28296           $ ./src/ls --help | tail -n4
28297           Report bugs to <bug-coreutils@gnu.org>.
28298           Report Gentoo bugs to <http://bugs.gentoo.org/>.
28299           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
28300           General help using GNU software: <http://www.gnu.org/gethelp/>.
28301         * lib/version-etc.c: Print new information, if provided.
28302         * m4/version-etc.m4: New file.
28303         * modules/version-etc (Files): Add m4/version-etc.m4.
28304         (configure.ac): Add gl_VERSION_ETC.
28305
28306 2009-05-31  Bruno Haible  <bruno@clisp.org>
28307
28308         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
28309         and 'int64_t'.
28310         * modules/alignof-tests (Dependencies): Add stdint.
28311         Reported by Eric Blake.
28312
28313 2009-05-31  Bruno Haible  <bruno@clisp.org>
28314
28315         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
28316         restriction due to compiler bugs.
28317         Reported by Eric Blake.
28318
28319 2009-05-31  Simon Josefsson  <simon@josefsson.org>
28320             Bruno Haible  <bruno@clisp.org>
28321
28322         Fix test-alignof failure.
28323         * lib/alignof.h (alignof_slot): New macro.
28324         (alignof_type): New macro, with the same semantics as the previous
28325         'alignof'.
28326         (alignof): Alias to alignof_slot.
28327         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
28328         check that the results are usable as constant expressions.
28329
28330 2009-05-31  Bruno Haible  <bruno@clisp.org>
28331
28332         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
28333         * tests/test-memchr.c (main): Check that memchr does not read past the
28334         first occurrence of the byte.
28335         * tests/test-strstr.c (main): Update comment.
28336         Suggested by Eric Blake.
28337
28338 2009-05-30  Bruno Haible  <bruno@clisp.org>
28339
28340         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
28341         detail how to use dumpbin.
28342         Reported by David Byron <dbyron@dbyron.com>.
28343
28344 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28345
28346         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
28347
28348 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28349
28350         * m4/manywarnings.m4: Add GCC 4.4 warnings.
28351
28352 2009-05-28  Bruno Haible  <bruno@clisp.org>
28353
28354         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
28355         build-aux/ files.
28356
28357 2009-05-28  Simon Josefsson  <simon@josefsson.org>
28358
28359         * gnulib-tool (func_import): Transform license on build-aux/ files too.
28360
28361 2009-05-27  Simon Josefsson  <simon@josefsson.org>
28362
28363         * gnulib-tool (sed_transform_main_lib_file)
28364         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
28365         regexps.
28366
28367 2009-05-26  Simon Josefsson  <simon@josefsson.org>
28368
28369         * tests/test-strstr.c: Add another self-test.
28370         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
28371         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
28372
28373 2009-05-23  Bruno Haible  <bruno@clisp.org>
28374
28375         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
28376         change.
28377
28378 2009-05-21  Bruno Haible  <bruno@clisp.org>
28379
28380         Simplify use of mode_t varargs.
28381         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
28382         uses 'mode_t' or 'int'.
28383         * lib/openat.c (openat): Likewise.
28384         * lib/open-safer.c (open_safer): Likewise.
28385         * m4/mode_t.m4: New file.
28386         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
28387         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
28388         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
28389         * modules/open (Files): Add m4/mode_t.m4.
28390         * modules/openat (Files): Likewise.
28391         * modules/fcntl-safer (Files): Likewise.
28392         Suggested by Eric Blake.
28393
28394 2009-05-21  Pádraig Brady  <P@draigbrady.com>
28395
28396         * doc/glibc-functions/fallocate.texi: New file.
28397         * doc/gnulib.texi: Include it.
28398
28399 2009-05-21  Eric Blake  <ebb9@byu.net>
28400             Bruno Haible  <bruno@clisp.org>
28401
28402         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
28403         invocations.
28404         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28405
28406 2009-05-21  Eric Blake  <ebb9@byu.net>
28407             Bruno Haible  <bruno@clisp.org>
28408
28409         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
28410         include_next. Fix of 2008-11-20 commit.
28411         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
28412         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
28413         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
28414         NEXT_MATH_H.
28415         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
28416         instead of NEXT_MATH_H.
28417
28418 2009-05-21  Bruno Haible  <bruno@clisp.org>
28419
28420         Avoid redefinition warnings for SIZE_MAX.
28421         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
28422         Reported by Simon Josefsson.
28423
28424 2009-05-21  Bruno Haible  <bruno@clisp.org>
28425
28426         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
28427         AC_CACHE_VAL.
28428
28429 2009-05-20  Bruno Haible  <bruno@clisp.org>
28430
28431         Make zeroptr.h work on mingw.
28432         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
28433         mprotect.
28434         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
28435         * modules/memchr2-tests (configure.ac): Likewise.
28436         * modules/memcmp-tests (configure.ac): Likewise.
28437         * modules/memmem-tests (configure.ac): Likewise.
28438         * modules/memrchr-tests (configure.ac): Likewise.
28439         Reported by Simon Josefsson.
28440
28441 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28442
28443         * tests/test-glob.c: Include string.h for strcmp prototype.
28444
28445 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28446
28447         * modules/getdelim (Depends-on): Add explicit stdint, although it
28448         was implicitly already pulled in via realloc-posix.
28449         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
28450
28451 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28452
28453         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
28454         G. Christensen" <tgc@jupiterrise.com>.
28455         * m4/sys_socket_h.m4: Check for sa_family_t.
28456         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
28457         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
28458         * tests/test-sys_socket.c: Check that sa_family_t works.
28459
28460 2009-05-18  Eric Blake  <ebb9@byu.net>
28461
28462         maint.mk: allow gnulib_dir in VPATH build
28463         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
28464
28465 2009-05-15  Jim Meyering  <meyering@redhat.com>
28466
28467         maint.mk: Give gnulib_dir a default definition.
28468         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
28469         Thus, most packages no longer need to specify this variable in cfg.mk
28470
28471 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
28472
28473         rename.m4: fix typos that would make non-mingw cross-configure fail
28474         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
28475
28476 2009-05-13  Eric Blake  <ebb9@byu.net>
28477
28478         mmap-anon: avoid out-of-order autoconf expansion
28479         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
28480         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
28481         * modules/memchr-tests (Depends-on): Add extensions.
28482         * modules/memchr2-tests (Depends-on): Add extensions.
28483         * modules/memcmp-tests (Depends-on): Add extensions.
28484         * modules/memmem-tests (Depends-on): Add extensions.
28485         * modules/memrchr-tests (Depends-on): Add extensions.
28486
28487 2009-05-13  Bruno Haible  <bruno@clisp.org>
28488
28489         Make some tests ISO C 99 compliant.
28490         * tests/zerosize-ptr.h: New file.
28491         * tests/test-memchr.c: Include zerosize-ptr.h.
28492         (main): Use a zero-size object pointer instead of NULL.
28493         * tests/test-memchr2.c: Include zerosize-ptr.h.
28494         (main): Use a zero-size object pointer instead of NULL.
28495         * tests/test-memcmp.c: Include zerosize-ptr.h.
28496         (main): Use a zero-size object pointer instead of NULL.
28497         * tests/test-memmem.c: Include zerosize-ptr.h.
28498         (main): Use a zero-size object pointer instead of NULL.
28499         * tests/test-memrchr.c: Include zerosize-ptr.h.
28500         (main): Use a zero-size object pointer instead of NULL.
28501         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
28502         m4/mmap-anon.m4.
28503         (Depends-on): Add getpagesize.
28504         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28505         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
28506         m4/mmap-anon.m4.
28507         (Depends-on): Add getpagesize.
28508         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28509         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
28510         m4/mmap-anon.m4.
28511         (Depends-on): Add getpagesize.
28512         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28513         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
28514         m4/mmap-anon.m4.
28515         (Depends-on): Add getpagesize.
28516         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28517         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
28518         m4/mmap-anon.m4.
28519         (Depends-on): Add getpagesize.
28520         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28521
28522 2009-05-12  Bruno Haible  <bruno@clisp.org>
28523
28524         Tests for module 'alignof'.
28525         * modules/alignof-tests: New file.
28526         * tests/test-alignof.c: New file.
28527
28528 2009-05-12  Bruno Haible  <bruno@clisp.org>
28529
28530         Fix alignof macro.
28531         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
28532         vendor compilers that are always correct.
28533
28534 2009-05-12  Bruno Haible  <bruno@clisp.org>
28535
28536         Make the MAP_ANONYMOUS detection work on HP-UX 11.
28537         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
28538         not whether its fully works.
28539
28540 2009-05-12  Bruno Haible  <bruno@clisp.org>
28541
28542         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
28543
28544 2009-05-12  Jim Meyering  <meyering@redhat.com>
28545
28546         * top/maint.mk: Adjust backslash alignment.
28547
28548 2009-05-11  Simon Josefsson  <simon@josefsson.org>
28549
28550         * top/maint.mk: Make $(srcdir)/build-aux configurable.
28551
28552 2009-05-11  Eric Blake  <ebb9@byu.net>
28553
28554         argp: avoid undefined behavior
28555         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
28556         macros.
28557
28558 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28559
28560         * tests/test-vc-list-files-git.sh: Do git config of user.email and
28561         user.name to prevent git commit from complaining.
28562
28563 2009-05-10  Bruno Haible  <bruno@clisp.org>
28564
28565         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
28566         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
28567         it rewrites every file name only once.
28568         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
28569
28570 2009-05-08  Bruno Haible  <bruno@clisp.org>
28571
28572         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
28573         instead of 'max'.
28574
28575 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28576
28577         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
28578         sockaddr_storage test.
28579
28580 2009-05-07  Simon Josefsson  <simon@josefsson.org>
28581
28582         * modules/sys_socket (Makefile.am): Substitute
28583         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
28584         * m4/sys_socket_h.m4: Check for sockaddr_storage.
28585         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
28586         * tests/test-sys_socket.c: Check sockaddr_storage.
28587
28588 2009-05-08  Bruno Haible  <bruno@clisp.org>
28589
28590         New module 'alignof'.
28591         * lib/alignof.h: New file.
28592         * modules/alignof: New file.
28593
28594 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28595             Bruno Haible  <bruno@clisp.org>
28596
28597         Fix test-file-has-acl on FreeBSD.
28598         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
28599         mask is implicitly added.
28600         * tests/test-file-has-acl.c: Include <signal.h>.
28601         (main): Terminate the test after 5 seconds.
28602         * modules/acl-tests (configure.ac): Check for alarm function.
28603
28604 2009-05-04  Bruno Haible  <bruno@clisp.org>
28605
28606         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
28607         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
28608         * modules/errno (configure.ac): Drop AC_REQUIRE.
28609         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
28610         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
28611
28612 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28613
28614         * modules/glob-tests: New module.
28615         * tests/test-glob.c: Add.
28616
28617 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28618
28619         * modules/fnmatch-tests: New module.
28620         * tests/test-fnmatch.c: Add.
28621
28622 2009-05-04  Eric Blake  <ebb9@byu.net>
28623
28624         maint: make the new no-submodule-changes rule VPATH-safe
28625         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
28626
28627 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28628             Bruno Haible  <bruno@clisp.org>
28629
28630         acl: Fix infinite loop on FreeBSD.
28631         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
28632         of return value from acl_get_entry.
28633         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
28634         Likewise.
28635
28636 2009-05-03  Bruno Haible  <bruno@clisp.org>
28637
28638         * lib/acl-internal.h (acl_entries): Clarify return value.
28639         * lib/acl_entries.c (acl_entries): Likewise.
28640
28641 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28642
28643         Bug fix in acl module.
28644         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
28645
28646 2009-05-03  Bruno Haible  <bruno@clisp.org>
28647
28648         Create gperf-generated file in the source dir, not in the build dir.
28649         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
28650         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
28651         * modules/unicase/locale-language (unicase/locale-languages.h):
28652         Likewise.
28653         * modules/unicase/special-casing (unicase/special-casing-table.h):
28654         Likewise.
28655         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
28656         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
28657         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
28658         Reported by Ralf Wildenhues.
28659
28660 2009-05-03  Bruno Haible  <bruno@clisp.org>
28661
28662         * modules/fnmatch (Description, configure.ac): Taken from
28663         fnmatch-posix.
28664         * modules/fnmatch-posix: Turn into a symbolic reference to the
28665         'fnmatch' module, and deprecate.
28666         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
28667
28668 2009-05-03  Bruno Haible  <bruno@clisp.org>
28669
28670         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
28671         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
28672         Reported by Ralf Wildenhues.
28673
28674 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28675
28676         * m4/fnmatch.m4: Fix fnmatch re-define.
28677
28678 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28679
28680         priv-set: new module and tests; adapt write-any-file
28681         * lib/priv-set.c: New file.
28682         * lib/priv-set.h: New file.
28683         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
28684         * lib/write-any-file.c: Simplify by using priv-set module.
28685         * m4/priv-set.m4: New file.
28686         * modules/priv-set: New file.
28687         * modules/unlinkdir: Add dependency on priv-set module.
28688         * modules/write-any-file: Likewise.
28689
28690         Tests for module 'priv-set'.
28691         * modules/priv-set-tests: New file.
28692         * tests/test-priv-set.c: New file.
28693
28694 2009-05-03  Jim Meyering  <meyering@redhat.com>
28695             Bruno Haible  <bruno@clisp.org>
28696
28697         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
28698         use the converted UTF-8 variant of the name instead.
28699
28700 2009-05-03  Jim Meyering  <meyering@redhat.com>
28701
28702         tests: tighten some getdate tests
28703         * tests/test-getdate.c (main): Tighten tests: require equality,
28704         not just greater than.  Set TZ envvar to UTC0.
28705
28706 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28707
28708         getdate: correctly interpret "next monday" when run on a Monday
28709         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
28710         that e.g., "next tues" (when run on a tuesday) results in a date
28711         that is one week in the future, and not today's date.
28712         I.e., add a week when the wday is the same as the current one.
28713         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
28714         and earlier by Martin Bernreuther and Jan Minář.
28715         * tests/test-getdate.c (main): Check that "next DAY" is always in
28716         the future and that "last DAY" is always in the past.
28717
28718 2009-05-02  Jim Meyering  <meyering@redhat.com>
28719
28720         build: ensure that a release build fails when a submodule is unclean
28721         * top/maint.mk (no-submodule-changes): New rule.
28722         (alpha beta major): Depend on it.
28723
28724 2009-05-02  Bruno Haible  <bruno@clisp.org>
28725
28726         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
28727         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
28728         shell variable gl_fnmatch_required to detect which variant is
28729         requested.
28730         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
28731         gl_FUNC_FNMATCH_POSIX.
28732         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
28733         exclude fnmatch-posix.
28734
28735 2009-05-02  Bruno Haible  <bruno@clisp.org>
28736
28737         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
28738         * modules/mbsrtowcs (License): Change to LGPLv2+.
28739         * modules/strnlen1 (License): Likewise.
28740         Reported by Simon Josefsson.
28741
28742 2009-05-02  Bruno Haible  <bruno@clisp.org>
28743
28744         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
28745         "cross".
28746         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
28747         gnulib-tool was called with option --source-base=lib.
28748
28749 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28750
28751         Use automake *-local hooks without commands, for extensibility.
28752         * modules/localcharset (Makefile.am): Rename install-exec-local
28753         rule to install-exec-localcharset, and make it a prerequisite of
28754         install-exec-local.  Likewise, rename the uninstall-local rule to
28755         uninstall-localcharset, and make it a prerequisite of the former.
28756
28757 2009-05-01  Bruno Haible  <bruno@clisp.org>
28758
28759         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
28760         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28761         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
28762         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
28763         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
28764         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28765         m4/locale-zh.m4, m4/codeset.m4.
28766
28767         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28768         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
28769         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28770         m4/locale-zh.m4.
28771
28772         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
28773         REPLACE_WCRTOMB if mbstate_t must be replaced.
28774         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
28775         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
28776
28777 2009-05-01  Bruno Haible  <bruno@clisp.org>
28778
28779         Avoid compiler warnings when redefining macros defined by <libintl.h>.
28780         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
28781         dngettext, dcngettext, textdomain, bindtextdomain,
28782         bind_textdomain_codeset): Undefine before redefining.
28783
28784 2009-04-30  Bruno Haible  <bruno@clisp.org>
28785
28786         Fix bug introduced on 2009-04-25.
28787         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
28788         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
28789         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
28790         is defined.
28791         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
28792         is defined.
28793         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
28794         is defined.
28795         Reported by Elbert_Pol <elbert.pol@gmail.com>.
28796
28797 2009-04-28  Bruno Haible  <bruno@clisp.org>
28798
28799         Comment tweaks.
28800         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
28801         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
28802         * lib/unicase.h (u*_casexfrm): Likewise.
28803         Reported by Paolo Bonzini.
28804
28805 2009-04-28  Bruno Haible  <bruno@clisp.org>
28806
28807         Fix a compilation error.
28808         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
28809         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
28810         Reported by Jim Meyering.
28811
28812 2009-04-27  Bruno Haible  <bruno@clisp.org>
28813
28814         New module 'libunistring'.
28815         * modules/libunistring: New file.
28816         * m4/libunistring.m4: New file.
28817         * MODULES.html.sh (Unicode string functions): Add it.
28818
28819 2009-04-27  Eric Blake  <ebb9@byu.net>
28820
28821         maint.mk: allow package-specific header to provide <config.h>
28822         * top/maint.mk (sc_require_config_h): New variable.
28823         (sc_require_config_h, sc_require_config_h_first): Use it.
28824
28825 2009-04-27  Simon Josefsson  <simon@josefsson.org>
28826
28827         * top/maint.mk (sc_avoid_if_before_free): Except
28828         useless-if-before-free script.
28829
28830 2009-04-27  Eric Blake  <ebb9@byu.net>
28831
28832         maintainer-makefile: depend on all required helper scripts
28833         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
28834         useless-if-before-free.
28835         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
28836         version, rather than assuming gnulib checkout is available.
28837         Reported by Simen Josefsson.
28838
28839 2009-04-26  Bruno Haible  <bruno@clisp.org>
28840
28841         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
28842         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
28843         "../" or "..".
28844
28845 2009-04-26  Bruno Haible  <bruno@clisp.org>
28846
28847         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
28848         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
28849         AC_LIB_HAVE_LINKFLAGS.
28850
28851 2009-04-26  Bruno Haible  <bruno@clisp.org>
28852
28853         Simplify calling convention of u*_conv_from_encoding.
28854         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
28855         u32_conv_from_encoding): Expect a resultbuf argument and return the
28856         result directly as a pointer.
28857         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
28858         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
28859         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
28860         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
28861         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
28862         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28863         Update.
28864         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
28865         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
28866         * lib/vasnprintf.c (VASNPRINTF): Update.
28867         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
28868         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
28869         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
28870         * NEWS: Mention the change.
28871
28872 2009-04-26  Bruno Haible  <bruno@clisp.org>
28873
28874         Simplify calling convention of u*_conv_to_encoding.
28875         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
28876         u32_conv_to_encoding): Expect a resultbuf argument and return the
28877         result directly as a pointer.
28878         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28879         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
28880         freeing scaled_offsets if mem_iconveha failed.
28881         * lib/unicase/u-casexfrm.h (FUNC): Update.
28882         * lib/uninorm/u-normxfrm.h (FUNC): Update.
28883         * lib/vasnprintf.c (VASNPRINTF): Update.
28884         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
28885         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
28886         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
28887         * NEWS: Mention the change.
28888
28889 2009-04-26  Bruno Haible  <bruno@clisp.org>
28890
28891         Avoid test failures on AIX and OSF/1.
28892         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
28893         malloc(0).
28894         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28895         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28896         Likewise.
28897         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
28898         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
28899         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
28900         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
28901         * doc/posix-functions/malloc.texi: Document the portability problem
28902         related to malloc(0).
28903
28904 2009-04-26  Bruno Haible  <bruno@clisp.org>
28905
28906         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
28907         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
28908         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
28909
28910 2009-04-25  Bruno Haible  <bruno@clisp.org>
28911
28912         Avoid link error when creating a namespace clean library.
28913         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
28914         as macro with arguments if already defined as an alias.
28915         * lib/signbitf.c (gl_signbitf): Don't undefine.
28916         * lib/signbitd.c (gl_signbitd): Don't undefine.
28917         * lib/signbitl.c (gl_signbitl): Don't undefine.
28918
28919 2009-04-25  Jim Meyering  <meyering@redhat.com>
28920
28921         vc-list-files: fix another quoting bug
28922         * build-aux/vc-list-files: Avoid sed backslash expansion
28923         of pathological directory names.
28924
28925 2009-04-25  Eric Blake  <ebb9@byu.net>
28926
28927         vc-list-files: fix shell quoting error
28928         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
28929         timestamp.
28930
28931 2009-04-25  Jim Meyering  <meyering@redhat.com>
28932
28933         vc-list-files: restore lost functionality with subdir argument
28934         * build-aux/vc-list-files: When given a non-"." sub-directory
28935         argument, substitute the $dir/ prefix back onto each resulting name.
28936         Otherwise, coreutils' root_tests check would fail.
28937
28938 2009-04-24  Eric Blake  <ebb9@byu.net>
28939
28940         vc-list-files: ignore git symlinks
28941         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
28942         than ls-files, to ignore git symlinks.
28943
28944         maint.mk: import improvements from m4
28945         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
28946         (move_if_change): Delete unused macro.
28947         (news-date-check, vc-diff-check): Support VPATH builds.
28948         (announcement): Likewise.  Split --bootstrap-tools list...
28949         (boostrap-tools): ...into separate list, which can be overridden
28950         in cfg.mk.
28951         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
28952         requiring dependency on useless-if-before-free module.
28953         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
28954         Support VPATH builds.
28955
28956 2009-04-24  Jim Meyering  <meyering@redhat.com>
28957
28958         maint.mk: remove coreutils-specific rules and variables
28959         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
28960         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
28961         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
28962
28963         maint.mk: remove obsolete rule
28964         * top/maint.mk (rel-check): Remove rule.
28965         (WGET, WGETFLAGS): Remove now-unused variables.
28966
28967 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28968
28969         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
28970         consistency.
28971
28972         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
28973         '$(PATH_SEPARATOR)' instead of ':'.
28974
28975 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28976
28977         * lib/getopt1.c (main): Use 'const' for static array.
28978
28979 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28980
28981         * top/maint.mk: Sync with coreutils.
28982         * NEWS: Explain incompatibilities.
28983
28984 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28985             Bruno Haible  <bruno@clisp.org>
28986
28987         Fix cross-compilation results.
28988         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
28989         statement, as third argument of AC_TRY_RUN.
28990         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28991         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28992         Likewise.
28993         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28994         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28995         Likewise.
28996         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28997         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
28998         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
28999
29000 2009-04-20  Bruno Haible  <bruno@clisp.org>
29001
29002         Avoid test failure on mingw.
29003         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
29004
29005 2009-04-20  Bruno Haible  <bruno@clisp.org>
29006
29007         Avoid compilation error on mingw.
29008         * modules/localename-tests (Depends-on): Add locale.
29009
29010 2009-04-19  Bruno Haible  <bruno@clisp.org>
29011
29012         Support for building a shared library on Windows platforms.
29013         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
29014         (main): Test the presence of UNINORM_NFC here.
29015         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
29016         (main): Test the presence of UNINORM_NFD here.
29017         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
29018         (main): Test the presence of UNINORM_NFKC here.
29019         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
29020         (main): Test the presence of UNINORM_NFKD here.
29021
29022 2009-04-19  Bruno Haible  <bruno@clisp.org>
29023
29024         Avoid a compiler warning.
29025         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
29026         Change type of variable 'sequence'.
29027
29028 2009-04-19  Bruno Haible  <bruno@clisp.org>
29029
29030         * modules/configmake (Makefile.am): When the contents of configmake.h
29031         does not change, arrange to preserve its modification time.
29032
29033 2009-04-17  Simon Josefsson  <simon@josefsson.org>
29034
29035         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
29036         gettext domain.
29037
29038 2009-04-16  Jim Meyering  <meyering@redhat.com>
29039
29040         useless-if-before-free: improve conversion code
29041         * build-aux/useless-if-before-free: Adjust code-in-comment to match
29042         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
29043
29044 2009-04-14  Bruno Haible  <bruno@clisp.org>
29045
29046         * modules/fcntl (Depends-on): Add extensions.
29047         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
29048
29049 2009-04-12  Ben Pfaff  <blp@gnu.org>
29050
29051         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
29052         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
29053
29054 2009-03-20  Ben Pfaff  <blp@gnu.org>
29055
29056         Make rename replace existing destinations on Windows.
29057         * m4/rename.m4: Add test for Mingw.
29058         * lib/rename.c: Add rename replacement that uses MoveFileEx with
29059         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
29060         * doc/posix-functions/rename.texi: Document.
29061
29062 2009-04-10  Bruno Haible  <bruno@clisp.org>
29063
29064         New include file "iconveh.h".
29065         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
29066         * lib/striconveh.h: Include it.
29067         (enum iconv_ilseq_handler): Remove definition.
29068         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
29069         striconveh.h.
29070         * lib/striconveha.c: Include striconveh.h.
29071         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
29072         * modules/striconveh (Files): Add lib/iconveh.h.
29073         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
29074         lib/striconveh.h.
29075
29076 2009-04-10  Bruno Haible  <bruno@clisp.org>
29077
29078         * lib/uniconv.h: Update comment.
29079
29080 2009-04-10  Bruno Haible  <bruno@clisp.org>
29081
29082         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
29083         always.
29084         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29085         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29086         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29087         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
29088         "unistring-notinline.h", so that the function gets defined always.
29089         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29090         * lib/unistr/u8-uctomb.c: Likewise.
29091         * lib/unistr/u16-mbtouc.c: Likewise.
29092         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29093         * lib/unistr/u16-uctomb.c: Likewise.
29094         * lib/unistr/u32-mbtouc.c: Likewise.
29095         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29096         * lib/unistr/u32-uctomb.c: Likewise.
29097
29098 2009-04-10  Bruno Haible  <bruno@clisp.org>
29099
29100         Mark 'utime' obsolete.
29101         * modules/utime (Status, Notice): New sections.
29102         Suggested by Jim Meyering.
29103
29104         Fix cross-compile guess for utime test.
29105         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
29106         autoconf.
29107         * doc/posix-functions/utime.texi: Give more precisions.
29108         Reported by Jan <ipif@ymail.com>.
29109
29110 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
29111
29112         filevercmp: correct today's change
29113         * lib/filevercmp.c: Also handle coreutils' test inputs.
29114         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
29115
29116         Fix regression in 'filevercmp' module. Thanks Sven Joachim
29117         for reporting it.
29118         * lib/filevercmp.c: Special handle for "", "." and "..".
29119         * tests/test-filevercmp.c: Enlarge the set suite.
29120
29121 2009-04-07  Jim Meyering  <meyering@redhat.com>
29122
29123         useless-if-before-free: show how to remove braced useless free, too
29124         * build-aux/useless-if-before-free: still only in a comment, though.
29125
29126 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
29127
29128         maint.mk: import changes to syntax-check macros from coreutils
29129         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
29130         Use them in the relevant macros.
29131
29132 2009-04-06  Bruno Haible  <bruno@clisp.org>
29133
29134         Fix unportable use of bit-fields.
29135         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
29136         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
29137         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
29138
29139 2009-04-06  Bruno Haible  <bruno@clisp.org>
29140
29141         Avoid test failures on AIX and OSF/1.
29142         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
29143         that malloc(0) = NULL.
29144         * tests/unicase/test-u8-tolower.c (check): Likewise.
29145         * tests/unicase/test-u8-totitle.c (check): Likewise.
29146         * tests/unicase/test-u8-toupper.c (check): Likewise.
29147         * tests/unicase/test-u16-casefold.c (check): Likewise.
29148         * tests/unicase/test-u16-tolower.c (check): Likewise.
29149         * tests/unicase/test-u16-totitle.c (check): Likewise.
29150         * tests/unicase/test-u16-toupper.c (check): Likewise.
29151         * tests/unicase/test-u32-casefold.c (check): Likewise.
29152         * tests/unicase/test-u32-tolower.c (check): Likewise.
29153         * tests/unicase/test-u32-totitle.c (check): Likewise.
29154         * tests/unicase/test-u32-toupper.c (check): Likewise.
29155         * tests/uninorm/test-u8-nfc.c (check): Likewise.
29156         * tests/uninorm/test-u8-nfd.c (check): Likewise.
29157         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
29158         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
29159         * tests/uninorm/test-u16-nfc.c (check): Likewise.
29160         * tests/uninorm/test-u16-nfd.c (check): Likewise.
29161         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
29162         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
29163         * tests/uninorm/test-u32-nfc.c (check): Likewise.
29164         * tests/uninorm/test-u32-nfd.c (check): Likewise.
29165         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
29166         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
29167
29168 2009-04-05  Bruno Haible  <bruno@clisp.org>
29169
29170         Work around an autoconf limitation.
29171         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
29172         comment line if it would be longer than 3 KB.
29173
29174 2009-04-05  Bruno Haible  <bruno@clisp.org>
29175
29176         Avoid test failure with libiconv-1.13.
29177         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
29178         of the expected test results.
29179
29180 2009-04-05  Bruno Haible  <bruno@clisp.org>
29181
29182         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
29183         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
29184         that it should be installed.
29185
29186 2009-04-05  Bruno Haible  <bruno@clisp.org>
29187
29188         * gnulib-tool: New option --copy-file.
29189         (func_usage): Document it.
29190         (func_dest_tmpfilename): Moved out of func_import.
29191         (func_add_file, func_update_file): New functions, extracted from
29192         func_import.
29193         (func_import): Update.
29194
29195 2009-04-05  Karl Berry  <karl@gnu.org>
29196
29197         * README: prominently mention gnulib-tool.
29198         Rearrange sections so getting the code is near the top.
29199
29200 2009-04-05  Bruno Haible  <bruno@clisp.org>
29201
29202         * lib/unicase.h: Mention u*_cmp2.
29203         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29204         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
29205         * lib/unicase/ulc-casecmp.c: Likewise.
29206         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
29207         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
29208         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
29209         unistr/u8-cmp.
29210         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
29211         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
29212         unistr/u16-cmp.
29213         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
29214         unistr/u32-cmp.
29215
29216         * lib/uninorm.h: Mention u*_cmp2.
29217         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29218         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
29219         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
29220         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
29221         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
29222         unistr/u8-cmp.
29223         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
29224         unistr/u16-cmp.
29225         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
29226         unistr/u32-cmp.
29227
29228         New module 'unistr/u32-cmp2'.
29229         * lib/unistr/u32-cmp2.c: New file.
29230         * modules/unistr/u32-cmp2: New file.
29231
29232         New module 'unistr/u16-cmp2'.
29233         * lib/unistr/u16-cmp2.c: New file.
29234         * modules/unistr/u16-cmp2: New file.
29235
29236         New module 'unistr/u8-cmp2'.
29237         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
29238         * lib/unistr/u8-cmp2.c: New file.
29239         * lib/unistr/u-cmp2.h: New file.
29240         * modules/unistr/u8-cmp2: New file.
29241
29242 2009-04-05  Bruno Haible  <bruno@clisp.org>
29243
29244         * lib/unictype.h (uc_property_is_valid): New macro.
29245         * tests/unictype/test-pr_byname.c (main): Use it.
29246
29247         * lib/unistr.h: Doc fixes.
29248         * lib/uniconv.h: Doc fixes.
29249         * lib/unictype.h: Doc fixes.
29250
29251 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29252
29253         Port coreutils 7.2 to Solaris 8.
29254
29255         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
29256         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
29257         for Solaris 8.  This is a bit of a hack, as it means it's the
29258         caller's responsibility to add -lnsl if needed, but most likely it
29259         won't be needed since only getaddrinfo uses this and getaddrinfo
29260         isn't needed on Solaris 8.
29261
29262         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
29263         problem to Solaris 8 encountered with coreutils 7.2, which
29264         resulted in a message "fnmatch.c:292: warning: passing argument 4
29265         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
29266         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
29267
29268 2009-04-03  Simon Josefsson  <simon@josefsson.org>
29269
29270         * m4/ld-version-script.m4: Add FIXME comment.
29271
29272 2009-04-02  Simon Josefsson  <simon@josefsson.org>
29273
29274         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
29275         SOVERSION variable.
29276
29277 2009-04-02  Bruno Haible  <bruno@clisp.org>
29278
29279         * Makefile (info, html, dvi, pdf): Combine the rules.
29280         Suggested by Jim Meyering.
29281
29282 2009-04-01  Bruno Haible  <bruno@clisp.org>
29283
29284         * Makefile (info, html, dvi, pdf): New targets.
29285         Reported by Reuben Thomas <rrt@sc3d.org>.
29286
29287 2009-04-01  Bruno Haible  <bruno@clisp.org>
29288
29289         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
29290         can be put into PATH.
29291         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
29292
29293 2009-04-01  Bruno Haible  <bruno@clisp.org>
29294
29295         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
29296
29297 2009-04-01  Bruno Haible  <bruno@clisp.org>
29298
29299         Rename module 'visibility'.
29300         * modules/lib-symbol-visibility: Renamed from modules/visibility.
29301         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
29302         * doc/gnulib.texi: Update.
29303         * MODULES.html.sh (Misc): Update.
29304         * NEWS: Mention the change.
29305
29306 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29307
29308         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
29309         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
29310         Eric Blake <ebb9@byu.net> for review.
29311         * MODULES.html.sh: Add lib-msvc-compat.
29312         * doc/gnulib.texi: Link to new section.
29313         * m4/ld-output-def.m4: New file.
29314         * doc/ld-output-def.texi: New file.
29315
29316 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29317
29318         Rename ld-version-script to lib-symbol-versions.  Suggested by
29319         Bruno Haible <bruno@clisp.org>.
29320         * modules/ld-version-script: Renamed to lib-symbol-versions.
29321         * doc/ld-version-script.texi: Fix module name.
29322         * MODULES.html.sh: Add lib-symbol-versions.
29323
29324 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29325
29326         * modules/u64-tests: New file.
29327         * tests/test-u64.c: New file.
29328
29329 2009-03-04  Simon Josefsson  <simon@josefsson.org>
29330
29331         * MODULES.html.sh: Mention u64.
29332         * modules/u64: New module.
29333         * modules/crypto/sha512: Depend on u64 module instead of providing
29334         u64.h.
29335
29336 2009-03-27  Eric Blake  <ebb9@byu.net>
29337
29338         test-strerror: make debugging EAI_SYSTEM easier
29339         * modules/getaddrinfo-tests (Depends-on): Add strerror.
29340         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
29341         failure was EAI_SYSTEM.
29342
29343 2009-03-25  Bruno Haible  <bruno@clisp.org>
29344
29345         Fix a problem with --enable-relocatable on Solaris 7.
29346         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
29347         since 2008-02-24.
29348
29349 2009-03-25  Eric Blake  <ebb9@byu.net>
29350
29351         test-sockets: avoid gcc warning
29352         * tests/test-sockets.c (main): Silence compiler warning.
29353
29354 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
29355
29356         New modules nproc, pthread, contributed by Glen Lenker.
29357
29358         * MODULES.html.sh: Add pthread, nproc.
29359         * lib/nproc.c: New file.
29360         * lib/nproc.h: New file.
29361         * lib/pthread.in.h: New file.
29362         * m4/pthread.m4: New file.
29363         * modules/nproc: New file.
29364         * modules/pthread: New file.
29365
29366 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29367
29368         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
29369         New variable.
29370
29371 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
29372
29373         filevercmp: handle simple~ and numbered.~3~ backup suffixes
29374         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
29375         * tests/test-filevercmp.c: Add tests for backup suffixes.
29376
29377 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29378
29379         * modules/stdlib (Depends-on): Add stdint, needed when defining
29380         struct random_data on, for example, HP-UX 10.20.  Reported by
29381         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29382
29383 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29384
29385         * lib/readline.c (readline): Call fflush on stdout after printing
29386         prompt.
29387
29388 2009-03-20  Bruno Haible  <bruno@clisp.org>
29389
29390         Remove dependency from 'close' module to -lws2_32 on native Windows.
29391         * lib/close-hook.h: New file.
29392         * lib/close-hook.c: New file.
29393         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
29394         w32sock.h.
29395         (_gl_close_fd_maybe_socket): Remove function.
29396         (rpl_close): Invoke execute_all_close_hooks instead of
29397         _gl_close_fd_maybe_socket.
29398         * lib/sockets.c: Include close-hook.h, w32sock.h.
29399         (close_fd_maybe_socket): New function, essentially from lib/close.c.
29400         (close_sockets_hook): New variable.
29401         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
29402         (gl_sockets_cleanup): Unregister it.
29403         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
29404         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
29405         * modules/close-hook: New file.
29406         * modules/close (Files): Remove lib/w32sock.h.
29407         (Depends-on): Add close-hook.
29408         (Link): Remove section.
29409         * modules/sockets (Files): Add lib/w32sock.h.
29410         (Depends-on): Add close-hook.
29411         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
29412         invocation.
29413         * NEWS: Mention that LIB_CLOSE is gone.
29414
29415 2009-03-23  Eric Blake  <ebb9@byu.net>
29416
29417         signal-tests: test previous patch
29418         * tests/test-signal.c: New file.
29419         * modules/signal-tests: Likewise.
29420
29421         signal.h: always support 'volatile sig_atomic_t'
29422         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
29423         (gl_SIGNAL_H_DEFAULTS): Add a default.
29424         * modules/signal (Makefile.am): Substitute if needed.
29425         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
29426         users can blindly add volatile.
29427         * doc/posix-headers/signal.texi (signal.h): Document it.
29428         Reported by Matthew Woehlke.
29429
29430 2009-03-23  Jim Meyering  <meyering@redhat.com>
29431
29432         pathmax: PATH_MAX: use pathconf only when available
29433         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
29434         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
29435         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
29436         This avoids a link failure in a PSP cross-compilation environment
29437         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
29438
29439         * lib/vasnprintf.c (divide): Fix typo in comment.
29440
29441 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29442
29443         * gnulib-tool (func_filter_filelist): Fix comment.
29444
29445 2009-03-20  Bruno Haible  <bruno@clisp.org>
29446
29447         Make sockets.h self-contained.
29448         * lib/sockets.c: Include sockets.h first.
29449         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
29450
29451 2009-03-19  Eric Blake  <ebb9@byu.net>
29452
29453         doc: mention more functions added in cygwin 1.7.0
29454         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
29455         addition.
29456         * doc/posix-functions/log2f.texi: Likewise.
29457
29458 2009-03-19  Jim Meyering  <meyering@redhat.com>
29459
29460         fsusage: avoid syntax error due to statement-before-declaration
29461         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
29462         after all declarations.  Reported by Matthew Woehlke in
29463         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
29464
29465 2009-03-18  Eric Blake  <ebb9@byu.net>
29466
29467         build-aux/compile: sync from automake
29468         * build-aux/compile: New file, from automake.
29469         * config/srclist.txt: Mention build-aux/compile.
29470
29471 2009-03-17  Bruno Haible  <bruno@clisp.org>
29472
29473         * lib/git-merge-changelog.c: Fix typo in comment.
29474         Reported by Reuben Thomas <rrt@sc3d.org>.
29475
29476 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
29477
29478         * m4/regex.m4: update and improve help for
29479         --without-included-regex.
29480
29481 2009-03-17  Simon Josefsson  <simon@josefsson.org>
29482
29483         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
29484         failure on missing include files.
29485
29486 2009-03-17  Eric Blake  <ebb9@byu.net>
29487
29488         doc: mention more functions added in cygwin 1.7.0
29489         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
29490         addition.
29491         * doc/posix-functions/fwscanf.texi: Likewise.
29492         * doc/posix-functions/swprintf.texi: Likewise.
29493         * doc/posix-functions/swscanf.texi: Likewise.
29494         * doc/posix-functions/vfwprintf.texi: Likewise.
29495         * doc/posix-functions/vfwscanf.texi: Likewise.
29496         * doc/posix-functions/vswprintf.texi: Likewise.
29497         * doc/posix-functions/vswscanf.texi: Likewise.
29498         * doc/posix-functions/vwprintf.texi: Likewise.
29499         * doc/posix-functions/vwscanf.texi: Likewise.
29500         * doc/posix-functions/wcscasecmp.texi: Likewise.
29501         * doc/posix-functions/wcsdup.texi: Likewise.
29502         * doc/posix-functions/wcsftime.texi: Likewise.
29503         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29504         * doc/posix-functions/wprintf.texi: Likewise.
29505         * doc/posix-functions/wscanf.texi: Likewise.
29506         * doc/glibc-functions/gethostbyname2.texi: Likewise.
29507
29508 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29509
29510         maint.mk: really add $(AM_MAKEFLAGS)
29511         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
29512         was inadvertently omitted in the last commit.
29513         Spotted by Bruno Haible.
29514
29515         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
29516         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
29517         $(AM_MAKEFLAGS)' rather than plain `make'.
29518
29519         gnulib-tool: execute $MAKE not make
29520         * gnulib-tool: Default $MAKE to 'make'.
29521         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
29522         than make.  Initialize $MAKE in the do-autobuild script.
29523
29524         gnulib-tool: use $MAKE not make in generated files
29525         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
29526         make, in generated files.  Initialize $MAKE in the do-autobuild
29527         script.
29528
29529         * top/GNUmakefile (_have-git-version-gen): Fix typo.
29530
29531         GNUmakefile: disable parallelism only for multiple, recursive targets
29532         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
29533         additions in the Makefile.
29534         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
29535         by Automake.
29536         (.NOTPARALLEL): Only disable parallel builds if multiple targets
29537         are listed on the command line and at least one of them is
29538         listed in $(ALL_RECURSIVE_TARGETS).
29539
29540 2009-03-14  Bruno Haible  <bruno@clisp.org>
29541
29542         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
29543         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
29544         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
29545         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
29546         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
29547         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
29548         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
29549         unistr/u8-uctomb.
29550         * modules/unistr/u8-strchr (Depends-on): Likewise.
29551         * modules/unistr/u8-strrchr (Depends-on): Likewise.
29552         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
29553         unistr/u16-uctomb.
29554         * modules/unistr/u16-strchr (Depends-on): Likewise.
29555         * modules/unistr/u16-strrchr (Depends-on): Likewise.
29556
29557 2009-03-12  Bruno Haible  <bruno@clisp.org>
29558
29559         Work around select() bug on Interix 3.5.
29560         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
29561         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
29562         * m4/select.m4: New file.
29563         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
29564         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
29565         * modules/select (Files): Add m4/select.m4.
29566         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
29567         * modules/nanosleep (Depends-on): Add select.
29568         * modules/poll (Depends-on): Likewise.
29569         * doc/posix-functions/select.texi: Mention the Interix bug.
29570         Reported by Markus Duft <mduft@gentoo.org>.
29571
29572         * lib/select.c: Renamed from lib/winsock-select.c.
29573         * modules/select (Files): Add lib/select.c, remove
29574         lib/winsock-select.c.
29575         (configure.ac): Update.
29576
29577 2009-03-12  Jim Meyering  <meyering@redhat.com>
29578
29579         avoid gcc warnings about unused macro definitions
29580         * lib/readtokens.c (STREQ): Remove unused definition.
29581         * lib/xmalloc.c (SIZE_MAX): Likewise.
29582         * lib/openat-die.c (N_): Likewise.
29583         * lib/mountlist.c (SIZE_MAX): Remove definition.
29584         Instead, include <stdint.h>.
29585         * lib/readutmp.c: Likewise.
29586         * modules/readutmp (Depends-on): Add stdint.
29587         * modules/mountlist (Depends-on): Add stdint.
29588         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
29589
29590 2009-03-10  Bruno Haible  <bruno@clisp.org>
29591
29592         Tests for module 'mbmemcasecoll'.
29593         * modules/mbmemcasecoll-tests: New file.
29594         * tests/test-mbmemcasecoll1.sh: New file.
29595         * tests/test-mbmemcasecoll2.sh: New file.
29596         * tests/test-mbmemcasecoll3.sh: New file.
29597         * tests/test-mbmemcasecoll.c: New file.
29598
29599         New module 'mbmemcasecoll'.
29600         * lib/mbmemcasecoll.h: New file.
29601         * lib/mbmemcasecoll.c: New file.
29602         * modules/mbmemcasecoll: New file.
29603
29604         * tests/test-mbmemcasecmp.h: New file, extracted from
29605         tests/test-mbmemcasecmp.c.
29606         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
29607         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
29608         (main): Update.
29609         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
29610
29611 2009-03-09  Bruno Haible  <bruno@clisp.org>
29612
29613         Tests for module 'mbmemcasecmp'.
29614         * modules/mbmemcasecmp-tests: New file.
29615         * tests/test-mbmemcasecmp1.sh: New file.
29616         * tests/test-mbmemcasecmp2.sh: New file.
29617         * tests/test-mbmemcasecmp3.sh: New file.
29618         * tests/test-mbmemcasecmp.c: New file.
29619
29620         New module 'mbmemcasecmp'.
29621         * lib/mbmemcasecmp.h: New file.
29622         * lib/mbmemcasecmp.c: New file.
29623         * modules/mbmemcasecmp: New file.
29624
29625 2009-03-09  Bruno Haible  <bruno@clisp.org>
29626
29627         Tests for module 'unicase/ulc-casecoll'.
29628         * modules/unicase/ulc-casecoll-tests: New file.
29629         * tests/unicase/test-ulc-casecoll1.sh: New file.
29630         * tests/unicase/test-ulc-casecoll2.sh: New file.
29631         * tests/unicase/test-ulc-casecoll.c: New file.
29632
29633         New module 'unicase/ulc-casecoll'.
29634         * lib/unicase.h (ulc_casecoll): New declaration.
29635         * lib/unicase/ulc-casecoll.c: New file.
29636         * modules/unicase/ulc-casecoll: New file.
29637
29638         New module 'unicase/ulc-casexfrm'.
29639         * lib/unicase.h (ulc_casexfrm): New declaration.
29640         * lib/unicase/ulc-casexfrm.c: New file.
29641         * modules/unicase/ulc-casexfrm: New file.
29642
29643 2009-03-09  Bruno Haible  <bruno@clisp.org>
29644
29645         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
29646         invocations.
29647
29648         * m4/mbscasecmp.m4: Remove file.
29649         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
29650         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
29651
29652         * m4/mbscasestr.m4: Remove file.
29653         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
29654         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
29655
29656         * m4/mbschr.m4: Remove file.
29657         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
29658         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
29659
29660         * m4/mbscspn.m4: Remove file.
29661         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
29662         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
29663
29664         * m4/mbslen.m4: Remove file.
29665         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
29666         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
29667
29668         * m4/mbsncasecmp.m4: Remove file.
29669         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
29670         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
29671
29672         * m4/mbsnlen.m4: Remove file.
29673         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
29674         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
29675
29676         * m4/mbspbrk.m4: Remove file.
29677         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
29678         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
29679
29680         * m4/mbspcasecmp.m4: Remove file.
29681         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
29682         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
29683
29684         * m4/mbsrchr.m4: Remove file.
29685         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
29686         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
29687
29688         * m4/mbssep.m4: Remove file.
29689         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
29690         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
29691
29692         * m4/mbsspn.m4: Remove file.
29693         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
29694         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
29695
29696         * m4/mbsstr.m4: Remove file.
29697         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
29698         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
29699
29700         * m4/mbstok_r.m4: Remove file.
29701         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
29702         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
29703
29704         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
29705
29706         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
29707         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
29708
29709         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
29710
29711 2009-03-08  Bruno Haible  <bruno@clisp.org>
29712
29713         Tests for module 'unicase/ulc-casecmp'.
29714         * modules/unicase/ulc-casecmp-tests: New file.
29715         * tests/unicase/test-ulc-casecmp1.sh: New file.
29716         * tests/unicase/test-ulc-casecmp2.sh: New file.
29717         * tests/unicase/test-ulc-casecmp.c: New file.
29718
29719         New module 'unicase/ulc-casecmp'.
29720         * lib/unicase.h (ulc_casecmp): New declaration.
29721         * lib/unicase/ulc-casecmp.c: New file.
29722         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
29723         'const SRC_UNIT *'.
29724         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
29725         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
29726         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
29727         * modules/unicase/ulc-casecmp: New file.
29728
29729         Tests for module 'unicase/u32-is-cased'.
29730         * modules/unicase/u32-is-cased-tests: New file.
29731         * tests/unicase/test-u32-is-cased.c: New file.
29732
29733         Tests for module 'unicase/u16-is-cased'.
29734         * modules/unicase/u16-is-cased-tests: New file.
29735         * tests/unicase/test-u16-is-cased.c: New file.
29736
29737         Tests for module 'unicase/u8-is-cased'.
29738         * modules/unicase/u8-is-cased-tests: New file.
29739         * tests/unicase/test-u8-is-cased.c: New file.
29740         * tests/unicase/test-is-cased.h: New file.
29741
29742         New module 'unicase/u32-is-cased'.
29743         * lib/unicase/u32-is-cased.c: New file.
29744         * modules/unicase/u32-is-cased: New file.
29745
29746         New module 'unicase/u16-is-cased'.
29747         * lib/unicase/u16-is-cased.c: New file.
29748         * modules/unicase/u16-is-cased: New file.
29749
29750         New module 'unicase/u8-is-cased'.
29751         * lib/unicase/u8-is-cased.c: New file.
29752         * lib/unicase/u-is-cased.h: New file.
29753         * modules/unicase/u8-is-cased: New file.
29754
29755         Tests for module 'unicase/u32-is-casefolded'.
29756         * modules/unicase/u32-is-casefolded-tests: New file.
29757         * tests/unicase/test-u32-is-casefolded.c: New file.
29758
29759         Tests for module 'unicase/u16-is-casefolded'.
29760         * modules/unicase/u16-is-casefolded-tests: New file.
29761         * tests/unicase/test-u16-is-casefolded.c: New file.
29762
29763         Tests for module 'unicase/u8-is-casefolded'.
29764         * modules/unicase/u8-is-casefolded-tests: New file.
29765         * tests/unicase/test-u8-is-casefolded.c: New file.
29766         * tests/unicase/test-is-casefolded.h: New file.
29767
29768         New module 'unicase/u32-is-casefolded'.
29769         * lib/unicase/u32-is-casefolded.c: New file.
29770         * modules/unicase/u32-is-casefolded: New file.
29771
29772         New module 'unicase/u16-is-casefolded'.
29773         * lib/unicase/u16-is-casefolded.c: New file.
29774         * modules/unicase/u16-is-casefolded: New file.
29775
29776         New module 'unicase/u8-is-casefolded'.
29777         * lib/unicase/u8-is-casefolded.c: New file.
29778         * modules/unicase/u8-is-casefolded: New file.
29779
29780         Tests for module 'unicase/u32-is-titlecase'.
29781         * modules/unicase/u32-is-titlecase-tests: New file.
29782         * tests/unicase/test-u32-is-titlecase.c: New file.
29783
29784         Tests for module 'unicase/u16-is-titlecase'.
29785         * modules/unicase/u16-is-titlecase-tests: New file.
29786         * tests/unicase/test-u16-is-titlecase.c: New file.
29787
29788         Tests for module 'unicase/u8-is-titlecase'.
29789         * modules/unicase/u8-is-titlecase-tests: New file.
29790         * tests/unicase/test-u8-is-titlecase.c: New file.
29791         * tests/unicase/test-is-titlecase.h: New file.
29792
29793         New module 'unicase/u32-is-titlecase'.
29794         * lib/unicase/u32-is-titlecase.c: New file.
29795         * modules/unicase/u32-is-titlecase: New file.
29796
29797         New module 'unicase/u16-is-titlecase'.
29798         * lib/unicase/u16-is-titlecase.c: New file.
29799         * modules/unicase/u16-is-titlecase: New file.
29800
29801         New module 'unicase/u8-is-titlecase'.
29802         * lib/unicase/u8-is-titlecase.c: New file.
29803         * modules/unicase/u8-is-titlecase: New file.
29804
29805         Tests for module 'unicase/u32-is-lowercase'.
29806         * modules/unicase/u32-is-lowercase-tests: New file.
29807         * tests/unicase/test-u32-is-lowercase.c: New file.
29808
29809         Tests for module 'unicase/u16-is-lowercase'.
29810         * modules/unicase/u16-is-lowercase-tests: New file.
29811         * tests/unicase/test-u16-is-lowercase.c: New file.
29812
29813         Tests for module 'unicase/u8-is-lowercase'.
29814         * modules/unicase/u8-is-lowercase-tests: New file.
29815         * tests/unicase/test-u8-is-lowercase.c: New file.
29816         * tests/unicase/test-is-lowercase.h: New file.
29817
29818         New module 'unicase/u32-is-lowercase'.
29819         * lib/unicase/u32-is-lowercase.c: New file.
29820         * modules/unicase/u32-is-lowercase: New file.
29821
29822         New module 'unicase/u16-is-lowercase'.
29823         * lib/unicase/u16-is-lowercase.c: New file.
29824         * modules/unicase/u16-is-lowercase: New file.
29825
29826         New module 'unicase/u8-is-lowercase'.
29827         * lib/unicase/u8-is-lowercase.c: New file.
29828         * modules/unicase/u8-is-lowercase: New file.
29829
29830         Tests for module 'unicase/u32-is-uppercase'.
29831         * modules/unicase/u32-is-uppercase-tests: New file.
29832         * tests/unicase/test-u32-is-uppercase.c: New file.
29833
29834         Tests for module 'unicase/u16-is-uppercase'.
29835         * modules/unicase/u16-is-uppercase-tests: New file.
29836         * tests/unicase/test-u16-is-uppercase.c: New file.
29837
29838         Tests for module 'unicase/u8-is-uppercase'.
29839         * modules/unicase/u8-is-uppercase-tests: New file.
29840         * tests/unicase/test-u8-is-uppercase.c: New file.
29841         * tests/unicase/test-is-uppercase.h: New file.
29842
29843         New module 'unicase/u32-is-uppercase'.
29844         * lib/unicase/u32-is-uppercase.c: New file.
29845         * modules/unicase/u32-is-uppercase: New file.
29846
29847         New module 'unicase/u16-is-uppercase'.
29848         * lib/unicase/u16-is-uppercase.c: New file.
29849         * modules/unicase/u16-is-uppercase: New file.
29850
29851         New module 'unicase/u8-is-uppercase'.
29852         * lib/unicase/u8-is-uppercase.c: New file.
29853         * modules/unicase/u8-is-uppercase: New file.
29854
29855         New module 'unicase/u32-is-invariant'.
29856         * lib/unicase/u32-is-invariant.c: New file.
29857         * modules/unicase/u32-is-invariant: New file.
29858
29859         New module 'unicase/u16-is-invariant'.
29860         * lib/unicase/u16-is-invariant.c: New file.
29861         * modules/unicase/u16-is-invariant: New file.
29862
29863         New module 'unicase/u8-is-invariant'.
29864         * lib/unicase/u8-is-invariant.c: New file.
29865         * lib/unicase/invariant.h: New file.
29866         * lib/unicase/u-is-invariant.h: New file.
29867         * modules/unicase/u8-is-invariant: New file.
29868
29869         Tests for module 'unicase/u32-casecoll'.
29870         * modules/unicase/u32-casecoll-tests: New file.
29871         * tests/unicase/test-u32-casecoll.c: New file.
29872
29873         Tests for module 'unicase/u16-casecoll'.
29874         * modules/unicase/u16-casecoll-tests: New file.
29875         * tests/unicase/test-u16-casecoll.c: New file.
29876
29877         Tests for module 'unicase/u8-casecoll'.
29878         * modules/unicase/u8-casecoll-tests: New file.
29879         * tests/unicase/test-u8-casecoll.c: New file.
29880
29881         New module 'unicase/u32-casecoll'.
29882         * lib/unicase/u32-casecoll.c: New file.
29883         * modules/unicase/u32-casecoll: New file.
29884
29885         New module 'unicase/u16-casecoll'.
29886         * lib/unicase/u16-casecoll.c: New file.
29887         * modules/unicase/u16-casecoll: New file.
29888
29889         New module 'unicase/u8-casecoll'.
29890         * lib/unicase/u8-casecoll.c: New file.
29891         * lib/unicase/u-casecoll.h: New file.
29892         * modules/unicase/u8-casecoll: New file.
29893
29894         New module 'unicase/u32-casexfrm'.
29895         * lib/unicase/u32-casexfrm.c: New file.
29896         * modules/unicase/u32-casexfrm: New file.
29897
29898         New module 'unicase/u16-casexfrm'.
29899         * lib/unicase/u16-casexfrm.c: New file.
29900         * modules/unicase/u16-casexfrm: New file.
29901
29902         New module 'unicase/u8-casexfrm'.
29903         * lib/unicase/u8-casexfrm.c: New file.
29904         * lib/unicase/u-casexfrm.h: New file.
29905         * modules/unicase/u8-casexfrm: New file.
29906
29907         Tests for module 'unicase/u32-casecmp'.
29908         * modules/unicase/u32-casecmp-tests: New file.
29909         * tests/unicase/test-u32-casecmp.c: New file.
29910
29911         Tests for module 'unicase/u16-casecmp'.
29912         * modules/unicase/u16-casecmp-tests: New file.
29913         * tests/unicase/test-u16-casecmp.c: New file.
29914
29915         Tests for module 'unicase/u8-casecmp'.
29916         * modules/unicase/u8-casecmp-tests: New file.
29917         * tests/unicase/test-u8-casecmp.c: New file.
29918         * tests/unicase/test-casecmp.h: New file.
29919
29920         New module 'unicase/u32-casecmp'.
29921         * lib/unicase/u32-casecmp.c: New file.
29922         * modules/unicase/u32-casecmp: New file.
29923
29924         New module 'unicase/u16-casecmp'.
29925         * lib/unicase/u16-casecmp.c: New file.
29926         * modules/unicase/u16-casecmp: New file.
29927
29928         New module 'unicase/u8-casecmp'.
29929         * lib/unicase/u8-casecmp.c: New file.
29930         * lib/unicase/u-casecmp.h: New file.
29931         * modules/unicase/u8-casecmp: New file.
29932
29933         Tests for module 'unicase/u32-casefold'.
29934         * modules/unicase/u32-casefold-tests: New file.
29935         * tests/unicase/test-u32-casefold.c: New file.
29936
29937         Tests for module 'unicase/u16-casefold'.
29938         * modules/unicase/u16-casefold-tests: New file.
29939         * tests/unicase/test-u16-casefold.c: New file.
29940
29941         Tests for module 'unicase/u8-casefold'.
29942         * modules/unicase/u8-casefold-tests: New file.
29943         * tests/unicase/test-u8-casefold.c: New file.
29944
29945         New module 'unicase/u32-casefold'.
29946         * lib/unicase/u32-casefold.c: New file.
29947         * modules/unicase/u32-casefold: New file.
29948
29949         New module 'unicase/u16-casefold'.
29950         * lib/unicase/u16-casefold.c: New file.
29951         * modules/unicase/u16-casefold: New file.
29952
29953         New module 'unicase/u8-casefold'.
29954         * lib/unicase/u8-casefold.c: New file.
29955         * lib/unicase/u-casefold.h: New file.
29956         * modules/unicase/u8-casefold: New file.
29957
29958         New module 'unicase/tocasefold'.
29959         * lib/unicase/casefold.h: New file.
29960         * lib/unicase/tocasefold.c: New file.
29961         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
29962         * modules/unicase/tocasefold: New file.
29963
29964         Tests for module 'unicase/u32-totitle'.
29965         * modules/unicase/u32-totitle-tests: New file.
29966         * tests/unicase/test-u32-totitle.c: New file.
29967
29968         Tests for module 'unicase/u16-totitle'.
29969         * modules/unicase/u16-totitle-tests: New file.
29970         * tests/unicase/test-u16-totitle.c: New file.
29971
29972         Tests for module 'unicase/u8-totitle'.
29973         * modules/unicase/u8-totitle-tests: New file.
29974         * tests/unicase/test-u8-totitle.c: New file.
29975
29976         New module 'unicase/u32-totitle'.
29977         * lib/unicase/u32-totitle.c: New file.
29978         * modules/unicase/u32-totitle: New file.
29979
29980         New module 'unicase/u16-totitle'.
29981         * lib/unicase/u16-totitle.c: New file.
29982         * modules/unicase/u16-totitle: New file.
29983
29984         New module 'unicase/u8-totitle'.
29985         * lib/unicase/u8-totitle.c: New file.
29986         * lib/unicase/u-totitle.h: New file.
29987         * modules/unicase/u8-totitle: New file.
29988
29989         Tests for module 'unicase/u32-tolower'.
29990         * modules/unicase/u32-tolower-tests: New file.
29991         * tests/unicase/test-u32-tolower.c: New file.
29992
29993         Tests for module 'unicase/u16-tolower'.
29994         * modules/unicase/u16-tolower-tests: New file.
29995         * tests/unicase/test-u16-tolower.c: New file.
29996
29997         Tests for module 'unicase/u8-tolower'.
29998         * modules/unicase/u8-tolower-tests: New file.
29999         * tests/unicase/test-u8-tolower.c: New file.
30000
30001         New module 'unicase/u32-tolower'.
30002         * lib/unicase/u32-tolower.c: New file.
30003         * modules/unicase/u32-tolower: New file.
30004
30005         New module 'unicase/u16-tolower'.
30006         * lib/unicase/u16-tolower.c: New file.
30007         * modules/unicase/u16-tolower: New file.
30008
30009         New module 'unicase/u8-tolower'.
30010         * lib/unicase/u8-tolower.c: New file.
30011         * modules/unicase/u8-tolower: New file.
30012
30013         Tests for module 'unicase/u32-toupper'.
30014         * modules/unicase/u32-toupper-tests: New file.
30015         * tests/unicase/test-u32-toupper.c: New file.
30016
30017         Tests for module 'unicase/u16-toupper'.
30018         * modules/unicase/u16-toupper-tests: New file.
30019         * tests/unicase/test-u16-toupper.c: New file.
30020
30021         Tests for module 'unicase/u8-toupper'.
30022         * modules/unicase/u8-toupper-tests: New file.
30023         * tests/unicase/test-u8-toupper.c: New file.
30024
30025         New module 'unicase/u32-toupper'.
30026         * lib/unicase/u32-toupper.c: New file.
30027         * modules/unicase/u32-toupper: New file.
30028
30029         New module 'unicase/u16-toupper'.
30030         * lib/unicase/u16-toupper.c: New file.
30031         * modules/unicase/u16-toupper: New file.
30032
30033         New module 'unicase/u8-toupper'.
30034         * lib/unicase/u8-toupper.c: New file.
30035         * modules/unicase/u8-toupper: New file.
30036
30037         New module 'unicase/u32-casemap'.
30038         * lib/unicase/u32-casemap.c: New file.
30039         * modules/unicase/u32-casemap: New file.
30040
30041         New module 'unicase/u16-casemap'.
30042         * lib/unicase/u16-casemap.c: New file.
30043         * modules/unicase/u16-casemap: New file.
30044
30045         New module 'unicase/u8-casemap'.
30046         * lib/unicase/unicasemap.h: New file.
30047         * lib/unicase/u8-casemap.c: New file.
30048         * lib/unicase/u-casemap.h: New file.
30049         * modules/unicase/u8-casemap: New file.
30050
30051         New module 'unicase/special-casing'.
30052         * lib/unicase/special-casing.h: New file.
30053         * lib/unicase/special-casing.c: New file.
30054         * lib/unicase/special-casing-table.gperf: New file, generated by
30055         gen-uni-tables.c.
30056         * modules/unicase/special-casing: New file.
30057
30058         Tests for module 'unicase/locale-language'.
30059         * modules/unicase/locale-language-tests: New file.
30060         * tests/unicase/test-locale-language.sh: New file.
30061         * tests/unicase/test-locale-language.c: New file.
30062
30063         New module 'unicase/locale-language'.
30064         * lib/unicase/locale-language.c: New file.
30065         * lib/unicase/locale-languages.gperf: New file.
30066         * modules/unicase/locale-language: New file.
30067
30068         Generate more tables for case conversion and case folding.
30069         * lib/gen-uni-tables.c (SCC_*): New enum items.
30070         (struct special_casing_rule): New type.
30071         (casing_rules, num_casing_rules, allocated_casing_rules): New
30072         variables.
30073         (add_casing_rule, fill_casing_rules): New functions.
30074         (struct casefold_rule): New type.
30075         (casefolding_rules, num_casefolding_rules,
30076         allocated_casefolding_rules): New variables.
30077         (fill_casefolding_rules): New function.
30078         (unicode_casefold): New variable.
30079         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
30080         sort_casing_rules, output_casing_rules): New functions.
30081         (main): Accept to more arguments: SpecialCasing.txt and
30082         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
30083         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
30084         Output mapping for casefolding.
30085
30086         * lib/unicase.h: Include stdbool.h, uninorm.h.
30087         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
30088         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
30089         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
30090         arguments.
30091         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
30092         resultp arguments.
30093         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
30094         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
30095         resultp arguments.
30096         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
30097         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
30098         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
30099         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
30100         declarations.
30101         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
30102
30103 2009-03-08  Bruno Haible  <bruno@clisp.org>
30104
30105         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30106         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
30107         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
30108         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30109
30110 2009-03-07  Bruno Haible  <bruno@clisp.org>
30111
30112         Adjust u*_normcmp, u*_normcoll API.
30113         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30114         u16_normcoll, u32_normcoll): Change failure conventions.
30115         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
30116         errno and return -1.
30117         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30118
30119 2009-03-07  Bruno Haible  <bruno@clisp.org>
30120
30121         Tests for module 'uninorm/u32-normcoll'.
30122         * modules/uninorm/u32-normcoll-tests: New file.
30123         * tests/uninorm/test-u32-normcoll.c: New file.
30124
30125         Tests for module 'uninorm/u16-normcoll'.
30126         * modules/uninorm/u16-normcoll-tests: New file.
30127         * tests/uninorm/test-u16-normcoll.c: New file.
30128
30129         Tests for module 'uninorm/u8-normcoll'.
30130         * modules/uninorm/u8-normcoll-tests: New file.
30131         * tests/uninorm/test-u8-normcoll.c: New file.
30132
30133 2009-03-07  Bruno Haible  <bruno@clisp.org>
30134
30135         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
30136         tests/uninorm/test-u32-normcmp.c.
30137         * tests/uninorm/test-u32-normcmp.c: Include it.
30138         (test_nonascii): New function, extracted from main. Add some more
30139         tests.
30140         (main): Invoke test_ascii and test_nonascii.
30141         * modules/uninorm/u32-normcmp-tests (Files): Add
30142         tests/uninorm/test-u32-normcmp.h.
30143         (Depends-on): Remove uninorm/u32-normcmp.
30144
30145         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
30146         tests/uninorm/test-u16-normcmp.c.
30147         * tests/uninorm/test-u16-normcmp.c: Include it.
30148         (test_nonascii): New function, extracted from main. Add some more
30149         tests.
30150         (main): Invoke test_ascii and test_nonascii.
30151         * modules/uninorm/u16-normcmp-tests (Files): Add
30152         tests/uninorm/test-u16-normcmp.h.
30153         (Depends-on): Remove uninorm/u16-normcmp.
30154
30155         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
30156         tests/uninorm/test-u8-normcmp.c.
30157         * tests/uninorm/test-u8-normcmp.c: Include it.
30158         (test_nonascii): New function, extracted from main. Add some more
30159         tests.
30160         (main): Invoke test_ascii and test_nonascii.
30161         * modules/uninorm/u8-normcmp-tests (Files): Add
30162         tests/uninorm/test-u8-normcmp.h.
30163         (Depends-on): Remove uninorm/u8-normcmp.
30164
30165 2009-03-07  Bruno Haible  <bruno@clisp.org>
30166
30167         New module 'uninorm/u32-normcoll'.
30168         * lib/uninorm/u32-normcoll.c: New file.
30169         * modules/uninorm/u32-normcoll: New file.
30170
30171         New module 'uninorm/u16-normcoll'.
30172         * lib/uninorm/u16-normcoll.c: New file.
30173         * modules/uninorm/u16-normcoll: New file.
30174
30175         New module 'uninorm/u8-normcoll'.
30176         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
30177         declarations.
30178         * lib/uninorm/u8-normcoll.c: New file.
30179         * lib/uninorm/u-normcoll.h: New file.
30180         * modules/uninorm/u8-normcoll: New file.
30181
30182         New module 'uninorm/u32-normxfrm'.
30183         * lib/uninorm/u32-normxfrm.c: New file.
30184         * modules/uninorm/u32-normxfrm: New file.
30185
30186         New module 'uninorm/u16-normxfrm'.
30187         * lib/uninorm/u16-normxfrm.c: New file.
30188         * modules/uninorm/u16-normxfrm: New file.
30189
30190         New module 'uninorm/u8-normxfrm'.
30191         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
30192         declarations.
30193         * lib/uninorm/u8-normxfrm.c: New file.
30194         * lib/uninorm/u-normxfrm.h: New file.
30195         * modules/uninorm/u8-normxfrm: New file.
30196
30197 2009-03-07  Bruno Haible  <bruno@clisp.org>
30198
30199         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
30200         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
30201         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
30202
30203 2009-03-07  Bruno Haible  <bruno@clisp.org>
30204
30205         New module 'memxfrm'.
30206         * lib/memxfrm.h: New file.
30207         * lib/memxfrm.c: New file.
30208         * modules/memxfrm: New file.
30209
30210 2009-03-07  Bruno Haible  <bruno@clisp.org>
30211
30212         New module 'memcmp2'.
30213         * lib/memcmp2.h: New file.
30214         * lib/memcmp2.c: New file.
30215         * modules/memcmp2: New file.
30216
30217 2009-03-07  Bruno Haible  <bruno@clisp.org>
30218
30219         Tests for module 'uninorm/decomposing-form'.
30220         * modules/uninorm/decomposing-form-tests: New file.
30221         * tests/uninorm/test-decomposing-form.c: New file.
30222
30223         New module 'uninorm/decomposing-form'.
30224         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
30225         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
30226         Add 'decomposing_variant' field.
30227         * lib/uninorm/decomposing-form.c: New file.
30228         * lib/uninorm/nfc.c (uninorm_nfc): Update.
30229         * lib/uninorm/nfd.c (uninorm_nfd): Update.
30230         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
30231         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
30232         * modules/uninorm/decomposing-form: New file.
30233         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
30234         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
30235
30236 2009-03-07  Bruno Haible  <bruno@clisp.org>
30237
30238         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
30239         strings.
30240
30241 2009-03-06  Bruno Haible  <bruno@clisp.org>
30242
30243         Tests for module 'uninorm/u32-normcmp'.
30244         * tests/uninorm/test-u32-normcmp.c: New file.
30245         * modules/uninorm/u32-normcmp-tests: New file.
30246
30247         Tests for module 'uninorm/u16-normcmp'.
30248         * tests/uninorm/test-u16-normcmp.c: New file.
30249         * modules/uninorm/u16-normcmp-tests: New file.
30250
30251         Tests for module 'uninorm/u8-normcmp'.
30252         * tests/uninorm/test-u8-normcmp.c: New file.
30253         * modules/uninorm/u8-normcmp-tests: New file.
30254
30255         New module 'uninorm/u32-normcmp'.
30256         * lib/uninorm/u32-normcmp.c: New file.
30257         * modules/uninorm/u32-normcmp: New file.
30258
30259         New module 'uninorm/u16-normcmp'.
30260         * lib/uninorm/u16-normcmp.c: New file.
30261         * modules/uninorm/u16-normcmp: New file.
30262
30263         New module 'uninorm/u8-normcmp'.
30264         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
30265         declarations.
30266         * lib/uninorm/u8-normcmp.c: New file.
30267         * lib/uninorm/u-normcmp.h: New file.
30268         * modules/uninorm/u8-normcmp: New file.
30269
30270 2009-03-06  Bruno Haible  <bruno@clisp.org>
30271
30272         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
30273         Reported by Eric Blake.
30274
30275 2009-03-06  Eric Blake  <ebb9@byu.net>
30276             Bruno Haible  <bruno@clisp.org>
30277
30278         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
30279         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
30280         condition.
30281         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30282         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
30283         condition.
30284         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30285
30286 2009-03-06  Eric Blake  <ebb9@byu.net>
30287
30288         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
30289         to avoid compiler warnings.
30290         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
30291
30292 2009-03-05  Bruno Haible  <bruno@clisp.org>
30293
30294         * tests/test-ftell.c (main): Disable test beyond end of file on
30295         FreeMiNT.
30296         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30297
30298 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
30299
30300         * lib/filevercmp.c: Move hidden files up in ordering.
30301         * tests/test-filevercmp.c: Add tests for hidden files.
30302
30303 2009-03-04  Bruno Haible  <bruno@clisp.org>
30304
30305         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
30306         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
30307         AM_CFLAGS.
30308         Reported by Simon Josefsson.
30309
30310 2009-03-03  Bruno Haible  <bruno@clisp.org>
30311
30312         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
30313         Reported by Simon Josefsson.
30314
30315         * doc/ld-version-script.texi: Update node reference.
30316
30317 2009-03-03  Bruno Haible  <bruno@clisp.org>
30318
30319         * modules/visibility (License): Change to 'unlimited'.
30320         Suggested by Simon Josefsson.
30321
30322 2009-03-03  Jim Meyering  <meyering@redhat.com>
30323
30324         unlinkdir: cannot_unlink_dir may modify process state
30325         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
30326         it's neither thread-safe nor appropriate for use in a library.
30327
30328 2009-03-03  Eric Blake  <ebb9@byu.net>
30329
30330         test-closein: silence test under Darwin
30331         * tests/test-closein.sh: Ignore stderr from cat, since we don't
30332         care if it dies from EPIPE or EBADF.
30333
30334 2009-03-03  Bruno Haible  <bruno@clisp.org>
30335
30336         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
30337         earlier.
30338         * doc/visibility.texi: Fix @node and @section.
30339
30340 2009-03-03  Simon Josefsson  <simon@josefsson.org>
30341
30342         * doc/gnulib.texi: Link to sections for ld version script and
30343         visibility.
30344         * doc/visibility.texi: Add @node and @section.
30345         * modules/ld-version-script: New module.
30346         * m4/ld-version-script.m4: New file.
30347         * doc/ld-version-script.texi: New file.
30348
30349 2009-03-02  David Lutterkort  <lutter@redhat.com>
30350
30351         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
30352         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30353
30354 2009-03-02  Bruno Haible  <bruno@clisp.org>
30355
30356         * doc/visibility.texi: Mention libtool's -export-symbols option.
30357
30358 2009-03-02  Jim Meyering  <meyering@redhat.com>
30359
30360         announce-gen: new option: --no-print-checksums
30361         * build-aux/announce-gen (usage): Describe it.
30362         (print_checksums): Print a newline here, not in the [*] footnote.
30363         (main): Honor it.
30364
30365 2009-03-01  Bruno Haible  <bruno@clisp.org>
30366
30367         Use socklen_t in the native Windows replacements prototypes.
30368         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
30369         instead of 'int'.
30370         * lib/getsockopt.c (rpl_getsockopt): Likewise.
30371         * lib/setsockopt.c (rpl_setsockopt): Likewise.
30372         * modules/getsockopt (Depends-on): Add socklen.
30373         * modules/setsockopt (Depends-on): Add socklen.
30374
30375 2009-03-01  Bruno Haible  <bruno@clisp.org>
30376
30377         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
30378         least 4.2.
30379
30380 2009-03-01  Eric Blake  <ebb9@byu.net>
30381             Bruno Haible  <bruno@clisp.org>
30382
30383         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
30384         error messages.
30385         * lib/wait-process.c (wait_subprocess): Omit error message about
30386         deadly signal sent to the child of termsigp != NULL.
30387
30388 2009-03-01  Eric Blake  <ebb9@byu.net>
30389
30390         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
30391
30392 2009-03-01  Bruno Haible  <bruno@clisp.org>
30393
30394         Avoid a gcc warning.
30395         * tests/test-sched.c (b): Make global.
30396         Reported by Eric Blake.
30397
30398 2009-01-19  Martin Lambers  <marlam@marlam.de>
30399
30400         Provide POSIX semantics for socket timeout options on W32.
30401         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
30402         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
30403         * modules/setsockopt: Depend on sys_time module for struct timeval.
30404         * modules/getsockopt: Depend on sys_time module for struct timeval.
30405
30406 2009-03-01  Simon Josefsson  <simon@josefsson.org>
30407
30408         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
30409         __USE_GNU, for consistency with netdb.in.h.
30410         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30411
30412 2009-03-01  Bruno Haible  <bruno@clisp.org>
30413
30414         More support for FreeMiNT.
30415         * lib/fseeko.c (rpl_fseeko): Complete last commit.
30416         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30417
30418 2009-03-01  Bruno Haible  <bruno@clisp.org>
30419
30420         More support for FreeMiNT.
30421         * lib/fpurge.c (fpurge): Correct last commit.
30422         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30423
30424 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30425
30426         Fix unportable awk script in vc-list-files.
30427         * build-aux/vc-list-files: In the replacement awk script, use
30428         substr with a second argument of 1, not zero.
30429         Report by Simon Josefsson.
30430
30431 2009-02-28  Bruno Haible  <bruno@clisp.org>
30432
30433         More support for FreeMiNT.
30434         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
30435         to FreeMiNT today.
30436         * lib/fwriting.c (fwriting): Likewise.
30437         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
30438
30439 2009-02-28  Bruno Haible  <bruno@clisp.org>
30440
30441         * tests/test-freadseek.c (main): Disable test beyond end of file on
30442         FreeMiNT.
30443         * tests/test-ftello.c (main): Likewise.
30444         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30445
30446 2009-02-28  Bruno Haible  <bruno@clisp.org>
30447
30448         Add tentative support for FreeMiNT.
30449         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
30450         * lib/fpurge.c (fpurge): Likewise.
30451         * lib/freadable.c (freadable): Likewise.
30452         * lib/freading.c (freading): Likewise.
30453         * lib/freadptr.c (freadptr): Likewise.
30454         * lib/freadseek.c (freadptrinc): Likewise.
30455         * lib/fseeko.c (rpl_fseeko): Likewise.
30456         * lib/fseterr.c (fseterr): Likewise.
30457         * lib/fwritable.c (fwritable): Likewise.
30458         * lib/fwriting.c (fwriting): Likewise.
30459         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
30460         Hourihane.
30461         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30462
30463 2009-02-28  Bruno Haible  <bruno@clisp.org>
30464
30465         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
30466         SIGCHLD.
30467         Reported by Jim Meyering.
30468
30469 2009-02-28  Bruno Haible  <bruno@clisp.org>
30470
30471         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
30472         Mention the results of these tests on various platforms.
30473         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
30474         order.
30475         * doc/posix-functions/printf.texi: Likewise.
30476         * doc/posix-functions/snprintf.texi: Likewise.
30477         * doc/posix-functions/sprintf.texi: Likewise.
30478         * doc/posix-functions/vfprintf.texi: Likewise.
30479         * doc/posix-functions/vprintf.texi: Likewise.
30480         * doc/posix-functions/vsnprintf.texi: Likewise.
30481         * doc/posix-functions/vsprintf.texi: Likewise.
30482         * doc/glibc-functions/obstack_printf.texi: Likewise.
30483         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
30484
30485 2009-02-28  Bruno Haible  <bruno@clisp.org>
30486
30487         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
30488         Reported by Loïc Minier <lool@dooz.org>.
30489
30490 2009-02-27  Bruno Haible  <bruno@clisp.org>
30491
30492         * gnulib-tool (func_import): Make the sed expression used to create the
30493         sed script for updating the .gitignore file POSIX compliant.
30494         Reported by Eric Blake.
30495
30496 2009-02-27  Bruno Haible  <bruno@clisp.org>
30497
30498         * gnulib-tool (sed): Don't alias as "sed --posix".
30499         Reported by Eric Blake.
30500
30501 2009-02-27  Bruno Haible  <bruno@clisp.org>
30502
30503         Avoid test link errors.
30504         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
30505         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
30506         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
30507         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
30508         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30509
30510 2009-02-27  Bruno Haible  <bruno@clisp.org>
30511
30512         Avoid spurious "(cached)" in configure output.
30513         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
30514         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
30515         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30516         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30517         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30518         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30519         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30520         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30521         Reported by Eric Blake.
30522
30523 2009-02-27  Eric Blake  <ebb9@byu.net>
30524
30525         printf: fix regression in previous patch
30526         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
30527
30528 2009-02-27  Bruno Haible  <bruno@clisp.org>
30529
30530         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
30531         value.
30532         * lib/stdint.in.h: Likewise.
30533         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
30534
30535 2009-02-27  Eric Blake  <ebb9@byu.net>
30536
30537         doc: mention more functions added in cygwin 1.7.0
30538         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
30539         addition.
30540         * doc/posix-functions/open_wmemstream.texi: Likewise.
30541         * doc/posix-functions/wcsnlen.texi: Likewise.
30542         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30543         * doc/posix-functions/wcstod.texi: Likewise.
30544         * doc/posix-functions/wcstof.texi: Likewise.
30545         * doc/posix-functions/wcstoimax.texi: Likewise.
30546         * doc/posix-functions/wcstok.texi: Likewise.
30547         * doc/posix-functions/wcstoumax.texi: Likewise.
30548
30549         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
30550         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
30551         * doc/posix-functions/fprintf.texi: Update.
30552         * doc/posix-functions/printf.texi: Update.
30553         * doc/posix-functions/snprintf.texi: Update.
30554         * doc/posix-functions/sprintf.texi: Update.
30555         * doc/posix-functions/vfprintf.texi: Update.
30556         * doc/posix-functions/vprintf.texi: Update.
30557         * doc/posix-functions/vsnprintf.texi: Update.
30558         * doc/posix-functions/vsprintf.texi: Update.
30559         * doc/glibc-functions/obstack_printf.texi: Update.
30560         * doc/glibc-functions/obstack_vprintf.texi: Update.
30561
30562 2009-02-26  Eric Blake  <ebb9@byu.net>
30563
30564         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
30565         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
30566         compilation bug by using runtime conversion.
30567         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30568         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
30569         * modules/ceill-tests (Files): Use nan.h.
30570         * modules/floorl-tests (Files): Likewise.
30571         * modules/frexpl-tests (Files): Likewise.
30572         * modules/isnanl-tests (Files): Likewise.
30573         * modules/ldexpl-tests (Files): Likewise.
30574         * modules/roundl-tests (Files): Likewise.
30575         * modules/truncl-tests (Files): Likewise.
30576         * tests/test-ceill.c (main): Use a working NaN.
30577         * tests/test-floorl.c (main): Likewise.
30578         * tests/test-frexpl.c (main): Likewise.
30579         * tests/test-isnan.c (test_long_double): Likewise.
30580         * tests/test-isnanl.h (main): Likewise.
30581         * tests/test-ldexpl.h (main): Likewise.
30582         * tests/test-roundl.h (main): Likewise.
30583         * tests/test-truncl.h (main): Likewise.
30584         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
30585
30586 2009-02-26  Eric Blake  <ebb9@byu.net>
30587             Bruno Haible  <bruno@clisp.org>
30588
30589         Work around a *printf bug with %ls on Solaris.
30590         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
30591         precision is specified, sprintf stops converting the wide string
30592         argument when the number of bytes that have been produced by this
30593         conversion equals or exceeds the precision.
30594         * doc/posix-functions/fprintf.texi: Update.
30595         * doc/posix-functions/printf.texi: Update.
30596         * doc/posix-functions/snprintf.texi: Update.
30597         * doc/posix-functions/sprintf.texi: Update.
30598         * doc/posix-functions/vfprintf.texi: Update.
30599         * doc/posix-functions/vprintf.texi: Update.
30600         * doc/posix-functions/vsnprintf.texi: Update.
30601         * doc/posix-functions/vsprintf.texi: Update.
30602         * doc/glibc-functions/obstack_printf.texi: Update.
30603         * doc/glibc-functions/obstack_vprintf.texi: Update.
30604
30605 2009-02-26  Eric Blake  <ebb9@byu.net>
30606
30607         stdlib: favor compiler check of random.h
30608         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
30609         to avoid an ObjC random.h installed by Swarm.
30610
30611 2009-02-26  Bruno Haible  <bruno@clisp.org>
30612
30613         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
30614         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
30615         Reported by Gary V. Vaughan <gary@gnu.org>.
30616
30617 2009-02-26  Bruno Haible  <bruno@clisp.org>
30618
30619         Fix *printf behaviour regarding the %ls directive.
30620         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
30621         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
30622         NEED_PRINTF_DIRECTIVE_LS.
30623         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
30624         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30625         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30626         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
30627         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
30628         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
30629         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30630         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30631         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30632         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30633         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30634         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
30635         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30636         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30637         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30638         * doc/posix-functions/fprintf.texi: Update.
30639         * doc/posix-functions/printf.texi: Update.
30640         * doc/posix-functions/snprintf.texi: Update.
30641         * doc/posix-functions/sprintf.texi: Update.
30642         * doc/posix-functions/vfprintf.texi: Update.
30643         * doc/posix-functions/vprintf.texi: Update.
30644         * doc/posix-functions/vsnprintf.texi: Update.
30645         * doc/posix-functions/vsprintf.texi: Update.
30646         * doc/glibc-functions/obstack_printf.texi: Update.
30647         * doc/glibc-functions/obstack_vprintf.texi: Update.
30648         Reported by Eric Blake.
30649
30650 2009-02-25  Bruno Haible  <bruno@clisp.org>
30651
30652         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
30653         with known value.
30654         Reported by Gary V. Vaughan <gary@gnu.org>.
30655
30656 2009-02-25  Bruno Haible  <bruno@clisp.org>
30657
30658         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
30659         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
30660         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
30661         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
30662         Reported by Gary V. Vaughan <gary@gnu.org>.
30663
30664 2009-02-25  Bruno Haible  <bruno@clisp.org>
30665
30666         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
30667         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
30668         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
30669         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
30670         Reported by Gary V. Vaughan <gary@gnu.org>.
30671
30672 2009-02-25  Eric Blake  <ebb9@byu.net>
30673
30674         tests: skip fseek/ftell tests if ungetc is broken
30675         * m4/ungetc.m4: New file.
30676         * modules/fseek-tests: Split test, so ungetc dependency is
30677         separate from rest of test.
30678         * modules/fseeko-tests: Likewise.
30679         * modules/ftell-tests: Likewise.
30680         * modules/ftello-tests: Likewise.
30681         * tests/test-fseek.c (main): Isolate ungetc dependency.
30682         * tests/test-fseeko.c (main): Likewise.
30683         * tests/test-ftell.c (main): Likewise.
30684         * tests/test-ftello.c (main): Likewise.
30685         * tests/test-fseek2.sh: New file.
30686         * tests/test-fseeko2.sh: Likewise.
30687         * tests/test-ftell2.sh: Likewise.
30688         * tests/test-ftello2.sh: Likewise.
30689
30690 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
30691
30692         test-getaddrinfo: fix usage of skip return code 77
30693         * tests/test-gettaddrinfo.c: Return skip code 77 only
30694         for first occurance of skip (4x77 is not 77)
30695
30696 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
30697
30698         strtod: avoid C99 decl-after-statement
30699         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
30700
30701 2009-02-24  Eric Blake  <ebb9@byu.net>
30702
30703         strtod: detect HP-UX 11.31 bug
30704         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
30705         Reported by Gary V. Vaughan.
30706
30707 2009-02-23  Bruno Haible  <bruno@clisp.org>
30708
30709         Fix invalid read past end of memory block.
30710         * lib/vasnprintf.c (DCHAR_SET): Define.
30711         (local_wcslen): Define only when needed.
30712         (local_strnlen, local_wcsnlen): New functions.
30713         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
30714         directives that involve a conversion ourselves.
30715         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
30716         wcsnlen, mbrtowc, wcrtomb.
30717         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
30718         * tests/test-vasprintf-posix.c (test_function): Likewise.
30719         * tests/test-snprintf-posix.h (test_function): Likewise.
30720         * tests/test-sprintf-posix.h (test_function): Likewise.
30721         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30722
30723 2009-02-22  Bruno Haible  <bruno@clisp.org>
30724
30725         Implement new clarified decomposition of Hangul syllables.
30726         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
30727         of type LTV, return only a pairwise decomposition.
30728         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
30729         Likewise.
30730         * tests/uninorm/test-decomposition.c (main): Updated expected result.
30731         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
30732         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
30733
30734 2009-02-22  Bruno Haible  <bruno@clisp.org>
30735
30736         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
30737         zero-length results and shrink excess allocated memory.
30738         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
30739         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
30740         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
30741         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
30742         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
30743         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
30744         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
30745         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
30746         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
30747         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
30748         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
30749         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
30750
30751 2009-02-21  Bruno Haible  <bruno@clisp.org>
30752
30753         * doc/gnulib.texi: Include safe-alloc.texi earlier.
30754         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
30755         spaces after a period. Put a space between a macro name and its
30756         argument list. Trivial rewordings.
30757         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
30758         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
30759         (main): Return 0 explicitly.
30760
30761 2009-02-21  Bruno Haible  <bruno@clisp.org>
30762
30763         Tests for module 'uninorm/filter'.
30764         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
30765         * modules/uninorm/filter-tests: New file.
30766
30767         New module 'uninorm/filter'.
30768         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
30769         uninorm_filter_flush, uninorm_filter_free): New declarations.
30770         * lib/uninorm/uninorm-filter.c: New file.
30771         * modules/uninorm/filter: New file.
30772
30773 2009-02-21  Bruno Haible  <bruno@clisp.org>
30774
30775         Tests for module 'uninorm/nfkc'.
30776         * tests/uninorm/test-nfkc.c: New file.
30777         * tests/uninorm/test-u8-nfkc.c: New file.
30778         * tests/uninorm/test-u16-nfkc.c: New file.
30779         * tests/uninorm/test-u32-nfkc.c: New file.
30780         * tests/uninorm/test-u32-nfkc-big.sh: New file.
30781         * tests/uninorm/test-u32-nfkc-big.c: New file.
30782         * modules/uninorm/nfkc-tests: New file.
30783
30784         New module 'uninorm/nfkc'.
30785         * lib/uninorm/nfkc.c: New file.
30786         * modules/uninorm/nfkc: New file.
30787
30788         Tests for module 'uninorm/nfkd'.
30789         * tests/uninorm/test-nfkd.c: New file.
30790         * tests/uninorm/test-u8-nfkd.c: New file.
30791         * tests/uninorm/test-u16-nfkd.c: New file.
30792         * tests/uninorm/test-u32-nfkd.c: New file.
30793         * tests/uninorm/test-u32-nfkd-big.sh: New file.
30794         * tests/uninorm/test-u32-nfkd-big.c: New file.
30795         * modules/uninorm/nfkd-tests: New file.
30796
30797         New module 'uninorm/nfkd'.
30798         * lib/uninorm/nfkd.c: New file.
30799         * modules/uninorm/nfkd: New file.
30800
30801         Tests for module 'uninorm/nfc'.
30802         * tests/uninorm/test-nfc.c: New file.
30803         * tests/uninorm/test-u8-nfc.c: New file.
30804         * tests/uninorm/test-u16-nfc.c: New file.
30805         * tests/uninorm/test-u32-nfc.c: New file.
30806         * tests/uninorm/test-u32-nfc-big.sh: New file.
30807         * tests/uninorm/test-u32-nfc-big.c: New file.
30808         * modules/uninorm/nfc-tests: New file.
30809
30810         New module 'uninorm/nfc'.
30811         * lib/uninorm/nfc.c: New file.
30812         * modules/uninorm/nfc: New file.
30813
30814         Tests for module 'uninorm/nfd'.
30815         * tests/uninorm/test-nfd.c: New file.
30816         * tests/uninorm/test-u8-nfd.c: New file.
30817         * tests/uninorm/test-u16-nfd.c: New file.
30818         * tests/uninorm/test-u32-nfd.c: New file.
30819         * tests/uninorm/test-u32-nfd-big.sh: New file.
30820         * tests/uninorm/test-u32-nfd-big.c: New file.
30821         * tests/uninorm/test-u32-normalize-big.h: New file.
30822         * tests/uninorm/test-u32-normalize-big.c: New file.
30823         * tests/uninorm/NormalizationTest.txt: New file, created from
30824         Unicode 5.1.0 NormalizationTest.txt.
30825         * modules/uninorm/nfd-tests: New file.
30826
30827         New module 'uninorm/nfd'.
30828         * lib/uninorm/nfd.c: New file.
30829         * modules/uninorm/nfd: New file.
30830
30831         New module 'uninorm/u32-normalize'.
30832         * lib/uninorm/u32-normalize.c: New file.
30833         * modules/uninorm/u32-normalize: New file.
30834
30835         New module 'uninorm/u16-normalize'.
30836         * lib/uninorm/u16-normalize.c: New file.
30837         * modules/uninorm/u16-normalize: New file.
30838
30839         New module 'uninorm/u8-normalize'.
30840         * lib/uninorm/u8-normalize.c: New file.
30841         * lib/uninorm/normalize-internal.h: New file.
30842         * lib/uninorm/u-normalize-internal.h: New file.
30843         * modules/uninorm/u8-normalize: New file.
30844
30845         New module 'uninorm/decompose-internal'.
30846         * lib/uninorm/decompose-internal.c: New file.
30847         * modules/uninorm/decompose-internal: New file.
30848
30849         Tests for module 'uninorm/composition'.
30850         * tests/uninorm/test-composition.c: New file.
30851         * modules/uninorm/composition-tests: New file.
30852
30853         New module 'uninorm/composition'.
30854         * lib/uninorm/composition.c: New file.
30855         * lib/uninorm/composition-table.gperf: New file, generated by
30856         gen-uni-tables.
30857         * modules/uninorm/composition: New file.
30858
30859         Tests for module 'uninorm/compat-decomposition'.
30860         * tests/uninorm/test-compat-decomposition.c: New file.
30861         * modules/uninorm/compat-decomposition-tests: New file.
30862
30863         New module 'uninorm/compat-decomposition'.
30864         * lib/uninorm/decompose-internal.h: New file.
30865         * lib/uninorm/compat-decomposition.c: New file.
30866         * modules/uninorm/compat-decomposition: New file.
30867
30868         Tests for module 'uninorm/canonical-decomposition'.
30869         * tests/uninorm/test-canonical-decomposition.c: New file.
30870         * modules/uninorm/canonical-decomposition-tests: New file.
30871
30872         New module 'uninorm/canonical-decomposition'.
30873         * lib/uninorm/canonical-decomposition.c: New file.
30874         * modules/uninorm/canonical-decomposition: New file.
30875
30876         Tests for module 'uninorm/decomposition'.
30877         * tests/uninorm/test-decomposition.c: New file.
30878         * modules/uninorm/decomposition-tests: New file.
30879
30880         New module 'uninorm/decomposition'.
30881         * lib/uninorm/decomposition.c: New file.
30882         * modules/uninorm/decomposition: New file.
30883
30884         New module 'uninorm/decomposition-table'.
30885         * lib/uninorm/decomposition-table.h: New file.
30886         * lib/uninorm/decomposition-table.c: New file.
30887         * lib/uninorm/decomposition-table1.h: New file, generated by
30888         gen-uni-tables.
30889         * lib/uninorm/decomposition-table2.h: New file, generated by
30890         gen-uni-tables.
30891         * modules/uninorm/decomposition-table: New file.
30892
30893         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
30894         (UC_DECOMP_*): New enumeration items.
30895         (get_decomposition): New function.
30896         (struct decomp_table): New type.
30897         (output_decomposition, output_decomposition_tables): New functions.
30898         (unicode_composition_exclusions): New variable.
30899         (fill_composition_exclusions, debug_output_composition_tables): New
30900         functions.
30901         (main): Accept one more argument. Invoke fill_composition_exclusions.
30902         Output decomposition and composition tables.
30903
30904         New module 'uninorm/base'.
30905         * lib/uninorm.h: New file.
30906         * lib/unictype.h: Update comment.
30907         * modules/uninorm/base: New file.
30908
30909 2009-02-21  David Lutterkort  <lutter@redhat.com>
30910
30911         Tests for module 'safe-alloc'.
30912         * tests/test-safe-alloc.c: New file.
30913         * modules/safe-alloc-tests: New file.
30914
30915         New module 'safe-alloc'.
30916         * lib/safe-alloc.h: New file.
30917         * lib/safe-alloc.c: New file.
30918         * m4/safe-alloc.m4: New file.
30919         * modules/safe-alloc: New file.
30920         * doc/safe-alloc.texi: New file.
30921         * doc/gnulib.texi: Include it.
30922         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30923         safe-alloc.
30924
30925 2009-02-18  Bruno Haible  <bruno@clisp.org>
30926
30927         Fix link error on non-glibc systems.
30928         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
30929         variable.
30930         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30931
30932 2009-02-18  Jim Meyering  <meyering@redhat.com>
30933
30934         fts: avoid used-uninitialized error due to recent change
30935         * lib/fts.c (fts_read): Guard uses of the new member,
30936         parent->fts_n_dirs_remaining, since it's not relevant for
30937         the parent of a directory specified on the command-line.
30938
30939 2009-02-17  James Youngman  <jay@gnu.org>
30940             Bruno Haible  <bruno@clisp.org>
30941
30942         * m4/include_next.m4: Reformulate comment.
30943
30944 2009-02-16  Jim Meyering  <meyering@redhat.com>
30945
30946         fts: add #if guards so that the fts_lgpl module still builds
30947         * lib/fts.c: Guard just-added hash-table-using parts with
30948         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
30949         Reported by Simon Josefsson.
30950
30951 2009-02-15  Bruno Haible  <bruno@clisp.org>
30952
30953         * modules/array-mergesort-tests: New file.
30954         * tests/test-array-mergesort.c: New file.
30955
30956         New module 'array-mergesort'.
30957         * modules/array-mergesort: New file.
30958         * lib/array-mergesort.h: New file.
30959
30960 2009-02-15  Bruno Haible  <bruno@clisp.org>
30961
30962         Fix 2009-02-07 commit.
30963         * lib/gen-uni-tables.c (output_predicate, output_category,
30964         output_combclass, output_bidi_category, output_decimal_digit,
30965         output_digit, output_numeric, output_mirror, output_scripts,
30966         output_ident_category, output_simple_mapping): Fix format directives.
30967         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
30968
30969 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
30970
30971         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
30972         fixes are available from IBM.
30973
30974 2009-02-13  Jim Meyering  <meyering@redhat.com>
30975
30976         fts: arrange not to stat non-directories in more cases
30977         This makes GNU find (when it doesn't need to stat each file)
30978         *much* more efficient at traversing reiserfs file systems.
30979         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
30980         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
30981         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
30982         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
30983         (leaf_optimization_applies): New function.
30984         (LCO_hash, LCO_compare): New helper functions.
30985         (link_count_optimize_ok): New function.
30986         (fts_stat): Initialize new member (if dir).
30987         (fts_read): Decrement parent's fts_n_dirs_remaining count if
30988         we've just stat'ed a directory.  Skip the stat call when possible.
30989         ---
30990         Note this AFS-related exchange:
30991         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
30992         and note find's pioctl call in find/fstype.c.
30993         But that is necessary only if you want to enable the
30994         optimization for AFS, and for now, I don't.
30995
30996         fts: move a function definition "up" (no semantic change)
30997         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
30998         "up" to precede upcoming use of a related function.
30999
31000 2009-02-11  Jim Meyering  <meyering@redhat.com>
31001
31002         fts: correct internal computation of nlinks (optimization-related)
31003         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
31004         whether the current entry is a directory, so don't test it.
31005
31006 2009-02-10  Bruno Haible  <bruno@clisp.org>
31007
31008         Tests for module 'uniwbrk/ulc-wordbreaks'.
31009         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
31010         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
31011         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
31012
31013         Tests for module 'uniwbrk/u32-wordbreaks'.
31014         * modules/uniwbrk/u32-wordbreaks-tests: New file.
31015         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
31016
31017         Tests for module 'uniwbrk/u16-wordbreaks'.
31018         * modules/uniwbrk/u16-wordbreaks-tests: New file.
31019         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
31020
31021         Tests for module 'uniwbrk/u8-wordbreaks'.
31022         * modules/uniwbrk/u8-wordbreaks-tests: New file.
31023         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
31024
31025 2009-02-10  Bruno Haible  <bruno@clisp.org>
31026
31027         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
31028         property.
31029         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
31030         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
31031         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
31032
31033 2009-02-10  Simon Josefsson  <simon@josefsson.org>
31034
31035         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
31036         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
31037
31038 2009-02-10  Bruno Haible  <bruno@clisp.org>
31039
31040         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
31041         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
31042         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
31043         * lib/unilbrk/u8-possible-linebreaks.c: Update.
31044         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
31045         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
31046
31047 2009-02-09  Simon Josefsson  <simon@josefsson.org>
31048
31049         * lib/sockets.h (gl_fd_to_handle): New function.
31050
31051         * tests/test-sockets.c: Call gl_fd_to_handle.
31052
31053 2009-02-09  Bruno Haible  <bruno@clisp.org>
31054
31055         * doc/havelib.texi: Document the conventions on bi-arch systems.
31056
31057 2009-02-08  Bruno Haible  <bruno@clisp.org>
31058
31059         Document the AC_LIB_LINKFLAGS macro.
31060         * doc/havelib.texi: New file, mostly written on 2005-05-24.
31061         * doc/gnulib.texi: Include it.
31062
31063 2009-02-08  Bruno Haible  <bruno@clisp.org>
31064
31065         Fix wrong order of sections, compared to TOC.
31066         * doc/gnulib.texi: Include relocatable-maint.texi after the
31067         "Regular expressions" node, not before.
31068
31069 2009-02-08  Bruno Haible  <bruno@clisp.org>
31070
31071         Tests for module 'unicase/totitle'.
31072         * modules/unicase/totitle-tests: New file.
31073
31074         Tests for module 'unicase/tolower'.
31075         * modules/unicase/tolower-tests: New file.
31076
31077         Tests for module 'unicase/toupper'.
31078         * modules/unicase/toupper-tests: New file.
31079         * tests/unicase/test-mapping-part1.h: New file.
31080         * tests/unicase/test-mapping-part2.h: New file.
31081
31082         New module 'unicase/totitle'.
31083         * modules/unicase/totitle: New file.
31084         * lib/unicase/totitle.c: New file.
31085
31086         New module 'unicase/tolower'.
31087         * modules/unicase/tolower: New file.
31088         * lib/unicase/tolower.c: New file.
31089
31090         New module 'unicase/toupper'.
31091         * modules/unicase/toupper: New file.
31092         * lib/unicase/toupper.c: New file.
31093         * lib/unicase/simple-mapping.h: New file.
31094
31095         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
31096         (mapping_table): New structure.
31097         (output_simple_mapping): New function.
31098         (main): Invoke output_simple_mapping_test and output_simple_mapping.
31099         * modules/gen-uni-tables (Description): Update.
31100         * lib/unicase/toupper.h: New file, automatically generated by
31101         gen-uni-tables.
31102         * lib/unicase/tolower.h: New file, automatically generated by
31103         gen-uni-tables.
31104         * lib/unicase/totitle.h: New file, automatically generated by
31105         gen-uni-tables.
31106         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
31107         gen-uni-tables.
31108         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
31109         gen-uni-tables.
31110         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
31111         gen-uni-tables.
31112
31113         New module 'unicase/base'.
31114         * modules/unicase/base: New file.
31115         * lib/unicase.h: New file.
31116
31117 2009-02-08  Bruno Haible  <bruno@clisp.org>
31118
31119         New module 'uniwbrk/ulc-wordbreaks'.
31120         * modules/uniwbrk/ulc-wordbreaks: New file.
31121         * lib/uniwbrk/ulc-wordbreaks.c: New file.
31122
31123         New module 'uniwbrk/u32-wordbreaks'.
31124         * modules/uniwbrk/u32-wordbreaks: New file.
31125         * lib/uniwbrk/u32-wordbreaks.c: New file.
31126
31127         New module 'uniwbrk/u16-wordbreaks'.
31128         * modules/uniwbrk/u16-wordbreaks: New file.
31129         * lib/uniwbrk/u16-wordbreaks.c: New file.
31130
31131         New module 'uniwbrk/u8-wordbreaks'.
31132         * modules/uniwbrk/u8-wordbreaks: New file.
31133         * lib/uniwbrk/u8-wordbreaks.c: New file.
31134         * lib/uniwbrk/u-wordbreaks.h: New file.
31135
31136         New module 'uniwbrk/table'.
31137         * modules/uniwbrk/table: New file.
31138         * lib/uniwbrk/wbrktable.h: New file.
31139         * lib/uniwbrk/wbrktable.c: New file.
31140
31141         New module 'uniwbrk/wordbreak-property'.
31142         * modules/uniwbrk/wordbreak-property: New file.
31143         * lib/uniwbrk/wordbreak-property.c: New file.
31144
31145         * lib/gen-uni-tables.c (WBP_*): New enum items.
31146         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
31147         (unicode_org_wbp): New variable.
31148         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
31149         New functions.
31150         (wbp_table): New structure.
31151         (output_wbp, output_wbrk_tables): New functions.
31152         (main): Accept additional argument. Invoke fill_org_wbp,
31153         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
31154         output_wbrk_tables.
31155         * modules/gen-uni-tables (Description): Update.
31156         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
31157         gen-uni-tables.
31158
31159         New module 'uniwbrk/base'.
31160         * modules/uniwbrk/base: New file.
31161         * lib/uniwbrk.h: New file.
31162
31163 2009-02-08  Bruno Haible  <bruno@clisp.org>
31164
31165         Update to Unicode 5.1.0.
31166         * lib/gen-uni-tables.c (is_property_alphabetic): Include
31167         U+2185..U+2188.
31168         (is_property_default_ignorable_code_point): Don't include characters
31169         of category Cc or Cs and not-a-characters.
31170         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
31171         U+0D79, U+109E, U+109F, U+A60C.
31172         * lib/unictype/bidi_of.h: Regenerated.
31173         * lib/unictype/blocks.h: Regenerated.
31174         * lib/unictype/categ_C.h: Regenerated.
31175         * lib/unictype/categ_Cf.h: Regenerated.
31176         * lib/unictype/categ_Cn.h: Regenerated.
31177         * lib/unictype/categ_L.h: Regenerated.
31178         * lib/unictype/categ_Ll.h: Regenerated.
31179         * lib/unictype/categ_Lm.h: Regenerated.
31180         * lib/unictype/categ_Lo.h: Regenerated.
31181         * lib/unictype/categ_Lu.h: Regenerated.
31182         * lib/unictype/categ_M.h: Regenerated.
31183         * lib/unictype/categ_Mc.h: Regenerated.
31184         * lib/unictype/categ_Me.h: Regenerated.
31185         * lib/unictype/categ_Mn.h: Regenerated.
31186         * lib/unictype/categ_N.h: Regenerated.
31187         * lib/unictype/categ_Nd.h: Regenerated.
31188         * lib/unictype/categ_Nl.h: Regenerated.
31189         * lib/unictype/categ_No.h: Regenerated.
31190         * lib/unictype/categ_P.h: Regenerated.
31191         * lib/unictype/categ_Pd.h: Regenerated.
31192         * lib/unictype/categ_Pe.h: Regenerated.
31193         * lib/unictype/categ_Pf.h: Regenerated.
31194         * lib/unictype/categ_Pi.h: Regenerated.
31195         * lib/unictype/categ_Po.h: Regenerated.
31196         * lib/unictype/categ_Ps.h: Regenerated.
31197         * lib/unictype/categ_S.h: Regenerated.
31198         * lib/unictype/categ_Sk.h: Regenerated.
31199         * lib/unictype/categ_Sm.h: Regenerated.
31200         * lib/unictype/categ_So.h: Regenerated.
31201         * lib/unictype/categ_of.h: Regenerated.
31202         * lib/unictype/combining.h: Regenerated.
31203         * lib/unictype/ctype_alnum.h: Regenerated.
31204         * lib/unictype/ctype_alpha.h: Regenerated.
31205         * lib/unictype/ctype_graph.h: Regenerated.
31206         * lib/unictype/ctype_lower.h: Regenerated.
31207         * lib/unictype/ctype_print.h: Regenerated.
31208         * lib/unictype/ctype_punct.h: Regenerated.
31209         * lib/unictype/ctype_upper.h: Regenerated.
31210         * lib/unictype/decdigit.h: Regenerated.
31211         * lib/unictype/digit.h: Regenerated.
31212         * lib/unictype/mirror.h: Regenerated.
31213         * lib/unictype/numeric.h: Regenerated.
31214         * lib/unictype/pr_alphabetic.h: Regenerated.
31215         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
31216         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
31217         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
31218         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
31219         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
31220         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
31221         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
31222         * lib/unictype/pr_combining.h: Regenerated.
31223         * lib/unictype/pr_dash.h: Regenerated.
31224         * lib/unictype/pr_decimal_digit.h: Regenerated.
31225         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
31226         * lib/unictype/pr_deprecated.h: Regenerated.
31227         * lib/unictype/pr_diacritic.h: Regenerated.
31228         * lib/unictype/pr_extender.h: Regenerated.
31229         * lib/unictype/pr_format_control.h: Regenerated.
31230         * lib/unictype/pr_grapheme_base.h: Regenerated.
31231         * lib/unictype/pr_grapheme_extend.h: Regenerated.
31232         * lib/unictype/pr_grapheme_link.h: Regenerated.
31233         * lib/unictype/pr_id_continue.h: Regenerated.
31234         * lib/unictype/pr_id_start.h: Regenerated.
31235         * lib/unictype/pr_ideographic.h: Regenerated.
31236         * lib/unictype/pr_ignorable_control.h: Regenerated.
31237         * lib/unictype/pr_lowercase.h: Regenerated.
31238         * lib/unictype/pr_math.h: Regenerated.
31239         * lib/unictype/pr_numeric.h: Regenerated.
31240         * lib/unictype/pr_other_alphabetic.h: Regenerated.
31241         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
31242         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
31243         * lib/unictype/pr_other_id_continue.h: Regenerated.
31244         * lib/unictype/pr_other_lowercase.h: Regenerated.
31245         * lib/unictype/pr_other_math.h: Regenerated.
31246         * lib/unictype/pr_punctuation.h: Regenerated.
31247         * lib/unictype/pr_sentence_terminal.h: Regenerated.
31248         * lib/unictype/pr_soft_dotted.h: Regenerated.
31249         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
31250         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
31251         * lib/unictype/pr_unified_ideograph.h: Regenerated.
31252         * lib/unictype/pr_uppercase.h: Regenerated.
31253         * lib/unictype/pr_xid_continue.h: Regenerated.
31254         * lib/unictype/pr_xid_start.h: Regenerated.
31255         * lib/unictype/pr_zero_width.h: Regenerated.
31256         * lib/unictype/scripts.h: Regenerated.
31257         * lib/unictype/scripts_byname.gperf: Regenerated.
31258         * lib/unictype/sy_java_ident.h: Regenerated.
31259         * lib/unilbrk/lbrkprop1.h: Regenerated.
31260         * lib/unilbrk/lbrkprop2.h: Regenerated.
31261         * tests/unictype/test-categ_C.c: Regenerated.
31262         * tests/unictype/test-categ_Cf.c: Regenerated.
31263         * tests/unictype/test-categ_Cn.c: Regenerated.
31264         * tests/unictype/test-categ_L.c: Regenerated.
31265         * tests/unictype/test-categ_Ll.c: Regenerated.
31266         * tests/unictype/test-categ_Lm.c: Regenerated.
31267         * tests/unictype/test-categ_Lo.c: Regenerated.
31268         * tests/unictype/test-categ_Lu.c: Regenerated.
31269         * tests/unictype/test-categ_M.c: Regenerated.
31270         * tests/unictype/test-categ_Mc.c: Regenerated.
31271         * tests/unictype/test-categ_Me.c: Regenerated.
31272         * tests/unictype/test-categ_Mn.c: Regenerated.
31273         * tests/unictype/test-categ_N.c: Regenerated.
31274         * tests/unictype/test-categ_Nd.c: Regenerated.
31275         * tests/unictype/test-categ_Nl.c: Regenerated.
31276         * tests/unictype/test-categ_No.c: Regenerated.
31277         * tests/unictype/test-categ_P.c: Regenerated.
31278         * tests/unictype/test-categ_Pd.c: Regenerated.
31279         * tests/unictype/test-categ_Pe.c: Regenerated.
31280         * tests/unictype/test-categ_Pf.c: Regenerated.
31281         * tests/unictype/test-categ_Pi.c: Regenerated.
31282         * tests/unictype/test-categ_Po.c: Regenerated.
31283         * tests/unictype/test-categ_Ps.c: Regenerated.
31284         * tests/unictype/test-categ_S.c: Regenerated.
31285         * tests/unictype/test-categ_Sk.c: Regenerated.
31286         * tests/unictype/test-categ_Sm.c: Regenerated.
31287         * tests/unictype/test-categ_So.c: Regenerated.
31288         * tests/unictype/test-ctype_alnum.c: Regenerated.
31289         * tests/unictype/test-ctype_alpha.c: Regenerated.
31290         * tests/unictype/test-ctype_graph.c: Regenerated.
31291         * tests/unictype/test-ctype_lower.c: Regenerated.
31292         * tests/unictype/test-ctype_print.c: Regenerated.
31293         * tests/unictype/test-ctype_punct.c: Regenerated.
31294         * tests/unictype/test-ctype_upper.c: Regenerated.
31295         * tests/unictype/test-decdigit.h: Regenerated.
31296         * tests/unictype/test-digit.h: Regenerated.
31297         * tests/unictype/test-numeric.h: Regenerated.
31298         * tests/unictype/test-pr_alphabetic.c: Regenerated.
31299         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
31300         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
31301         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
31302         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
31303         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
31304         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
31305         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
31306         * tests/unictype/test-pr_combining.c: Regenerated.
31307         * tests/unictype/test-pr_dash.c: Regenerated.
31308         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
31309         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
31310         * tests/unictype/test-pr_deprecated.c: Regenerated.
31311         * tests/unictype/test-pr_diacritic.c: Regenerated.
31312         * tests/unictype/test-pr_extender.c: Regenerated.
31313         * tests/unictype/test-pr_format_control.c: Regenerated.
31314         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
31315         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
31316         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
31317         * tests/unictype/test-pr_id_continue.c: Regenerated.
31318         * tests/unictype/test-pr_id_start.c: Regenerated.
31319         * tests/unictype/test-pr_ideographic.c: Regenerated.
31320         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
31321         * tests/unictype/test-pr_lowercase.c: Regenerated.
31322         * tests/unictype/test-pr_math.c: Regenerated.
31323         * tests/unictype/test-pr_numeric.c: Regenerated.
31324         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
31325         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
31326         Regenerated.
31327         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
31328         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
31329         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
31330         * tests/unictype/test-pr_other_math.c: Regenerated.
31331         * tests/unictype/test-pr_punctuation.c: Regenerated.
31332         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
31333         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
31334         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
31335         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
31336         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
31337         * tests/unictype/test-pr_uppercase.c: Regenerated.
31338         * tests/unictype/test-pr_xid_continue.c: Regenerated.
31339         * tests/unictype/test-pr_xid_start.c: Regenerated.
31340         * tests/unictype/test-pr_zero_width.c: Regenerated.
31341
31342         Update to Unicode 5.1.0.
31343         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
31344         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
31345         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
31346         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
31347         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
31348         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
31349         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
31350         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
31351         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
31352         (nonspacing_table_ind): Update.
31353         * tests/uniwidth/test-uc_width2.sh: Update expected result.
31354
31355         Update to Unicode 5.1.0.
31356         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
31357         code transform.
31358         * lib/uniname/uniname.c (unicode_character_name,
31359         unicode_name_character): Add the range 0x1Fxxx to the code transform.
31360         * lib/uniname/uninames.h: Regenerated.
31361         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
31362
31363 2009-02-07  Bruno Haible  <bruno@clisp.org>
31364
31365         Merge gen-ctype and gen-lbrk into a single program.
31366         * lib/gen-uni-tables.c: New file, incorporating
31367         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
31368         Add directory prefixes to the names of the generated files.
31369         * lib/unictype/gen-ctype.c: Remove file.
31370         * lib/unilbrk/gen-lbrk.c: Remove file.
31371         * modules/gen-uni-tables: New file.
31372         * modules/unictype/gen-ctype: Remove file.
31373         * modules/unilbrk/gen-lbrk: Remove file.
31374
31375 2009-02-07  Bruno Haible  <bruno@clisp.org>
31376
31377         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
31378
31379         New module 'unistr/u32-strcoll'.
31380         * modules/unistr/u32-strcoll: New file.
31381         * lib/unistr/u32-strcoll.c: New file.
31382
31383         New module 'unistr/u16-strcoll'.
31384         * modules/unistr/u16-strcoll: New file.
31385         * lib/unistr/u16-strcoll.c: New file.
31386
31387         New module 'unistr/u8-strcoll'.
31388         * modules/unistr/u8-strcoll: New file.
31389         * lib/unistr/u8-strcoll.c: New file.
31390         * lib/unistr/u-strcoll.h: New file.
31391
31392 2009-02-07  Bruno Haible  <bruno@clisp.org>
31393
31394         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
31395         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31396         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31397         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
31398         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
31399         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
31400
31401 2009-02-07  Bruno Haible  <bruno@clisp.org>
31402
31403         Make 64-bit clean.
31404         * lib/unictype/gen-ctype.c (output_predicate, output_category,
31405         output_combclass, output_bidi_category, output_decimal_digit,
31406         output_digit, output_numeric, output_mirror, output_scripts,
31407         output_ident_category): Use proper width specifier in format strings.
31408
31409 2009-02-07  Bruno Haible  <bruno@clisp.org>
31410
31411         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
31412         failure behaviour.
31413
31414 2009-02-07  Jim Meyering  <meyering@redhat.com>
31415
31416         regex: avoid compilation failure with upcoming gcc-4.4
31417         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
31418         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
31419         "... error: integer overflow in preprocessor expression".
31420
31421 2009-02-05  Ben Pfaff  <blp@gnu.org>
31422
31423         Fix link errors on Windows when close module is used.
31424         * modules/close: Add $(LIB_CLOSE) to Link section.
31425         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
31426         $(LIB_CLOSE) on Windows.
31427
31428 2009-02-05  Jim Meyering  <meyering@redhat.com>
31429
31430         still avoid unused-parameter warnings, but do it cleanly
31431         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
31432         (get_fs_usage): Cast to void instead.
31433         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
31434         (dev_from_mount_options, read_file_system_list): Cast to void.
31435         Prompted by Bruno Haible.
31436
31437 2009-02-04  Jim Meyering  <meyering@redhat.com>
31438
31439         fsusage.c: correct copyright year
31440         * lib/fsusage.c: Reflect year in which the change is pushed into
31441
31442         avoid misc. warnings
31443         * lib/fsusage.c (UNUSED_PARAM): Define.
31444         (get_fs_usage): Mark parameter "disk" as unused.
31445         * lib/getugroups.c (getgrent): Use "void" in prototype.
31446         * lib/mountlist.c: Mark unused parameters.
31447         (read_file_system_list): Declare a local with "const".
31448         * lib/nanosleep.c (getnow): Declare static.
31449         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
31450
31451         dirfd: set errno upon failure
31452         * lib/dirfd.c: Include <errno.h>.
31453         Set errno to ENOTSUP when returning -1.
31454         * modules/dirfd (Depends-on): Add errno.
31455         Suggested by John Kodis <kodis@comcast.net>.
31456
31457 2009-02-01  Bruno Haible  <bruno@clisp.org>
31458
31459         Don't assume sizeof (long) >= sizeof (void *).
31460         * lib/memcmp.c: Include stdint.h.
31461         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
31462         srcp2 to 'const byte *'.
31463         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
31464         types to uintptr_t.
31465         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
31466         * modules/memcmp (Depends-on): Add stdint.
31467         Reported by Ozkan Sezer <sezeroz@gmail.com>.
31468
31469 2009-01-30  Eric Blake  <ebb9@byu.net>
31470
31471         fix more require-before-expand issues
31472         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
31473         expand, AC_PROG_AWK.
31474         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
31475
31476 2009-01-28  Eric Blake  <ebb9@byu.net>
31477
31478         version-etc: use consistent URL formatting
31479         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
31480         Improve formatting.  Use fputs for string without %.
31481
31482 2009-01-28  Jim Meyering  <meyering@redhat.com>
31483
31484         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
31485         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
31486         "underquoted definition of NAME" from autoconf-2.59.
31487
31488 2009-01-28  Bruno Haible  <bruno@clisp.org>
31489
31490         * doc/gnulib.texi: Add "Obsolete modules" to index.
31491
31492 2009-01-28  Jim Meyering  <meyering@redhat.com>
31493
31494         useless-if-before-free: recognize more variants
31495         * build-aux/useless-if-before-free: Also recognize e.g.,
31496         if (NULL != p) free (p);
31497
31498 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
31499
31500         test-getaddrinfo: skip (don't fail) this test when there's no network
31501         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
31502         on the presumption that it means you lack network access.
31503
31504 2009-01-26  Jim Meyering  <meyering@redhat.com>
31505
31506         fflush: avoid warnings on modern systems
31507         * lib/fflush.c (rpl_fflush): Move declarations of locals,
31508         pos and result, into scopes where they're used.
31509
31510 2009-01-26  Eric Blake  <ebb9@byu.net>
31511
31512         Silence warning reintroduced by recent extensions patch.
31513         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
31514         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
31515         autoconf.
31516
31517         Backport improved autoconf semantics of AC_DEFUN_ONCE.
31518         * m4/00gnulib.m4: New file.
31519         * gnulib-tool (func_get_filelist): Always use it.
31520         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
31521         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
31522
31523 2009-01-25  Bruno Haible  <bruno@clisp.org>
31524
31525         Make test-quotearg work on MacOS X and AIX.
31526         * tests/test-quotearg.sh: New file.
31527         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
31528         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
31529         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
31530         include <libintl.h>.
31531         (fake_locale): Remove variable.
31532         (gettext, dgettext, dcgettext): Remove functions.
31533         (main): Instead of setting a fake locale, set a real locale. Call
31534         textdomain and bindtextdomain.
31535         * modules/quotearg-tests (Files): Add the new files.
31536         (Depends-on): Add gettext, setenv, unsetenv.
31537         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
31538         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
31539         Augment TESTS_ENVIRONMENT.
31540
31541 2009-01-25  Bruno Haible  <bruno@clisp.org>
31542
31543         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
31544         fr_FR.ISO8859-1 locale on MacOS X.
31545         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
31546         ja_JP.eucJP locale on MacOS X.
31547         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
31548         zh_CN.GB18030 locale on MacOS X.
31549
31550 2009-01-25  Bruno Haible  <bruno@clisp.org>
31551
31552         Avoid link errors on MacOS X 10.3.
31553         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
31554         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31555
31556 2009-01-25  Bruno Haible  <bruno@clisp.org>
31557
31558         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31559         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
31560         * modules/pipe (Files): Remove m4/posix_spawn.m4.
31561         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31562         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
31563         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31564         posix_spawnattr_init, posix_spawnattr_setsigmask,
31565         posix_spawnattr_setflags, posix_spawnattr_destroy.
31566
31567         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31568         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
31569         * modules/execute (Files): Remove m4/posix_spawn.m4.
31570         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31571         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31572         posix_spawnattr_init, posix_spawnattr_setsigmask,
31573         posix_spawnattr_setflags, posix_spawnattr_destroy.
31574
31575 2009-01-25  Bruno Haible  <bruno@clisp.org>
31576
31577         * lib/glthread/threadlib.c: Include <stdlib.h>.
31578
31579 2009-01-25  Bruno Haible  <bruno@clisp.org>
31580
31581         * lib/glthread/threadlib.c (dummy): New declaration.
31582
31583 2009-01-25  Bruno Haible  <bruno@clisp.org>
31584
31585         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
31586         multibyte characters also for the GB18030 encoding. Don't crash when
31587         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
31588
31589 2009-01-25  Bruno Haible  <bruno@clisp.org>
31590
31591         Avoid redefining 'struct random_data' on OSF/1 5.1.
31592         * lib/stdlib.in.h: Include <random.h> if it exists.
31593         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
31594         HAVE_RANDOM_H. Include <random.h> when testing whether
31595         'struct random_data' exists.
31596         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
31597
31598 2009-01-25  Bruno Haible  <bruno@clisp.org>
31599
31600         Don't install charset.alias on MacOS X >= 10.3.
31601         * lib/localcharset.c (DARWIN7): New macro.
31602         (get_charset_aliases): Hardcode the result for Darwin7.
31603         * modules/localcharset (install-exec-local): Don't install
31604         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
31605
31606 2009-01-25  Bruno Haible  <bruno@clisp.org>
31607
31608         Don't install charset.alias on mingw and Cygwin.
31609         * modules/localcharset (install-exec-local): Don't install
31610         charset.alias on mingw and Cygwin, if the file does not yet exist.
31611         The result for these platforms is hardcoded in localcharset.c.
31612
31613 2009-01-25  Bruno Haible  <bruno@clisp.org>
31614
31615         Make it possible again to use AC_GNU_SOURCE together with gnulib.
31616         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
31617         before requiring AC_USE_SYSTEM_EXTENSIONS.
31618
31619 2009-01-25  Jim Meyering  <meyering@redhat.com>
31620
31621         c-strtod: avoid warnings
31622         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
31623         "assignment discards qualifiers from pointer target type" warnings.
31624
31625 2009-01-24  Bruno Haible  <bruno@clisp.org>
31626
31627         Add support for non-UTF-8 locales on MacOS X.
31628         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
31629         canonical encodings. For Darwin 7 and newer, don't map traditional
31630         encodings to UTF-8.
31631         Reported by Vincent Lefevre <vincent@vinc17.org>
31632         at <http://savannah.gnu.org/bugs/?25235>.
31633
31634 2009-01-24  Bruno Haible  <bruno@clisp.org>
31635
31636         * doc/gnulib.texi (Obsolete modules): New section.
31637         Reported by Mike Frysinger <vapier@gentoo.org>.
31638
31639 2009-01-24  Bruno Haible  <bruno@clisp.org>
31640
31641         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
31642         (%.dvi): New rule.
31643
31644 2009-01-24  Bruno Haible  <bruno@clisp.org>
31645
31646         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
31647         Reported by Eric Blake.
31648
31649 2009-01-24  Bruno Haible  <bruno@clisp.org>
31650
31651         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
31652         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
31653         Reported by Gary V. Vaughan <gary@gnu.org>.
31654
31655 2009-01-24  Bruno Haible  <bruno@clisp.org>
31656
31657         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
31658
31659 2009-01-23  Bruno Haible  <bruno@clisp.org>
31660
31661         Make c-strtod, c-strtold usable in libraries.
31662         * lib/c-strtod.c: Include string.h instead of xalloc.h.
31663         (C_STRTOD): Call strdup instead of xstrdup.
31664         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
31665         * modules/c-strtold (Depends-on): Likewise.
31666         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
31667         * NEWS: Mention the change.
31668         Reported by Michael Gold <mgold@ncf.ca>.
31669
31670 2009-01-23  Jim Meyering  <meyering@redhat.com>
31671
31672         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
31673         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
31674         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
31675
31676 2009-01-23  Simon Josefsson  <simon@josefsson.org>
31677
31678         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
31679         GNU CoreUtils.
31680         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
31681         * modules/version-etc (Description): Update.
31682
31683 2009-01-22  Bruno Haible  <bruno@clisp.org>
31684
31685         Cache the C locale object.
31686         * lib/c-strtod.c (c_locale_cache): New variable.
31687         (c_locale): New function.
31688         (C_STRTOD): Use it, and don't call freelocale.
31689         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
31690         Suggested by Paolo Bonzini.
31691
31692 2009-01-21  Bruno Haible  <bruno@clisp.org>
31693
31694         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
31695         conditions other than overflow.
31696
31697 2009-01-21  Bruno Haible  <bruno@clisp.org>
31698
31699         * lib/c-strtod.c: Include errno.h.
31700         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
31701         value from STRTOD_L and STRTOD.
31702
31703 2009-01-21  Bruno Haible  <bruno@clisp.org>
31704         and Jim Meyering  <meyering@redhat.com>
31705
31706         nanosleep: skip configure test (fail it) for apple universal builds
31707         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
31708         universal builds, assume that nanosleep does not work.
31709         * modules/nanosleep (Depends-on): Add multiarch.
31710
31711         mktime: skip configure test (fail it) for apple universal builds
31712         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
31713         universal builds, assume that mktime does not work.
31714         * modules/mktime (Depends-on): Add multiarch.
31715
31716 2009-01-21  Eric Blake  <ebb9@byu.net>
31717
31718         multiarch: avoid expand-before-require warning
31719         * modules/multiarch (configure.ac): Require, rather than expand,
31720         gl_MULTIARCH.
31721         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
31722         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
31723         enforce that all clients require it.  Partial reversion of
31724         2008-12-29 patch.
31725
31726         error: avoid expand-before-require warning
31727         * modules/errno (configure.ac): Require, rather than expand,
31728         gl_HEADER_ERRNO_H.
31729         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
31730         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
31731         enforce that all clients require it.
31732
31733         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
31734         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
31735         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
31736         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
31737
31738 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
31739
31740         Revert:
31741         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31742
31743         regex: do not depend on obsolete modules.
31744         * modules/regex: Remove memcmp and memmove.
31745
31746 2009-01-20  Bruno Haible  <bruno@clisp.org>
31747
31748         Make the 'link' module link on Windows NT 4.
31749         * lib/link.c (_WIN32_WINNT): Don't define.
31750         (CreateHardLinkFuncType): New type.
31751         (CreateHardLinkFunc, initialized): New variables.
31752         (initialize): New function.
31753         (link): Invoke CreateHardLink indirectly through the function pointer.
31754
31755 2009-01-20  Bruno Haible  <bruno@clisp.org>
31756
31757         Fix compilation failure on mingw.
31758         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
31759
31760 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
31761
31762         * doc/c-strtod.texi: Mention a couple of restrictions.
31763
31764 2009-01-20  Jim Meyering  <meyering@redhat.com>
31765
31766         gettimeofday: move more declarations out of functions
31767         * lib/gettimeofday.c: Move extern declarations of tzset and
31768         gmtime out of containing functions.  Prompted by Bruno Haible.
31769
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-19  Bruno Haible  <bruno@clisp.org>
31776
31777         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31778         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
31779         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31780         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
31781         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
31782
31783 2009-01-19  Bruno Haible  <bruno@clisp.org>
31784
31785         * tests/test-link.c: Include <errno.h>.
31786         (main): Exit with code 77 when a hard link cannot be created due to
31787         the file system.
31788         * tests/test-link.sh: Skip test when a hard link cannot be created due
31789         to the file system.
31790         Suggested by Eric Blake.
31791
31792 2009-01-19  Martin Lambers  <marlam@marlam.de>
31793
31794         * modules/link-tests: New file.
31795         * tests/test-link.sh: New file.
31796         * tests/test-link.c: New file.
31797
31798 2009-01-19  Eric Blake  <ebb9@byu.net>
31799
31800         doc: mention another function added in cygwin 1.7.0
31801         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
31802         Another new function in cygwin 1.7.
31803
31804 2009-01-19  Bruno Haible  <bruno@clisp.org>
31805
31806         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31807         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
31808         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
31809         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31810         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31811         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31812         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31813         * m4/md4.m4 (gl_MD4): Likewise.
31814         * m4/md5.m4 (gl_MD5): Likewise.
31815         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
31816         * m4/sha1.m4 (gl_SHA1): Likewise.
31817         * m4/sha256.m4 (gl_SHA256): Likewise.
31818         * m4/sha512.m4 (gl_SHA512): Likewise.
31819
31820 2009-01-19  Bruno Haible  <bruno@clisp.org>
31821
31822         * modules/uniname/uniname-tests (Depends-on): Add progname.
31823         * tests/uniname/test-uninames.c: Include progname.h.
31824         (main): Call set_program_name.
31825
31826         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
31827         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
31828         (main): Call set_program_name.
31829
31830         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
31831         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
31832         (main): Call set_program_name.
31833
31834         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
31835         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
31836         (main): Call set_program_name.
31837
31838         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
31839         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
31840         (main): Call set_program_name.
31841
31842         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
31843         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
31844         (main): Call set_program_name.
31845
31846         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
31847         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
31848         (main): Call set_program_name.
31849
31850         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
31851         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
31852         (main): Call set_program_name.
31853
31854         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
31855         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
31856         (main): Call set_program_name.
31857
31858 2009-01-19  Eric Blake  <ebb9@byu.net>
31859
31860         test-unistd: test previous patch
31861         * tests/test-unistd.c: Test *_FILENO macros.
31862
31863         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
31864         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31865         Guarantee a definition.
31866         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
31867         * modules/unistd-safer (Depends-on): Add dependency on unistd.
31868         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
31869         * lib/dup-safer.c (STDERR_FILENO): Likewise.
31870         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31871         Likewise.
31872         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
31873         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
31874         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31875         Likewise.
31876         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
31877         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
31878         (STDERR_FILENO): Likewise.
31879         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
31880         (STDERR_FILENO): Likewise.
31881         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
31882         (STDERR_FILENO): Likewise.
31883         Reported by Elbert Pol.
31884
31885 2009-01-19  Eric Blake  <ebb9@byu.net>
31886
31887         doc: mention more functions added in cygwin 1.7.0
31888         * doc/posix-functions/abort.texi (abort): Update wording related
31889         to cygwin.
31890         * doc/posix-functions/daylight.texi (daylight): Likewise.
31891         * doc/posix-functions/optarg.texi (optarg): Likewise.
31892         * doc/posix-functions/optarg.texi (opterr): Likewise.
31893         * doc/posix-functions/optarg.texi (optind): Likewise.
31894         * doc/posix-functions/optarg.texi (optopt): Likewise.
31895         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
31896         worked in 1.5.x, and was withdrawn in 1.7.
31897         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
31898         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
31899         cygwin versions.
31900         * doc/posix-functions/perror.texi (perror): Likewise.
31901         * doc/posix-functions/printf.texi (printf): Likewise.
31902         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
31903         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
31904         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31905         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31906         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31907         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
31908         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31909         Likewise.
31910         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31911         Likewise.
31912         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
31913         this function.
31914         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
31915         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
31916         Likewise.
31917         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
31918         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
31919         * doc/posix-functions/confstr.texi (confstr): Likewise.
31920         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
31921         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
31922         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
31923         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
31924         * doc/posix-functions/fputws.texi (fputws): Likewise.
31925         * doc/posix-functions/fwide.texi (fwide): Likewise.
31926         * doc/posix-functions/getwc.texi (getwc): Likewise.
31927         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
31928         * doc/posix-functions/putwc.texi (putwc): Likewise.
31929         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31930         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
31931         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
31932         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31933         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
31934         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
31935         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
31936         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
31937         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
31938         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
31939         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
31940
31941 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31942
31943         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
31944         * lib/ioctl.c: Include <sys/ioctl.h>.
31945
31946 2009-01-19  Simon Josefsson  <simon@josefsson.org>
31947
31948         * modules/getdate-tests (Depends-on): Add progname.
31949         * tests/test-getdate.c: Use progname module, to avoid link errors
31950         on non-glibc systems.
31951
31952 2009-01-18  Simon Josefsson  <simon@josefsson.org>
31953
31954         * modules/filenamecat-tests (Depends-on): Add progname.
31955         * modules/fstrcmp-tests (Depends-on): Likewise.
31956
31957         * tests/test-filenamecat.c: Use progname module, to avoid link
31958         errors on non-glibc systems.
31959         * tests/test-fstrcmp.c: Likewise.
31960
31961 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31962
31963         gettimeofday: avoid warning: nested extern declaration of 'localtime'
31964         * lib/gettimeofday.c: Move extern declaration out of function.
31965
31966 2009-01-18  Bruno Haible  <bruno@clisp.org>
31967
31968         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
31969         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
31970         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
31971
31972 2009-01-18  Bruno Haible  <bruno@clisp.org>
31973
31974         * lib/strftime.c (MEMPCPY): Remove unused macro.
31975         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
31976
31977 2009-01-18  Martin Lambers  <marlam@marlam.de>
31978
31979         New module 'link'.
31980         * lib/unistd.in.h (link): New declaration.
31981         * lib/link.c: New file.
31982         * m4/link.m4: New file.
31983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
31984         HAVE_LINK.
31985         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
31986         * modules/link: New file.
31987         * doc/posix-functions/link.texi: Mention the new module.
31988
31989 2009-01-18  Bruno Haible  <bruno@clisp.org>
31990
31991         * tests/test-avltree_list.c (main): Call set_program_name.
31992         * tests/test-avltree_oset.c (main): Likewise.
31993         * tests/test-obstack-printf.c: Include progname.h.
31994         (main): Call set_program_name.
31995         * tests/test-quotearg.c: Include progname.h.
31996         (main): Call set_program_name.
31997         * tests/test-xmemdup0.c: Include progname.h.
31998         (main): Call set_program_name.
31999
32000 2009-01-18  Bruno Haible  <bruno@clisp.org>
32001
32002         New module 'alphasort'.
32003         * lib/dirent.in.h (alphasort): New declaration.
32004         * lib/alphasort.c: New file, from glibc with modifications.
32005         * m4/alphasort.m4: New file.
32006         * modules/alphasort: New file.
32007         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
32008         HAVE_ALPHASORT.
32009         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
32010         HAVE_ALPHASORT.
32011         * doc/posix-functions/alphasort.texi: Mention the new module and the
32012         portability problems.
32013
32014 2009-01-18  Bruno Haible  <bruno@clisp.org>
32015
32016         New module 'scandir'.
32017         * lib/dirent.in.h (scandir): New declaration.
32018         * lib/scandir.c: New file, from glibc with modifications.
32019         * m4/scandir.m4: New file.
32020         * modules/scandir: New file.
32021         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
32022         HAVE_SCANDIR.
32023         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
32024         HAVE_SCANDIR.
32025         * doc/posix-functions/scandir.texi: Mention the new module and the
32026         portability problems.
32027
32028 2009-01-17  Bruno Haible  <bruno@clisp.org>
32029
32030         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
32031         Update documentation.
32032         (func_remove_suffix): Escape all dots in the suffix. Update
32033         documentation.
32034         (func_filter_filelist): Update documentation.
32035         Reported by Ralf Wildenhues.
32036
32037 2009-01-17  Bruno Haible  <bruno@clisp.org>
32038
32039         * modules/dprintf-posix-tests: New file.
32040         * tests/test-dprintf-posix.sh: New file.
32041         * tests/test-dprintf-posix.c: New file.
32042
32043         New modules 'dprintf', 'dprintf-posix'.
32044         * lib/stdio.in.h (dprintf): New declaration.
32045         * lib/dprintf.c: New file.
32046         * m4/dprintf.m4: New file.
32047         * m4/dprintf-posix.m4: New file.
32048         * modules/dprintf: New file.
32049         * modules/dprintf-posix: New file.
32050         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
32051         HAVE_DPRINTF, REPLACE_DPRINTF.
32052         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
32053         HAVE_DPRINTF, REPLACE_DPRINTF.
32054         * doc/posix-functions/dprintf.texi: Mention the new modules.
32055
32056 2009-01-17  Bruno Haible  <bruno@clisp.org>
32057
32058         * modules/vdprintf-posix-tests: New file.
32059         * tests/test-vdprintf-posix.sh: New file.
32060         * tests/test-vdprintf-posix.c: New file.
32061
32062         New modules 'vdprintf', 'vdprintf-posix'.
32063         * lib/stdio.in.h (vdprintf): New declaration.
32064         * lib/vdprintf.c: New file.
32065         * m4/vdprintf.m4: New file.
32066         * m4/vdprintf-posix.m4: New file.
32067         * modules/vdprintf: New file.
32068         * modules/vdprintf-posix: New file.
32069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
32070         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32071         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
32072         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32073         * doc/posix-functions/vdprintf.texi: Mention the new modules.
32074
32075 2009-01-17  Bruno Haible  <bruno@clisp.org>
32076
32077         Fix replacement of fopen on mingw.
32078         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
32079         mingw.
32080
32081 2009-01-17  Bruno Haible  <bruno@clisp.org>
32082
32083         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
32084         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
32085
32086 2009-01-17  Bruno Haible  <bruno@clisp.org>
32087
32088         Avoid test-fflush2.sh failure on mingw.
32089         * tests/test-fflush2.c: Include binary-io.h.
32090         (main): Put standard input into binary mode.
32091         * modules/fflush-tests (Depends-on): Add binary-io.
32092
32093 2009-01-17  Bruno Haible  <bruno@clisp.org>
32094
32095         * lib/wchar.in.h: In another particular situation, include only the
32096         system's <wchar.h> file.
32097         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
32098         Reported by Albert Chin-A-Young <china@thewrittenword.com>
32099         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
32100
32101 2009-01-17  Bruno Haible  <bruno@clisp.org>
32102
32103         Support for stripping executables in --enable-relocatable.
32104         * build-aux/install-reloc: Expect one more argument, or an environment
32105         variable RELOC_STRIP_PROG. If set, strip the destination program and
32106         its wrapper.
32107         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
32108         RELOC_STRIP_PROG.
32109         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
32110         to set RELOCATABLE_STRIP.
32111         * NEWS: Mention the new Makefile requirement.
32112
32113 2009-01-17  Bruno Haible  <bruno@clisp.org>
32114
32115         * build-aux/install-reloc: Remove debugging information left over by
32116         C compiler on MacOS X.
32117
32118 2009-01-17  Bruno Haible  <bruno@clisp.org>
32119
32120         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
32121         * lib/progreloc.c (find_executable): Fix type of pointer passed to
32122         _NSGetExecutablePath.
32123
32124 2009-01-16  Jim Meyering  <meyering@redhat.com>
32125
32126         strerror: avoid warnings about discarding "const"
32127         * lib/strerror.c (rpl_strerror): Instead of returning a const
32128         string from each and every "case", use a variable, and add a single
32129         cast after the switch.
32130
32131 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
32132
32133         * lib/arpa_inet.in.h: Add extern "C" block for C++.
32134
32135 2009-01-16  Bruno Haible  <bruno@clisp.org>
32136
32137         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
32138         array initializer syntax that also works in C++ mode.
32139         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32140
32141 2009-01-16  Jim Meyering  <meyering@redhat.com>
32142
32143         poll: suppress a warning
32144         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
32145         to ignore "...unsigned expression < 0 is always false" warnings.
32146
32147 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
32148
32149         poll: remove declarations of unused variables
32150         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
32151         sockbuf and optlen.
32152
32153 2009-01-15  Bruno Haible  <bruno@clisp.org>
32154
32155         Make fflush-after-ungetc POSIX compliant on BSD systems.
32156         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
32157         (clear_ungetc_buffer): Implement also for other systems.
32158         (rpl_fflush): On glibc systems, invoke
32159         clear_ungetc_buffer_preserving_position. Otherwise, invoke
32160         clear_ungetc_buffer after fetching the stream's position, not before.
32161
32162 2009-01-15  Bruno Haible  <bruno@clisp.org>
32163
32164         Make fflush-after-ungetc POSIX compliant on glibc systems.
32165         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
32166         after ungetc.
32167         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
32168         (rpl_fflush): On glibc systems, simply call the system's fflush
32169         function after clearing the ungetc buffer.
32170         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
32171         Instead, lseek only to the end of file, then use the system's fseeko
32172         for the rest. On glibc systems, reset the EOF indicator bit.
32173
32174 2009-01-15  Jim Meyering  <meyering@redhat.com>
32175
32176         openmp.m4: revert quote-adding change, for portability to older autoconf
32177         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
32178         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
32179         Simon Josefsson noticed the problem when using autoconf-2.61.
32180
32181 2009-01-15  Bruno Haible  <bruno@clisp.org>
32182
32183         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
32184         * tests/test-fflush2.c (ASSERT): Always fail.
32185         (main): Add two tests for fflush() after ungetc(), taking into account
32186         the Austin Group's clarification.
32187         Suggested by Eric Blake.
32188
32189 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
32190
32191         mktime.m4: remove K&R-style function prototypes
32192         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
32193         for the Sun C++ compiler.
32194
32195 2009-01-14  Bruno Haible  <bruno@clisp.org>
32196
32197         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
32198         while including <wchar.h>.
32199         * lib/wchar.in.h: In two particular situations on HP-UX, include only
32200         the system's <wchar.h> file.
32201         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32202
32203 2009-01-14  Bruno Haible  <bruno@clisp.org>
32204
32205         * m4/csharp.m4: Don't mention gettext on the serial number line.
32206         * m4/csharpexec.m4: Likewise.
32207         * m4/eaccess.m4: Likewise.
32208         * m4/javaexec.m4: Likewise.
32209         * m4/sig_atomic_t.m4: Likewise.
32210         * m4/tmpdir.m4: Likewise.
32211         * m4/intldir.m4: Bump gettext version.
32212         * m4/lib-ld.m4: Likewise.
32213
32214 2009-01-14  Bruno Haible  <bruno@clisp.org>
32215
32216         * lib/progname.c (set_program_name): Add more comments.
32217         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32218
32219 2009-01-14  Simon Josefsson  <simon@josefsson.org>
32220
32221         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
32222         were sys/stat.h does not define it.
32223
32224 2009-01-14  Jim Meyering  <meyering@redhat.com>
32225
32226         many *.m4 files: improve m4 quoting
32227         99% of this change was performed by running the following commands:
32228         git ls-files | grep '\.m4$' | xargs perl -pi \
32229           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
32230           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32231           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32232           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
32233         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
32234         The remainder were to add Copyright dates, increment serial numbers,
32235         undo some changes in comments, exclude m4/intl.m4, and add quotes
32236         around the "1" in ",1" where the unusual spacing prohibited the
32237         above regexps from doing the job.  For more details, see
32238         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
32239         * m4/acl.m4: Modified.
32240         * m4/afs.m4: Likewise.
32241         * m4/alloca.m4: Likewise.
32242         * m4/argp.m4: Likewise.
32243         * m4/argz.m4: Likewise.
32244         * m4/atexit.m4: Likewise.
32245         * m4/bison-i18n.m4: Likewise.
32246         * m4/bison.m4: Likewise.
32247         * m4/byteswap.m4: Likewise.
32248         * m4/c-stack.m4: Likewise.
32249         * m4/c-strtod.m4: Likewise.
32250         * m4/calloc.m4: Likewise.
32251         * m4/canonicalize-lgpl.m4: Likewise.
32252         * m4/chown.m4: Likewise.
32253         * m4/clock_time.m4: Likewise.
32254         * m4/codeset.m4: Likewise.
32255         * m4/copy-file.m4: Likewise.
32256         * m4/csharp.m4: Likewise.
32257         * m4/csharpcomp.m4: Likewise.
32258         * m4/csharpexec.m4: Likewise.
32259         * m4/d-ino.m4: Likewise.
32260         * m4/d-type.m4: Likewise.
32261         * m4/dirfd.m4: Likewise.
32262         * m4/double-slash-root.m4: Likewise.
32263         * m4/eaccess.m4: Likewise.
32264         * m4/eealloc.m4: Likewise.
32265         * m4/environ.m4: Likewise.
32266         * m4/errno_h.m4: Likewise.
32267         * m4/euidaccess.m4: Likewise.
32268         * m4/execute.m4: Likewise.
32269         * m4/fatal-signal.m4: Likewise.
32270         * m4/fchdir.m4: Likewise.
32271         * m4/fcntl_h.m4: Likewise.
32272         * m4/fileblocks.m4: Likewise.
32273         * m4/filenamecat.m4: Likewise.
32274         * m4/findprog.m4: Likewise.
32275         * m4/flexmember.m4: Likewise.
32276         * m4/fnmatch.m4: Likewise.
32277         * m4/fopen.m4: Likewise.
32278         * m4/fpending.m4: Likewise.
32279         * m4/fprintf-posix.m4: Likewise.
32280         * m4/free.m4: Likewise.
32281         * m4/frexp.m4: Likewise.
32282         * m4/frexpl.m4: Likewise.
32283         * m4/fsusage.m4: Likewise.
32284         * m4/ftruncate.m4: Likewise.
32285         * m4/gc-camellia.m4: Likewise.
32286         * m4/gc-random.m4: Likewise.
32287         * m4/gc.m4: Likewise.
32288         * m4/getaddrinfo.m4: Likewise.
32289         * m4/getcwd-abort-bug.m4: Likewise.
32290         * m4/getcwd-path-max.m4: Likewise.
32291         * m4/getdate.m4: Likewise.
32292         * m4/getdomainname.m4: Likewise.
32293         * m4/getgroups.m4: Likewise.
32294         * m4/gethostname.m4: Likewise.
32295         * m4/gethrxtime.m4: Likewise.
32296         * m4/getline.m4: Likewise.
32297         * m4/getloadavg.m4: Likewise.
32298         * m4/getndelim2.m4: Likewise.
32299         * m4/getpass.m4: Likewise.
32300         * m4/gettext.m4: Likewise.
32301         * m4/gettime.m4: Likewise.
32302         * m4/gettimeofday.m4: Likewise.
32303         * m4/gnulib-common.m4: Likewise.
32304         * m4/group-member.m4: Likewise.
32305         * m4/host-os.m4: Likewise.
32306         * m4/iconv.m4: Likewise.
32307         * m4/iconv_open.m4: Likewise.
32308         * m4/inet_ntop.m4: Likewise.
32309         * m4/inet_pton.m4: Likewise.
32310         * m4/inline.m4: Likewise.
32311         * m4/intldir.m4: Likewise.
32312         * m4/intlmacosx.m4: Likewise.
32313         * m4/intmax.m4: Likewise.
32314         * m4/intmax_t.m4: Likewise.
32315         * m4/inttypes.m4: Likewise.
32316         * m4/inttypes_h.m4: Likewise.
32317         * m4/inttypes-pri.m4: Likewise.
32318         * m4/isapipe.m4: Likewise.
32319         * m4/isnand.m4: Likewise.
32320         * m4/isnanf.m4: Likewise.
32321         * m4/isnanl.m4: Likewise.
32322         * m4/javacomp.m4: Likewise.
32323         * m4/javaexec.m4: Likewise.
32324         * m4/jm-winsz1.m4: Likewise.
32325         * m4/jm-winsz2.m4: Likewise.
32326         * m4/lchown.m4: Likewise.
32327         * m4/lcmessage.m4: Likewise.
32328         * m4/ldexpl.m4: Likewise.
32329         * m4/lib-ld.m4: Likewise.
32330         * m4/lib-link.m4: Likewise.
32331         * m4/libsigsegv.m4: Likewise.
32332         * m4/link-follow.m4: Likewise.
32333         * m4/localcharset.m4: Likewise.
32334         * m4/locale-fr.m4: Likewise.
32335         * m4/locale-ja.m4: Likewise.
32336         * m4/locale-tr.m4: Likewise.
32337         * m4/locale-zh.m4: Likewise.
32338         * m4/lock.m4: Likewise.
32339         * m4/longlong.m4: Likewise.
32340         * m4/ls-mntd-fs.m4: Likewise.
32341         * m4/lstat.m4: Likewise.
32342         * m4/malloc.m4: Likewise.
32343         * m4/mathl.m4: Likewise.
32344         * m4/mbrtowc.m4: Likewise.
32345         * m4/mbstate_t.m4: Likewise.
32346         * m4/mbswidth.m4: Likewise.
32347         * m4/memchr.m4: Likewise.
32348         * m4/memcmp.m4: Likewise.
32349         * m4/memcpy.m4: Likewise.
32350         * m4/memmem.m4: Likewise.
32351         * m4/memmove.m4: Likewise.
32352         * m4/mempcpy.m4: Likewise.
32353         * m4/memrchr.m4: Likewise.
32354         * m4/memset.m4: Likewise.
32355         * m4/minmax.m4: Likewise.
32356         * m4/mkdir-slash.m4: Likewise.
32357         * m4/mkdtemp.m4: Likewise.
32358         * m4/mktime.m4: Likewise.
32359         * m4/mmap-anon.m4: Likewise.
32360         * m4/mountlist.m4: Likewise.
32361         * m4/nanosleep.m4: Likewise.
32362         * m4/nls.m4: Likewise.
32363         * m4/nocrash.m4: Likewise.
32364         * m4/open.m4: Likewise.
32365         * m4/openat.m4: Likewise.
32366         * m4/openmp.m4: Likewise.
32367         * m4/pathmax.m4: Likewise.
32368         * m4/perl.m4: Likewise.
32369         * m4/physmem.m4: Likewise.
32370         * m4/pipe.m4: Likewise.
32371         * m4/po.m4: Likewise.
32372         * m4/poll.m4: Likewise.
32373         * m4/posixtm.m4: Likewise.
32374         * m4/posixver.m4: Likewise.
32375         * m4/printf-frexp.m4: Likewise.
32376         * m4/printf-frexpl.m4: Likewise.
32377         * m4/printf-posix.m4: Likewise.
32378         * m4/printf-posix-rpl.m4: Likewise.
32379         * m4/printf.m4: Likewise.
32380         * m4/progtest.m4: Likewise.
32381         * m4/putenv.m4: Likewise.
32382         * m4/readline.m4: Likewise.
32383         * m4/readlink.m4: Likewise.
32384         * m4/readutmp.m4: Likewise.
32385         * m4/realloc.m4: Likewise.
32386         * m4/regex.m4: Likewise.
32387         * m4/relocatable.m4: Likewise.
32388         * m4/relocatable-lib.m4: Likewise.
32389         * m4/rename-dest-slash.m4: Likewise.
32390         * m4/rename.m4: Likewise.
32391         * m4/rmdir-errno.m4: Likewise.
32392         * m4/rmdir.m4: Likewise.
32393         * m4/roundf.m4: Likewise.
32394         * m4/roundl.m4: Likewise.
32395         * m4/rpmatch.m4: Likewise.
32396         * m4/save-cwd.m4: Likewise.
32397         * m4/selinux-selinux-h.m4: Likewise.
32398         * m4/setenv.m4: Likewise.
32399         * m4/settime.m4: Likewise.
32400         * m4/sig2str.m4: Likewise.
32401         * m4/sig_atomic_t.m4: Likewise.
32402         * m4/signalblocking.m4: Likewise.
32403         * m4/signbit.m4: Likewise.
32404         * m4/sigpipe.m4: Likewise.
32405         * m4/sockets.m4: Likewise.
32406         * m4/sockpfaf.m4: Likewise.
32407         * m4/st_dm_mode.m4: Likewise.
32408         * m4/stat-time.m4: Likewise.
32409         * m4/stdbool.m4: Likewise.
32410         * m4/stdint.m4: Likewise.
32411         * m4/stdint_h.m4: Likewise.
32412         * m4/stpcpy.m4: Likewise.
32413         * m4/stpncpy.m4: Likewise.
32414         * m4/strcase.m4: Likewise.
32415         * m4/strchrnul.m4: Likewise.
32416         * m4/strcspn.m4: Likewise.
32417         * m4/strdup.m4: Likewise.
32418         * m4/strftime.m4: Likewise.
32419         * m4/strndup.m4: Likewise.
32420         * m4/strnlen.m4: Likewise.
32421         * m4/strpbrk.m4: Likewise.
32422         * m4/strptime.m4: Likewise.
32423         * m4/strsep.m4: Likewise.
32424         * m4/strtod.m4: Likewise.
32425         * m4/strtoimax.m4: Likewise.
32426         * m4/strtok_r.m4: Likewise.
32427         * m4/strtol.m4: Likewise.
32428         * m4/strtoll.m4: Likewise.
32429         * m4/strtoul.m4: Likewise.
32430         * m4/strtoull.m4: Likewise.
32431         * m4/strtoumax.m4: Likewise.
32432         * m4/strverscmp.m4: Likewise.
32433         * m4/threadlib.m4: Likewise.
32434         * m4/timegm.m4: Likewise.
32435         * m4/tm_gmtoff.m4: Likewise.
32436         * m4/tmpdir.m4: Likewise.
32437         * m4/tmpfile.m4: Likewise.
32438         * m4/tzset.m4: Likewise.
32439         * m4/uintmax_t.m4: Likewise.
32440         * m4/unlinkdir.m4: Likewise.
32441         * m4/unlocked-io.m4: Likewise.
32442         * m4/uptime.m4: Likewise.
32443         * m4/userspec.m4: Likewise.
32444         * m4/utimbuf.m4: Likewise.
32445         * m4/utime.m4: Likewise.
32446         * m4/utimes-null.m4: Likewise.
32447         * m4/utimes.m4: Likewise.
32448         * m4/vararrays.m4: Likewise.
32449         * m4/vasnprintf.m4: Likewise.
32450         * m4/vfprintf-posix.m4: Likewise.
32451         * m4/vprintf-posix.m4: Likewise.
32452         * m4/wait-process.m4: Likewise.
32453         * m4/wchar_t.m4: Likewise.
32454         * m4/wint_t.m4: Likewise.
32455         * m4/write-any-file.m4: Likewise.
32456         * m4/yield.m4: Likewise.
32457
32458 2009-01-13  Bruno Haible  <bruno@clisp.org>
32459
32460         Avoid test-copy-file.sh failures when ACL support insufficient.
32461         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
32462         TESTS_ENVIRONMENT.
32463         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
32464         Reported by Jim Meyering.
32465
32466 2009-01-13  Bruno Haible  <bruno@clisp.org>
32467
32468         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
32469         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
32470         * modules/unistdio/u8-printf-parse (Files): Likewise.
32471         * modules/unistdio/u32-printf-parse (Files): Likewise.
32472         * modules/unistdio/ulc-printf-parse (Files): Likewise.
32473
32474 2009-01-13  Simon Josefsson  <simon@josefsson.org>
32475
32476         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
32477         and m4/inttypes_h.m4 too.
32478
32479 2009-01-12  Eric Blake  <ebb9@byu.net>
32480
32481         tests: IRIX 6.2 cc can't compile -0.0 into .data
32482         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
32483         rather than at compile-time.
32484         * tests/test-floorl.c (minus_zero): Likewise.
32485         * tests/test-frexpl.c (minus_zero): Likewise.
32486         * tests/test-isnan.c (minus_zerol): Likewise.
32487         * tests/test-isnanl.h (minus_zero): Likewise.
32488         * tests/test-ldexpl.c (minus_zero): Likewise.
32489         * tests/test-roundl.c (minus_zero): Likewise.
32490         * tests/test-signbit.c (minus_zerol): Likewise.
32491         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32492         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32493         * tests/test-truncl.c (minus_zero): Likewise.
32494         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32495         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32496         Reported by Tom G. Christensen and Nelson H. F. Beebe.
32497
32498 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32499
32500         regex: fix glibc bug 9697
32501         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
32502         handling.
32503
32504 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32505
32506         regex: fix glibc bug 697
32507         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
32508         being NULL also if there are no backreferences.
32509
32510 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32511
32512         regex: merge glibc changes
32513         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
32514         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
32515         re_string_skip_chars, re_string_reconstruct): Likewise.
32516         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
32517
32518 2009-01-07  Jim Meyering  <meyering@redhat.com>
32519
32520         poll: filter through cppi
32521         * lib/poll.c: Indent cpp directives to reflect nesting.
32522
32523 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
32524
32525         poll: don't return uninitialized
32526         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
32527
32528 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
32529
32530         avoid compile failure on AIX 6.1
32531         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
32532         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
32533
32534 2009-01-04  Jim Meyering  <meyering@redhat.com>
32535
32536         remove duplicate inclusion of <stdio.h>
32537         * tests/test-fprintf-posix.c: Likewise.
32538         * tests/test-printf-posix.c: Likewise.
32539         * tests/test-snprintf-posix.c: Likewise.
32540         * tests/test-sprintf-posix.c: Likewise.
32541         * tests/test-vasprintf-posix.c: Likewise.
32542         * tests/test-vfprintf-posix.c: Likewise.
32543         * tests/test-vprintf-posix.c: Likewise.
32544         * tests/test-vsnprintf-posix.c: Likewise.
32545         * tests/test-vsprintf-posix.c: Likewise.
32546
32547 2009-01-03  Jim Meyering  <meyering@redhat.com>
32548
32549         gnulib-tool: fix sed-based filtering
32550         * gnulib-tool (func_filter_filelist): Remove extra backslash
32551         in sed_fff_filter definition.
32552
32553 2009-01-02  Jim Meyering  <meyering@redhat.com>
32554
32555         strftime: avoid compilation failure on Solaris 2.6
32556         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
32557         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
32558         Don't #define mbrlen or mbsinit, since now they're guaranteed to
32559         be available.  Reported by Tom G. Christensen.  Details in
32560         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
32561
32562 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32563             Bruno Haible  <bruno@clisp.org>
32564
32565         Speed up gnulib-tool by doing more string processing through shell
32566         built-ins.
32567         * gnulib-tool (fast_func_append): New variable.
32568         (func_remove_prefix, func_remove_suffix): New functions.
32569         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
32570         (func_filter_filelist): New function.
32571         (func_get_dependencies): Use func_remove_suffix instead of sed.
32572         (func_get_automake_snippet): Use func_filter_filelist instead of a
32573         subshell and sed invocation.
32574
32575 2009-01-01  Bruno Haible  <bruno@clisp.org>
32576
32577         Fix a security bug.
32578         * gnulib-tool (func_import, import, update): Don't allow the characters
32579         '"', '$', '`', '\' in macro arguments that become part of commands that
32580         are evaluated.
32581
32582 2009-01-01  Bruno Haible  <bruno@clisp.org>
32583
32584         * gnulib-tool (func_reset_sigpipe): Add more comments.
32585
32586 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32587
32588         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
32589         func_emit_tests_Makefile_am, func_import): Abort loops early if we
32590         already know the answer.
32591
32592 2009-01-01  Jim Meyering  <meyering@redhat.com>
32593
32594         * lib/version-etc.c (version_etc_va): Update copyright year.
32595
32596 2008-12-30  Bruno Haible  <bruno@clisp.org>
32597
32598         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
32599         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
32600         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
32601
32602 2008-12-29  Eric Blake  <ebb9@byu.net>
32603
32604         multiarch: avoid autoconf AC_REQUIRE bug
32605         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
32606         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
32607         2.63 and older.
32608         Reported by Bruno Haible, and analyzed in
32609         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
32610
32611 2008-12-29  Bruno Haible  <bruno@clisp.org>
32612
32613         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
32614         files in subdirectories correctly.
32615         Reported by Ralf Wildenhues.
32616
32617 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32618
32619         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
32620         rather than 'join FILE -', for Solaris join.
32621
32622 2008-12-29  Bruno Haible  <bruno@clisp.org>
32623
32624         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
32625         quoting.
32626         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32627         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
32628         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
32629         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
32630         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
32631         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
32632         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
32633         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
32634         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32635         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
32636         * m4/nls.m4 (AM_NLS): Likewise.
32637         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
32638         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
32639         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
32640         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32641         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32642         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32643         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
32644         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32645         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32646         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32647         * m4/xsize.m4 (gl_XSIZE): Likewise.
32648         Suggested by Jim Meyering.
32649
32650 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32651
32652         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
32653         * lib/parse-duration.c: use a switch instead of cascading if's.
32654
32655 2008-12-29  Eric Blake  <ebb9@byu.net>
32656
32657         wchar.h: supply WEOF on Irix 5.3
32658         * lib/wchar.in.h (wint_t): Also supply WEOF.
32659         * lib/wctype.in.h (wint_t): Likewise.
32660         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
32661         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
32662         Reported by Tom G. Christensen.
32663
32664 2008-12-26  Bruno Haible  <bruno@clisp.org>
32665
32666         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
32667         i486, i586, i686.
32668
32669 2008-12-26  Bruno Haible  <bruno@clisp.org>
32670
32671         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
32672
32673 2008-12-26  Bruno Haible  <bruno@clisp.org>
32674
32675         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
32676         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
32677         not __STDC_CONSTANT_MACROS.
32678         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32679
32680 2008-12-25  Bruno Haible  <bruno@clisp.org>
32681
32682         Add support for universal builds to vasnprintf.
32683         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
32684         universal builds, guess no.
32685         * modules/vasnprintf-posix (Depends-on): Add multiarch.
32686         * modules/vasprintf-posix (Depends-on): Likewise.
32687         * modules/fprintf-posix (Depends-on): Likewise.
32688         * modules/vfprintf-posix (Depends-on): Likewise.
32689         * modules/snprintf-posix (Depends-on): Likewise.
32690         * modules/vsnprintf-posix (Depends-on): Likewise.
32691         * modules/sprintf-posix (Depends-on): Likewise.
32692         * modules/vsprintf-posix (Depends-on): Likewise.
32693         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32694         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32695         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32696         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32697         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32698         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32699         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32700
32701         Add support for universal builds to <inttypes.h>.
32702         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
32703         _SCNu64_PREFIX): In Apple
32704         universal builds, define directly, using _LP64.
32705         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
32706         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
32707         * modules/inttypes (Depends-on): Add multiarch.
32708         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32709
32710         Add support for universal builds to <stdint.h>.
32711         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
32712         universal builds, define directly, using _LP64.
32713         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
32714         Apple universal builds, don't test for the size and suffix of ptrdiff_t
32715         and size_t.
32716         * modules/stdint (Depends-on): Add multiarch.
32717         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32718
32719         New module 'multiarch'.
32720         * modules/multiarch: New file.
32721         * m4/multiarch.m4: New file.
32722
32723 2008-12-25  Bruno Haible  <bruno@clisp.org>
32724
32725         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
32726
32727 2008-12-25  Bruno Haible  <bruno@clisp.org>
32728
32729         * modules/btowc (License): Relicense under LGPLv2+.
32730         * modules/mbsinit (License): Likewise.
32731         * modules/mbrtowc (License): Likewise.
32732         * modules/wcrtomb (License): Likewise.
32733         * modules/streq (License): Likewise.
32734         Reported by David Lutterkort <lutter@redhat.com>.
32735
32736 2008-12-23  Bruno Haible  <bruno@clisp.org>
32737
32738         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
32739
32740 2008-12-23  Bruno Haible  <bruno@clisp.org>
32741
32742         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
32743         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
32744         GETADDRINFO_LIB, not in LIBS.
32745         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
32746         * modules/canon-host (Link): Likewise.
32747         * NEWS: Mention the change.
32748         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
32749         GETADDRINFO_LIB.
32750
32751 2008-12-22  Bruno Haible  <bruno@clisp.org>
32752
32753         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
32754         * doc/posix-functions/iswalpha_l.texi: Likewise.
32755         * doc/posix-functions/iswblank_l.texi: Likewise.
32756         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32757         * doc/posix-functions/iswctype_l.texi: Likewise.
32758         * doc/posix-functions/iswdigit_l.texi: Likewise.
32759         * doc/posix-functions/iswgraph_l.texi: Likewise.
32760         * doc/posix-functions/iswlower_l.texi: Likewise.
32761         * doc/posix-functions/iswprint_l.texi: Likewise.
32762         * doc/posix-functions/iswpunct_l.texi: Likewise.
32763         * doc/posix-functions/iswspace_l.texi: Likewise.
32764         * doc/posix-functions/iswupper_l.texi: Likewise.
32765         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32766         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
32767         * doc/posix-functions/open_wmemstream.texi: Likewise.
32768         * doc/posix-functions/swscanf.texi: Likewise.
32769         * doc/posix-functions/towctrans_l.texi: Likewise.
32770         * doc/posix-functions/towlower.texi: Likewise.
32771         * doc/posix-functions/towlower_l.texi: Likewise.
32772         * doc/posix-functions/towupper.texi: Likewise.
32773         * doc/posix-functions/towupper_l.texi: Likewise.
32774         * doc/posix-functions/vfwprintf.texi: Likewise.
32775         * doc/posix-functions/vfwscanf.texi: Likewise.
32776         * doc/posix-functions/vswscanf.texi: Likewise.
32777         * doc/posix-functions/vwprintf.texi: Likewise.
32778         * doc/posix-functions/vwscanf.texi: Likewise.
32779         * doc/posix-functions/wcpcpy.texi: Likewise.
32780         * doc/posix-functions/wcpncpy.texi: Likewise.
32781         * doc/posix-functions/wcscasecmp.texi: Likewise.
32782         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
32783         * doc/posix-functions/wcscoll_l.texi: Likewise.
32784         * doc/posix-functions/wcsdup.texi: Likewise.
32785         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32786         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
32787         * doc/posix-functions/wcsnlen.texi: Likewise.
32788         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32789         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32790         * doc/posix-functions/wctrans_l.texi: Likewise.
32791         * doc/posix-functions/wctype_l.texi: Likewise.
32792         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
32793         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
32794         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
32795         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
32796         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
32797         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
32798         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
32799         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
32800         * doc/glibc-functions/wcschrnul.texi: Likewise.
32801         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32802         * doc/glibc-functions/wcstod_l.texi: Likewise.
32803         * doc/glibc-functions/wcstof_l.texi: Likewise.
32804         * doc/glibc-functions/wcstol_l.texi: Likewise.
32805         * doc/glibc-functions/wcstold_l.texi: Likewise.
32806         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32807         * doc/glibc-functions/wcstoq.texi: Likewise.
32808         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32809         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32810         * doc/glibc-functions/wcstouq.texi: Likewise.
32811         * doc/glibc-functions/wmempcpy.texi: Likewise.
32812
32813 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
32814             Eric Blake  <ebb9@byu.net>
32815             Paolo Bonzini  <bonzini@gnu.org>
32816             Bruno Haible  <bruno@clisp.org>
32817
32818         Make c-stack work on Haiku.
32819         * lib/c-stack.c (SA_ONSTACK): Define fallback.
32820         (c_stack_action): Use SA_ONSTACK flag.
32821
32822 2008-12-22  Bruno Haible  <bruno@clisp.org>
32823
32824         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
32825
32826 2008-12-22  Bruno Haible  <bruno@clisp.org>
32827
32828         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
32829         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
32830         being overridden.
32831         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
32832         New macros.
32833         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
32834         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
32835         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
32836         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
32837
32838 2008-12-22  Bruno Haible  <bruno@clisp.org>
32839
32840         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
32841         from test code.
32842
32843 2008-12-22  Eric Blake  <ebb9@byu.net>
32844
32845         Avoid gcc warnings on cygwin.
32846         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
32847         Avoid unused variable.
32848         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
32849         Likewise.
32850
32851 2008-12-22  Bruno Haible  <bruno@clisp.org>
32852
32853         Remove HAVE_MBRTOWC conditionals.
32854         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
32855         (mbscasecmp): Assume mbrtowc function.
32856         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
32857         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
32858         * lib/mbschr.c: Include mbuiter.h unconditionally.
32859         (mbschr): Assume mbrtowc function.
32860         * lib/mbscspn.c: Include mbuiter.h unconditionally.
32861         (mbscspn): Assume mbrtowc function.
32862         * lib/mbslen.c: Include mbuiter.h unconditionally.
32863         (mbslen): Assume mbrtowc function.
32864         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
32865         (mbsncasecmp): Assume mbrtowc function.
32866         * lib/mbsnlen.c: Include mbiter.h unconditionally.
32867         (mbsnlen): Assume mbrtowc function.
32868         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
32869         (mbspbrk): Assume mbrtowc function.
32870         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
32871         (mbspcasecmp): Assume mbrtowc function.
32872         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
32873         (mbsrchr): Assume mbrtowc function.
32874         * lib/mbssep.c: Include mbuiter.h unconditionally.
32875         (mbssep): Assume mbrtowc function.
32876         * lib/mbsspn.c: Include mbuiter.h unconditionally.
32877         (mbsspn): Assume mbrtowc function.
32878         * lib/mbsstr.c: Include mbuiter.h unconditionally.
32879         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
32880         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
32881         (mbstok_r): Assume mbrtowc function.
32882         * lib/propername.c: Include mbuiter.h unconditionally.
32883         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
32884         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
32885         (trim2): Assume mbrtowc function.
32886         * lib/mbswidth.c (mbsinit): Remove fallback definition.
32887         (mbsnwidth): Assume mbrtowc function.
32888         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
32889         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
32890         fallback definitions.
32891         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
32892
32893 2008-12-22  Bruno Haible  <bruno@clisp.org>
32894
32895         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
32896
32897 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
32898
32899         * modules/regex: Request emulations for the mb*/wc* functions we need.
32900         * m4/regex.m4: Don't look for those functions here.
32901         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
32902
32903 2008-12-22  Bruno Haible  <bruno@clisp.org>
32904
32905         * modules/fnmatch (Depends-on): Remove duplicated dependency.
32906
32907 2008-12-21  Bruno Haible  <bruno@clisp.org>
32908
32909         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
32910         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
32911         (Include): Remove conditionalization.
32912         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
32913         (Include): Remove conditionalization.
32914         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
32915         (Include): Remove conditionalization.
32916         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
32917         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32918         * NEWS: Mention the change.
32919         Reported by Alan Hourihane <alanh@fairlite.co.uk>
32920         via Sergey Poznyakoff <gray@gnu.org.ua>.
32921
32922 2008-12-21  Bruno Haible  <bruno@clisp.org>
32923
32924         * MODULES.html.sh (Extended multibyte and wide character utilities
32925         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
32926         wcrtomb, wcsrtombs.
32927         (Support for systems lacking POSIX:2008): Add accept, bind, close,
32928         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
32929         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
32930         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
32931
32932 2008-12-21  Bruno Haible  <bruno@clisp.org>
32933
32934         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
32935
32936 2008-12-21  Bruno Haible  <bruno@clisp.org>
32937
32938         * modules/wcsnrtombs-tests: New file.
32939         * tests/test-wcsnrtombs1.sh: New file.
32940         * tests/test-wcsnrtombs2.sh: New file.
32941         * tests/test-wcsnrtombs3.sh: New file.
32942         * tests/test-wcsnrtombs4.sh: New file.
32943         * tests/test-wcsnrtombs.c: New file.
32944
32945         New module 'wcsnrtombs'.
32946         * lib/wchar.in.h (wcsnrtombs): New declaration.
32947         * lib/wcsnrtombs.c: New file.
32948         * lib/wcsrtombs-state.c: New file.
32949         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
32950         (internal_state): Remove variable.
32951         * m4/wcsnrtombs.m4: New file.
32952         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
32953         compilation units.
32954         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
32955         HAVE_WCSNRTOMBS.
32956         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
32957         HAVE_WCSNRTOMBS.
32958         * modules/wcsnrtombs: New file.
32959         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
32960         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
32961
32962 2008-12-21  Bruno Haible  <bruno@clisp.org>
32963
32964         * modules/wcsrtombs-tests: New file.
32965         * tests/test-wcsrtombs1.sh: New file.
32966         * tests/test-wcsrtombs2.sh: New file.
32967         * tests/test-wcsrtombs3.sh: New file.
32968         * tests/test-wcsrtombs4.sh: New file.
32969         * tests/test-wcsrtombs.c: New file.
32970
32971         New module 'wcsrtombs'.
32972         * lib/wchar.in.h (wcsrtombs): New declaration.
32973         * lib/wcsrtombs.c: New file.
32974         * m4/wcsrtombs.m4: New file.
32975         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
32976         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32977         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
32978         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32979         * modules/wcsrtombs: New file.
32980         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
32981         bugs.
32982
32983 2008-12-21  Bruno Haible  <bruno@clisp.org>
32984
32985         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
32986         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
32987         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
32988         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
32989         if not correct.
32990         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
32991         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
32992         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32993         m4/locale-zh.m4, m4/codeset.m4.
32994         * doc/posix-functions/wcrtomb.texi: Document the bug.
32995
32996 2008-12-21  Bruno Haible  <bruno@clisp.org>
32997
32998         Work around a btowc() bug on IRIX 6.5.
32999         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
33000         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
33001         REPLACE_WTOBC if not.
33002         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
33003         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
33004         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
33005
33006 2008-12-21  Bruno Haible  <bruno@clisp.org>
33007
33008         * modules/wcrtomb-tests: New file.
33009         * tests/test-wcrtomb.sh: New file.
33010         * tests/test-wcrtomb.c: New file.
33011
33012         New module 'wcrtomb'.
33013         * lib/wchar.in.h (wcrtomb): New declaration.
33014         * lib/wcrtomb.c: New file.
33015         * m4/wcrtomb.m4: New file.
33016         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
33017         HAVE_WCRTOMB.
33018         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
33019         HAVE_WCRTOMB.
33020         * modules/wcrtomb: New file.
33021         * doc/posix-functions/wcrtomb.texi: Mention the new module.
33022
33023 2008-12-21  Bruno Haible  <bruno@clisp.org>
33024
33025         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
33026         * modules/mbsrtowcs (Files): Likewise.
33027         * modules/wctob (Files): Likewise.
33028         * modules/c-strcase-tests (Files): Likewise.
33029         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33030         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33031         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33032         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33033         * modules/vasnprintf-posix-tests (Files): Likewise.
33034
33035 2008-12-21  William Pursell  <bill.pursell@gmail.com>
33036
33037         gitlog-to-changelog: pass all command-line arguments to git-log
33038         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
33039         it is sometimes convenient to filter the commits in various ways.
33040         gitlog-to-changelog only allows --since to specify a start date,
33041         but git-log itself supports many other filtering mechanisms.
33042         At the moment, I want to filter by branch name.  Rather than
33043         adding a --branch option to gitlog-to-changelog, it seems more
33044         flexible to simply pass all options directly to git-log and let
33045         git do the work.  Notice that this effectively makes --since a
33046         redundant option for gitlog-to-changelog, but removing it would
33047         require current usage to change since calls would then require
33048         an additional '--'.
33049
33050 2008-12-21  Bruno Haible  <bruno@clisp.org>
33051
33052         * modules/mbsnrtowcs-tests: New file.
33053         * tests/test-mbsnrtowcs1.sh: New file.
33054         * tests/test-mbsnrtowcs2.sh: New file.
33055         * tests/test-mbsnrtowcs3.sh: New file.
33056         * tests/test-mbsnrtowcs4.sh: New file.
33057         * tests/test-mbsnrtowcs.c: New file.
33058
33059         New module 'mbsnrtowcs'.
33060         * lib/wchar.in.h (mbsnrtowcs): New declaration.
33061         * lib/mbsnrtowcs.c: New file.
33062         * lib/mbsrtowcs-state.c: New file.
33063         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
33064         (internal_state): Remove variable.
33065         * m4/mbsnrtowcs.m4: New file.
33066         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
33067         compilation units.
33068         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
33069         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33070         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
33071         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33072         * modules/mbsnrtowcs: New file.
33073         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
33074         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
33075         portability problem.
33076
33077 2008-12-21  Bruno Haible  <bruno@clisp.org>
33078
33079         Work around mbsrtowcs bug.
33080         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
33081         (gl_FUNC_MBSRTOWCS): Invoke it.
33082         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33083         m4/locale-zh.m4.
33084         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
33085
33086 2008-12-21  Bruno Haible  <bruno@clisp.org>
33087
33088         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
33089
33090 2008-12-21  Bruno Haible  <bruno@clisp.org>
33091
33092         Update doc for AIX.
33093         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
33094         16-bit wchar_t type.
33095         * doc/posix-functions/btowc.texi: Likewise.
33096         * doc/posix-functions/fgetwc.texi: Likewise.
33097         * doc/posix-functions/fgetws.texi: Likewise.
33098         * doc/posix-functions/fputwc.texi: Likewise.
33099         * doc/posix-functions/fputws.texi: Likewise.
33100         * doc/posix-functions/fwide.texi: Likewise.
33101         * doc/posix-functions/fwprintf.texi: Likewise.
33102         * doc/posix-functions/fwscanf.texi: Likewise.
33103         * doc/posix-functions/getwchar.texi: Likewise.
33104         * doc/posix-functions/getwc.texi: Likewise.
33105         * doc/posix-functions/iswalnum.texi: Likewise.
33106         * doc/posix-functions/iswalpha.texi: Likewise.
33107         * doc/posix-functions/iswblank.texi: Likewise.
33108         * doc/posix-functions/iswcntrl.texi: Likewise.
33109         * doc/posix-functions/iswctype.texi: Likewise.
33110         * doc/posix-functions/iswdigit.texi: Likewise.
33111         * doc/posix-functions/iswgraph.texi: Likewise.
33112         * doc/posix-functions/iswlower.texi: Likewise.
33113         * doc/posix-functions/iswprint.texi: Likewise.
33114         * doc/posix-functions/iswpunct.texi: Likewise.
33115         * doc/posix-functions/iswspace.texi: Likewise.
33116         * doc/posix-functions/iswupper.texi: Likewise.
33117         * doc/posix-functions/iswxdigit.texi: Likewise.
33118         * doc/posix-functions/mbrtowc.texi: Likewise.
33119         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33120         * doc/posix-functions/mbstowcs.texi: Likewise.
33121         * doc/posix-functions/mbtowc.texi: Likewise.
33122         * doc/posix-functions/putwchar.texi: Likewise.
33123         * doc/posix-functions/putwc.texi: Likewise.
33124         * doc/posix-functions/swprintf.texi: Likewise.
33125         * doc/posix-functions/tolower.texi: Likewise.
33126         * doc/posix-functions/toupper.texi: Likewise.
33127         * doc/posix-functions/towctrans.texi: Likewise.
33128         * doc/posix-functions/ungetwc.texi: Likewise.
33129         * doc/posix-functions/vswprintf.texi: Likewise.
33130         * doc/posix-functions/wcrtomb.texi: Likewise.
33131         * doc/posix-functions/wcscat.texi: Likewise.
33132         * doc/posix-functions/wcschr.texi: Likewise.
33133         * doc/posix-functions/wcscmp.texi: Likewise.
33134         * doc/posix-functions/wcscoll.texi: Likewise.
33135         * doc/posix-functions/wcscpy.texi: Likewise.
33136         * doc/posix-functions/wcscspn.texi: Likewise.
33137         * doc/posix-functions/wcsftime.texi: Likewise.
33138         * doc/posix-functions/wcslen.texi: Likewise.
33139         * doc/posix-functions/wcsncat.texi: Likewise.
33140         * doc/posix-functions/wcsncmp.texi: Likewise.
33141         * doc/posix-functions/wcsncpy.texi: Likewise.
33142         * doc/posix-functions/wcspbrk.texi: Likewise.
33143         * doc/posix-functions/wcsrchr.texi: Likewise.
33144         * doc/posix-functions/wcsrtombs.texi: Likewise.
33145         * doc/posix-functions/wcsspn.texi: Likewise.
33146         * doc/posix-functions/wcsstr.texi: Likewise.
33147         * doc/posix-functions/wcstod.texi: Likewise.
33148         * doc/posix-functions/wcstof.texi: Likewise.
33149         * doc/posix-functions/wcstoimax.texi: Likewise.
33150         * doc/posix-functions/wcstok.texi: Likewise.
33151         * doc/posix-functions/wcstold.texi: Likewise.
33152         * doc/posix-functions/wcstoll.texi: Likewise.
33153         * doc/posix-functions/wcstol.texi: Likewise.
33154         * doc/posix-functions/wcstombs.texi: Likewise.
33155         * doc/posix-functions/wcstoull.texi: Likewise.
33156         * doc/posix-functions/wcstoul.texi: Likewise.
33157         * doc/posix-functions/wcstoumax.texi: Likewise.
33158         * doc/posix-functions/wcswidth.texi: Likewise.
33159         * doc/posix-functions/wcsxfrm.texi: Likewise.
33160         * doc/posix-functions/wctob.texi: Likewise.
33161         * doc/posix-functions/wctomb.texi: Likewise.
33162         * doc/posix-functions/wctrans.texi: Likewise.
33163         * doc/posix-functions/wctype.texi: Likewise.
33164         * doc/posix-functions/wcwidth.texi: Likewise.
33165         * doc/posix-functions/wmemchr.texi: Likewise.
33166         * doc/posix-functions/wmemcmp.texi: Likewise.
33167         * doc/posix-functions/wmemcpy.texi: Likewise.
33168         * doc/posix-functions/wmemmove.texi: Likewise.
33169         * doc/posix-functions/wmemset.texi: Likewise.
33170         * doc/posix-functions/wprintf.texi: Likewise.
33171         * doc/posix-functions/wscanf.texi: Likewise.
33172
33173 2008-12-21  Bruno Haible  <bruno@clisp.org>
33174
33175         Update doc for HP-UX 11.11.
33176         * doc/posix-functions/btowc.texi: Clarify that the function is missing
33177         in HP-UX version 11.00, not in all versions of HP-UX 11.
33178         * doc/posix-functions/fwide.texi: Likewise.
33179         * doc/posix-functions/fwprintf.texi: Likewise.
33180         * doc/posix-functions/fwscanf.texi: Likewise.
33181         * doc/posix-functions/inet_ntop.texi: Likewise.
33182         * doc/posix-functions/inet_pton.texi: Likewise.
33183         * doc/posix-functions/mbrlen.texi: Likewise.
33184         * doc/posix-functions/mbrtowc.texi: Likewise.
33185         * doc/posix-functions/mbsinit.texi: Likewise.
33186         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33187         * doc/posix-functions/swprintf.texi: Likewise.
33188         * doc/posix-functions/swscanf.texi: Likewise.
33189         * doc/posix-functions/towctrans.texi: Likewise.
33190         * doc/posix-functions/vfwprintf.texi: Likewise.
33191         * doc/posix-functions/vswprintf.texi: Likewise.
33192         * doc/posix-functions/vwprintf.texi: Likewise.
33193         * doc/posix-functions/wcrtomb.texi: Likewise.
33194         * doc/posix-functions/wcsrtombs.texi: Likewise.
33195         * doc/posix-functions/wcsstr.texi: Likewise.
33196         * doc/posix-functions/wctob.texi: Likewise.
33197         * doc/posix-functions/wctrans.texi: Likewise.
33198         * doc/posix-functions/wmemchr.texi: Likewise.
33199         * doc/posix-functions/wmemcmp.texi: Likewise.
33200         * doc/posix-functions/wmemcpy.texi: Likewise.
33201         * doc/posix-functions/wmemmove.texi: Likewise.
33202         * doc/posix-functions/wmemset.texi: Likewise.
33203         * doc/posix-functions/wprintf.texi: Likewise.
33204         * doc/posix-functions/wscanf.texi: Likewise.
33205
33206 2008-12-21  Bruno Haible  <bruno@clisp.org>
33207
33208         Work around a portability problem.
33209         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
33210         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
33211
33212 2008-12-20  Bruno Haible  <bruno@clisp.org>
33213
33214         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
33215         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
33216         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
33217         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
33218         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
33219
33220         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
33221         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
33222         set.
33223         (GNULIB_defined_mbstate_t): New macro.
33224         (mbsinit): Redefine if REPLACE_MBSINIT is set.
33225         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
33226         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
33227         reuses the system's mbrtowc function but works around the bugs.
33228         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
33229         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
33230         macros.
33231         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
33232         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
33233         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
33234         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
33235         REPLACE_MBSINIT if mbsinit needs to be overridden.
33236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
33237         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33238         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
33239         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33240         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33241         m4/locale-zh.m4.
33242         (Depends): Add mbsinit.
33243         * modules/mbsinit (Depends): Add mbrtowc.
33244         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
33245
33246 2008-12-20  Bruno Haible  <bruno@clisp.org>
33247
33248         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
33249         so that there are no conversion errors on AIX.
33250         * tests/test-mbsrtowcs.c (main): LIkewise.
33251
33252 2008-12-20  Bruno Haible  <bruno@clisp.org>
33253
33254         Work around wctob bug on Solaris <= 9.
33255         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
33256         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
33257         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
33258         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
33259         * modules/wctob (Files): Add m4/locale-fr.m4.
33260         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
33261
33262 2008-12-20  Bruno Haible  <bruno@clisp.org>
33263
33264         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
33265         /dev/null.
33266         * tests/test-select-in.sh: Likewise.
33267         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33268
33269 2008-12-20  Bruno Haible  <bruno@clisp.org>
33270
33271         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
33272         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
33273         Cygwin 1.5.x.
33274
33275 2008-12-20  Bruno Haible  <bruno@clisp.org>
33276
33277         Ensure mbstate_t is defined on HP-UX 11.11.
33278         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
33279         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
33280         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
33281         AC_USE_SYSTEM_EXTENSIONS.
33282         * modules/fnmatch (Depends-on): Add extensions.
33283         * modules/mbrlen (Depends-on): Likewise.
33284         * modules/mbrtowc (Depends-on): Likewise.
33285         * modules/mbsinit (Depends-on): Likewise.
33286         * modules/mbsrtowcs (Depends-on): Likewise.
33287         * modules/mbswidth (Depends-on): Likewise.
33288         * modules/quotearg (Depends-on): Likewise.
33289         * modules/strftime (Depends-on): Likewise.
33290
33291 2008-12-20  Bruno Haible  <bruno@clisp.org>
33292
33293         Ensure wctob is declared on IRIX 6.5.
33294         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
33295         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
33296         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
33297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
33298         of HAVE_WCTOB.
33299         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
33300         HAVE_WCTOB.
33301         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
33302
33303 2008-12-19  Bruno Haible  <bruno@clisp.org>
33304
33305         * modules/mbsrtowcs-tests: New file.
33306         * tests/test-mbsrtowcs1.sh: New file.
33307         * tests/test-mbsrtowcs2.sh: New file.
33308         * tests/test-mbsrtowcs3.sh: New file.
33309         * tests/test-mbsrtowcs4.sh: New file.
33310         * tests/test-mbsrtowcs.c: New file.
33311
33312         New module 'mbsrtowcs'.
33313         * lib/wchar.in.h (mbsrtowcs): New declaration.
33314         * lib/mbsrtowcs.c: New file.
33315         * m4/mbsrtowcs.m4: New file.
33316         * modules/mbsrtowcs: New file.
33317         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
33318         HAVE_MBSRTOWCS.
33319         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
33320         HAVE_MBSRTOWCS.
33321         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
33322
33323 2008-12-19  Bruno Haible  <bruno@clisp.org>
33324
33325         New module 'mbrlen'.
33326         * lib/wchar.in.h (mbrlen): New declaration.
33327         * lib/mbrlen.c: New file.
33328         * m4/mbrlen.m4: New file.
33329         * modules/mbrlen: New file.
33330         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
33331         HAVE_MBRLEN.
33332         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
33333         HAVE_MBRLEN.
33334         * doc/posix-functions/mbrlen.texi: Document the new module.
33335
33336 2008-12-19  Bruno Haible  <bruno@clisp.org>
33337
33338         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
33339         * modules/mbrtowc (Depends-on): Add verify.
33340         Suggested by Paul Eggert.
33341
33342 2008-12-18  Bruno Haible  <bruno@clisp.org>
33343
33344         * modules/mbsinit-tests: New file.
33345         * tests/test-mbsinit.sh: New file.
33346         * tests/test-mbsinit.c: New file.
33347
33348 2008-12-18  Bruno Haible  <bruno@clisp.org>
33349
33350         * modules/mbrtowc-tests: New file.
33351         * tests/test-mbrtowc1.sh: New file.
33352         * tests/test-mbrtowc2.sh: New file.
33353         * tests/test-mbrtowc3.sh: New file.
33354         * tests/test-mbrtowc4.sh: New file.
33355         * tests/test-mbrtowc.c: New file.
33356
33357         New module 'mbrtowc'.
33358         * lib/wchar.in.h (mbstate_t): Override when the system does not have
33359         mbsinit and mbrtowc.
33360         (mbrtowc): New declaration.
33361         * lib/mbrtowc.c: New file.
33362         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
33363         * modules/mbrtowc: New file.
33364         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
33365         HAVE_MBRTOWC.
33366         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
33367         HAVE_MBRTOWC.
33368         * doc/posix-functions/mbrtowc.texi: Document the new module.
33369
33370 2008-12-18  Bruno Haible  <bruno@clisp.org>
33371
33372         New module 'wctob'.
33373         * lib/wchar.in.h (wctob): New declaration.
33374         * lib/wctob.c: New file.
33375         * m4/wctob.m4: New file.
33376         * modules/wctob: New file.
33377         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
33378         HAVE_WCTOB.
33379         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
33380         * doc/posix-functions/wctob.texi: Document the new module.
33381
33382 2008-12-18  Bruno Haible  <bruno@clisp.org>
33383
33384         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
33385         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
33386
33387 2008-12-18  Simon Josefsson  <simon@josefsson.org>
33388
33389         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
33390         G. Christensen" <tgc@jupiterrise.com>.
33391
33392         * lib/flock.c: Need to include errno.h.  Reported by "Tom
33393         G. Christensen" <tgc@jupiterrise.com>.
33394
33395         * lib/flock.c: Need to include string.h.  Reported by "Tom
33396         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
33397         <ebb9@byu.net>.
33398
33399 2008-12-18  Bruno Haible  <bruno@clisp.org>
33400
33401         * m4/locale-ja.m4: New file, from GNU gettext.
33402
33403 2008-12-17  Bruno Haible  <bruno@clisp.org>
33404
33405         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
33406         Suggested by Eric Blake.
33407
33408 2008-12-17  Bruno Haible  <bruno@clisp.org>
33409
33410         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
33411
33412 2008-12-17  Bruno Haible  <bruno@clisp.org>
33413
33414         * lib/mbsinit.c: Include verify.h. Verify an assumption.
33415         * modules/mbsinit (Depends-on): Add verify.
33416         Suggested by Paul Eggert.
33417
33418 2008-12-17  Bruno Haible  <bruno@clisp.org>
33419
33420         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
33421         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
33422         gl_FUNC_MBRTOWC.
33423         * m4/mbiter.m4 (gl_MBITER): LIkewise.
33424         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
33425         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
33426         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
33427         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
33428         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
33429         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
33430         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
33431         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
33432         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
33433         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
33434         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
33435         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
33436         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
33437         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
33438         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
33439         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
33440         * modules/trim (configure.ac): Likewise.
33441
33442 2008-12-17  Bruno Haible  <bruno@clisp.org>
33443
33444         * modules/btowc-tests: New file.
33445         * tests/test-btowc1.sh: New file.
33446         * tests/test-btowc2.sh: New file.
33447         * tests/test-btowc.c: New file.
33448
33449         New module 'btowc'.
33450         * lib/wchar.in.h (btowc): New declaration.
33451         * lib/btowc.c: New file.
33452         * m4/btowc.m4: New file.
33453         * modules/btowc: New file.
33454         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
33455         HAVE_BTOWC.
33456         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
33457         * doc/posix-functions/btowc.texi: Document the new module.
33458
33459 2008-12-17  Bruno Haible  <bruno@clisp.org>
33460
33461         New module 'mbsinit'.
33462         * lib/wchar.in.h (mbsinit): New declaration.
33463         * lib/mbsinit.c: New file.
33464         * m4/mbsinit.m4: New file.
33465         * modules/mbsinit: New file.
33466         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
33467         HAVE_MBSINIT.
33468         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
33469         HAVE_MBSINIT.
33470         * doc/posix-functions/mbsinit.texi: Document the new module.
33471
33472 2008-12-16  Bruno Haible  <bruno@clisp.org>
33473
33474         * lib/unistd.in.h: Add comment.
33475         * tests/test-environ.c: Don't include <stdlib.h>.
33476
33477 2008-12-16  Bruno Haible  <bruno@clisp.org>
33478
33479         * lib/parse-duration.h (parse_duration): Document return value
33480         convention.
33481         * lib/parse-duration.c: Include specification header first. Add
33482         comments.
33483         (_): Remove macro.
33484         (parse_year_month_day, parse_hour_minute_second): Move side effects
33485         outside of strchr call.
33486         (parse_non_iso8601): Move side effects outside of isspace call.
33487         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
33488         call.
33489
33490 2008-12-16  Bruno Haible  <bruno@clisp.org>
33491
33492         * tests/test-parse-duration.sh: Produce no output when the test
33493         succeeds.
33494
33495 2008-12-16  Bruno Haible  <bruno@clisp.org>
33496
33497         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
33498         expressions.
33499
33500 2008-12-15  Bruno Haible  <bruno@clisp.org>
33501
33502         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
33503         * doc/glibc-functions/flistxattr.texi: Likewise.
33504         * doc/glibc-functions/fopencookie.texi: Likewise.
33505         * doc/glibc-functions/fremovexattr.texi: Likewise.
33506         * doc/glibc-functions/fsetxattr.texi: Likewise.
33507         * doc/glibc-functions/getxattr.texi: Likewise.
33508         * doc/glibc-functions/lgetxattr.texi: Likewise.
33509         * doc/glibc-functions/listxattr.texi: Likewise.
33510         * doc/glibc-functions/llistxattr.texi: Likewise.
33511         * doc/glibc-functions/lremovexattr.texi: Likewise.
33512         * doc/glibc-functions/lsetxattr.texi: Likewise.
33513         * doc/glibc-functions/removexattr.texi: Likewise.
33514         * doc/glibc-functions/setxattr.texi: Likewise.
33515         * doc/posix-functions/open_memstream.texi: Likewise.
33516
33517 2008-12-15  Eric Blake  <ebb9@byu.net>
33518
33519         Update doc for cygwin 1.7.
33520         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
33521         functions.
33522         * doc/posix-functions/fchmodat.texi: Likewise.
33523         * doc/posix-functions/fchownat.texi: Likewise.
33524         * doc/posix-functions/fdopendir.texi: Likewise.
33525         * doc/posix-functions/fmemopen.texi: Likewise.
33526         * doc/posix-functions/freeaddrinfo.texi: Likewise.
33527         * doc/posix-functions/fstatat.texi: Likewise.
33528         * doc/posix-functions/futimens.texi: Likewise.
33529         * doc/posix-functions/gai_strerror.texi: Likewise.
33530         * doc/posix-functions/getaddrinfo.texi: Likewise.
33531         * doc/posix-functions/getnameinfo.texi: Likewise.
33532         * doc/posix-functions/if_freenameindex.texi: Likewise.
33533         * doc/posix-functions/if_indextoname.texi: Likewise.
33534         * doc/posix-functions/if_nameindex.texi: Likewise.
33535         * doc/posix-functions/if_nametoindex.texi: Likewise.
33536         * doc/posix-functions/insque.texi: Likewise.
33537         * doc/posix-functions/linkat.texi: Likewise.
33538         * doc/posix-functions/llrint.texi: Likewise.
33539         * doc/posix-functions/llrintf.texi: Likewise.
33540         * doc/posix-functions/llrintl.texi: Likewise.
33541         * doc/posix-functions/lockf.texi: Likewise.
33542         * doc/posix-functions/lrintl.texi: Likewise.
33543         * doc/posix-functions/mkdirat.texi: Likewise.
33544         * doc/posix-functions/mkfifoat.texi: Likewise.
33545         * doc/posix-functions/mknodat.texi: Likewise.
33546         * doc/posix-functions/mq_close.texi: Likewise.
33547         * doc/posix-functions/mq_getattr.texi: Likewise.
33548         * doc/posix-functions/mq_notify.texi: Likewise.
33549         * doc/posix-functions/mq_open.texi: Likewise.
33550         * doc/posix-functions/mq_receive.texi: Likewise.
33551         * doc/posix-functions/mq_send.texi: Likewise.
33552         * doc/posix-functions/mq_setattr.texi: Likewise.
33553         * doc/posix-functions/mq_timedreceive.texi: Likewise.
33554         * doc/posix-functions/mq_timedsend.texi: Likewise.
33555         * doc/posix-functions/mq_unlink.texi: Likewise.
33556         * doc/posix-functions/open_memstream.texi: Likewise.
33557         * doc/posix-functions/openat.texi: Likewise.
33558         * doc/posix-functions/posix_fadvise.texi: Likewise.
33559         * doc/posix-functions/posix_fallocate.texi: Likewise.
33560         * doc/posix-functions/posix_madvise.texi: Likewise.
33561         * doc/posix-functions/posix_memalign.texi: Likewise.
33562         * doc/posix-functions/posix_openpt.texi: Likewise.
33563         * doc/posix-functions/readlinkat.texi: Likewise.
33564         * doc/posix-functions/remque.texi: Likewise.
33565         * doc/posix-functions/renameat.texi: Likewise.
33566         * doc/posix-functions/rintl.texi: Likewise.
33567         * doc/posix-functions/sem_unlink.texi: Likewise.
33568         * doc/posix-functions/shm_open.texi: Likewise.
33569         * doc/posix-functions/shm_unlink.texi: Likewise.
33570         * doc/posix-functions/signgam.texi: Likewise.
33571         * doc/posix-functions/sigset.texi: Likewise.
33572         * doc/posix-functions/stpcpy.texi: Likewise.
33573         * doc/posix-functions/stpncpy.texi: Likewise.
33574         * doc/posix-functions/strerror.texi: Likewise.
33575         * doc/posix-functions/strtod.texi: Likewise.
33576         * doc/posix-functions/symlinkat.texi: Likewise.
33577         * doc/posix-functions/unlinkat.texi: Likewise.
33578         * doc/posix-functions/utimensat.texi: Likewise.
33579         * doc/glibc-functions/bindresvport.texi: Likewise.
33580         * doc/glibc-functions/dn_expand.texi: Likewise.
33581         * doc/glibc-functions/exp10.texi: Likewise.
33582         * doc/glibc-functions/exp10f.texi: Likewise.
33583         * doc/glibc-functions/fgetxattr.texi: Likewise.
33584         * doc/glibc-functions/flistxattr.texi: Likewise.
33585         * doc/glibc-functions/fopencookie.texi: Likewise.
33586         * doc/glibc-functions/freeifaddrs.texi: Likewise.
33587         * doc/glibc-functions/fremovexattr.texi: Likewise.
33588         * doc/glibc-functions/fsetxattr.texi: Likewise.
33589         * doc/glibc-functions/getifaddrs.texi: Likewise.
33590         * doc/glibc-functions/getxattr.texi: Likewise.
33591         * doc/glibc-functions/lgetxattr.texi: Likewise.
33592         * doc/glibc-functions/listxattr.texi: Likewise.
33593         * doc/glibc-functions/llistxattr.texi: Likewise.
33594         * doc/glibc-functions/lremovexattr.texi: Likewise.
33595         * doc/glibc-functions/lsetxattr.texi: Likewise.
33596         * doc/glibc-functions/pow10.texi: Likewise.
33597         * doc/glibc-functions/pow10f.texi: Likewise.
33598         * doc/glibc-functions/rcmd_af.texi: Likewise.
33599         * doc/glibc-functions/removexattr.texi: Likewise.
33600         * doc/glibc-functions/res_init.texi: Likewise.
33601         * doc/glibc-functions/res_mkquery.texi: Likewise.
33602         * doc/glibc-functions/res_query.texi: Likewise.
33603         * doc/glibc-functions/res_querydomain.texi: Likewise.
33604         * doc/glibc-functions/res_send.texi: Likewise.
33605         * doc/glibc-functions/rresvport_af.texi: Likewise.
33606         * doc/glibc-functions/setxattr.texi: Likewise.
33607         * doc/glibc-functions/strcasestr.texi: Likewise.
33608
33609 2008-12-15  Bruno Haible  <bruno@clisp.org>
33610
33611         Fix compilation error on OSF/1 4.0.
33612         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
33613         <sys/time.h>, simply delegate to the system header.
33614         Reported by Daniel Richard G. <oss@teragram.com>.
33615
33616 2008-12-15  Bruno Haible  <bruno@clisp.org>
33617
33618         * doc/posix-functions/openat.texi: Mention the 'openat' module.
33619         * doc/posix-functions/fchmodat.texi: Likewise.
33620         * doc/posix-functions/fchownat.texi: Likewise.
33621         * doc/posix-functions/fdopendir.texi: Likewise.
33622         * doc/posix-functions/fstatat.texi: Likewise.
33623         * doc/posix-functions/mkdirat.texi: Likewise.
33624         * doc/posix-functions/unlinkat.texi: Likewise.
33625
33626 2008-12-14  Bruno Haible  <bruno@clisp.org>
33627
33628         Update doc for POSIX:2008.
33629         * doc/posix-functions/faccessat.texi: New file.
33630         * doc/posix-functions/fchmodat.texi: New file.
33631         * doc/posix-functions/fchownat.texi: New file.
33632         * doc/posix-functions/fdopendir.texi: New file.
33633         * doc/posix-functions/fstatat.texi: New file.
33634         * doc/posix-functions/futimens.texi: New file.
33635         * doc/posix-functions/linkat.texi: New file.
33636         * doc/posix-functions/mkdirat.texi: New file.
33637         * doc/posix-functions/mkfifoat.texi: New file.
33638         * doc/posix-functions/mknodat.texi: New file.
33639         * doc/posix-functions/open_wmemstream.texi: New file.
33640         * doc/posix-functions/openat.texi: New file.
33641         * doc/posix-functions/psiginfo.texi: New file.
33642         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
33643         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
33644         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
33645         * doc/posix-functions/readlinkat.texi: New file.
33646         * doc/posix-functions/renameat.texi: New file.
33647         * doc/posix-functions/strerror_l.texi: New file.
33648         * doc/posix-functions/symlinkat.texi: New file.
33649         * doc/posix-functions/unlinkat.texi: New file.
33650         * doc/posix-functions/utimensat.texi: New file.
33651         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33652
33653 2008-12-14  Bruno Haible  <bruno@clisp.org>
33654
33655         Update doc for POSIX:2008.
33656         * doc/posix-functions/alphasort.texi: Renamed from
33657         doc/glibc-functions/alphasort.texi.
33658         * doc/posix-functions/dirfd.texi: Renamed from
33659         doc/glibc-functions/dirfd.texi.
33660         * doc/posix-functions/dprintf.texi: Renamed from
33661         doc/glibc-functions/dprintf.texi.
33662         * doc/posix-functions/duplocale.texi: Renamed from
33663         doc/glibc-functions/duplocale.texi.
33664         * doc/posix-functions/fexecve.texi: Renamed from
33665         doc/glibc-functions/fexecve.texi.
33666         * doc/posix-functions/fmemopen.texi: Renamed from
33667         doc/glibc-functions/fmemopen.texi.
33668         * doc/posix-functions/freelocale.texi: Renamed from
33669         doc/glibc-functions/freelocale.texi.
33670         * doc/posix-functions/getdate_err.texi: Renamed from
33671         doc/glibc-functions/getdate_err.texi.
33672         * doc/posix-functions/isalnum_l.texi: Renamed from
33673         doc/glibc-functions/isalnum_l.texi.
33674         * doc/posix-functions/isalpha_l.texi: Renamed from
33675         doc/glibc-functions/isalpha_l.texi.
33676         * doc/posix-functions/isblank_l.texi: Renamed from
33677         doc/glibc-functions/isblank_l.texi.
33678         * doc/posix-functions/iscntrl_l.texi: Renamed from
33679         doc/glibc-functions/iscntrl_l.texi.
33680         * doc/posix-functions/isdigit_l.texi: Renamed from
33681         doc/glibc-functions/isdigit_l.texi.
33682         * doc/posix-functions/isgraph_l.texi: Renamed from
33683         doc/glibc-functions/isgraph_l.texi.
33684         * doc/posix-functions/islower_l.texi: Renamed from
33685         doc/glibc-functions/islower_l.texi.
33686         * doc/posix-functions/isprint_l.texi: Renamed from
33687         doc/glibc-functions/isprint_l.texi.
33688         * doc/posix-functions/ispunct_l.texi: Renamed from
33689         doc/glibc-functions/ispunct_l.texi.
33690         * doc/posix-functions/isspace_l.texi: Renamed from
33691         doc/glibc-functions/isspace_l.texi.
33692         * doc/posix-functions/isupper_l.texi: Renamed from
33693         doc/glibc-functions/isupper_l.texi.
33694         * doc/posix-functions/iswalnum_l.texi: Renamed from
33695         doc/glibc-functions/iswalnum_l.texi.
33696         * doc/posix-functions/iswalpha_l.texi: Renamed from
33697         doc/glibc-functions/iswalpha_l.texi.
33698         * doc/posix-functions/iswblank_l.texi: Renamed from
33699         doc/glibc-functions/iswblank_l.texi.
33700         * doc/posix-functions/iswcntrl_l.texi: Renamed from
33701         doc/glibc-functions/iswcntrl_l.texi.
33702         * doc/posix-functions/iswctype_l.texi: Renamed from
33703         doc/glibc-functions/iswctype_l.texi.
33704         * doc/posix-functions/iswdigit_l.texi: Renamed from
33705         doc/glibc-functions/iswdigit_l.texi.
33706         * doc/posix-functions/iswgraph_l.texi: Renamed from
33707         doc/glibc-functions/iswgraph_l.texi.
33708         * doc/posix-functions/iswlower_l.texi: Renamed from
33709         doc/glibc-functions/iswlower_l.texi.
33710         * doc/posix-functions/iswprint_l.texi: Renamed from
33711         doc/glibc-functions/iswprint_l.texi.
33712         * doc/posix-functions/iswpunct_l.texi: Renamed from
33713         doc/glibc-functions/iswpunct_l.texi.
33714         * doc/posix-functions/iswspace_l.texi: Renamed from
33715         doc/glibc-functions/iswspace_l.texi.
33716         * doc/posix-functions/iswupper_l.texi: Renamed from
33717         doc/glibc-functions/iswupper_l.texi.
33718         * doc/posix-functions/iswxdigit_l.texi: Renamed from
33719         doc/glibc-functions/iswxdigit_l.texi.
33720         * doc/posix-functions/isxdigit_l.texi: Renamed from
33721         doc/glibc-functions/isxdigit_l.texi.
33722         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
33723         doc/glibc-functions/mbsnrtowcs.texi.
33724         * doc/posix-functions/mkdtemp.texi: Renamed from
33725         doc/glibc-functions/mkdtemp.texi.
33726         * doc/posix-functions/newlocale.texi: Renamed from
33727         doc/glibc-functions/newlocale.texi.
33728         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
33729         doc/glibc-functions/nl_langinfo_l.texi.
33730         * doc/posix-functions/open_memstream.texi: Renamed from
33731         doc/glibc-functions/open_memstream.texi.
33732         * doc/posix-functions/opterr.texi: Renamed from
33733         doc/glibc-functions/opterr.texi.
33734         * doc/posix-functions/optind.texi: Renamed from
33735         doc/glibc-functions/optind.texi.
33736         * doc/posix-functions/optopt.texi: Renamed from
33737         doc/glibc-functions/optopt.texi.
33738         * doc/posix-functions/psignal.texi: Renamed from
33739         doc/glibc-functions/psignal.texi.
33740         * doc/posix-functions/scandir.texi: Renamed from
33741         doc/glibc-functions/scandir.texi.
33742         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
33743         doc/glibc-functions/sched_get_priority_min.texi.
33744         * doc/posix-functions/signgam.texi: Renamed from
33745         doc/glibc-functions/signgam.texi.
33746         * doc/posix-functions/stpcpy.texi: Renamed from
33747         doc/glibc-functions/stpcpy.texi.
33748         * doc/posix-functions/stpncpy.texi: Renamed from
33749         doc/glibc-functions/stpncpy.texi.
33750         * doc/posix-functions/strcasecmp_l.texi: Renamed from
33751         doc/glibc-functions/strcasecmp_l.texi.
33752         * doc/posix-functions/strcoll_l.texi: Renamed from
33753         doc/glibc-functions/strcoll_l.texi.
33754         * doc/posix-functions/strfmon_l.texi: Renamed from
33755         doc/glibc-functions/strfmon_l.texi.
33756         * doc/posix-functions/strftime_l.texi: Renamed from
33757         doc/glibc-functions/strftime_l.texi.
33758         * doc/posix-functions/strncasecmp_l.texi: Renamed from
33759         doc/glibc-functions/strncasecmp_l.texi.
33760         * doc/posix-functions/strndup.texi: Renamed from
33761         doc/glibc-functions/strndup.texi.
33762         * doc/posix-functions/strnlen.texi: Renamed from
33763         doc/glibc-functions/strnlen.texi.
33764         * doc/posix-functions/strsignal.texi: Renamed from
33765         doc/glibc-functions/strsignal.texi.
33766         * doc/posix-functions/strxfrm_l.texi: Renamed from
33767         doc/glibc-functions/strxfrm_l.texi.
33768         * doc/posix-functions/timer_gettime.texi: Renamed from
33769         doc/glibc-functions/timer_gettime.texi.
33770         * doc/posix-functions/tolower_l.texi: Renamed from
33771         doc/glibc-functions/tolower_l.texi.
33772         * doc/posix-functions/toupper_l.texi: Renamed from
33773         doc/glibc-functions/toupper_l.texi.
33774         * doc/posix-functions/towctrans_l.texi: Renamed from
33775         doc/glibc-functions/towctrans_l.texi.
33776         * doc/posix-functions/towlower_l.texi: Renamed from
33777         doc/glibc-functions/towlower_l.texi.
33778         * doc/posix-functions/towupper_l.texi: Renamed from
33779         doc/glibc-functions/towupper_l.texi.
33780         * doc/posix-functions/uselocale.texi: Renamed from
33781         doc/glibc-functions/uselocale.texi.
33782         * doc/posix-functions/vdprintf.texi: Renamed from
33783         doc/glibc-functions/vdprintf.texi.
33784         * doc/posix-functions/wcpcpy.texi:
33785         Renamed from doc/glibc-functions/wcpcpy.texi.
33786         * doc/posix-functions/wcpncpy.texi: Renamed from
33787         doc/glibc-functions/wcpncpy.texi.
33788         * doc/posix-functions/wcscasecmp.texi: Renamed from
33789         doc/glibc-functions/wcscasecmp.texi.
33790         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
33791         doc/glibc-functions/wcscasecmp_l.texi.
33792         * doc/posix-functions/wcscoll_l.texi: Renamed from
33793         doc/glibc-functions/wcscoll_l.texi.
33794         * doc/posix-functions/wcsdup.texi: Renamed from
33795         doc/glibc-functions/wcsdup.texi.
33796         * doc/posix-functions/wcsncasecmp.texi: Renamed from
33797         doc/glibc-functions/wcsncasecmp.texi.
33798         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
33799         doc/glibc-functions/wcsncasecmp_l.texi.
33800         * doc/posix-functions/wcsnlen.texi: Renamed from
33801         doc/glibc-functions/wcsnlen.texi.
33802         * doc/posix-functions/wcsnrtombs.texi: Renamed from
33803         doc/glibc-functions/wcsnrtombs.texi.
33804         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
33805         doc/glibc-functions/wcsxfrm_l.texi.
33806         * doc/posix-functions/wctrans_l.texi: Renamed from
33807         doc/glibc-functions/wctrans_l.texi.
33808         * doc/posix-functions/wctype_l.texi: Renamed from
33809         doc/glibc-functions/wctype_l.texi.
33810         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33811         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
33812         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
33813         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
33814         these subsections.
33815         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
33816         Remove sections.
33817
33818 2008-12-14  Bruno Haible  <bruno@clisp.org>
33819
33820         Update doc for POSIX:2008.
33821         * doc/posix-functions/*.texi: Update URL of POSIX specification.
33822
33823 2008-12-14  Bruno Haible  <bruno@clisp.org>
33824
33825         Update doc for POSIX:2008.
33826         * doc/pastposix-functions/bcmp.texi: Renamed from
33827         doc/posix-functions/bcmp.texi.
33828         * doc/pastposix-functions/bcopy.texi: Renamed from
33829         doc/posix-functions/bcopy.texi.
33830         * doc/pastposix-functions/bsd_signal.texi: Renamed from
33831         doc/posix-functions/bsd_signal.texi.
33832         * doc/pastposix-functions/bzero.texi: Renamed from
33833         doc/posix-functions/bzero.texi.
33834         * doc/pastposix-functions/ecvt.texi: Renamed from
33835         doc/posix-functions/ecvt.texi.
33836         * doc/pastposix-functions/fcvt.texi: Renamed from
33837         doc/posix-functions/fcvt.texi.
33838         * doc/pastposix-functions/ftime.texi: Renamed from
33839         doc/posix-functions/ftime.texi.
33840         * doc/pastposix-functions/gcvt.texi: Renamed from
33841         doc/posix-functions/gcvt.texi.
33842         * doc/pastposix-functions/getcontext.texi: Renamed from
33843         doc/posix-functions/getcontext.texi.
33844         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
33845         doc/posix-functions/gethostbyaddr.texi.
33846         * doc/pastposix-functions/gethostbyname.texi: Renamed from
33847         doc/posix-functions/gethostbyname.texi.
33848         * doc/pastposix-functions/getwd.texi: Renamed from
33849         doc/posix-functions/getwd.texi.
33850         * doc/pastposix-functions/h_errno.texi: Renamed from
33851         doc/posix-functions/h_errno.texi.
33852         * doc/pastposix-functions/index.texi: Renamed from
33853         doc/posix-functions/index.texi.
33854         * doc/pastposix-functions/makecontext.texi: Renamed from
33855         doc/posix-functions/makecontext.texi.
33856         * doc/pastposix-functions/mktemp.texi: Renamed from
33857         doc/posix-functions/mktemp.texi.
33858         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
33859         doc/posix-functions/pthread_attr_getstackaddr.texi.
33860         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
33861         doc/posix-functions/pthread_attr_setstackaddr.texi.
33862         * doc/pastposix-functions/rindex.texi: Renamed from
33863         doc/posix-functions/rindex.texi.
33864         * doc/pastposix-functions/scalb.texi: Renamed from
33865         doc/posix-functions/scalb.texi.
33866         * doc/pastposix-functions/setcontext.texi: Renamed from
33867         doc/posix-functions/setcontext.texi.
33868         * doc/pastposix-functions/swapcontext.texi: Renamed from
33869         doc/posix-functions/swapcontext.texi.
33870         * doc/pastposix-functions/ualarm.texi: Renamed from
33871         doc/posix-functions/ualarm.texi.
33872         * doc/pastposix-functions/usleep.texi: Renamed from
33873         doc/posix-functions/usleep.texi.
33874         * doc/pastposix-functions/vfork.texi: Renamed from
33875         doc/posix-functions/vfork.texi.
33876         * doc/pastposix-functions/wcswcs.texi: Renamed from
33877         doc/posix-functions/wcswcs.texi.
33878         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
33879         (Function Substitutes): Update.
33880
33881 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33882
33883         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
33884         m4/strerror.m4.
33885
33886 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33887             Bruno Haible  <bruno@clisp.org>
33888
33889         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
33890
33891 2008-12-13  Bruno Haible  <bruno@clisp.org>
33892
33893         * modules/strtoull (Depends-on): Remove unistd.
33894
33895 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33896
33897         * modules/strtoull (Depends-on): Add stdlib.
33898
33899 2008-12-11  Simon Josefsson  <simon@josefsson.org>
33900
33901         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
33902
33903 2008-12-10  Jim Meyering  <meyering@redhat.com>
33904
33905         gl_ASSERT: don't say assertions are disabled when they're not
33906         * m4/assert.m4 (gl_ASSERT): Do not make configure report
33907         "checking whether to enable assertions... no", when they are in
33908         fact enabled.  This is solely a bug in the output of configure.
33909         In spite of saying "no", NDEBUG was not defined in that case.
33910         Also, as noted by Eric Blake, leave assertions enabled upon
33911         --enable-assert=INVALID.
33912
33913 2008-12-10  Bruno Haible  <bruno@clisp.org>
33914
33915         Change MODULES.html to refer to POSIX:2008 where possible.
33916         * MODULES.html.sh (POSIX2008_URL): New variable.
33917         (posix_headers): Remove sys/timeb, ucontext.
33918         (posix2001_headers): New variable.
33919         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
33920         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
33921         index, makecontext, mktemp, pthread_attr_getstackaddr,
33922         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
33923         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
33924         (posix2001_functions): New variable.
33925         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
33926         otherwise.
33927
33928 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33929
33930         add missing include to parse-duration.c
33931         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
33932         * modules/parse-duration (Depends-on): Add xalloc.
33933
33934         fix sed script reading maint.mk
33935         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
33936         (syntax-check-rules): Use it.
33937
33938 2008-12-09  Bruno Haible  <bruno@clisp.org>
33939
33940         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
33941         MacOS X 10.4/PowerPC.
33942         Reported by Simon Josefsson.
33943
33944 2008-12-08  Jim Meyering  <meyering@redhat.com>
33945
33946         work around mingw's lack of some S_IF definitions
33947         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
33948         Reported by Simon Josefsson.
33949
33950 2008-12-08  Bruno Haible  <bruno@clisp.org>
33951
33952         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
33953         applied to variables. Needed on MacOS X 10.4/PowerPC.
33954         Reported by Simon Josefsson.
33955
33956 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
33957         and Eric Blake  <ebb9@byu.net>
33958
33959         assert: honor --enable-assert
33960         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
33961         order to honor --enable-assert, rather than treating it as a
33962         synonym for --disable-assert.
33963
33964 2008-12-08  Jim Meyering  <meyering@redhat.com>
33965
33966         * lib/posixtm.c: Remove now-useless declaration of mktime.
33967
33968         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
33969
33970 2008-12-07  Bruno Haible  <bruno@clisp.org>
33971
33972         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
33973         test_once): Mark functions as static.
33974         * tests/test-tls.c (test_tls): Likewise.
33975
33976 2008-12-07  Bruno Haible  <bruno@clisp.org>
33977
33978         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
33979         iconv_register_autodetect.
33980
33981 2008-12-07  Jim Meyering  <meyering@redhat.com>
33982
33983         posixtm.c: avoid a warning
33984         * lib/posixtm.c (posixtime): Don't initialize tm0.
33985         It's no longer needed to placate gcc4's -Wuninitialized,
33986         and the attempt to placate would elicit a new warning.
33987
33988         unicodeio.c: mark unused parameters
33989         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33990         (fallback_failure_callback): Likewise.
33991
33992 2008-12-07  Bruno Haible  <bruno@clisp.org>
33993
33994         * gnulib-tool (func_create_testdir): When building the tests
33995         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
33996         Reported by Simon Josefsson.
33997
33998 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33999
34000         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
34001
34002 2008-12-06  Bruno Haible  <bruno@clisp.org>
34003
34004         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
34005         Suggested by Eric Blake.
34006
34007 2008-12-06  Bruno Haible  <bruno@clisp.org>
34008
34009         Fix a c-stack test failure on MacOS X.
34010         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
34011         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
34012         handler for SIGBUS as well.
34013         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
34014         install a signal handler for SIGBUS as well.
34015         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
34016
34017 2008-12-06  Bruno Haible  <bruno@clisp.org>
34018
34019         Advocacy documentation.
34020         * doc/gnulib-intro.texi (Benefits): New section.
34021         * doc/gnulib.texi: Update.
34022
34023 2008-12-06  Bruno Haible  <bruno@clisp.org>
34024
34025         Document the 'manywarnings' module.
34026         * doc/manywarnings.texi: New file.
34027         * doc/gnulib.texi: Include it.
34028
34029 2008-12-05  Eric Blake  <ebb9@byu.net>
34030
34031         tests: silence some gcc warnings
34032         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
34033         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
34034         type mismatches.
34035
34036 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34037             Bruno Haible  <bruno@clisp.org>
34038
34039         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
34040
34041 2008-11-29  Jim Meyering  <meyering@redhat.com>
34042
34043         unicodeio.c: mark unused parameters
34044         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34045         (fallback_failure_callback): Likewise.
34046
34047         fts: fix a thinko
34048         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
34049         (set_stat_type): Return S_IF*-valued "type" directly.
34050         Prompted by James Youngman's spotting a related bug.
34051         Confirmed by further testing through find.
34052
34053         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
34054         * lib/fts.c (D_TYPE): Define.
34055         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
34056         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
34057         (s_ifmt_shift_bits): New function.
34058         (set_stat_type): New function.
34059         (fts_build): When not calling fts_stat, call set_stat_type
34060         to propagate dirent.d_type info to fts_read caller.
34061         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
34062         fts_statp->st_mode type information may be valid.
34063
34064 2008-11-28  Simon Josefsson  <simon@josefsson.org>
34065
34066         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
34067         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
34068         <sds@gnu.org>.
34069
34070 2008-11-20  Bruno Haible  <bruno@clisp.org>
34071
34072         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
34073         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
34074         INCLUDE_NEXT.
34075         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
34076         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
34077         * modules/math (Makefile.am): Substitute
34078         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
34079         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34080
34081 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34082             Bruno Haible  <bruno@clisp.org>
34083
34084         * lib/stdint.in.h: Define all type macros so that their expansion is
34085         a single typedef'ed token. Fixes a compilation failure in Boost which
34086         does "using ::int8_t;".
34087
34088 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34089
34090         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
34091         gl_MANYWARN_ALL_GCC.
34092         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
34093         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
34094         * modules/manywarnings: New file.
34095         * MODULES.html.sh: Mention manywarnings module.
34096
34097 2008-11-18  Bruno Haible  <bruno@clisp.org>
34098
34099         * doc/gnulib-tool.texi (Unit tests): New section.
34100
34101 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34102
34103         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
34104         paths like 'lib/po/foo.po'.
34105
34106 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34107
34108         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
34109         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
34110
34111 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34112
34113         * m4/warnings.m4: Use CPPFLAGS to really check whether the
34114         parameter works.
34115
34116 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34117
34118         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
34119
34120 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34121
34122         * modules/parse-duration-tests: New file.
34123         * tests/test-parse-duration.sh: New file.
34124         * tests/test-parse-duration.c: New file.
34125
34126         New module 'parse-duration'.
34127         * lib/parse-duration.h: New file.
34128         * lib/parse-duration.c: New file.
34129         * modules/parse-duration: New file.
34130
34131 2008-11-17  Bruno Haible  <bruno@clisp.org>
34132
34133         * tests/test-select-out.sh: Comment out the first pipe test.
34134         Reported by Simon Josefsson.
34135
34136 2008-11-17  Bruno Haible  <bruno@clisp.org>
34137
34138         * modules/getaddrinfo (Depends-on): Add servent, hostent.
34139         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
34140         gl_HOSTENT.
34141
34142 2008-11-17  Bruno Haible  <bruno@clisp.org>
34143
34144         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
34145         -lnetwork and -lnet. Needed for Haiku and BeOS.
34146
34147 2008-11-16  Bruno Haible  <bruno@clisp.org>
34148
34149         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
34150
34151 2008-11-16  Bruno Haible  <bruno@clisp.org>
34152
34153         Avoid test failure on Haiku.
34154         * tests/test-fsync.c: Include <errno.h>.
34155         (main): Don't require that fsync (0) fails.
34156
34157 2008-11-15  Bruno Haible  <bruno@clisp.org>
34158
34159         New module 'hostent'.
34160         * modules/hostent: New file.
34161         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
34162
34163 2008-11-15  Bruno Haible  <bruno@clisp.org>
34164
34165         New module 'servent'.
34166         * modules/servent: New file.
34167         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
34168
34169 2008-11-15  Bruno Haible  <bruno@clisp.org>
34170
34171         Avoid generating same test program with two different rules.
34172         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
34173         test-frexp to test-frexp-nolibm.
34174         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
34175         test-frexpl to test-frexpl-nolibm.
34176
34177 2008-11-15  Bruno Haible  <bruno@clisp.org>
34178
34179         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
34180         $(FREXPL_LIBM).
34181
34182 2008-11-15  Bruno Haible  <bruno@clisp.org>
34183
34184         * lib/netdb.in.h: Activate the definitions also when the system's
34185         <netdb.h> has 'struct addrinfo'.
34186         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
34187         EAI_OVERFLOW or AI_NUMERICSERV.
34188         * doc/posix-headers/netdb.texi: Document the problem.
34189
34190 2008-11-15  Bruno Haible  <bruno@clisp.org>
34191
34192         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
34193
34194         Make the 'sched' module work on platforms where <sched.h> exists but
34195         is incomplete (such as Haiku).
34196         * lib/sched.in.h; Include the system's <sched.h> if it exists.
34197         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
34198         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
34199         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
34200         HAVE_STRUCT_SCHED_PARAM.
34201         * modules/sched (Depends-on): Add include_next.
34202         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
34203         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
34204         * doc/posix-headers/sched.texi: Document the issue.
34205
34206 2008-11-13  Jim Meyering  <meyering@redhat.com>
34207
34208         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
34209         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
34210         test would fail due to the difference in the Report bugs to ...
34211         line.  The expected address is empty, "<>", while the actual
34212         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
34213
34214 2008-11-12  Bruno Haible  <bruno@clisp.org>
34215
34216         lstat: don't compile lstat.c on systems lacking lstat
34217         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
34218         which don't have lstat; this is handled by lib/sys_stat.in.h already.
34219         Reported by Daniel P. Berrange via Jim Meyering.
34220
34221 2008-11-12  Jim Meyering  <meyering@redhat.com>
34222
34223         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
34224
34225 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34226
34227         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
34228         instead.
34229
34230 2008-11-12  Bruno Haible  <bruno@clisp.org>
34231
34232         * lib/unicodeio.c: Include unistr.h.
34233         (utf8_wctomb): Remove function.
34234         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
34235
34236 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34237
34238         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
34239         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
34240         <bruno@clisp.org>.
34241         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
34242
34243 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34244
34245         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
34246         * doc/gnulib.texi: Add section for warnings.
34247
34248 2008-11-11  Bruno Haible  <bruno@clisp.org>
34249
34250         * lib/sockets.h: Add a comment.
34251
34252 2008-11-11  Karl Berry  <karl@gnu.org>
34253
34254         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
34255
34256 2008-11-11  Eric Blake  <ebb9@byu.net>
34257
34258         fdl.texi: avoid git symlinks
34259         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
34260
34261 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34262
34263         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
34264
34265 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34266
34267         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
34268         (gl_WARN_ADD): Substitute $2 if literal.
34269
34270 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34271
34272         * m4/warning.m4: Remove.
34273
34274 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34275
34276         * m4/warnings.m4: Almost complete rewrite. :-)
34277
34278 2008-11-10  Simon Josefsson  <simon@josefsson.org>
34279
34280         * modules/warnings: New module.
34281         * m4/warnings.m4: New file.
34282         * MODULES.html.sh: Mention warnings module.
34283         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
34284         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34285
34286 2008-11-10  Eric Blake  <ebb9@byu.net>
34287
34288         fdl.texi: make a symlink to the latest version
34289         * doc/standards.texi: Revert today's earlier change.
34290         * doc/fdl-1.2.texi: Rename from old fdl.texi...
34291         * doc/fdl.texi: ...and replace this with a symlink to the newer
34292         fdl-1.3.texi.
34293
34294 2008-11-10  Bruno Haible  <bruno@clisp.org>
34295
34296         * tests/test-select-fd.c (main): Accept the result file name as fourth
34297         argument.
34298         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
34299         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
34300
34301 2008-11-10  Bruno Haible  <bruno@clisp.org>
34302
34303         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
34304         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
34305         as autoconf-substituted macros.
34306         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
34307         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
34308         gl_NETDB_H_DEFAULTS. Set these variables.
34309         * modules/netdb (Makefile.am): Substitute these variables.
34310
34311 2008-11-10  Eric Blake  <ebb9@byu.net>
34312
34313         standards.texi: include correct file for FDL 1.3
34314         * doc/standards.texi (GNU Free Documentation License): Change
34315         include file to pull in FDL 1.3, not 1.2.
34316
34317         fdl.texi: revert accidental change to license
34318         * doc/fdl.texi: This is FDL 1.2, not 1.3.
34319
34320 2008-11-10  Bruno Haible  <bruno@clisp.org>
34321
34322         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
34323         cross-compiling guesses also when the native compile gives no result.
34324
34325 2008-11-10  Bruno Haible  <bruno@clisp.org>
34326
34327         * lib/spawni.c (__spawni): Force variable into the stack.
34328
34329 2008-11-10  Bruno Haible  <bruno@clisp.org>
34330
34331         Add support for Haiku.
34332         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
34333         glibc and BeOS, but also on Haiku.
34334         * lib/fpurge.c (fpurge): Likewise.
34335         * lib/freadable.c (freadable): Likewise.
34336         * lib/freadahead.c (freadahead): Likewise.
34337         * lib/freading.c (freading): Likewise.
34338         * lib/freadptr.c (freadptr): Likewise.
34339         * lib/freadseek.c (freadptrinc): Likewise.
34340         * lib/fseeko.c (rpl_fseeko): Likewise.
34341         * lib/fseterr.c (fseterr): Likewise.
34342         * lib/fwritable.c (fwritable): Likewise.
34343         * lib/fwriting.c (fwriting): Likewise.
34344         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
34345
34346 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34347
34348         * lib/config.charset: Treat Haiku like BeOS.
34349
34350 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34351
34352         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
34353         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
34354
34355 2008-11-08  Bruno Haible  <bruno@clisp.org>
34356
34357         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
34358         AC_CACHE_CHECK.
34359
34360 2008-11-08  Bruno Haible  <bruno@clisp.org>
34361
34362         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
34363
34364 2008-11-08  Bruno Haible  <bruno@clisp.org>
34365
34366         * tests/test-select-fd.c: New file.
34367         * tests/test-select-in.sh: New file.
34368         * tests/test-select-out.sh: New file.
34369         * tests/test-select-stdin.c: New file.
34370         * modules/select-tests (Files): Add the new files.
34371         (Depends-on): Add gettimeofday.
34372         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
34373         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
34374         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
34375
34376 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
34377             Bruno Haible  <bruno@clisp.org>
34378
34379         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
34380
34381 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
34382
34383         * build-aux/pmccabe2html: Added support for C++ source files.
34384
34385 2008-11-05  Ben Pfaff  <blp@gnu.org>
34386
34387         Fix lib/close.c build on Windows.
34388         * modules/close (Files): Add lib/w32sock.h.
34389
34390 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
34391
34392         Accept Bison's NEWS format.
34393         * build-aux/announce-gen (print_news_deltas): Tweak
34394         $re_prefix.
34395
34396 2008-11-04  Bruno Haible  <bruno@clisp.org>
34397
34398         * modules/random_r (Maintainer): Add glibc.
34399
34400 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34401
34402         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
34403         by karl@freefriends.org (Karl Berry).
34404         * doc/alloca.texi: Likewise.
34405         * doc/c-ctype.texi: Likewise.
34406         * doc/c-strcase.texi: Likewise.
34407         * doc/c-strcaseeq.texi: Likewise.
34408         * doc/c-strcasestr.texi: Likewise.
34409         * doc/c-strstr.texi: Likewise.
34410         * doc/c-strtod.texi: Likewise.
34411         * doc/c-strtold.texi: Likewise.
34412         * doc/ctime.texi: Likewise.
34413         * doc/error.texi: Likewise.
34414         * doc/fdl.texi: Likewise.
34415         * doc/gcd.texi: Likewise.
34416         * doc/getdate.texi: Likewise.
34417         * doc/gnulib-intro.texi: Likewise.
34418         * doc/gnulib-tool.texi: Likewise.
34419         * doc/gnulib.texi: Likewise.
34420         * doc/inet_ntoa.texi: Likewise.
34421         * doc/maintain.texi: Likewise.
34422         * doc/make-stds.texi: Likewise.
34423         * doc/quote.texi: Likewise.
34424         * doc/regexprops-generic.texi: Likewise.
34425         * doc/standards.texi: Likewise.
34426         * doc/verify.texi: Likewise.
34427         * doc/visibility.texi: Likewise.
34428         * doc/gnulib.texi (GNU Free Documentation License): Include
34429         fdl-1.3.texi instead of fdl.texi.
34430
34431 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34432
34433         * doc/fdl-1.3.texi: New file, from
34434         <http://www.gnu.org/licenses/fdl-1.3.texi>.
34435         * modules/fdl-1.3: Add.
34436         * MODULES.html.sh: Add fdl-1.3.
34437
34438 2008-11-03  Bruno Haible  <bruno@clisp.org>
34439
34440         Make determination of absolute name of header file work with AIX xlc.
34441         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
34442         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
34443         preprocessing.
34444         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34445         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
34446
34447 2008-11-03  Simon Josefsson  <simon@josefsson.org>
34448
34449         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
34450         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
34451         <ludo@gnu.org>.
34452
34453 2008-11-02  Bruno Haible  <bruno@clisp.org>
34454
34455         Mark 'strpbrk' obsolete.
34456         * modules/strpbrk (Status, Notice): New sections.
34457         * modules/strtok_r (Depends-on): Add strpbrk.
34458
34459 2008-11-02  Bruno Haible  <bruno@clisp.org>
34460
34461         Mark 'strdup' obsolete.
34462         * modules/strdup (Status, Notice): New sections.
34463         * modules/findprog (Depends-on): Add strdup.
34464         * modules/getaddrinfo (Depends-on): Likewise.
34465         * modules/localename (Depends-on): Likewise.
34466         * modules/relocatable-lib (Depends-on): Likewise.
34467         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
34468         * modules/relocatable-prog (Depends-on): Likewise.
34469         * modules/trim (Depends-on): Likewise.
34470         * modules/unictype/gen-ctype (Depends-on): Likewise.
34471         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34472
34473 2008-11-02  Bruno Haible  <bruno@clisp.org>
34474
34475         Mark 'strcspn' obsolete.
34476         * modules/strcspn (Status, Notice): New sections.
34477
34478 2008-11-02  Bruno Haible  <bruno@clisp.org>
34479
34480         Mark 'rmdir' obsolete.
34481         * modules/rmdir (Status, Notice): New sections.
34482         * modules/clean-temp (Depends-on): Add rmdir.
34483         * modules/openat (Depends-on): Likewise.
34484
34485 2008-11-02  Bruno Haible  <bruno@clisp.org>
34486
34487         Mark 'raise' obsolete.
34488         * modules/raise (Status, Notice): New sections.
34489         (Include): Specify <signal.h>.
34490         * modules/stdio (Depends-on): Add raise.
34491         * modules/write (Depends-on): Likewise.
34492
34493 2008-11-02  Bruno Haible  <bruno@clisp.org>
34494
34495         Mark 'memset' obsolete.
34496         * modules/memset (Status, Notice): New sections.
34497
34498 2008-11-02  Bruno Haible  <bruno@clisp.org>
34499
34500         Mark 'memmove' obsolete.
34501         * modules/memmove (Status, Notice): New sections.
34502         * modules/argp (Depends-on): Add memmove.
34503         * modules/argz (Depends-on): Likewise.
34504         * modules/canonicalize (Depends-on): Likewise.
34505         * modules/canonicalize-lgpl (Depends-on): Likewise.
34506         * modules/fts (Depends-on): Likewise.
34507         * modules/getcwd (Depends-on): Likewise.
34508         * modules/human (Depends-on): Likewise.
34509         * modules/regex (Depends-on): Likewise.
34510         * modules/striconveh (Depends-on): Likewise.
34511         * modules/trim (Depends-on): Likewise.
34512         * modules/unistr/u8-move (Depends-on): Likewise.
34513         * modules/unistr/u16-move (Depends-on): Likewise.
34514         * modules/unistr/u32-move (Depends-on): Likewise.
34515
34516 2008-11-02  Bruno Haible  <bruno@clisp.org>
34517
34518         Mark 'memcpy' obsolete.
34519         * modules/memcpy (Status, Notice): New sections.
34520
34521 2008-11-02  Bruno Haible  <bruno@clisp.org>
34522
34523         Mark 'memcmp' obsolete.
34524         * modules/memcmp (Status, Notice): New sections.
34525         * modules/argmatch (Depends-on): Add memchr.
34526         * modules/backupfile (Depends-on): Likewise.
34527         * modules/c-strcasestr (Depends-on): Likewise.
34528         * modules/crypto/des (Depends-on): Likewise.
34529         * modules/csharpcomp (Depends-on): Likewise.
34530         * modules/fnmatch (Depends-on): Likewise.
34531         * modules/git-merge-changelog (Depends-on): Likewise.
34532         * modules/isnand (Depends-on): Likewise.
34533         * modules/isnand-nolibm (Depends-on): Likewise.
34534         * modules/isnanf (Depends-on): Likewise.
34535         * modules/isnanf-nolibm (Depends-on): Likewise.
34536         * modules/isnanl (Depends-on): Likewise.
34537         * modules/isnanl-nolibm (Depends-on): Likewise.
34538         * modules/mbchar (Depends-on): Likewise.
34539         * modules/memcoll (Depends-on): Likewise.
34540         * modules/quotearg (Depends-on): Likewise.
34541         * modules/regex (Depends-on): Likewise.
34542         * modules/relocatable-prog (Depends-on): Likewise.
34543         * modules/same (Depends-on): Likewise.
34544         * modules/signbit (Depends-on): Likewise.
34545         * modules/strcasestr-simple (Depends-on): Likewise.
34546         * modules/unictype/gen-ctype (Depends-on): Likewise.
34547         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34548         * modules/uniname/uniname (Depends-on): Likewise.
34549         * modules/unistr/u8-cmp (Depends-on): Likewise.
34550
34551 2008-11-02  Bruno Haible  <bruno@clisp.org>
34552
34553         Mark 'memchr' obsolete.
34554         * modules/memchr (Status, Notice): New sections.
34555         * modules/argp (Depends-on): Add memchr.
34556         * modules/base64 (Depends-on): Likewise.
34557         * modules/c-strcasestr (Depends-on): Likewise.
34558         * modules/chdir-long (Depends-on): Likewise.
34559         * modules/fnmatch (Depends-on): Likewise.
34560         * modules/getsubopt (Depends-on): Likewise.
34561         * modules/git-merge-changelog (Depends-on): Likewise.
34562         * modules/glob (Depends-on): Likewise.
34563         * modules/strcasestr-simple (Depends-on): Likewise.
34564         * modules/strnlen (Depends-on): Likewise.
34565
34566 2008-11-02  Bruno Haible  <bruno@clisp.org>
34567
34568         Mark 'atexit' obsolete.
34569         * modules/atexit (Status, Notice): New sections.
34570         * modules/chdir-long (Depends-on): Add atexit.
34571         * modules/wait-process (Depends-on): Likewise.
34572
34573 2008-11-02  Bruno Haible  <bruno@clisp.org>
34574
34575         * gnulib-tool: New option --with-obsolete.
34576         (func_usage): Document it.
34577         (func_modules_transitive_closure): Drop obsolete dependencies if
34578         incobsolete is not true.
34579         (func_import): Read and save the incobsolete variable to the cache.
34580
34581 2008-11-02  Bruno Haible  <bruno@clisp.org>
34582
34583         * modules/TEMPLATE-EXTENDED: New field 'Status'.
34584         * gnulib-tool: New option --extract-status.
34585         (func_usage): Document it.
34586         (sed_extract_prog): Recognize it.
34587         (func_get_status): New function.
34588
34589 2008-10-30  Simon Josefsson  <simon@josefsson.org>
34590
34591         * modules/sockets (License): Change from LGPL to LGPLv2+.
34592
34593 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34594
34595         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
34596
34597 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34598
34599         * MODULES.html.sh (Support for systems lacking POSIX:2001):
34600         Mention times and sys_times.
34601         * modules/sys_times, modules/sys_times-tests: New modules.
34602         * modules/times, modules/times-tests: Likewise
34603         * m4/sys_times_h.m4: New file.
34604         * lib/sys_times.in.h: Likewise
34605         * lib/times.c: Likewise.
34606         * tests/test-sys_times.c: Likewise.
34607         * tests/test-times.c: Likewise.
34608         * doc/posix-headers/sys_times.texi: Update.
34609         * doc/posix-functions/times.texi: Update.
34610
34611 2008-10-28  Jim Meyering  <meyering@redhat.com>
34612
34613         * modules/tempname (Depends-on): Add lstat.
34614
34615         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
34616
34617 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34618
34619         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
34620         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
34621         using idiom used elsewhere in gnulib.
34622
34623 2008-10-27  Jim Meyering  <meyering@redhat.com>
34624
34625         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
34626
34627 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34628
34629         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
34630         TESTS_ENVIRONMENT, for shell scripts that needs to call built
34631         programs.
34632         * tests/test-argp-2.sh: Use $EXEEXT when needed.
34633
34634 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34635
34636         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
34637
34638 2008-10-27  Bruno Haible  <bruno@clisp.org>
34639
34640         * tests/test-lstat.c: Include <stdio.h>.
34641
34642 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34643
34644         * modules/lstat-tests: New module.
34645         * tests/test-lstat.c: New file.
34646
34647 2008-10-26  Jim Meyering  <meyering@redhat.com>
34648
34649         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
34650
34651 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34652             Bruno Haible  <bruno@clisp.org>
34653
34654         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
34655         * modules/configmake (Include): Add a note that the include must come
34656         after all system headers.
34657         * lib/javaversion.c: Include configmake.h after all other includes.
34658
34659 2008-10-26  Bruno Haible  <bruno@clisp.org>
34660
34661         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
34662         HAVE_STRUCT_RANDOM_DATA to 1.
34663         (gl_STDLIB_H): Simplify.
34664
34665 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34666
34667         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
34668         substitute HAVE_STRUCT_RANDOM_DATA.
34669         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
34670         random_data.
34671         * modules/stdlib (Makefile.am): Substitute
34672         HAVE_STRUCT_RANDOM_DATA.
34673
34674 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34675
34676         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
34677         * doc/gnulib-intro.texi (Copyright): Likewise.
34678
34679 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34680
34681         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
34682         findings.
34683
34684 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
34685             Bruno Haible  <bruno@clisp.org>
34686
34687         * lib/unistd.in.h: Include <winsock2.h>.
34688         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
34689         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
34690         Provide dummy declarations.
34691         (gethostname): Override.
34692         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
34693         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
34694         gl_PREREQ_SYS_H_WINSOCK2.
34695         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
34696         * doc/posix-functions/gethostname.texi: More details.
34697
34698 2008-10-25  Bruno Haible  <bruno@clisp.org>
34699
34700         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34701         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
34702         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
34703
34704         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
34705         here ...
34706         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
34707         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
34708         gl_UNISTD_H_DEFAULTS.
34709
34710 2008-10-25  Eric Blake  <ebb9@byu.net>
34711
34712         signbit: avoid spurious compiler failure
34713         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
34714         declarations inside function.
34715
34716 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34717             Bruno Haible  <bruno@clisp.org>
34718
34719         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
34720         * modules/random_r (Depends-on): Add stdint.
34721
34722 2008-10-24  Bruno Haible  <bruno@clisp.org>
34723
34724         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
34725         Eggert.
34726         * modules/strerror (License): Likewise.
34727
34728 2008-10-24  Jim Meyering  <meyering@redhat.com>
34729
34730         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
34731         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
34732
34733 2008-10-24  Eric Blake  <ebb9@byu.net>
34734
34735         getgroups: fix compilation when getgroups is available
34736         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
34737         but with <config.h> override of getgroups disabled.
34738
34739 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34740
34741         * doc/gnulib.texi (Header files): Add note about C++ problems.
34742         Explained by Bruno Haible <bruno@clisp.org>.
34743
34744 2008-10-23  Bruno Haible  <bruno@clisp.org>
34745
34746         Define a dummy SA_NODEFER macro on Interix.
34747         * lib/signal.in.h (SA_NODEFER): Define fallback.
34748         Reported by Aleksey Cheusov <cheusov@tut.by> via
34749         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
34750
34751 2008-10-23  Bruno Haible  <bruno@clisp.org>
34752
34753         * modules/freadahead (License): Change to LGPLv2+.
34754         Suggested by Simon Josefsson.
34755
34756 2008-10-23  Jim Meyering  <meyering@redhat.com>
34757
34758         random_r: new module
34759         * modules/random_r: New file.
34760         * m4/random_r.m4: New file.
34761         * lib/random_r.c: New file, from glibc.
34762         * modules/random_r-tests: New file.
34763         * tests/test-random_r.c: New file.
34764         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
34765          Declare.
34766         (RAND_MAX): Define.
34767         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
34768         * modules/stdlib: Substitute them, too.
34769         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
34770         * doc/glibc-functions/initstate_r.texi: Mention the new module.
34771         * doc/glibc-functions/random_r.texi: Likewise.
34772         * doc/glibc-functions/setstate_r.texi: Likewise.
34773         * doc/glibc-functions/srandom_r.texi: Likewise.
34774         * config/srclist.txt: Mention it.
34775
34776 2008-10-23  David Lutterkort  <lutter@redhat.com>
34777
34778         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
34779         link requirement
34780
34781 2008-10-23  Jim Meyering  <meyering@redhat.com>
34782
34783         selinux-h: mark parameters of stub functions as intentionally unused
34784         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
34785         * lib/se-context.in.h: Likewise.
34786
34787 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34788
34789         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
34790
34791 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34792
34793         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
34794
34795 2008-10-22  Eric Blake  <ebb9@byu.net>
34796
34797         glthread/thread: avoid compiler warning
34798         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
34799         Add unreachable abort to silence compiler.
34800
34801 2008-10-22  Eric Blake  <ebb9@byu.net>
34802
34803         netdb: also supply struct addrinfo for cygwin 1.5.x
34804         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
34805         older cygwin.
34806         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
34807         cygwin.
34808         * doc/posix-headers/netdb.texi (netdb.h): Document this.
34809
34810 2008-10-22  Bruno Haible  <bruno@clisp.org>
34811
34812         * users.txt: Update entry about pspp.
34813
34814 2008-10-21  Bruno Haible  <bruno@clisp.org>
34815
34816         Simplification.
34817         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
34818         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
34819
34820         Simplification.
34821         * lib/ioctl.c (ioctl): Don't undefine.
34822         * lib/socket.c (socket): Don't undefine.
34823
34824         Remove unused module indicator macros.
34825         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
34826         GNULIB_$1 as a C macro.
34827
34828         * doc/posix-functions/close.texi: Undo last change.
34829         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
34830         Windows platforms.
34831
34832 2008-10-21  Bruno Haible  <bruno@clisp.org>
34833
34834         Add gethostname() declaration to <unistd.h>.
34835         * lib/unistd.in.h (gethostname): New declaration.
34836         * lib/gethostname.c: Include <unistd.h>.
34837         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
34838         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
34839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
34840         and HAVE_GETHOSTNAME.
34841         * modules/gethostname (Depends-on): Add unistd.
34842         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34843         (Include): Specify <unistd.h>.
34844         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
34845         HAVE_GETHOSTNAME.
34846         * tests/test-gethostname.c: Include <unistd.h> first.
34847
34848 2008-10-21  Bruno Haible  <bruno@clisp.org>
34849
34850         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
34851         * modules/select-tests (Depends-on): Likewise.
34852         Reported by Simon Josefsson.
34853
34854 2008-10-21  Simon Josefsson  <simon@josefsson.org>
34855
34856         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
34857         * lib/accept.c: New file, based on winsock.c.
34858         * lib/bind.c: New file, based on winsock.c.
34859         * lib/connect.c: New file, based on winsock.c.
34860         * lib/getpeername.c: New file, based on winsock.c.
34861         * lib/getsockname.c: New file, based on winsock.c.
34862         * lib/getsockopt.c: New file, based on winsock.c.
34863         * lib/ioctl.c: New file, based on winsock.c.
34864         * lib/listen.c: New file, based on winsock.c.
34865         * lib/recv.c: New file, based on winsock.c.
34866         * lib/recvfrom.c: New file, based on winsock.c.
34867         * lib/send.c: New file, based on winsock.c.
34868         * lib/sendto.c: New file, based on winsock.c.
34869         * lib/setsockopt.c: New file, based on winsock.c.
34870         * lib/shutdown.c: New file, based on winsock.c.
34871         * lib/socket.c: New file, based on winsock.c.
34872         * lib/w32sock.h: New file, based on winsock.c.
34873         * lib/winsock.c: Remove file.
34874         * modules/accept: Likewise.
34875         * modules/bind: Likewise.
34876         * modules/connect: Likewise.
34877         * modules/getpeername: Likewise.
34878         * modules/getsockname: Likewise.
34879         * modules/getsockopt: Likewise.
34880         * modules/ioctl: Likewise.
34881         * modules/listen: Likewise.
34882         * modules/recv: Likewise.
34883         * modules/recvfrom: Likewise.
34884         * modules/send: Likewise.
34885         * modules/sendto: Likewise.
34886         * modules/setsockopt: Likewise.
34887         * modules/shutdown: Likewise.
34888         * modules/socket: Use socket.c instead of winsock.c.
34889         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
34890         * doc/posix-functions/accept.texi: Doc fix.
34891         * doc/posix-functions/bind.texi: Doc fix.
34892         * doc/posix-functions/close.texi: Doc fix.
34893         * doc/posix-functions/connect.texi: Doc fix.
34894         * doc/posix-functions/getpeername.texi: Doc fix.
34895         * doc/posix-functions/getsockname.texi: Doc fix.
34896         * doc/posix-functions/getsockopt.texi: Doc fix.
34897         * doc/posix-functions/ioctl.texi: Doc fix.
34898         * doc/posix-functions/listen.texi: Doc fix.
34899         * doc/posix-functions/recv.texi: Doc fix.
34900         * doc/posix-functions/recvfrom.texi: Doc fix.
34901         * doc/posix-functions/send.texi: Doc fix.
34902         * doc/posix-functions/sendto.texi: Doc fix.
34903         * doc/posix-functions/setsockopt.texi: Doc fix.
34904         * doc/posix-functions/shutdown.texi: Doc fix.
34905         * doc/posix-functions/socket.texi: Doc fix.
34906
34907 2008-10-20  Bruno Haible  <bruno@clisp.org>
34908
34909         Take into account the role of SIGABRT_COMPAT on Windows 2008.
34910         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
34911         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
34912         as an alias for SIGABRT.
34913         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
34914         (sigaction): Map it to SIGABRT.
34915         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
34916
34917 2008-10-20  Bruno Haible  <bruno@clisp.org>
34918
34919         * lib/fts.c: Don't include lstat.h.
34920         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
34921
34922         Move the lstat() declaration to <sys/stat.h>.
34923         * lib/lstat.h: Remove file.
34924         * lib/sys_stat.in.h: Add special invocation convention.
34925         (lstat): New declaration.
34926         * lib/lstat.c (orig_lstat): New function.
34927         (rpl_lstat): Use orig_lstat instead of lstat.
34928         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
34929         AC_C_INLINE. Set REPLACE_LSTAT.
34930         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
34931         and REPLACE_LSTAT.
34932         * modules/lstat (Files): Remove lib/lstat.h.
34933         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34934         (Include): Specify <sys/stat.h> instead of lstat.h.
34935         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
34936         REPLACE_LSTAT.
34937         * NEWS: Mention the change.
34938
34939 2008-10-20  Bruno Haible  <bruno@clisp.org>
34940
34941         * modules/posix_spawn-tests: New file.
34942         * tests/test-posix_spawn3.c: New file.
34943
34944 2008-10-20  Bruno Haible  <bruno@clisp.org>
34945
34946         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
34947         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34948         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
34949         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34950         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
34951
34952 2008-10-20  Bruno Haible  <bruno@clisp.org>
34953
34954         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
34955         of posix_spawn on AIX 5.3.
34956
34957 2008-10-20  Bruno Haible  <bruno@clisp.org>
34958
34959         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
34960
34961 2008-10-20  Bruno Haible  <bruno@clisp.org>
34962
34963         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
34964         of AC_LANG_PROGRAM.
34965
34966 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34967
34968         * lib/netdb.in.h: Don't define GNU specific constants until they
34969         are supported or needed.  Reported by Bruno Haible
34970         <bruno@clisp.org>.
34971
34972 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34973
34974         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
34975
34976 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34977
34978         * lib/getaddrinfo.h: Remove file.
34979         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
34980         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
34981         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
34982         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
34983         * modules/netdb: Substitute GNULIB_GETADDRINFO.
34984         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
34985         * tests/test-getaddrinfo.c: Likewise.
34986         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
34987         * NEWS: Mention change.
34988
34989 2008-10-19  Bruno Haible  <bruno@clisp.org>
34990
34991         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
34992
34993 2008-10-19  Bruno Haible  <bruno@clisp.org>
34994
34995         * lib/wait-process.c: Include simply <sys/wait.h>.
34996         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
34997         WIFSTOPPED): Remove fallback definitions.
34998         * modules/wait-process (Depends-on): Add sys_wait.
34999
35000         New module 'sys_wait'.
35001         * modules/sys_wait: New file.
35002         * lib/sys_wait.in.h: New file, partially copied from
35003         lib/wait-process.c.
35004         * m4/sys_wait_h.m4: New file.
35005         * doc/posix-headers/sys_wait.texi: Mention the new module.
35006
35007 2008-10-19  Bruno Haible  <bruno@clisp.org>
35008
35009         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
35010
35011 2008-10-19  Bruno Haible  <bruno@clisp.org>
35012
35013         Assume that waitpid() fills an 'int' status, not a 'union wait'.
35014         * lib/wait-process.c (WAIT_T): Remove type.
35015         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
35016         (wait_subprocess): Update.
35017
35018 2008-10-19  Bruno Haible  <bruno@clisp.org>
35019
35020         New module 'atoll'.
35021         * modules/atoll: New file.
35022         * lib/stdlib.in.h (atoll): New declaration.
35023         * lib/atoll.c: New file, from glibc with modifications.
35024         * m4/atoll.m4: New file.
35025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
35026         HAVE_ATOLL.
35027         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
35028         * doc/posix-functions/atoll.texi: Mention the new module.
35029
35030 2008-10-19  Bruno Haible  <bruno@clisp.org>
35031
35032         Add strtoull() declaration to <stdlib.h>.
35033         * lib/stdlib.in.h (strtoull): New declaration.
35034         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35035         Set HAVE_STRTOULL.
35036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
35037         HAVE_STRTOULL.
35038         * modules/strtoull (Depends-on): Add stdlib.
35039         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35040         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
35041         HAVE_STRTOULL.
35042
35043 2008-10-19  Bruno Haible  <bruno@clisp.org>
35044
35045         Add strtoll() declaration to <stdlib.h>.
35046         * lib/stdlib.in.h (strtoll): New declaration.
35047         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35048         Set HAVE_STRTOLL.
35049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
35050         HAVE_STRTOLL.
35051         * modules/strtoll (Depends-on): Add stdlib.
35052         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35053         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
35054
35055 2008-10-19  Bruno Haible  <bruno@clisp.org>
35056
35057         * modules/bcopy (Depends-on): Add strings.
35058         (Include): Specify <strings.h>.
35059
35060 2008-10-19  Bruno Haible  <bruno@clisp.org>
35061
35062         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
35063
35064 2008-10-19  Bruno Haible  <bruno@clisp.org>
35065
35066         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
35067         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
35068         mingw.
35069
35070 2008-10-19  Bruno Haible  <bruno@clisp.org>
35071
35072         * lib/atanl.c: Don't include isnanl.h.
35073         * lib/cosl.c: Likewise.
35074         * lib/ldexpl.c: Likewise.
35075         * lib/logl.c: Likewise.
35076         * lib/sinl.c: Likewise.
35077         * lib/sqrtl.c: Likewise.
35078         * lib/tanl.c: Likewise.
35079
35080         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
35081         * lib/isnanf.h: Remove file.
35082         * lib/isnand.h: Remove file.
35083         * lib/isnanl.h: Remove file.
35084         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
35085         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
35086         macros.
35087         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
35088         HAVE_ISNANF, don't define it as a C macro.
35089         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
35090         HAVE_ISNAND, don't define it as a C macro.
35091         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
35092         HAVE_ISNANL, don't define it as a C macro.
35093         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
35094         HAVE_ISNAN[FDL].
35095         * modules/isnanf (Files): Remove lib/isnanf.h.
35096         (Depends-on): Add math.
35097         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35098         (Include): Specify <math.h> instead of isnanf.h.
35099         * modules/isnand (Files): Remove lib/isnand.h.
35100         (Depends-on): Add math.
35101         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35102         (Include): Specify <math.h> instead of isnand.h.
35103         * modules/isnanl (Files): Remove lib/isnanl.h.
35104         (Depends-on): Add math.
35105         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35106         (Include): Specify <math.h> instead of isnanl.h.
35107         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
35108         HAVE_ISNAN[FDL].
35109         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
35110         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
35111         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
35112         * NEWS: Mention the change.
35113
35114 2008-10-18  Bruno Haible  <bruno@clisp.org>
35115
35116         Add getusershell(), setusershell(), endusershell() declarations to
35117         <unistd.h>.
35118         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
35119         declarations.
35120         * lib/getusershell.c: Include unistd.h.
35121         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
35122         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35123         HAVE_GETUSERSHELL.
35124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
35125         and HAVE_GETUSERSHELL.
35126         * modules/getusershell (Depends-on): Add unistd, extensions.
35127         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35128         (Include): Specify <unistd.h>.
35129         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
35130         HAVE_GETUSERSHELL.
35131
35132 2008-10-18  Bruno Haible  <bruno@clisp.org>
35133
35134         Add a getloadavg() declaration to <stdlib.h>.
35135         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
35136         getloadavg declaration.
35137         (getloadavg): New declaration.
35138         * lib/getloadavg.c: Include <stdlib.h> first.
35139         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
35140         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
35141         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
35142         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
35143         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35144         * modules/getloadavg (Depends-on): Add stdlib, extensions.
35145         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35146         (Include): Specify <stdlib.h>.
35147         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
35148         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35149
35150 2008-10-18  Bruno Haible  <bruno@clisp.org>
35151
35152         * lib/dirchownmod.c: Don't include lchmod.h.
35153
35154         Move the lchmod() declaration to <sys/stat.h>.
35155         * lib/lchmod.h: Remove file.
35156         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
35157         (lchmod): New declaration, moved here from lib/lchown.h.
35158         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
35159         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
35160         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
35161         and HAVE_LCHMOD.
35162         * modules/lchmod (Files): Remove lib/lchmod.h.
35163         (Depends-on): Add sys_stat, extensions.
35164         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35165         (Include): Specify <sys/stat.h> instead of lchmod.h.
35166         * modules/sys_stat (Depends-on): Add link-warning.
35167         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
35168         definition of GL_LINK_WARNING.
35169         * NEWS: Mention the change.
35170
35171 2008-10-18  Bruno Haible  <bruno@clisp.org>
35172
35173         * lib/fchdir.c: Don't include dirfd.h.
35174         * lib/fts.c: Likewise.
35175         * lib/getcwd.c: Likewise.
35176         * lib/glob.c: Likewise.
35177
35178         Move the dirfd() declaration to <dirent.h>.
35179         * lib/dirfd.h: Remove file.
35180         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
35181         (dirfd): New declaration.
35182         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
35183         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
35184         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
35185         HAVE_DECL_DIRFD.
35186         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
35187         HAVE_DECL_DIRFD.
35188         * modules/dirfd (Files): Remove lib/dirfd.h.
35189         (Depends-on): Add dirent, extensions.
35190         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
35191         (Include): Specify <dirent.h> instead of dirfd.h.
35192         * modules/dirent (Depends-on): Add link-warning.
35193         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
35194         definition of GL_LINK_WARNING.
35195         * NEWS: Mention the change.
35196
35197 2008-10-18  Bruno Haible  <bruno@clisp.org>
35198
35199         Move the euidaccess() declaration to <unistd.h>.
35200         * lib/euidaccess.h: Remove file.
35201         * lib/unistd.in.h (euidaccess): New declaration.
35202         * lib/euidaccess.c: Don't include euidaccess.h.
35203         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
35204         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
35205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
35206         and HAVE_EUIDACCESS.
35207         * modules/euidaccess (Files): Remove lib/euidaccess.h.
35208         (Depends-on): Add unistd.
35209         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35210         (Include): Specify <unistd.h> instead of euidaccess.h.
35211         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
35212         HAVE_EUIDACCESS.
35213         * NEWS: Mention the change.
35214
35215 2008-10-18  Bruno Haible  <bruno@clisp.org>
35216
35217         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
35218
35219         Move the getdomainname() declaration to <unistd.h>.
35220         * lib/getdomainname.h: Remove file.
35221         * lib/unistd.in.h (getdomainname): New declaration.
35222         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
35223         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
35224         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35225         HAVE_GETDOMAINNAME.
35226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35227         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
35228         * modules/getdomainname (Files): Remove lib/getdomainname.h.
35229         (Depends-on): Add unistd, extensions.
35230         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35231         (Includes): Specify <unistd.h> instead of getdomainname.h.
35232         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
35233         HAVE_GETDOMAINNAME.
35234         * NEWS: Mention the change.
35235
35236 2008-10-18  Bruno Haible  <bruno@clisp.org>
35237
35238         * modules/dirent: New file.
35239         * m4/dirent_h.m4: New file.
35240         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
35241         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
35242         * modules/fchdir (Files): Remove lib/dirent.in.h.
35243         (Depends-on): Add dirent.
35244         (Makefile.am): Move rules to modules/dirent.
35245         * doc/posix-headers/dirent.texi: Mention the new module.
35246
35247 2008-10-18  Bruno Haible  <bruno@clisp.org>
35248
35249         Avoid -Wunused-parameter warnings in public gnulib header files.
35250         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
35251         macro.
35252         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
35253
35254 2008-10-18  Bruno Haible  <bruno@clisp.org>
35255
35256         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
35257         * doc/glibc-functions/error.texi: Mention the module 'error'.
35258         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
35259         * doc/glibc-functions/getdomainname.texi: Mention the module
35260         'getdomainname'.
35261         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
35262         * doc/glibc-functions/getpagesize.texi: Mention the module
35263         'getpagesize'.
35264         * doc/glibc-functions/getusershell.texi: Mention the module
35265         'getusershell'.
35266         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
35267         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
35268         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
35269         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
35270         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
35271         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
35272         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
35273         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
35274         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
35275         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
35276         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
35277         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
35278         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
35279         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
35280
35281 2008-10-17  Bruno Haible  <bruno@clisp.org>
35282
35283         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
35284         HP-UX and IRIX, use -0.0L.
35285         * tests/test-ceill.c (minus_zero): Likewise.
35286         * tests/test-floorl.c (minus_zero): Likewise.
35287         * tests/test-frexpl.c (minus_zero): Likewise.
35288         * tests/test-isnan.c (minus_zerol): Likewise.
35289         * tests/test-isnanl.h (minus_zero): Likewise.
35290         * tests/test-ldexpl.c (minus_zero): Likewise.
35291         * tests/test-roundl.c (minus_zero): Likewise.
35292         * tests/test-signbit.c (minus_zerol): Likewise.
35293         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35294         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35295         * tests/test-truncl.c (minus_zero): Likewise.
35296         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35297         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35298         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
35299         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35300
35301 2008-10-17  Bruno Haible  <bruno@clisp.org>
35302
35303         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
35304         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
35305         that it gets activated only for gcc >= 3.0.
35306         * lib/dirent.in.h: Likewise.
35307         * lib/errno.in.h: Likewise.
35308         * lib/fcntl.in.h: Likewise.
35309         * lib/float.in.h: Likewise.
35310         * lib/iconv.in.h: Likewise.
35311         * lib/inttypes.in.h: Likewise.
35312         * lib/locale.in.h: Likewise.
35313         * lib/math.in.h: Likewise.
35314         * lib/netdb.in.h: Likewise.
35315         * lib/netinet_in.in.h: Likewise.
35316         * lib/search.in.h: Likewise.
35317         * lib/signal.in.h: Likewise.
35318         * lib/spawn.in.h: Likewise.
35319         * lib/stdarg.in.h: Likewise.
35320         * lib/stdint.in.h: Likewise.
35321         * lib/stdio.in.h: Likewise.
35322         * lib/stdlib.in.h: Likewise.
35323         * lib/string.in.h: Likewise.
35324         * lib/strings.in.h: Likewise.
35325         * lib/sys_file.in.h: Likewise.
35326         * lib/sys_ioctl.in.h: Likewise.
35327         * lib/sys_select.in.h: Likewise.
35328         * lib/sys_socket.in.h: Likewise.
35329         * lib/sys_stat.in.h: Likewise.
35330         * lib/sys_time.in.h: Likewise.
35331         * lib/sysexits.in.h: Likewise.
35332         * lib/time.in.h: Likewise.
35333         * lib/unistd.in.h: Likewise.
35334         * lib/wchar.in.h: Likewise.
35335         * lib/wctype.in.h: Likewise.
35336         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35337
35338 2008-10-17  Jim Meyering  <meyering@redhat.com>
35339
35340         ignore-value: don't depend on inline module
35341         * modules/ignore-value (Depends-on): Remove 'inline'.
35342         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
35343         Suggestion from Bruno Haible.
35344
35345 2008-10-17  Bruno Haible  <bruno@clisp.org>
35346
35347         New implementation of condition variables for Win32.
35348         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
35349         (gl_linked_waitqueue_t): New type.
35350         (gl_cond_t): Use it.
35351         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
35352         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
35353         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
35354         (glthread_cond_init_func, glthread_cond_wait_func,
35355         glthread_cond_timedwait_func, glthread_cond_signal_func,
35356         glthread_cond_broadcast_func, glthread_cond_destroy_func):
35357         Reimplemented on the basis of gl_linked_waitqueue_t.
35358         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
35359         gl_waitqueue_t.
35360         (gl_rwlock_t): Update.
35361         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
35362
35363 2008-10-17  Simon Josefsson  <simon@josefsson.org>
35364
35365         * modules/recvfrom (Depends-on): Add dependency on getpeername.
35366         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35367
35368 2008-10-17  Jim Meyering  <meyering@redhat.com>
35369
35370         ignore-value: new module
35371         * modules/ignore-value: New file.
35372         * lib/ignore-value.h: New file.
35373         * MODULES.html.sh (Compiler warning management): New section,
35374         just for this module.  More to come.
35375
35376 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35377
35378         open-safer.c: avoid 'signed and unsigned in conditional...' warning
35379         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
35380         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
35381
35382 2008-10-16  Jim Meyering  <meyering@redhat.com>
35383
35384         openat-die.c: avoid 'no previous prototype' warning
35385         * lib/openat-die.c: Include "openat.h".
35386         Reported by Reuben Thomas <rrt@sc3d.org>.
35387
35388 2008-10-16  Simon Josefsson  <simon@josefsson.org>
35389
35390         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
35391         * lib/netdb.in.h: Fix typo.
35392         Reported by Bruno Haible  <bruno@clisp.org>
35393
35394         * lib/netdb.in.h: Include sys/socket.h for platforms without
35395         netdb.h, to get structures like hostent on MinGW.
35396         * modules/netdb (Depends-on): Add sys_socket.
35397
35398 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35399
35400         * modules/netdb, modules/netdb-tests: New file.
35401         * m4/netdb_h.m4: New file.
35402         * lib/netdb.in.h: Add, currently just an empty file pending
35403         definitions.
35404         * tests/test-netdb.c: New file.
35405         * doc/posix-headers/netdb.texi: Mention that we replace it if
35406         needed.
35407         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35408         netdb.
35409
35410 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35411
35412         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
35413         with code.
35414
35415 2008-10-13  Bruno Haible  <bruno@clisp.org>
35416
35417         * lib/glthread/cond.c (glthread_cond_wait_func,
35418         glthread_cond_timedwait_func): Add a comment.
35419
35420 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35421
35422         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
35423         * tests/test-select.c: Likewise,
35424
35425 2008-10-13  Bruno Haible  <bruno@clisp.org>
35426
35427         * lib/glthread/cond.c (glthread_cond_wait_func,
35428         glthread_cond_timedwait_func): Fix variable name.
35429         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35430
35431 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
35432
35433         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
35434         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
35435         struct sockaddr.sa_len.
35436         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
35437
35438 2008-10-13  Simon Josefsson  <simon@josefsson.org>
35439
35440         * build-aux/pmccabe2html: Add css and css_url parameters.
35441
35442 2008-10-12  Bruno Haible  <bruno@clisp.org>
35443
35444         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
35445         calling aclx_get.
35446         Reported by Rainer Tammer <tammer@tammer.net>.
35447
35448 2008-10-12  Bruno Haible  <bruno@clisp.org>
35449
35450         Use msvcrt aware primitives for creation/termination of Win32 threads.
35451         * lib/glthread/thread.c: Include <process.h>.
35452         (glthread_create_func): Use _beginthreadex instead of CreateThread.
35453         (wrapper_func): Update signature.
35454         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
35455
35456 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35457             Bruno Haible  <bruno@clisp.org>
35458
35459         Provide a Win32 implementation of the 'cond' module.
35460         * lib/glthread/cond.h [USE_WIN32]: New implementation.
35461         * lib/glthread/cond.c (glthread_cond_init_func,
35462         glthread_cond_wait_func, glthread_cond_timedwait_func,
35463         glthread_cond_signal_func, glthread_cond_broadcast_func,
35464         glthread_cond_destroy_func) [USE_WIN32]: New functions.
35465         * modules/cond (Dependencies): Add gettimeofday.
35466
35467 2008-10-11  Bruno Haible  <bruno@clisp.org>
35468
35469         Make sleep work on older versions of mingw.
35470         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
35471         only whether it exists.
35472         * doc/posix-functions/sleep.texi: Mention the problem with older
35473         versions of mingw.
35474
35475 2008-10-11  Bruno Haible  <bruno@clisp.org>
35476
35477         New module 'shutdown'.
35478         * modules/shutdown: New file.
35479         * lib/sys_socket.in.h (shutdown): New declaration.
35480         * lib/winsock.c (shutdown): New function.
35481         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35482         GNULIB_SHUTDOWN.
35483         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
35484         * doc/posix-functions/shutdown.texi: Document the new module.
35485
35486 2008-10-11  Jim Meyering  <meyering@redhat.com>
35487
35488         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
35489
35490 2008-10-11  Bruno Haible  <bruno@clisp.org>
35491
35492         New module 'fclose'.
35493         * modules/fclose: New file.
35494         * lib/stdio.in.h (fclose): New declaration.
35495         * lib/fclose.c: New file.
35496         * m4/fclose.m4: New file.
35497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
35498         REPLACE_FCLOSE.
35499         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
35500         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
35501         REPLACE_FCLOSE.
35502         * modules/close (Depends-on): fclose.
35503         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
35504
35505 2008-10-11  Bruno Haible  <bruno@clisp.org>
35506
35507         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
35508         set errno and don't call _close.
35509
35510 2008-10-10  Bruno Haible  <bruno@clisp.org>
35511
35512         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
35513         ACL, not afterwards. Fixes test failure on Cygwin.
35514
35515 2008-10-09  Ben Pfaff  <blp@gnu.org>
35516
35517         * build-aux/announce-gen: Fix gnulib version related part of usage
35518         message.  Die with a useful error message if no tarballs are
35519         found.
35520
35521 2008-10-10  Jim Meyering  <meyering@redhat.com>
35522
35523         bootstrap: use git's --depth=N option only if it's supported
35524         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
35525         recognize the --depth option.  Reported by Pádraig Brady.
35526
35527 2008-10-09  Bruno Haible  <bruno@clisp.org>
35528
35529         New module 'ioctl'.
35530         * modules/ioctl: New file.
35531         * lib/sys_socket.in.h (ioctl): Remove declaration.
35532         * lib/winsock.c: Include <sys/ioctl.h>.
35533         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
35534         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35535         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
35536         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
35537         * doc/posix-functions/ioctl.texi: Mention the new module.
35538
35539 2008-10-09  Bruno Haible  <bruno@clisp.org>
35540
35541         New module 'sys_ioctl'.
35542         * lib/sys_ioctl.in.h: New file.
35543         * m4/sys_ioctl_h.m4: New file.
35544         * modules/sys_ioctl: New file.
35545         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
35546
35547 2008-10-09  Bruno Haible  <bruno@clisp.org>
35548
35549         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
35550         * lib/winsock.c: Include <stdarg.h>.
35551         (rpl_ioctl): Change to second argument 'int' and then varargs.
35552
35553 2008-10-09  Bruno Haible  <bruno@clisp.org>
35554
35555         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
35556         when the sys_socket module is present and the system has <winsock2.h>.
35557
35558 2008-10-09  Bruno Haible  <bruno@clisp.org>
35559
35560         * doc/posix-functions/close.texi: Mention module 'close' instead of
35561         module 'sys_socket'.
35562
35563 2008-10-09  Bruno Haible  <bruno@clisp.org>
35564
35565         * doc/glibc-headers/sys_ioctl.texi: New file.
35566         * doc/gnulib.texi: Include it.
35567
35568 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35569             Bruno Haible  <bruno@clisp.org>
35570
35571         Combine the two replacements of 'close'.
35572         * lib/sys_socket.in.h (close): Define to a reminder to include
35573         <unistd.h>.
35574         (_gl_close_fd_maybe_socket): New declaration.
35575         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
35576         * lib/winsock.c (close): Remove undefinition.
35577         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
35578         needed for the gnulib module 'close'.
35579         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
35580         define to an error symbol or to a warning, if suitable.
35581         * lib/close.c: Include <sys/socket.h>.
35582         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
35583         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
35584         UNISTD_H_HAVE_WINSOCK2_H.
35585         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
35586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35587         UNISTD_H_HAVE_WINSOCK2_H.
35588         * modules/sys_socket (Files): Add m4/unistd_h.m4.
35589         (configure.ac): Set a module indicator.
35590         (Makefile.am): Substitute GNULIB_CLOSE.
35591         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
35592         * modules/poll-tests (Depends-on): Add close.
35593         * modules/select-tests (Depends-on): Likewise.
35594
35595 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35596             Bruno Haible  <bruno@clisp.org>
35597
35598         New module 'close'.
35599         * modules/close: New file.
35600         * lib/unistd.in.h (close): Move declaration out of the
35601         FCHDIR_REPLACEMENT scope.
35602         (_gl_unregister_fd): New declaration.
35603         * lib/close.c: New file.
35604         * lib/fchdir.c (rpl_close): Remove function.
35605         * m4/close.m4: New file.
35606         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35607         close.
35608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
35609         REPLACE_CLOSE.
35610         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
35611         REPLACE_CLOSE.
35612         * modules/fchdir (Depends-on): Add close.
35613
35614 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35615             Bruno Haible  <bruno@clisp.org>
35616
35617         * lib/fcntl.in.h (open): Simplify conditionals.
35618         (_gl_register_fd): New declaration.
35619         * lib/fchdir.c (rpl_open): Remove function.
35620         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
35621         also.
35622         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
35623         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35624         open.
35625
35626 2008-10-09  Jim Meyering  <meyering@redhat.com>
35627
35628         GNUmakefile: use the more name-space-friendly "_version"
35629         * top/GNUmakefile (_dummy): Update.
35630         (_version): Rename from "version".
35631
35632 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35633             Bruno Haible  <bruno@clisp.org>
35634
35635         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
35636         rpl_close.
35637         (_gl_register_fd): New function, extracted from rpl_open.
35638         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
35639         (rpl_open, rpl_opendir): Use _gl_register_fd.
35640
35641 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35642
35643         Fix organization of 'open' replacement.
35644         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
35645         (gl_FUNC_OPEN): Use it.
35646         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
35647
35648 2008-10-08  Bruno Haible  <bruno@clisp.org>
35649
35650         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
35651
35652 2008-10-08  Simon Josefsson  <simon@josefsson.org>
35653
35654         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
35655         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
35656         listen).
35657
35658 2008-10-08  Eric Blake  <ebb9@byu.net>
35659
35660         GNUmakefile: add 'make version' target
35661         * top/GNUmakefile (_curr-ver): Split version update rules...
35662         (version): ...into a target.
35663
35664 2008-10-07  Bruno Haible  <bruno@clisp.org>
35665
35666         Use a more portable replacement expression for -0.0L.
35667         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
35668         instead of -0.0L. Fix m4 quotation.
35669
35670         * tests/test-signbit.c: Include <float.h>.
35671         (minus_zero): New variable.
35672         (test_signbitl): Use minus_zero instead of -zero.
35673         * modules/signbit-tests (Depends-on): Add float.
35674
35675         * tests/test-ceill.c: Include <float.h>.
35676         (zero): Remove variable.
35677         (minus_zero): New variable.
35678         (main): Use minus_zero instead of -zero.
35679         * modules/ceill-tests (Depends-on): Add float.
35680
35681         * tests/test-floorl.c: Include <float.h>.
35682         (zero): Remove variable.
35683         (minus_zero): New variable.
35684         (main): Use minus_zero instead of -zero.
35685         * modules/floorl-tests (Depends-on): Add float.
35686
35687         * tests/test-roundl.c: Include <float.h>.
35688         (zero): Remove variable.
35689         (minus_zero): New variable.
35690         (main): Use minus_zero instead of -zero.
35691         * modules/roundl-tests (Depends-on): Add float.
35692
35693         * tests/test-truncl.c: Include <float.h>.
35694         (zero): Remove variable.
35695         (minus_zero): New variable.
35696         (main): Use minus_zero instead of -zero.
35697         * modules/truncl-tests (Depends-on): Add float.
35698
35699         * tests/test-frexpl.c (zero): Remove variable.
35700         (minus_zero): New variable.
35701         (main): Use minus_zero instead of -zero.
35702         * modules/frexpl-tests (Depends-on): Add float.
35703
35704         * tests/test-isnan.c (zerol): Remove variable.
35705         (minus_zerol): New variable.
35706         (test_long_double): Use minus_zerol instead of -zerol.
35707         * modules/isnan-tests (Depends-on): Add float.
35708
35709         * tests/test-isnanl.h (zero): Remove variable.
35710         (minus_zero): New variable.
35711         (main): Use minus_zero instead of -zero.
35712         * modules/isnanl-nolibm-tests (Depends-on): Add float.
35713         * modules/isnanl-tests (Depends-on): Add float.
35714
35715         * tests/test-ldexpl.c (zero): Remove variable.
35716         (minus_zero): New variable.
35717         (main): Use minus_zero instead of -zero.
35718         * modules/ldexpl-tests (Depends-on): Add float.
35719
35720         * tests/test-snprintf-posix.h (zerol): Remove variable.
35721         (minus_zerol): New variable.
35722         (test_function): Use minus_zerol instead of -zerol.
35723         * modules/snprintf-posix-tests (Depends-on): Add float.
35724         * modules/vsnprintf-posix-tests (Depends-on): Add float.
35725
35726         * tests/test-sprintf-posix.h (zerol): Remove variable.
35727         (minus_zerol): New variable.
35728         (test_function): Use minus_zerol instead of -zerol.
35729         * modules/sprintf-posix-tests (Depends-on): Add float.
35730         * modules/vsprintf-posix-tests (Depends-on): Add float.
35731
35732         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
35733         (minus_zerol): New variable.
35734         (test_function): Use minus_zerol instead of -zerol.
35735         * modules/vasnprintf-posix-tests (Depends-on): Add float.
35736
35737         * tests/test-vasprintf-posix.c (zerol): Remove variable.
35738         (minus_zerol): New variable.
35739         (test_function): Use minus_zerol instead of -zerol.
35740         * modules/vasprintf-posix-tests (Depends-on): Add float.
35741
35742 2008-10-07  Simon Josefsson  <simon@josefsson.org>
35743
35744         * MODULES.html.sh (Support for building documentation): Mention
35745         pmccabe2html.  Sort entries.
35746
35747         Add pmccabe2html module, from gnupdf.
35748         * build-aux/pmccabe.css: New file.
35749         * build-aux/pmccabe2html: New file.
35750         * m4/pmccabe2html.m4: New file.
35751         * modules/pmccabe2html: New file.
35752
35753 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
35754
35755         flock: new module
35756         * MODULES.html.sh: Add to list of modules.
35757         * lib/flock.c: flock implementation for Windows and Unix systems
35758         which have fcntl.
35759         * doc/glibc-functions/flock.texi: Update documentation.
35760         * lib/sys_file.in.h: <sys/file.h> header file.
35761         * m4/flock.m4: M4 macros.
35762         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
35763         * modules/flock: flock module.
35764         * modules/flock-tests: flock tests module.
35765         * modules/sys_file: sys/file.h module.
35766         * tests/test-flock.c: test suite for flock.
35767
35768 2008-10-06  Jim Meyering  <meyering@redhat.com>
35769
35770         bootstrap: check for LT_INIT more portably still ;-)
35771         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
35772         Spotted by Bruno Haible.
35773
35774 2008-10-06  Eric Blake  <ebb9@byu.net>
35775
35776         test-signbit: avoid tripping Irix cc bug on -0.0L
35777         * tests/test-signbit.c (minus_zerol): Delete, and replace with
35778         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
35779         entire testsuite consistent and avoids an Irix 6.2 bug.
35780
35781 2008-10-05  Bruno Haible  <bruno@clisp.org>
35782             Jim Meyering  <jim@meyering.net>
35783
35784         Add an option for ignoring EPIPE during close_stdout.
35785         * lib/closeout.h: Include <stdbool.h>.
35786         (close_stdout_set_ignore_EPIPE): New declaration.
35787         * lib/closeout.c: Include <stdbool.h>.
35788         (ignore_EPIPE): New variable.
35789         (close_stdout_set_ignore_EPIPE): New function.
35790         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
35791         * lib/close-stream.c (close_stream): Mention the possible EPIPE
35792         failure.
35793         * modules/closeout (Depends-on): Add stdbool.
35794
35795 2008-10-05  Bruno Haible  <bruno@clisp.org>
35796
35797         * modules/accept: New file.
35798         * modules/bind: New file.
35799         * modules/connect: New file.
35800         * modules/getpeername: New file.
35801         * modules/getsockname: New file.
35802         * modules/getsockopt: New file.
35803         * modules/listen: New file.
35804         * modules/recv: New file.
35805         * modules/recvfrom: New file.
35806         * modules/send: New file.
35807         * modules/sendto: New file.
35808         * modules/setsockopt: New file.
35809         * modules/socket: New file.
35810         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
35811         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35812         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
35813         the particular module is requested. Add a link warning when the
35814         particular module is not requested.
35815         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
35816         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
35817         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
35818         the particular module is requested.
35819         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
35820         gl_SYS_SOCKET_H_DEFAULTS): New macros.
35821         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
35822         * modules/sys_socket (Depends-on): Add link-warning.
35823         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
35824         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
35825         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
35826         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
35827         GL_LINK_WARNING.
35828         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
35829         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
35830         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
35831         * doc/posix-functions/getpeername.texi: Mention the new module
35832         'getpeername'.
35833         * doc/posix-functions/getsockname.texi: Mention the new module
35834         'getsockname'.
35835         * doc/posix-functions/getsockopt.texi: Mention the new module
35836         'getsockopt'.
35837         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
35838         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
35839         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
35840         * doc/posix-functions/send.texi: Mention the new module 'send'.
35841         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
35842         * doc/posix-functions/setsockopt.texi: Mention the new module
35843         'setsockopt'.
35844         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
35845         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
35846         listen, connect, accept.
35847         * modules/select-tests (Depends-on): Likewise.
35848
35849 2008-10-05  Bruno Haible  <bruno@clisp.org>
35850
35851         * lib/winsock.c (strerror): Remove unused #undef.
35852         (rpl_close): Remove unused local variable.
35853
35854         * modules/sys_socket (Depends-on); Add errno.
35855
35856 2008-10-05  Bruno Haible  <bruno@clisp.org>
35857
35858         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
35859         (select): Add a link warning when the 'select' module is not used.
35860         * modules/sys_select (Depends-on): Add link-warning.
35861         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
35862         Suggested by Paolo Bonzini.
35863
35864 2008-10-05  Jim Meyering  <meyering@redhat.com>
35865
35866         bootstrap: check for LT_INIT more portably
35867         * build-aux/bootstrap: Avoid using grep -E, since it's not
35868         portable enough.  Suggestion from Bruno Haible.
35869
35870 2008-10-05  Bruno Haible  <bruno@clisp.org>
35871
35872         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
35873         as being fixed by gnulib.
35874
35875 2008-10-05  Bruno Haible  <bruno@clisp.org>
35876
35877         * modules/select-tests: New file, mostly copied from
35878         modules/sys_select-tests.
35879         * tests/test-select.c: New file, mostly copied from
35880         tests/test-sys_select.c.
35881         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
35882         * modules/sys_select-tests (Depends-on): Remove all dependencies.
35883         (Makefile.am): Remove test_sys_select_LDADD.
35884
35885         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
35886         to an undefined symbol, for an error message.
35887         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
35888         (gl_SYS_SELECT_H_DEFAULTS): New macro.
35889         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
35890         winsock-select.c here.
35891         * modules/sys_select (Files): Remove lib/winsock-select.c.
35892         (Depends-on): Remove alloca.
35893         (Makefile.am): Substitute GNULIB_SELECT.
35894         * modules/select: New file.
35895         * doc/posix-functions/select.texi: Update.
35896
35897 2008-10-05  Bruno Haible  <bruno@clisp.org>
35898
35899         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
35900         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
35901         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
35902         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
35903         getdtablesize.
35904         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
35905         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
35906
35907 2008-10-05  Bruno Haible  <bruno@clisp.org>
35908
35909         * modules/getdtablesize-tests: New file.
35910         * tests/test-getdtablesize.c: New file.
35911
35912         New module 'getdtablesize'.
35913         * lib/unistd.in.h (getdtablesize): New declaration.
35914         * lib/getdtablesize.c: New file.
35915         * m4/getdtablesize.m4: New file.
35916         * modules/getdtablesize: New file.
35917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35918         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
35919         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
35920         HAVE_GETDTABLESIZE.
35921         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
35922
35923 2008-10-05  Bruno Haible  <bruno@clisp.org>
35924
35925         * modules/sched (Makefile.am): Fix typo.
35926         Reported by Simon Josefsson.
35927
35928 2008-10-05  Jim Meyering  <meyering@redhat.com>
35929
35930         bootstrap: check for LT_INIT, too
35931         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
35932         are deprecated.  Suggestion from Ralf Wildenhues.
35933
35934 2008-10-05  Bruno Haible  <bruno@clisp.org>
35935
35936         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
35937         overriding them by ours.
35938         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
35939
35940 2008-10-05  Jim Meyering  <meyering@redhat.com>
35941
35942         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
35943         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
35944         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
35945
35946 2008-10-04  Bruno Haible  <bruno@clisp.org>
35947
35948         * modules/dup2 (License): Change to LGPLv2+.
35949         * modules/sleep (License): Likewise.
35950         * modules/perror (License): Likewise.
35951         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
35952         Blake.
35953         * modules/signal (License): Likewise.
35954         * modules/sigprocmask (License): Likewise.
35955         * modules/raise (License): Change to LGPLv2+, with approval by Jim
35956         Meyering.
35957
35958 2008-10-04  Bruno Haible  <bruno@clisp.org>
35959
35960         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
35961         Reported by Rainer Tammer <tammer@tammer.net>.
35962
35963 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
35964             Bruno Haible  <bruno@clisp.org>
35965
35966         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
35967         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
35968         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
35969
35970 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
35971
35972         filevercmp: new module
35973         * lib/filevercmp.h: New function filevercmp comparing version strings.
35974         * lib/filevercmp.c: Implementation of filevercmp function.
35975         * modules/filevercmp: Module metadata.
35976         * tests/test-filevercmp.c: Unit test for new module.
35977         * modules/filevercmp-tests: Unit test metadata.
35978         * MODULES.html.sh: Add filevercmp module.
35979
35980 2008-10-03  Bruno Haible  <bruno@clisp.org>
35981
35982         * lib/c-ctype.h: Add comment.
35983         Reported by Jim Meyering.
35984
35985 2008-10-02  Bruno Haible  <bruno@clisp.org>
35986
35987         * modules/posix_spawn-internal (Depends-on): Add 'open'.
35988
35989 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35990
35991         * build-aux/bootstrap: Allow renaming bootstrap, and change the
35992         name of bootstrap.conf accordingly.
35993
35994 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35995
35996         * build-aux/bootstrap: Install git-merge-changelog configuration
35997         items into .gitconfig if needed.
35998
35999 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36000
36001         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
36002         git repository, and initialize/update it accordingly.
36003
36004 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
36005
36006         * modules/fsync-tests: New file.
36007         * tests/test-fsync.c: New file.
36008
36009         New module 'fsync'.
36010         * lib/fsync.c: New file.
36011         * m4/fsync.m4: New file.
36012         * modules/fsync: New file.
36013         * lib/unistd.in.h (fsync): New declaration.
36014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
36015         GNULIB_FSYNC and HAVE_FSYNC.
36016         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
36017         * MODULES.html.sh (posix_functions): Add fsync.
36018         * doc/posix-functions/fsync.texi: Mention the new module.
36019
36020 2008-10-02  Jim Meyering  <meyering@redhat.com>
36021
36022         fts.c: sync with similar code from coreutils' remove.c
36023         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
36024         Guard also with "#if defined __linux__", since for now at least,
36025         this code is Linux-kernel-specific.
36026
36027 2008-10-02  Jim Meyering  <meyering@redhat.com>
36028
36029         fts: bug fixes
36030         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
36031         Include <sys/vfs.h>, not <sys/statfs.h>.
36032
36033         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
36034         Include <sys/vfs.h>, not <sys/statfs.h>.
36035
36036 2008-10-01  Bruno Haible  <bruno@clisp.org>
36037
36038         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
36039         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
36040         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
36041         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
36042         * doc/posix-functions/posix_spawnp.texi: Likewise.
36043         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
36044         whether posix_spawn actually works.
36045         * m4/pipe.m4 (gl_PIPE): Likewise.
36046         * modules/execute (Files): Add m4/posix_spawn.m4.
36047         * modules/pipe (Files): Add m4/posix_spawn.m4.
36048         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
36049
36050 2008-10-01  Jim Meyering  <meyering@redhat.com>
36051
36052         remove trailing spaces
36053         * NEWS: Likewise.
36054         * lib/poll.c (poll): Likewise.
36055         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
36056         * lib/winsock.c (rpl_close): Likewise.
36057         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
36058         * modules/yield: Likewise.
36059         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
36060         * tests/test-sys_select.c (connect_to_socket): Likewise.
36061
36062         fts.c: adjust a new interface to be more generally useful
36063         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
36064         (fts_build): Adjust caller.
36065
36066 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36067
36068         * modules/cond-tests: New file.
36069         * tests/test-cond.c: New file.
36070
36071 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36072             Bruno Haible  <bruno@clisp.org>
36073
36074         * modules/cond (Dependencies): Add errno, time.
36075         * lib/glthread/cond.h: Include <time.h>.
36076         (gl_cond_define, gl_cond_define_initialized): Use the same definition
36077         across platforms.
36078
36079 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36080             Bruno Haible  <bruno@clisp.org>
36081
36082         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
36083
36084 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36085             Bruno Haible  <bruno@clisp.org>
36086
36087         * modules/tls-tests (Depends-on): Add thread, yield.
36088         (configure.ac): Remove all checks.
36089         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
36090         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36091         gl_thread_self): Remove definitions. Include glthread/thread.h and
36092         glthread/yield.h instead.
36093         (test_tls): Pass an additional NULL argument to gl_thread_join.
36094
36095 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36096             Bruno Haible  <bruno@clisp.org>
36097
36098         * modules/lock-tests (Depends-on): Add thread, yield.
36099         (configure.ac): Remove all checks.
36100         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
36101         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36102         gl_thread_self): Remove definitions. Include glthread/thread.h and
36103         glthread/yield.h instead.
36104         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
36105         additional NULL argument to gl_thread_join.
36106
36107 2008-09-30  Bruno Haible  <bruno@clisp.org>
36108
36109         Fix the Win32 implementation of the 'thread' module.
36110         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
36111         pointer type.
36112         (gl_thread_self): Invoke gl_thread_self_func.
36113         (gl_thread_self_func): New declaration.
36114         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
36115         (do_init_self_key, init_self_key): New functions.
36116         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
36117         Remove some fields.
36118         (running_threads, running_lock): Remove variables.
36119         (get_current_thread_handle): New function.
36120         (gl_thread_self_func, wrapper_func, glthread_create_func,
36121         glthread_join_func, gl_thread_exit_func): Largely rewritten and
36122         simplified.
36123
36124 2008-09-30  Bruno Haible  <bruno@clisp.org>
36125
36126         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
36127         files.
36128
36129 2008-09-30  Jim Meyering  <meyering@redhat.com>
36130
36131         fts.m4: correct the test for statfs.f_type
36132         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
36133         when checking for statfs.f_type.
36134
36135 2008-09-15  Simon Josefsson  <simon@josefsson.org>
36136
36137         tests: avoid some compiler warnings
36138         * tests/test-memchr.c (main): Pass NULL indirectly.
36139         * tests/test-getdate.c (main): Remove unused variable 'ret'.
36140
36141 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
36142
36143         getdate.y: disallow countable dayshifts like "4 yesterday ago"
36144         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
36145         exactly specified dayshifts.
36146         (dayshift): New rule.
36147         (rel): Add dayshift.
36148         (relative_time_table) [tomorrow, yesterday, today, now]:
36149         Use tDAY_SHIFT in place of tDAY_UNIT.
36150         * tests/test-getdate.c: Add tests for now-disallowed countable
36151         dayshifts, e.g., "4 yesterday ago".
36152
36153 2008-09-29  Bruno Haible  <bruno@clisp.org>
36154
36155         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
36156         * tests/test-posix_spawn1.in.sh: Renamed from
36157         tests/test-posix_spawn.in.sh.
36158         * tests/test-posix_spawn2.c: New file.
36159         * tests/test-posix_spawn2.in.sh: New file.
36160         * modules/posix_spawnp-tests (Files): Update.
36161         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
36162
36163 2008-09-29  Bruno Haible  <bruno@clisp.org>
36164
36165         Propagate effects of putenv/setenv/unsetenv to child processes.
36166         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
36167         * lib/pipe.c (create_pipe): Likewise.
36168
36169 2008-09-29  Bruno Haible  <bruno@clisp.org>
36170
36171         Enable use of shell scripts as executables in mingw.
36172         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
36173         run the program as a shell script.
36174         * lib/pipe.c (create_pipe): Likewise.
36175         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
36176         resulting array.
36177
36178 2008-09-29  Eric Blake  <ebb9@byu.net>
36179
36180         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
36181
36182 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
36183
36184         * doc/posix-functions/accept.texi: Update mingw problems.
36185         * doc/posix-functions/bind.texi: Update mingw problems.
36186         * doc/posix-functions/close.texi: Update mingw problems.
36187         * doc/posix-functions/connect.texi: Update mingw problems.
36188         * doc/posix-functions/getpeername.texi: Update mingw problems.
36189         * doc/posix-functions/getsockname.texi: Update mingw problems.
36190         * doc/posix-functions/getsockopt.texi: Update mingw problems.
36191         * doc/posix-functions/ioctl.texi: Update mingw problems.
36192         * doc/posix-functions/listen.texi: Update mingw problems.
36193         * doc/posix-functions/recv.texi: Update mingw problems.
36194         * doc/posix-functions/recvfrom.texi: Update mingw problems.
36195         * doc/posix-functions/select.texi: Update mingw problems.
36196         * doc/posix-functions/send.texi: Update mingw problems.
36197         * doc/posix-functions/sendto.texi: Update mingw problems.
36198         * doc/posix-functions/setsockopt.texi: Update mingw problems.
36199         * doc/posix-functions/socket.texi: Update mingw problems.
36200
36201 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
36202             Bruno Haible  <bruno@clisp.org>
36203
36204         * lib/sys_select.in.h: Include sys/time.h.
36205         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
36206         * modules/sys_select: Depend on sys_time.
36207         * tests/test-sys_select.c: Test that sys/select.h defines struct
36208         timeval fully.
36209
36210 2008-09-29  Bruno Haible  <bruno@clisp.org>
36211
36212         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
36213         * lib/sys_select.in.h: Likewise.
36214
36215 2008-09-29  Bruno Haible  <bruno@clisp.org>
36216
36217         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
36218
36219 2008-09-29  Bruno Haible  <bruno@clisp.org>
36220
36221         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
36222         Set LIBSOCKET instead of augmenting LIBS.
36223         * modules/sockets (Link): New section.
36224         * modules/sockets-tests (test_sockets_LDADD): New variable.
36225         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
36226         * modules/poll-tests (test_poll_LDADD): New variable.
36227         * NEWS: Document the change.
36228
36229 2008-09-29  Bruno Haible  <bruno@clisp.org>
36230
36231         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
36232         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
36233         ARPA_INET_H directly.
36234         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36235
36236 2008-09-28  Bruno Haible  <bruno@clisp.org>
36237
36238         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
36239         from gl_HEADER_SYS_SOCKET.
36240         (gl_HEADER_SYS_SOCKET): Invoke it.
36241         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36242
36243 2008-09-28  Bruno Haible  <bruno@clisp.org>
36244
36245         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
36246         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
36247         Needed on OSF/1 4.0.
36248
36249 2008-09-28  Bruno Haible  <bruno@clisp.org>
36250
36251         Override open more carefully.
36252         * lib/open.c (orig_open): New function.
36253         (rpl_open): Use orig_open instead of open.
36254         * lib/fcntl.in.h: Add special invocation convention.
36255         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
36256         (gl_FUNC_OPEN): Invoke it.
36257
36258         Override freopen more carefully.
36259         * lib/freopen.c (orig_freopen): New function.
36260         (rpl_freopen): Use orig_freopen instead of freopen.
36261         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
36262         (gl_FUNC_FREOPEN): Invoke it.
36263
36264         Override fopen more carefully.
36265         * lib/fopen.c (orig_fopen): New function.
36266         (rpl_fopen): Use orig_fopen instead of fopen.
36267         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
36268         (gl_FUNC_FOPEN): Invoke it.
36269         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
36270
36271 2008-09-28  Bruno Haible  <bruno@clisp.org>
36272
36273         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
36274         SIGPIPE.
36275
36276 2008-09-28  Bruno Haible  <bruno@clisp.org>
36277
36278         * tests/test-sigaction.c (handler, main): Disable the check whether
36279         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
36280         glibc systems with LinuxThreads.
36281
36282 2008-09-28  Bruno Haible  <bruno@clisp.org>
36283
36284         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
36285
36286         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
36287         with AIX xlc.
36288         * lib/fcntl.in.h (open): Likewise.
36289         Reported by Rainer Tammer <tammer@tammer.net>.
36290
36291 2008-09-28  Bruno Haible  <bruno@clisp.org>
36292
36293         * modules/posix_spawnp-tests: New file.
36294         * tests/test-posix_spawn.c: New file.
36295         * tests/test-posix_spawn.in.sh: New file.
36296
36297         New module 'posix_spawnp'.
36298         * modules/posix_spawnp: New file.
36299         * lib/spawnp.c: New file, from GNU libc with modifications.
36300         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
36301
36302         New module 'posix_spawn'.
36303         * modules/posix_spawn: New file.
36304         * lib/spawn.c: New file, from GNU libc with modifications.
36305         * doc/posix-functions/posix_spawn.texi: Mention the new module.
36306
36307         New module 'posix_spawnattr_destroy'.
36308         * modules/posix_spawnattr_destroy: New file.
36309         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
36310         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
36311         module.
36312
36313         New module 'posix_spawnattr_setsigmask'.
36314         * modules/posix_spawnattr_setsigmask: New file.
36315         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
36316         modifications.
36317         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
36318         new module.
36319
36320         New module 'posix_spawnattr_getsigmask'.
36321         * modules/posix_spawnattr_getsigmask: New file.
36322         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
36323         modifications.
36324         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
36325         new module.
36326
36327         New module 'posix_spawnattr_setsigdefault'.
36328         * modules/posix_spawnattr_setsigdefault: New file.
36329         * lib/spawnattr_setdefault.c: New file, from GNU libc with
36330         modifications.
36331         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
36332         new module.
36333
36334         New module 'posix_spawnattr_getsigdefault'.
36335         * modules/posix_spawnattr_getsigdefault: New file.
36336         * lib/spawnattr_getdefault.c: New file, from GNU libc with
36337         modifications.
36338         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
36339         new module.
36340
36341         New module 'posix_spawnattr_setschedpolicy'.
36342         * modules/posix_spawnattr_setschedpolicy: New file.
36343         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
36344         modifications.
36345         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
36346         new module.
36347
36348         New module 'posix_spawnattr_getschedpolicy'.
36349         * modules/posix_spawnattr_getschedpolicy: New file.
36350         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
36351         modifications.
36352         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
36353         new module.
36354
36355         New module 'posix_spawnattr_setschedparam'.
36356         * modules/posix_spawnattr_setschedparam: New file.
36357         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
36358         modifications.
36359         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
36360         new module.
36361
36362         New module 'posix_spawnattr_getschedparam'.
36363         * modules/posix_spawnattr_getschedparam: New file.
36364         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
36365         modifications.
36366         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
36367         new module.
36368
36369         New module 'posix_spawnattr_setpgroup'.
36370         * modules/posix_spawnattr_setpgroup: New file.
36371         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
36372         modifications.
36373         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
36374         module.
36375
36376         New module 'posix_spawnattr_getpgroup'.
36377         * modules/posix_spawnattr_getpgroup: New file.
36378         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
36379         modifications.
36380         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
36381         module.
36382
36383         New module 'posix_spawnattr_setflags'.
36384         * modules/posix_spawnattr_setflags: New file.
36385         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
36386         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
36387         module.
36388
36389         New module 'posix_spawnattr_getflags'.
36390         * modules/posix_spawnattr_getflags: New file.
36391         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
36392         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
36393         module.
36394
36395         New module 'posix_spawnattr_init'.
36396         * modules/posix_spawnattr_init: New file.
36397         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
36398         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
36399         module.
36400
36401         New module 'posix_spawn_file_actions_destroy'.
36402         * modules/posix_spawn_file_actions_destroy: New file.
36403         * lib/spawn_faction_destroy.c: New file, from GNU libc with
36404         modifications.
36405         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
36406         the new module.
36407
36408         New module 'posix_spawn_file_actions_addopen'.
36409         * modules/posix_spawn_file_actions_addopen: New file.
36410         * lib/spawn_faction_addopen.c: New file, from GNU libc with
36411         modifications.
36412         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
36413         the new module.
36414
36415         New module 'posix_spawn_file_actions_adddup2'.
36416         * modules/posix_spawn_file_actions_adddup2: New file.
36417         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
36418         modifications.
36419         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
36420         the new module.
36421
36422         New module 'posix_spawn_file_actions_addclose'.
36423         * modules/posix_spawn_file_actions_addclose: New file.
36424         * lib/spawn_faction_addclose.c: New file, from GNU libc with
36425         modifications.
36426         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
36427         the new module.
36428
36429         New module 'posix_spawn_file_actions_init'.
36430         * modules/posix_spawn_file_actions_init: New file.
36431         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
36432         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
36433         new module.
36434
36435         New module 'posix_spawn-internal'.
36436         * modules/posix_spawn-internal: New file.
36437         * lib/spawn_int.h: New file, from GNU libc with modifications.
36438         * lib/spawni.c: New file, from GNU libc with modifications.
36439         * m4/posix_spawn.m4: New file.
36440
36441         New module 'spawn'.
36442         * modules/spawn: New file.
36443         * lib/spawn.in.h: New file, from GNU libc with modifications.
36444         * m4/spawn_h.m4: New file.
36445         * doc/posix-headers/spawn.texi: Mention the new module.
36446
36447 2008-09-28  Bruno Haible  <bruno@clisp.org>
36448
36449         * modules/sched-tests: New file.
36450         * tests/test-sched.c: New file.
36451
36452         New module 'sched'.
36453         * modules/sched: New file.
36454         * lib/sched.in.h: New file.
36455         * m4/sched_h.m4: New file.
36456         * doc/posix-headers/sched.texi: Mention the new module.
36457
36458 2008-09-27  Eric Blake  <ebb9@byu.net>
36459
36460         Fix previous patch, and tweak references to $0.
36461         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
36462         (func_version, func_gnulib_dir): Don't call this program
36463         gnulib-tool.
36464         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
36465         with using $0 in function.
36466         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
36467         (func_fatal_error): Reuse the name the user invoked us with.
36468
36469 2008-09-27  Bruno Haible  <bruno@clisp.org>
36470
36471         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
36472         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
36473         (gl_ICONV_H): Not here.
36474         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36475         instead of assigning ICONV_H directly.
36476
36477         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
36478         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
36479         WCHAR_H directly.
36480
36481 2008-09-27  Bruno Haible  <bruno@clisp.org>
36482
36483         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
36484         * modules/arpa_inet (Depends-on): Add link-warning.
36485         (Makefile.am): Insert the definition of GL_LINK-WARNING.
36486         * modules/unistd (Makefile.am): Likewise.
36487
36488 2008-09-26  Bruno Haible  <bruno@clisp.org>
36489
36490         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
36491         variables.
36492         (func_version): Essentially copied from gnulib-tool.
36493         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
36494         func_readlink): Copied from gnulib-tool.
36495
36496 2008-09-26  Bruno Haible  <bruno@clisp.org>
36497
36498         * gnulib-tool (func_version): Change directory to $gnulib_dir before
36499         invoking git-version-gen.
36500
36501 2008-09-26  Bruno Haible  <bruno@clisp.org>
36502
36503         * posix-modules: Update to directory names changed on 2008-01-19.
36504         Remove commas in output before splitting into words. No more need to
36505         avoid 'ftruncate' since 2007-02-19.
36506
36507 2008-09-26  Bruno Haible  <bruno@clisp.org>
36508
36509         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
36510
36511 2008-09-26  Bruno Haible  <bruno@clisp.org>
36512
36513         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
36514         * modules/fwriteerror (Depends-on): Add errno.
36515
36516 2008-09-26  Bruno Haible  <bruno@clisp.org>
36517
36518         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
36519         * tests/test-vc-list-files-cvs.sh: Likewise.
36520
36521 2008-09-26  Bruno Haible  <bruno@clisp.org>
36522
36523         * doc/posix-headers/sys_resource.texi: Reorder items.
36524
36525 2008-09-26  Jim Meyering  <meyering@redhat.com>
36526
36527         fts: tweak inode comparison function
36528         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
36529         inode numbers, as documented.
36530
36531         fts: sort dirent entries on inode number before traversing
36532         This avoids a quadratic, seek-related performance penalty when
36533         operating on a directory containing many entries (measurable at 10k;
36534         3.5 hours at 2 million entries with a cold cache) on certain types
36535         of file systems, including ext3 and ext4, but not tmpfs.
36536         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
36537         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
36538         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
36539         (fs_handles_readdir_ordered_dirents_efficiently): New function.
36540         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
36541         (fts_build): Set the stat.st_ino member from D_INO.
36542         If it is likely to be useful, sort dirent entries on inode number.
36543
36544         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
36545         and the struct statfs.f_type member.
36546         * modules/fts (Depends-on): Add d-ino.
36547
36548 2008-09-26  Bruno Haible  <bruno@clisp.org>
36549
36550         * modules/sigpipe-die (Depends-on): Add sigpipe.
36551
36552         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
36553         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
36554         and GNULIB_STDIO_H_SIGPIPE are set.
36555         * lib/stdio-write.c: New file.
36556         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
36557         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36558         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36559         REPLACE_STDIO_WRITE_FUNCS.
36560         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
36561         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36562         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36563         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36564         * modules/stdio (Files): Add lib/stdio-write.c.
36565         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
36566         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36567         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36568         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36569         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
36570         REPLACE_FPRINTF_POSIX.
36571         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
36572         REPLACE_PRINTF_POSIX.
36573         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
36574         REPLACE_VFPRINTF_POSIX.
36575         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
36576         REPLACE_VPRINTF_POSIX.
36577         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
36578         SIGPIPE issue.
36579         * doc/posix-functions/fputc.texi: Likewise.
36580         * doc/posix-functions/fputs.texi: Likewise.
36581         * doc/posix-functions/fwrite.texi: Likewise.
36582         * doc/posix-functions/printf.texi: Likewise.
36583         * doc/posix-functions/putc.texi: Likewise.
36584         * doc/posix-functions/putchar.texi: Likewise.
36585         * doc/posix-functions/puts.texi: Likewise.
36586         * doc/posix-functions/vfprintf.texi: Likewise.
36587         * doc/posix-functions/vprintf.texi: Likewise.
36588
36589         * modules/safe-write (Depends-on): Add write.
36590
36591         * modules/sigpipe-tests: New file.
36592         * tests/test-sigpipe.c: New file.
36593         * tests/test-sigpipe.sh: New file.
36594
36595         * modules/write: New file.
36596         * lib/unistd.in.h: Include <sys/types.h>.
36597         (write): New declaration.
36598         * lib/write.c: New file.
36599         * m4/write.m4: New file.
36600         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36601         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
36602         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
36603         GNULIB_WRITE, REPLACE_WRITE.
36604         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
36605         and the SIGPIPE issue.
36606
36607         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
36608         (raise): New declaration.
36609         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
36610         (ext_signal): New function.
36611         (rpl_raise): New function.
36612         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
36613         GNULIB_SIGNAL_H_SIGPIPE.
36614         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
36615         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
36616
36617         * modules/sigpipe: New file.
36618         * m4/sigpipe.m4: New file.
36619
36620 2008-09-25  Derek Price  <derek@ximbiot.com>
36621             Bruno Haible  <bruno@clisp.org>
36622
36623         * gnulib-tool (func_import): Report all license incompatibilities, not
36624         just the first one.
36625
36626 2008-09-25  Bruno Haible  <bruno@clisp.org>
36627
36628         * gnulib-tool (func_import): When computing the edits, consider not
36629         only the Makefile.ams that exist but also those that will be generated.
36630
36631 2008-09-25  Simon Josefsson  <simon@josefsson.org>
36632
36633         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
36634         fixes gnulib-tool --test warning about duplicate dependency.
36635
36636 2008-09-25  Bruno Haible  <bruno@clisp.org>
36637
36638         * gnulib-tool: Don't ask the user to perform edits in the generated
36639         Makefile.ams.
36640         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
36641         apply to the Makefile.am being generated.
36642         (func_emit_tests_Makefile_am): Execute edits that apply to the
36643         Makefile.am being generated.
36644         (func_import): Setup list of Makefile.am edits before emitting the
36645         Makefile.ams, not at the end.
36646         (func_create_testdir): Update.
36647         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36648
36649 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36650
36651         * gnulib-tool (func_import): Store the --tests-base option in the
36652         comment in gnulib-cache.m4.
36653
36654 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
36655
36656         * NEWS: Document increased portability that sys_select now provides.
36657
36658         * lib/sys_select.in.h: Install select wrapper.
36659         * lib/sys_socket.in.h: Use more descriptive name when there is no
36660         select wrapper.
36661         * lib/winsock-select.c: New.
36662         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
36663         Require gl_HEADER_SYS_SOCKET.
36664         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
36665         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
36666         * tests/test-sys_select.c: Add functional tests.
36667
36668 2008-09-24  Eric Blake  <ebb9@byu.net>
36669
36670         open, fopen: close fd leak in last patch
36671         * lib/open.c (rpl_open): Close fd before returning error.
36672         * lib/fopen.c (rpl_fopen): Close fd before returning error.
36673         * doc/posix-functions/open.texi (open): Document that Irix also
36674         has the bug.
36675         * doc/posix-functions/fopen.texi (fopen): Likewise.
36676         Reported by Paolo Bonzini.
36677
36678 2008-09-24  Bruno Haible  <bruno@clisp.org>
36679
36680         Ensure that a filename ending in a slash cannot be used to access a
36681         non-directory.
36682         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
36683         to check whether it's really a directory.
36684         * lib/fopen.c: Include fcntl.h, unistd.h.
36685         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
36686         and fdopen().
36687         * modules/fopen (Depends-on): Add unistd.
36688         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
36689         * tests/test-fopen.c (main): Likewise.
36690         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
36691         * doc/posix-functions/fopen.texi: Likewise.
36692         Reported by Eric Blake.
36693
36694 2008-09-23  Eric Blake  <ebb9@byu.net>
36695
36696         c-stack: avoid compiler optimizations when provoking overflow
36697         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
36698         recursion harder to optimize, to ensure a stack overflow occurs.
36699         * tests/test-c-stack.c (recurse): Likewise.
36700         Borrowed from libsigsegv.
36701
36702         c-stack: work around Irix sigaltstack bug
36703         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
36704         whether sigaltstack uses wrong end of stack_t (copied in part from
36705         libsigsegv).
36706         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
36707         Irix bug, without requiring an over-allocation.
36708         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
36709         bug.
36710
36711         fopen: document mingw bug on directories
36712         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
36713         not allowing a stream visiting a directory, even though reading
36714         from such a stream is not portable.
36715
36716 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36717
36718         * lib/poll.c: Rewrite.
36719         * modules/poll: Depend on alloca.
36720
36721 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36722
36723         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
36724         instead define prototypes for a full set of wrappers.  Ensure
36725         that Cygwin does not use the compatibility code, which is only
36726         for MinGW.
36727         * lib/winsock.c: New.
36728         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
36729         * modules/sys_socket: Add lib/winsock.c.
36730
36731         * modules/poll-tests: Add errno and perror.
36732         * tests/test-poll.c: Use ioctl, not ioctlsocket.
36733
36734 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36735
36736         * tests/test-poll.c: Downgrade minimum needed Winsock version.
36737
36738 2008-09-23  Bruno Haible  <bruno@clisp.org>
36739
36740         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
36741         * doc/glibc-functions/*: Likewise.
36742
36743 2008-09-23  Simon Josefsson  <simon@josefsson.org>
36744
36745         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
36746         success.
36747
36748 2008-09-22  Eric Blake  <ebb9@byu.net>
36749             Bruno Haible  <bruno@clisp.org>
36750
36751         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
36752         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
36753         supply %A but mishandle pseudo-NaN.
36754         Reported by Simon Josefsson.
36755
36756 2008-09-21  Bruno Haible  <bruno@clisp.org>
36757
36758         * tests/test-lock.c (main): Tweak skip message.
36759         * tests/test-tls.c (main): Likewise.
36760
36761 2008-09-21  Bruno Haible  <bruno@clisp.org>
36762
36763         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
36764         whether 'struct sigaction' has sa_sigaction here...
36765         (gl_PREREQ_SIG_HANDLER_H): ... not here.
36766         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
36767
36768 2008-09-21  Bruno Haible  <bruno@clisp.org>
36769
36770         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
36771         section.
36772         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
36773         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
36774         the new section.
36775         (Support for obsolete systems lacking POSIX:2001): New section.
36776         (String handling <string.h>): Move strdup to the new section.
36777         Suggested by Simon Josefsson and Paolo Bonzini.
36778
36779 2008-09-21  Bruno Haible  <bruno@clisp.org>
36780
36781         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
36782         exponents in %e and %g results on 'long double'. Needed for mingw's
36783         improved *printf functions.
36784         * tests/test-vasprintf-posix.c (test_function): Likewise.
36785         * tests/test-snprintf-posix.h (test_function): Likewise.
36786         * tests/test-sprintf-posix.h (test_function): Likewise.
36787         Reported by Eric Blake.
36788
36789 2008-09-21  Bruno Haible  <bruno@clisp.org>
36790
36791         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
36792         * tests/test-sprintf-posix.h (test_function): Likewise.
36793
36794 2008-09-21  Bruno Haible  <bruno@clisp.org>
36795
36796         * modules/getpass (Depends-on): Add strdup-posix.
36797
36798         New module 'strdup-posix'.
36799         * modules/strdup-posix: New file.
36800         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
36801         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
36802         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36803         REPLACE_STRDUP.
36804         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
36805         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
36806         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36807         strdup-posix.
36808
36809         * modules/strdup (Depends-on): Remove malloc-posix.
36810
36811 2008-09-20  Bruno Haible  <bruno@clisp.org>
36812
36813         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
36814         Wildenhues.
36815
36816 2008-09-20  Bruno Haible  <bruno@clisp.org>
36817
36818         Ensure that wint_t gets defined on IRIX 5.3.
36819         * lib/wchar.in.h (wint_t): Define if not defined by the system.
36820         * lib/wctype.in.h (wint_t): Likewise.
36821         (__wctype_wint_t): Remove type.
36822         (isw*): Use wint_t instead of __wctype_wint_t.
36823         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
36824         * modules/wchar (Files): Add m4/wint_t.m4.
36825         (Makefile.am): Substitute HAVE_WINT_T.
36826         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
36827         * tests/test-wctype.c: Check that wint_t is defined.
36828         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
36829         * doc/posix-headers/wctype.texi: Likewise.
36830         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36831
36832 2008-09-18  Bruno Haible  <bruno@clisp.org>
36833
36834         * gnulib-tool (func_exit): Update comment.
36835
36836 2008-09-18  Simon Josefsson  <simon@josefsson.org>
36837
36838         * modules/getaddrinfo (Depends-on): Remove strdup, this module
36839         assumes strdup exists and does not depend on strdup to return
36840         ENOMEM on out of memory conditions.
36841
36842 2008-09-18  Bruno Haible  <bruno@clisp.org>
36843
36844         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
36845         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
36846         digits for the exponent.
36847
36848 2008-09-18  Jim Meyering  <meyering@redhat.com>
36849             Bruno Haible  <bruno@clisp.org>
36850
36851         * lib/vasnprintf.c (decimal_point_char): Define also if
36852         NEED_PRINTF_INFINITE_LONG_DOUBLE.
36853
36854 2008-09-16  Bruno Haible  <bruno@clisp.org>
36855         and Eric Blake  <ebb9@byu.net>
36856
36857         vasnprintf: support Irix 5.3
36858         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
36859         that mishandle long double infinity.
36860         Reported by Tom G. Christensen.
36861
36862 2008-09-16  Bruno Haible  <bruno@clisp.org>
36863
36864         * doc/glibc-functions/scandir.texi: Mention the function is missing on
36865         Solaris 9.
36866         * doc/glibc-functions/alphasort.texi: Likewise.
36867         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
36868
36869 2008-09-16  Jim Meyering  <meyering@redhat.com>
36870
36871         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
36872         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
36873         a umask modification leak out of a subshell.  Otherwise, the
36874         opensolaris /bin/sh would be accepted and thus cause unwarranted
36875         failures in the coreutils test suite.
36876
36877 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
36878
36879         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
36880         to succeed.
36881
36882 2008-09-16  Jim Meyering  <meyering@redhat.com>
36883
36884         avoid spurious test failure when library is built without ACL support
36885         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
36886         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
36887         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
36888         * tests/test-copy-acl.sh: Likewise.
36889
36890 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36891
36892         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
36893         based on character occurrence counts.
36894
36895 2008-09-15  Eric Blake  <ebb9@byu.net>
36896
36897         tests: avoid some compiler warnings
36898         * tests/test-memchr.c (main): Pass NULL indirectly.
36899         * tests/test-closein.c (main): Avoid unused variable.
36900
36901 2008-09-15  Bruno Haible  <bruno@clisp.org>
36902
36903         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
36904         are missing on OpenBSD 4.0 individually.
36905         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36906
36907 2008-09-15  Bruno Haible  <bruno@clisp.org>
36908
36909         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
36910         * doc/posix-functions/strerror.texi: Mention also Cygwin.
36911         * doc/posix-functions/perror.texi: Likewise.
36912         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
36913         is missing.
36914         Reported by Eric Blake.
36915
36916         * lib/errno.in.h: Use replacement values >= 2000.
36917         Reported by Eric Blake.
36918
36919 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36920
36921         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
36922         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
36923         limit.
36924         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
36925         compareseq was aborted.
36926
36927 2008-09-14  Bruno Haible  <bruno@clisp.org>
36928
36929         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
36930         yvec_edit_count.
36931         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
36932         (fstrcmp_bounded): Simplify result computation accordingly.
36933
36934 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36935
36936         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
36937         (fstrcmp): Define in terms of fstrcmp_bounded.
36938         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
36939         lower_bound argument.
36940         Return quickly if the result is certainly < lower_bound.
36941         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
36942
36943 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36944
36945         * lib/diffseq.h (EARLY_ABORT): New macro.
36946         (compareseq): Change return type to bool. Return true when EARLY_ABORT
36947         evaluates to true.
36948
36949 2008-09-14  Bruno Haible  <bruno@clisp.org>
36950
36951         * modules/perror-tests: New file.
36952         * tests/test-perror.sh: New file.
36953         * tests/test-perror.c: New file.
36954
36955         New module 'perror'.
36956         * lib/stdio.in.h (perror): New declaration.
36957         * lib/perror.c: New file.
36958         * m4/perror.m4: New file.
36959         * modules/perror: New file.
36960         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
36961         * doc/posix-functions/perror.texi: Mention the perror module.
36962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
36963         REPLACE_PERROR.
36964         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
36965         REPLACE_PERROR.
36966
36967 2008-09-14  Bruno Haible  <bruno@clisp.org>
36968
36969         * modules/stdio (Makefile.am): Reorder to match the order in
36970         lib/stdio.in.h.
36971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36972
36973 2008-09-13  Bruno Haible  <bruno@clisp.org>
36974
36975         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
36976
36977 2008-09-13  Bruno Haible  <bruno@clisp.org>
36978
36979         Extend strerror to cover the added errno values.
36980         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
36981         (rpl_strerror): Provide error messages for the added errno values and
36982         for the WSA* values.
36983         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
36984         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
36985         strerror.
36986         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
36987         * modules/strerror (Depends-on): Add errno.
36988         * doc/posix-functions/strerror.texi: Document the change.
36989         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
36990         and EOVERFLOW.
36991
36992 2008-09-13  Bruno Haible  <bruno@clisp.org>
36993
36994         * modules/EOVERFLOW: Remove file.
36995         * m4/eoverflow.m4: Remove file.
36996         * modules/EOVERFLOW-tests: Remove file.
36997         * tests/test-EOVERFLOW.c: Remove file.
36998         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
36999         * modules/ftell (Depends-on): Likewise.
37000         * modules/getdelim (Depends-on): Likewise.
37001         * modules/getugroups (Depends-on): Likewise.
37002         * modules/poll (Depends-on): Likewise.
37003         * modules/snprintf (Depends-on): Likewise.
37004         * modules/sprintf-posix (Depends-on): Likewise.
37005         * modules/vasnprintf (Depends-on): Likewise.
37006         * modules/vasprintf (Depends-on): Likewise.
37007         * modules/vfprintf-posix (Depends-on): Likewise.
37008         * modules/vsnprintf (Depends-on): Likewise.
37009         * modules/vsprintf-posix (Depends-on): Likewise.
37010         * modules/xvasprintf (Depends-on): Likewise.
37011         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37012         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
37013         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
37014         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
37015         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37016         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
37017         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
37018         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
37019         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37020         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
37021         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
37022         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
37023         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37024         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
37025         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
37026         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
37027         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37028         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
37029         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
37030         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
37031         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37032         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
37033         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
37034         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
37035         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
37036         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37037         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
37038         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
37039         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
37040         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
37041         * MODULES.html.sh: Remove EOVERFLOW.
37042         * NEWS: Mention the change.
37043
37044 2008-09-13  Bruno Haible  <bruno@clisp.org>
37045
37046         * modules/errno-tests: New file.
37047         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
37048
37049         * lib/errno.in.h: New file.
37050         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
37051         * modules/errno: New file.
37052         * doc/posix-headers/errno.texi: Update documentation.
37053         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
37054
37055 2008-09-13  Bruno Haible  <bruno@clisp.org>
37056
37057         * tests/test-poll.c: Use #if for native Windows, rather than testing
37058         __MSVCRT__.
37059
37060 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37061             Bruno Haible  <bruno@clisp.org>
37062
37063         * lib/glob.c: Don't include <pwd.h> on native Windows.
37064         (WINDOWS32): New macro.
37065         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
37066
37067 2008-09-13  Bruno Haible  <bruno@clisp.org>
37068
37069         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
37070         (ETIMEDOUT): Remove macro.
37071         (glthread_cond_timedwait_multithreaded): New declaration.
37072         (glthread_cond_timedwait): Use it.
37073         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
37074         (glthread_cond_timedwait_multithreaded): New function.
37075
37076 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37077
37078         * modules/poll-tests: Do not check for io.h.
37079         * tests/test-poll.c: Check for __MSVCRT__ instead.
37080
37081 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37082
37083         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
37084         * modules/poll-tests: Add inet_pton, stdbool, sockets.
37085         * tests/test-poll.c: Use them.  Use _pipe on Windows.
37086
37087 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37088
37089         * modules/poll-tests: New.
37090         * tests/test-poll.c: New.
37091
37092 2008-09-12  Eric Blake  <ebb9@byu.net>
37093
37094         frexp: test for NetBSD failure on -0.0
37095         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
37096         not all, bugs from NetBSD 3.0 have been fixed.
37097         * doc/posix-functions/frexp.texi (frexp): Document bug.
37098         Reported by Thomas Klausner.
37099
37100         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
37101         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
37102         literal -0.0.
37103         Reported by Jonathan C. Patschke <jp@centtech.com>.
37104
37105 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37106
37107         * lib/glthread/cond.h: Use dummy implementation also if
37108         USE_WIN32_THREADS.
37109
37110 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37111
37112         * modules/fnmatch-posix (License): Change to LGPLv2+.
37113         * modules/fnmatch-gnu (License): Likewise.
37114
37115 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37116
37117         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
37118
37119 2008-09-11  Jim Meyering  <meyering@redhat.com>
37120
37121         * users.txt: Add gtk-vnc.
37122
37123 2008-09-08  Simon Josefsson  <simon@josefsson.org>
37124
37125         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
37126         rotate amounts.
37127
37128         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
37129         required for 16-bit and 8-bit rotates.
37130         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
37131         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
37132         UINT8_MAX instead of hard-coded constants.
37133         Suggested by Paul Eggert.
37134
37135 2008-09-07  Bruno Haible  <bruno@clisp.org>
37136
37137         * tests/test-striconveh.c (main): Check behaviour when converting from
37138         UTF-7.
37139
37140         Make striconveh work better with stateful encodings.
37141         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
37142         that iconv does not increment the inptr when returning -1/EINVAL.
37143
37144 2008-09-07  Bruno Haible  <bruno@clisp.org>
37145
37146         * build-aux/config.rpath: Update according to libtool-2.2.6.
37147         * build-aux/config.libpath: Likewise.
37148
37149 2008-09-06  Bruno Haible  <bruno@clisp.org>
37150
37151         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
37152         * lib/freadptr.c (freadptr): Likewise.
37153         * lib/freadseek.c (freadptrinc): Likewise.
37154         Reported by Simon Josefsson.
37155
37156 2008-09-06  Bruno Haible  <bruno@clisp.org>
37157
37158         * modules/freadptr (License): Change to LGPLv2+.
37159         * modules/freadseek (License): Likewise.
37160         Suggested by Eric Blake.
37161
37162         * modules/memchr2 (License): Change to LGPLv2+.
37163         Approved by Eric Blake.
37164
37165 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37166             Bruno Haible  <bruno@clisp.org>
37167
37168         Make gnulib-tool work with native 'sed' on AIX.
37169         * gnulib-tool (sed_noop): New variable.
37170         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
37171         func_add_or_update, func_create_testdir): Use it to initialize sed
37172         script variables.
37173         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37174
37175 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
37176             Bruno Haible  <bruno@clisp.org>
37177
37178         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
37179         also works after #include directives.
37180
37181 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
37182
37183         getdate.y: reject an out-of-range timezone value
37184         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
37185         the range [-24...+24].  When specified with only one or two digits,
37186         * tests/test-getdate.c: Tests for the fix.
37187         * doc/getdate.texi: Document this change.
37188
37189 2008-09-03  Bruno Haible  <bruno@clisp.org>
37190
37191         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
37192
37193 2008-09-02  Simon Josefsson  <simon@josefsson.org>
37194
37195         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
37196         <bruce.korb@gmail.com> with ideas from Ben Pfaff
37197         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
37198         Blake <ebb9@byu.net>.
37199
37200         * tests/test-bitrotate.c: Add more test vectors.
37201
37202 2008-09-02  Eric Blake  <ebb9@byu.net>
37203
37204         vasnprintf-posix: handle large precision via %.*d
37205         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
37206         when handling it ourselves.
37207         * tests/test-vasnprintf-posix.c (test_function): Add test.
37208         * tests/test-snprintf-posix.h (test_function): Likewise.
37209         * tests/test-sprintf-posix.h (test_function): Likewise.
37210         * tests/test-vasprintf-posix.c (test_function): Likewise.
37211         Reported by Alain Guibert.
37212
37213 2008-09-01  Eric Blake  <ebb9@byu.net>
37214
37215         c-stack: make configure-time check more robust
37216         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
37217         successful sigaction call.
37218         Reported by Tom G. Christensen.
37219
37220 2008-09-01  Bruno Haible  <bruno@clisp.org>
37221
37222         New module 'findprog-lgpl'.
37223         * modules/findprog-lgpl: New file.
37224         * lib/findprog-lgpl.c: New file.
37225         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
37226         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
37227         to decide whether to use strdup or xstrdup, concatenated_filename or
37228         xconcatenated_filename.
37229
37230 2008-09-01  Bruno Haible  <bruno@clisp.org>
37231
37232         Split module 'concat-filename' into 'concat-filename' (LGPL) and
37233         'xconcat-filename' (GPL).
37234         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
37235         (License): Change to LGPLv2+.
37236         * modules/xconcat-filename: New file.
37237         * lib/concat-filename.h (concatenated_filename): Change specification.
37238         (xconcatenated_filename): New declaration.
37239         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
37240         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
37241         memory situations.
37242         * lib/xconcat-filename.c: New file.
37243         * NEWS: Mention the change.
37244         * lib/findprog.c: Include concat-filename.h, not filename.h.
37245         (find_in_path): Use xconcatenated_filename instead of
37246         concatenated_filename.
37247         * lib/javacomp.c: Include concat-filename.h, not filename.h.
37248         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37249         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37250         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37251         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
37252         instead of concatenated_filename.
37253         * lib/javaexec.c: Include concat-filename.h, not filename.h.
37254         (execute_java_class): Use xconcatenated_filename instead of
37255         concatenated_filename.
37256         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
37257         * modules/javacomp (Depends-on): Likewise.
37258         * modules/javaexec (Depends-on): Likewise.
37259
37260 2008-09-01  Bruno Haible  <bruno@clisp.org>
37261
37262         Split module 'filename' into 'filename' and 'concat-filename'.
37263         * modules/filename: Keep only lib/filename.h.
37264         (License): Change to LGPLv2+.
37265         * modules/concat-filename: New file, extracted from modules/filename.
37266         * lib/filename.h (concatenated_filename): Remove declaration.
37267         * lib/concat-filename.h: New file, extracted from lib/filename.h.
37268         * lib/concat-filename.c: Include concat-filename.h.
37269         * NEWS: Mention the change.
37270
37271 2008-09-01  Simon Josefsson  <simon@josefsson.org>
37272
37273         * lib/bitrotate.h (rotl8, rotr8): Add.
37274
37275         * modules/bitrotate (configure.ac): Need
37276         AC_REQUIRE([AC_C_INLINE]).
37277         (Description): Mention stdint.h.  Reported by Bruno Haible
37278         <bruno@clisp.org>.
37279
37280         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
37281         Paolo Bonzini <bonzini@gnu.org>.
37282
37283 2008-08-31  Bruno Haible  <bruno@clisp.org>
37284
37285         Assume Solaris specific bi-arch conventions on Solaris systems.
37286         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
37287         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
37288         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
37289         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
37290         like acl_libdirstem.
37291         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
37292         acl_libdirstem.
37293         * NEWS: Mention the change.
37294         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
37295
37296 2008-08-31  Jim Meyering  <meyering@redhat.com>
37297
37298         * lib/strftime.h: Add comments describing the two added arguments.
37299
37300         remove duplicate #include directives
37301         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
37302         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
37303
37304 2008-08-31  Bruno Haible  <bruno@clisp.org>
37305
37306         New module 'sigpipe-die'.
37307         * modules/sigpipe-die: New file.
37308         * lib/sigpipe-die.h: New file.
37309         * lib/sigpipe-die.c: New file.
37310         * MODULES.html.sh (Signal handling): Add sigpipe-die.
37311
37312 2008-08-31  Bruno Haible  <bruno@clisp.org>
37313
37314         Don't override previously installed signal handlers.
37315         * lib/fatal-signal.c (saved_sigactions): New variable.
37316         (uninstall_handlers): Reset the signal to the saved handler, not
37317         to SIG_DFL (except when ignored).
37318         (install_handlers): Save the previous handlers.
37319
37320 2008-08-30  Bruno Haible  <bruno@clisp.org>
37321
37322         * gnulib-tool (func_reset_sigpipe): New function.
37323         (func_get_automake_snippet, func_modules_transitive_closure,
37324         func_import): Invoke it before a join command that reads from stdin,
37325         to avoid "echo: write error: Broken pipe" error messages on stderr.
37326         Reported by Sam Steingold <sds@gnu.org>.
37327
37328 2008-08-30  Bruno Haible  <bruno@clisp.org>
37329
37330         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
37331         Code copied from m4/open.m4.
37332         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
37333         access and the filename ends in a slash. Code copied from lib/open.c.
37334         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
37335         * tests/test-fopen.c (main): Check against bug with trailing slash.
37336
37337 2008-08-29  Bruno Haible  <bruno@clisp.org>
37338
37339         Avoid some "gcc -pedantic" warnings.
37340         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
37341         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
37342         * lib/dirent.in.h: Likewise.
37343         * lib/fcntl.in.h: Likewise.
37344         * lib/float.in.h: Likewise.
37345         * lib/iconv.in.h: Likewise.
37346         * lib/inttypes.in.h: Likewise.
37347         * lib/locale.in.h: Likewise.
37348         * lib/math.in.h: Likewise.
37349         * lib/netinet_in.in.h: Likewise.
37350         * lib/search.in.h: Likewise.
37351         * lib/signal.in.h: Likewise.
37352         * lib/stdarg.in.h: Likewise.
37353         * lib/stdint.in.h: Likewise.
37354         * lib/stdio.in.h: Likewise.
37355         * lib/stdlib.in.h: Likewise.
37356         * lib/string.in.h: Likewise.
37357         * lib/strings.in.h: Likewise.
37358         * lib/sys_select.in.h: Likewise.
37359         * lib/sys_socket.in.h: Likewise.
37360         * lib/sys_stat.in.h: Likewise.
37361         * lib/sys_time.in.h: Likewise.
37362         * lib/sysexits.in.h: Likewise.
37363         * lib/time.in.h: Likewise.
37364         * lib/unistd.in.h: Likewise.
37365         * lib/wchar.in.h: Likewise.
37366         * lib/wctype.in.h: Likewise.
37367         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
37368         * modules/fchdir (Makefile.am): Likewise.
37369         * modules/fcntl (Makefile.am): Likewise.
37370         * modules/float (Makefile.am): Likewise.
37371         * modules/iconv_open (Makefile.am): Likewise.
37372         * modules/inttypes (Makefile.am): Likewise.
37373         * modules/locale (Makefile.am): Likewise.
37374         * modules/math (Makefile.am): Likewise.
37375         * modules/netinet_in (Makefile.am): Likewise.
37376         * modules/search (Makefile.am): Likewise.
37377         * modules/signal (Makefile.am): Likewise.
37378         * modules/stdarg (Makefile.am): Likewise.
37379         * modules/stdint (Makefile.am): Likewise.
37380         * modules/stdio (Makefile.am): Likewise.
37381         * modules/stdlib (Makefile.am): Likewise.
37382         * modules/string (Makefile.am): Likewise.
37383         * modules/strings (Makefile.am): Likewise.
37384         * modules/sys_select (Makefile.am): Likewise.
37385         * modules/sys_socket (Makefile.am): Likewise.
37386         * modules/sys_stat (Makefile.am): Likewise.
37387         * modules/sys_time (Makefile.am): Likewise.
37388         * modules/sysexits (Makefile.am): Likewise.
37389         * modules/time (Makefile.am): Likewise.
37390         * modules/unistd (Makefile.am): Likewise.
37391         * modules/wchar (Makefile.am): Likewise.
37392         * modules/wctype (Makefile.am): Likewise.
37393         Reported by Reuben Thomas <rrt@sc3d.org>.
37394
37395 2008-08-29  Bruno Haible  <bruno@clisp.org>
37396
37397         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
37398         any more.
37399
37400 2008-08-29  Simon Josefsson  <simon@josefsson.org>
37401
37402         * MODULES.html.sh (Misc): Add bitrotate.
37403
37404         * modules/bitrotate: New file.
37405
37406         * lib/bitrotate.h: New file.
37407
37408         * modules/bitrotate-tests: New file.
37409
37410         * tests/test-bitrotate.c: New file.
37411
37412         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
37413         on the bitrotate module.
37414
37415         * lib/arctwo.c: Use new bitrotate module.
37416
37417 2008-08-29  Jim Meyering  <meyering@redhat.com>
37418
37419         bootstrap: merge changes from coreutils
37420         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
37421         of copied files.  Remove a kludge, now that this is fixed.
37422         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
37423         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
37424         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
37425
37426 2008-08-29  Bruno Haible  <bruno@clisp.org>
37427
37428         * MODULES.html.sh: Remove --cvs-urls option.
37429
37430 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
37431
37432         maint.mk: adjust to file name change
37433         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
37434
37435 2008-08-28  Jim Meyering  <meyering@redhat.com>
37436
37437         * modules/getndelim2 (License): Relicense to LGPLv2+.
37438         Approved by Richard Stallman for the version of 1995, and by
37439         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
37440
37441 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
37442
37443         * lib/getdelim.c (flockfile, funlockfile): Make all of them
37444         dummy if one is not available.  Do not touch them if
37445         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
37446         (getc_maybe_unlocked): New.
37447         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
37448
37449 2008-08-26  Eric Blake  <ebb9@byu.net>
37450
37451         doc/INSTALL: resync from autoconf
37452         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
37453         (INSTALL_PRELUDE): Delete; this is done more efficiently by
37454         moving...
37455         * install.texi [!autoconf]: ...here.  Resync from autoconf.
37456         * INSTALL: Regenerate.
37457         * INSTALL.ISO: New file.
37458         * INSTALL.UTF-8: Likewise.
37459
37460 2008-08-26  Jim Meyering  <meyering@redhat.com>
37461
37462         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
37463         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
37464         these definitions conditional, so that they may be overridden, too.
37465
37466 2008-08-26  Bruno Haible  <bruno@clisp.org>
37467
37468         Generate INSTALL file variants with prettier quotes.
37469         * doc/Makefile (INSTALL_PRELUDE): New macro.
37470         (INSTALL): Use it.
37471         (INSTALL.ISO, INSTALL.UTF-8): New rules.
37472
37473 2008-08-26  Bruno Haible  <bruno@clisp.org>
37474
37475         Run makeinfo in an English locale.
37476         * doc/Makefile (MAKEINFO): New variable.
37477
37478 2008-08-26  Bruno Haible  <bruno@clisp.org>
37479
37480         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
37481         Suggested by Eric Blake.
37482
37483 2008-08-25  Bruno Haible  <bruno@clisp.org>
37484
37485         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
37486
37487 2008-08-25  Eric Blake  <ebb9@byu.net>
37488
37489         c-stack: test that stack overflow can be caught
37490         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
37491         that platform allows handling stack overflow; at least OS/2 EMX
37492         has sigaltstack, but crashes before transferring control to
37493         handler on stack overflow.
37494         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
37495         check for HAVE_STACK_OVERFLOW_HANDLING.
37496         Reported by Elbert Pol.
37497
37498 2008-08-25  Bruno Haible  <bruno@clisp.org>
37499
37500         * doc/posix-functions/strftime.texi: Fix description of strftime
37501         module.
37502
37503 2008-08-24  Bruno Haible  <bruno@clisp.org>
37504
37505         * tests/uniwidth/test-uc_width2.c: New file.
37506         * tests/uniwidth/test-uc_width2.sh: New file.
37507         * modules/uniwidth/width-tests (Files): Add the new files.
37508         (TESTS): Add uniwidth/test-uc_width2.sh.
37509         (TESTS_ENVIRONMENT): New variable.
37510         (check_PROGRAMS): Add test-uc_width2.
37511         (test_uc_width2_SOURCES): New variable.
37512
37513         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
37514         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
37515         not 0x00AB.
37516         Reported by Alexander V. Lukyanov <lav@netis.ru>.
37517
37518 2008-08-22  Eric Blake  <ebb9@byu.net>
37519
37520         test-lock, test-tls: mention why a test is skipped
37521         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
37522         skipped.
37523         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
37524
37525         count-one-bits: relax license
37526         * modules/count-one-bits (License): Relicense to LGPLv2+.
37527         Suggested by Ludovic Courtès, approved by Ben Pfaff.
37528
37529 2008-08-22  Andreas Schwab  <schwab@suse.de>
37530
37531         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37532         Remove spurious space in assignment.
37533
37534 2008-08-21  Simon Josefsson  <simon@josefsson.org>
37535
37536         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
37537         Paul Eggert <eggert@CS.UCLA.EDU>.
37538
37539 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
37540
37541         * modules/gettext: Add m4/threadlib.m4.
37542
37543 2008-08-19  Eric Blake  <ebb9@byu.net>
37544
37545         test-c-stack: fix compilation failure on FreeBSD 5.0
37546         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
37547         headers before <sys/resource.h>.
37548         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
37549         the bug.
37550         Reported by Nelson H. F. Beebe.
37551
37552         strverscmp: migrate from "strverscmp.h" to <string.h>
37553         * modules/string (Makefile.am): Add new hooks.
37554         * modules/strverscmp (Files): Remove strverscmp.h.
37555         (Depends-on): Add string.
37556         (configure.ac): Add indicator.
37557         (Include): Mention new header.
37558         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
37559         defaults.
37560         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
37561         results.
37562         * lib/strverscmp.h: Delete.
37563         * lib/string.in.h (strverscmp): Provide declaration, when needed.
37564         * tests/test-strverscmp.c (includes): Adjust client.
37565         * lib/check-version.c (includes): Likewise.
37566         * NEWS: Document the change.
37567
37568         strverscmp: add unit test
37569         * modules/strverscmp-tests: New file.
37570         * tests/test-strverscmp.c: Likewise.
37571
37572 2008-08-19  Simon Josefsson  <simon@josefsson.org>
37573
37574         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
37575         regarding Windows crypto stuff, from Mono.
37576
37577 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
37578
37579         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
37580         if present, for intel RND.  Return error on failures.
37581
37582 2008-08-18  Ben Pfaff  <blp@gnu.org>
37583
37584         gitlog-to-changelog: give better diagnostic for failed pipe-open
37585         * build-aux/gitlog-to-changelog: Improve error message: suggest
37586         that the version of Git may be too old.
37587
37588 2008-08-18  Simon Josefsson  <simon@josefsson.org>
37589
37590         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
37591         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
37592
37593 2008-08-18  Bruno Haible  <bruno@clisp.org>
37594
37595         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
37596         pthread_in_use().
37597
37598 2008-08-18  Bruno Haible  <bruno@clisp.org>
37599
37600         * lib/glthread/threadlib.c: Include <pthread.h>.
37601
37602 2008-08-18  Bruno Haible  <bruno@clisp.org>
37603
37604         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
37605         glthread_recursive_lock_* macros.
37606         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
37607         Fix syntax error.
37608
37609 2008-08-18  Bruno Haible  <bruno@clisp.org>
37610
37611         * lib/glthread/thread.c: Avoid forcing a context switch right after
37612         thread creation.
37613
37614 2008-08-17  Bruno Haible  <bruno@clisp.org>
37615
37616         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
37617         * lib/glthread/thread.h: Provide Win32 specific implementation.
37618         * modules/thread (Files): Add lib/glthread/thread.c.
37619         (Depends-on): Add lock.
37620         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
37621
37622 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37623
37624         New module 'yield'.
37625         * modules/yield: New file.
37626         * lib/glthread/yield.h: New file.
37627         * m4/yield.m4: New file.
37628         * MODULES.html.sh (Multithreading): Add yield.
37629
37630 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37631
37632         New module 'thread'.
37633         * modules/thread: New file.
37634         * lib/glthread/thread.h: New file.
37635         * m4/thread.m4: New file.
37636         * MODULES.html.sh (Multithreading): Add thread.
37637
37638 2008-08-17  Bruno Haible  <bruno@clisp.org>
37639
37640         * lib/glthread/lock.h: Include <stdlib.h> always.
37641         * lib/glthread/tls.h: Likewise.
37642         * lib/glthread/cond.h: Likewise.
37643
37644 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37645
37646         New module 'cond'.
37647         * modules/cond: New file.
37648         * lib/glthread/cond.h: New file.
37649         * lib/glthread/cond.c: New file.
37650         * m4/cond.m4: New file.
37651         * MODULES.html.sh (Multithreading): Add cond.
37652
37653 2008-08-16  Eric Blake  <ebb9@byu.net>
37654
37655         c-stack: fix regression on Irix 5.3 from 2008-06-21
37656         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
37657         sa_sigaction...
37658         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
37659         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
37660         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
37661         * modules/signal (Makefile.am): Use the value.
37662         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
37663         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
37664         * doc/posix-headers/signal.texi (signal.h): Document this
37665         portability issue.
37666         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
37667         Reported by Tom G. Christensen.
37668
37669 2008-08-17  Bruno Haible  <bruno@clisp.org>
37670
37671         New module 'threadlib'.
37672         * modules/threadlib: New file.
37673         * lib/glthread/threadlib.c: New file, extracted from
37674         lib/glthread/lock.c.
37675         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
37676         functions.
37677         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
37678         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
37679         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
37680         macros.
37681         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
37682         (gl_DISABLE_THREADS): Remove macro.
37683         * modules/lock (Files): Remove build-aux/config.rpath.
37684         (Depends-on): Remove havelib. Add threadlib.
37685         (configure.ac-early): Remove section.
37686         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
37687         * modules/tls (Depends-on): Remove lock. Add threadlib.
37688         (Link): New section, copied from threadlib.
37689         * MODULES.html.sh (Multithreading): Add threadlib.
37690
37691 2008-08-14  Bruno Haible  <bruno@clisp.org>
37692
37693         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
37694         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
37695         glthread_rwlock_unlock, glthread_rwlock_destroy,
37696         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
37697         glthread_recursive_lock_destroy): Define as macros always.
37698         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
37699         glthread_lock_lock.
37700         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
37701         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
37702         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
37703         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
37704         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
37705         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
37706         (glthread_recursive_lock_lock_func): Renamed from
37707         glthread_recursive_lock_lock.
37708         (glthread_recursive_lock_unlock_func): Renamed from
37709         glthread_recursive_lock_unlock.
37710         (glthread_recursive_lock_destroy_func): Renamed from
37711         glthread_recursive_lock_destroy.
37712
37713 2008-08-14  Bruno Haible  <bruno@clisp.org>
37714
37715         * lib/glthread/lock.h: Renamed from lib/lock.h.
37716         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
37717         * lib/glthread/tls.h: Renamed from lib/tls.h.
37718         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
37719         * lib/fstrcmp.c: Update includes.
37720         * lib/strsignal.c: Update includes.
37721         * modules/lock (Files, Makefile.am): Update.
37722         (Include): Change to "glthread/lock.h".
37723         * modules/tls (Files, Makefile.am): Update.
37724         (Include): Change to "glthread/tls.h".
37725         * tests/test-lock.c: Update includes.
37726         * tests/test-tls.c: Update includes.
37727         * NEWS: Mention the renamed header files.
37728
37729 2008-08-11  Jim Meyering  <meyering@redhat.com>
37730
37731         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
37732
37733 2008-08-11  Eric Blake  <ebb9@byu.net>
37734
37735         test-c-stack: avoid C99-ism
37736         * tests/test-c-stack.c (main): Fix whitespace, move declaration
37737         before statement.
37738         Reported by Alain Guibert.
37739
37740 2008-08-10  Jim Meyering  <meyering@redhat.com>
37741
37742         ensure that return value of uinttostr et al are not ignored
37743         * lib/inttostr.h (__GNUC_PREREQ): Define.
37744         (__attribute_warn_unused_result__): Define.
37745         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
37746
37747 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
37748
37749         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
37750         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
37751
37752 2008-08-07  Jim Meyering  <meyering@redhat.com>
37753
37754         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
37755
37756         * modules/mkstemp (License): Relicense under LGPLv2+.
37757         * modules/tempname (License): Likewise.
37758
37759 2008-08-06  Bruno Haible  <bruno@clisp.org>
37760
37761         * lib/poll.c (poll): Further micro-optimization.
37762
37763 2008-08-06  Jim Meyering  <meyering@redhat.com>
37764
37765         inet_pton.c: use locale-independent tolower
37766         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
37767         (inet_pton6): Use c_tolower rather than tolower.
37768         * modules/inet_pton (Depends-on): Add c-ctype.
37769
37770 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
37771
37772         * lib/poll.c (poll): Avoid division when timeout is 0, cache
37773         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
37774
37775 2008-08-06  Jim Meyering  <meyering@redhat.com>
37776
37777         * modules/inet_pton (License): Relicense under LGPLv2+.
37778
37779 2008-08-03  Bruno Haible  <bruno@clisp.org>
37780
37781         Additional non-aborting API for lock and tls.
37782         * lib/lock.h: Include <errno.h>.
37783         (glthread_lock_init): New macro/function.
37784         (gl_lock_init): Define as wrapper around glthread_lock_init.
37785         (glthread_lock_lock): New macro/function.
37786         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
37787         (glthread_lock_unlock): New macro/function.
37788         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
37789         (glthread_lock_destroy): New macro/function.
37790         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
37791         (glthread_rwlock_init): New macro/function.
37792         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
37793         (glthread_rwlock_rdlock): New macro/function.
37794         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
37795         (glthread_rwlock_wrlock): New macro/function.
37796         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
37797         (glthread_rwlock_unlock): New macro/function.
37798         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
37799         (glthread_rwlock_destroy): New macro/function.
37800         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
37801         (glthread_recursive_lock_init): New macro/function.
37802         (gl_recursive_lock_init): Define as wrapper around
37803         glthread_recursive_lock_init.
37804         (glthread_recursive_lock_lock): New macro/function.
37805         (gl_recursive_lock_lock): Define as wrapper around
37806         glthread_recursive_lock_lock.
37807         (glthread_recursive_lock_unlock): New macro/function.
37808         (gl_recursive_lock_unlock): Define as wrapper around
37809         glthread_recursive_lock_unlock.
37810         (glthread_recursive_lock_destroy): New macro/function.
37811         (gl_recursive_lock_destroy): Define as wrapper around
37812         glthread_recursive_lock_destroy.
37813         (glthread_once): New macro/function.
37814         (gl_once): Define as wrapper around glthread_once.
37815         Update function declarations.
37816         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
37817         glthread_rwlock_init. Return error code.
37818         (glthread_rwlock_rdlock_multithreaded): Renamed from
37819         glthread_rwlock_rdlock. Return error code.
37820         (glthread_rwlock_wrlock_multithreaded): Renamed from
37821         glthread_rwlock_wrlock. Return error code.
37822         (glthread_rwlock_unlock_multithreaded): Renamed from
37823         glthread_rwlock_unlock. Return error code.
37824         (glthread_rwlock_destroy_multithreaded): Renamed from
37825         glthread_rwlock_destroy. Return error code.
37826         (glthread_recursive_lock_init_multithreaded): Renamed from
37827         glthread_recursive_lock_init. Return error code.
37828         (glthread_recursive_lock_lock_multithreaded): Renamed from
37829         glthread_recursive_lock_lock. Return error code.
37830         (glthread_recursive_lock_unlock_multithreaded): Renamed from
37831         glthread_recursive_lock_unlock. Return error code.
37832         (glthread_recursive_lock_destroy_multithreaded): Renamed from
37833         glthread_recursive_lock_destroy. Return error code.
37834         (glthread_once_call): Make static.
37835         (glthread_once_multithreaded): Renamed from glthread_once.
37836         * lib/tls.h: Include <errno.h>.
37837         (glthread_tls_key_init): New macro/function.
37838         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
37839         (glthread_tls_set): New macro/function.
37840         (gl_tls_set): Define as wrapper around glthread_tls_set.
37841         (glthread_tls_key_destroy): New macro/function.
37842         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
37843         Update function declarations.
37844         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
37845         glthread_tls_get.
37846         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37847
37848 2008-08-04  Eric Blake  <ebb9@byu.net>
37849
37850         gnumakefile: use space, not TAB, outside of targets
37851         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
37852
37853 2008-08-02  Jim Meyering  <meyering@redhat.com>
37854
37855         getdate.y: avoid locale-dependent date parsing failure
37856         In Turkish locales, getdate would fail to recognize keywords
37857         containing a lowercase "i".  The solution is not to rely on
37858         locale-sensitive case-conversion.
37859         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
37860         (lookup_word): Use c_toupper in place of toupper.
37861         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
37862         Reported by Vefa Bicakci <bicave@superonline.com> in
37863         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
37864         * modules/getdate (Depends-on): Add c-ctype.
37865
37866 2008-08-02  Bruno Haible  <bruno@clisp.org>
37867
37868         * gnulib-tool (func_import): When updating or creating a .gitignore
37869         file, prepend each added line with a slash, and ignore leading slashes
37870         from the existing lines.
37871         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37872
37873 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37874
37875         Portability fix for GNU make 3.79.1.
37876         * top/GNUmakefile: Avoid 'else COND', which older GNU make
37877         versions do not understand.
37878
37879 2008-08-01  Bruno Haible  <bruno@clisp.org>
37880
37881         Work around bug of HP-UX 10.20 cc with -0.0 literal.
37882         * tests/test-isnanf.h (zero): New variable.
37883         (main): Avoid literal -0.0f.
37884         * tests/test-isnand.h (zero): New variable.
37885         (main): Avoid literal -0.0.
37886         * tests/test-isnanl.h (zero): New variable.
37887         (main): Avoid literal -0.0L.
37888         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
37889         (test_float, test_double, test_long_double): Avoid literals -0.0f,
37890         -0.0, -0.0L.
37891         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
37892         (test_signbitd): Avoid literal -0.0.
37893         (test_signbitl): Avoid literal -0.0L.
37894         * tests/test-ceilf1.c (zero): New variable.
37895         (main): Avoid literal -0.0f.
37896         * tests/test-ceill.c (zero): New variable.
37897         (main): Avoid literal -0.0L.
37898         * tests/test-floorf1.c (zero): New variable.
37899         (main): Avoid literal -0.0f.
37900         * tests/test-floorl.c (zero): New variable.
37901         (main): Avoid literal -0.0L.
37902         * tests/test-roundf1.c (zero): New variable.
37903         (main): Avoid literal -0.0f.
37904         * tests/test-round1.c (zero): New variable.
37905         (main): Avoid literal -0.0.
37906         * tests/test-roundl.c (zero): New variable.
37907         (main): Avoid literal -0.0L.
37908         * tests/test-truncf1.c (zero): New variable.
37909         (main): Avoid literal -0.0f.
37910         * tests/test-trunc1.c (zero): New variable.
37911         (main): Avoid literal -0.0.
37912         * tests/test-truncl.c (zero): New variable.
37913         (main): Avoid literal -0.0L.
37914         * tests/test-frexp.c (zero): New variable.
37915         (main): Avoid literal -0.0.
37916         * tests/test-frexpl.c (zero): New variable.
37917         (main): Avoid literal -0.0L.
37918         * tests/test-ldexpl.c (zero): New variable.
37919         (main): Avoid literal -0.0L.
37920         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37921         (zerod, zerol): New variables.
37922         (test_function): Avoid literals -0.0, -0.0L.
37923         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37924         (zerod, zerol): New variables.
37925         (test_function): Avoid literals -0.0, -0.0L.
37926         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37927         (zerod, zerol): New variables.
37928         (test_function): Avoid literals -0.0, -0.0L.
37929         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37930         (zerod, zerol): New variables.
37931         (test_function): Avoid literals -0.0, -0.0L.
37932         * tests/test-strtod.c (zero): New variable.
37933         (main): Avoid literal -0.0.
37934         Reported by Jonathan C. Patschke <jp@centtech.com>.
37935
37936 2008-07-31  Jim Meyering  <meyering@redhat.com>
37937
37938         sha256.h: correct definition of SHA224_DIGEST_SIZE
37939         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
37940         Reported by Paulie Pena IV <paulie4@gmail.com>.
37941         Define as 224 / 8, rather than as a literal.
37942         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
37943         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
37944         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
37945
37946 2008-07-31  Bruno Haible  <bruno@clisp.org>
37947
37948         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
37949         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
37950         Reported by Jonathan Patschke <jp@centtech.com>.
37951
37952 2008-07-31  Bruno Haible  <bruno@clisp.org>
37953
37954         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
37955         Reported by Paolo Bonzini <bonzini@gnu.org>.
37956
37957 2008-07-30  Eric Blake  <ebb9@byu.net>
37958
37959         test-strtod: allow compilation without -lm
37960         * tests/test-strtod.c (main): Avoid link dependence on fabs.
37961         Reported by Dennis Clarke <blastwave@gmail.com>.
37962
37963 2008-07-28  Jim Meyering  <meyering@redhat.com>
37964
37965         bootstrap: work also when there are no .po files in po/
37966         * build-aux/bootstrap (update_po_files): Complete the change
37967         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
37968
37969 2008-07-27  Jim Meyering  <meyering@redhat.com>
37970
37971         * users.txt: Add zile.
37972
37973 2008-07-26  Ben Pfaff  <blp@gnu.org>
37974
37975         Add missing dependencies on new m4/exponent[fdl].m4 files.
37976         * modules/isnanf-nolibm: Add m4/exponentf.m4.
37977         * modules/isnand-nolibm: Add m4/exponentd.m4.
37978         * modules/isnanl-nolibm: Add m4/exponentl.m4.
37979         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
37980         m4/isnan[fdl].m4, because the macros actually used moved.
37981         Reported by Jim Meyering.
37982
37983 2008-07-14  Ben Pfaff  <blp@gnu.org>
37984
37985         Add isinf module.
37986         * lib/isinf.c: New file.
37987         * lib/math.in.h: Define isinf macro if we have decided to replace
37988         it.
37989         * m4/isinf.m4: New file.
37990         * m4/math_h.m4: Initialize and substitute variables for isinf
37991         module.
37992         * modules/isinf: New file.
37993         * modules/isinf-tests: New file.
37994         * modules/math: Add substitutions for new module.
37995         * tests/test-isinf.c: New file.
37996         * doc/posix-functions/isinf.texi: Mention new module.
37997         * MODULES.html.sh: Mention new module.
37998
37999 2008-07-14  Ben Pfaff  <blp@gnu.org>
38000
38001         Factor out some macros for use by additional modules.
38002         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
38003         exponentf.m4.
38004         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
38005         exponentd.m4.
38006         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
38007         file exponentl.m4.
38008         * m4/exponentf.m4: New file.
38009         * m4/exponentd.m4: New file.
38010         * m4/exponentl.m4: New file.
38011         * modules/isnanf: Use new file m4/exponentf.m4.
38012         * modules/isnand: Use new file m4/exponentd.m4.
38013         * modules/isnanl: Use new file m4/exponentl.m4.
38014
38015 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
38016
38017         mktime.c: normalize tp->tm_isdst value to -1/0/1.
38018         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
38019         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
38020         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
38021
38022         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
38023         readlink on platforms without PATH_MAX.
38024
38025 2008-07-21  Eric Blake  <ebb9@byu.net>
38026
38027         Warn, not fail, on stale version.
38028         * top/GNUmakefile (_curr-ver): Tone down previous patch.
38029
38030         Don't allow installation with stale devel version number.
38031         * top/GNUmakefile (_is-install-target): New macro.
38032         (_curr-ver): Forbid installation with stale version number.
38033
38034 2008-07-20  Bruno Haible  <bruno@clisp.org>
38035
38036         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
38037         TESTS_ENVIRONMENT.
38038         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
38039
38040 2008-07-20  Bruno Haible  <bruno@clisp.org>
38041
38042         * lib/c-stack.h (c_stack_action): Add documentation.
38043         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
38044
38045 2008-07-20  Bruno Haible  <bruno@clisp.org>
38046
38047         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
38048         * modules/readlink (License): Likewise.
38049
38050 2008-07-17  Eric Blake  <ebb9@byu.net>
38051
38052         * modules/c-stack (Link): Fix typo.
38053
38054         Make c-stack use libsigsegv, when available.
38055         * modules/c-stack (Depends-on): Add libsigsegv.
38056         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
38057         needed.
38058         * lib/c-stack.c (SIGSTKSZ): Define fallback.
38059         (segv_handler, overflow_handler, c_stack_action)
38060         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
38061         implementation when libsigsegv is available, but only when using
38062         the library is necessary.
38063         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
38064         comment, explaining why XSI check fails on Linux.
38065         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
38066         * tests/test-c-stack2.sh: Tweak skip message.
38067         * NEWS: Document new link-time requirements.
38068
38069 2008-07-16  Eric Blake  <ebb9@byu.net>
38070
38071         c-stack: Expose false positives when not using libsigsegv.
38072         * modules/c-stack-tests (Files): Expand test.
38073         * tests/test-c-stack.c (main): Add means to conditionally trigger
38074         non-overflow SIGSEGV.
38075         * tests/test-c-stack2.sh: New file.
38076
38077 2008-07-14  Bruno Haible  <bruno@clisp.org>
38078
38079         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
38080         Reported by Eric Blake.
38081
38082 2008-07-14  Sam Steingold  <sds@gnu.org>
38083             Bruno Haible  <bruno@clisp.org>
38084
38085         New module libsigsegv.
38086         * modules/libsigsegv: New file.
38087         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
38088         modifications.
38089         * MODULES.html.sh (Signal handling): New section.
38090
38091 2008-07-14  Bruno Haible  <bruno@clisp.org>
38092
38093         * modules/unictype/ctype-* (Description): Add the word "function".
38094         Improves the resulting doc in MODULES.html.
38095
38096 2008-07-12  Ben Pfaff  <blp@gnu.org>
38097
38098         Add longlong module.
38099         * modules/longlong: New file.
38100
38101 2008-07-12  Bruno Haible  <bruno@clisp.org>
38102
38103         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
38104         to empty.
38105
38106 2008-07-10  Ben Pfaff  <blp@gnu.org>
38107
38108         Add isnan module.
38109         * doc/posix-functions/isnan.texi: Mention new module.
38110         * lib/math.in.h: Define isnan macro if we have decided to replace
38111         it.
38112         * m4/isnan.m4: New file.
38113         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
38114         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
38115         also.
38116         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
38117         redundancy.
38118         * m4/math_h.m4: Initialize and substitute variables for isnan
38119         module.
38120         * modules/isnan: New file.
38121         * modules/isnan-tests: New file.
38122         * modules/math: Add substitutions for new module.
38123         * tests/test-isnan.c: New file.
38124         * MODULES.html.sh: Mention new module.
38125
38126 2008-07-10  Ben Pfaff  <blp@gnu.org>
38127
38128         Add isnanf module.
38129         * lib/isnanf.m4: New file.
38130         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
38131         (gl_HAVE_ISNANF_IN_LIBM): New macro.
38132         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
38133         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
38134         * modules/isnanf: New file.
38135         * modules/isnanf-tests: New file.
38136         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
38137         files.
38138         * tests/test-isnanf-nolibm.c: factored most of its contents into
38139         new file tests/test-isnanf.h.
38140         * tests/test-isnanf.h: New file.
38141         * tests/test-isnanf.c: New file.
38142         * MODULES.html.sh: Mention new module.
38143         * doc/glibc-functions/isnanf.texi: Mention new module.
38144
38145 2008-07-10  Ben Pfaff  <blp@gnu.org>
38146
38147         Add isnand module.
38148         * lib/isnand.h: New file.
38149         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
38150         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
38151         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
38152         functionality also.
38153         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
38154         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
38155         (gl_HAVE_ISNAND_IN_LIBM): New macro.
38156         * modules/isnand: New file.
38157         * modules/isnand-tests: New file.
38158         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
38159         files.
38160         * tests/test-isnand-nolibm.c: factored most of its contents into
38161         new file tests/test-isnand.h.
38162         * tests/test-isnand.h: New file.
38163         * tests/test-isnand.c: New file.
38164         * MODULES.html.sh: Mention new module.
38165
38166 2008-07-10  Ben Pfaff  <blp@gnu.org>
38167
38168         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
38169         * lib/isnand.h: Rename lib/isnand-nolibm.h.
38170         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
38171         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
38172         * modules/isnanf-nolibm: Update references to renamed files.
38173         * modules/isnand-nolibm: Likewise.
38174         * modules/isnanf-nolibm-tests: Likewise.
38175         * modules/isnand-nolibm-tests: Likewise.
38176         * lib/frexp.c: Likewise.
38177         * lib/isfinite.c: Likewise.
38178         * lib/signbitd.c: Likewise.
38179         * lib/signbitf.c: Likewise.
38180         * lib/vasnprintf.c: Likewise.
38181         * tests/test-ceilf1.c: Likewise.
38182         * tests/test-ceilf2.c: Likewise.
38183         * tests/test-floorf1.c: Likewise.
38184         * tests/test-floorf2.c: Likewise.
38185         * tests/test-frexp.c: Likewise.
38186         * tests/test-round1.c: Likewise.
38187         * tests/test-round2.c: Likewise.
38188         * tests/test-roundf1.c: Likewise.
38189         * tests/test-strtod.c: Likewise.
38190         * tests/test-trunc1.c: Likewise.
38191         * tests/test-trunc2.c: Likewise.
38192         * tests/test-truncf1.c: Likewise.
38193         * tests/test-truncf2.c: Likewise.
38194         * NEWS: Mention the renamed header files.
38195
38196 2008-07-11  Jim Meyering  <meyering@redhat.com>
38197
38198         vc-list-files: make the last-resort awk code more portable
38199         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
38200         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
38201         does not support it.
38202
38203 2008-07-10  Eric Blake  <ebb9@byu.net>
38204
38205         Work with tar's bootstrap.
38206         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
38207         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
38208         an m4 comment.
38209
38210 2008-07-09  Jim Meyering  <meyering@redhat.com>
38211
38212         posix-shell.m4: fix typo that made this test malfunction
38213         * m4/posix-shell.m4: Remove capitalization in variable name.
38214
38215 2008-07-08  Bruno Haible  <bruno@clisp.org>
38216
38217         * m4/onceonly.m4: Update comments.
38218         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38219
38220 2008-07-04  Jim Meyering  <meyering@redhat.com>
38221
38222         * users.txt: Add vc-dwim.
38223         (bison, coreutils): Use the gitweb URL.
38224
38225 2008-07-03  Jim Meyering  <meyering@redhat.com>
38226
38227         * users.txt: Add libffcall.  From Sam Steingold.
38228
38229 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
38230
38231         getdate.y: do not ignore TZ with relative day, month or year offset
38232         * lib/getdate.y (get_date): Move the tz-handling block to follow the
38233         relative-date-handling, since otherwise, the latter would clobber the
38234         sole output (an updated Start value) of the tz-handling block.
38235         * tests/test-getdate.c: Tests for the fix
38236
38237 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38238
38239         Recognize 'foo_LIBRARIES += libgnu.a'.
38240         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
38241         makefile snippet has already specified an installation location,
38242         also using '+='.
38243
38244 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
38245
38246         getdate.y: factor out common actions
38247         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
38248         Use them in place of open-coded actions.
38249
38250 2008-07-01  Simon Josefsson  <simon@josefsson.org>
38251
38252         Add self-test for getdate module.
38253         * modules/getdate-tests: New file.
38254         * tests/test-getdate.c: New file.
38255
38256 2008-06-29  Bruno Haible  <bruno@clisp.org>
38257
38258         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
38259         .gitignore.
38260         Reported by Sylvain Beucler <beuc@beuc.net>.
38261
38262 2008-06-29  Bruno Haible  <bruno@clisp.org>
38263
38264         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
38265         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
38266
38267 2008-06-29  Bruno Haible  <bruno@clisp.org>
38268
38269         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
38270         EXTRA_DIST.
38271         Reported by Sylvain Beucler <beuc@beuc.net>.
38272
38273 2008-06-26  Jim Meyering  <meyering@redhat.com>
38274
38275         make several modules depend on the "open" module
38276         This provides slightly increased consistency when opening-for-write
38277         the name of a non-directory spelled with a trailing slash.
38278         * modules/chdir-safer: Likewise.
38279         * modules/chown: Likewise.
38280         * modules/clean-temp: Likewise.
38281         * modules/copy-file: Likewise.
38282         * modules/fchdir: Likewise.
38283         * modules/fcntl-safer: Likewise.
38284         * modules/pipe: Likewise.
38285         * modules/utime: Likewise.
38286         Prompted by Eric Blake and Bruno Haible.
38287
38288 2008-06-24  Andreas Schwab  <schwab@suse.de>
38289
38290         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
38291         literals can be used as initializers for global variables.
38292
38293 2008-06-23  Eric Blake  <ebb9@byu.net>
38294
38295         Make gnulib-cache.m4 easier to diff.
38296         * gnulib-tool (func_import): Allow newlines when reading cached
38297         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
38298
38299 2008-06-23  Bruno Haible  <bruno@clisp.org>
38300
38301         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
38302         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
38303         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
38304         m4/signalblocking.m4.
38305         (gl_PREREQ_SIGACTION): Don't invoke it.
38306         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
38307         gl_PREREQ_SIG_HANDLER_H.
38308         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38309         Don't check for sigaction here.
38310
38311 2008-06-23  Bruno Haible  <bruno@clisp.org>
38312
38313         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
38314         (install_handlers): Don't set the SA_RESETHAND flag.
38315
38316 2008-06-23  Bruno Haible  <bruno@clisp.org>
38317
38318         * m4/sigaction.m4: Comment fixes.
38319         * lib/signal.in.h: Likewise.
38320
38321 2008-06-23  Eric Blake  <ebb9@byu.net>
38322
38323         Fix typo.
38324         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
38325
38326         Avoid SA_ namespace.
38327         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
38328         Reported by Ralf Wildenhues.
38329
38330         Avoid test failure due to SA_RESTORER.
38331         * tests/test-sigaction.c (SA_MASK): New macro.
38332         (main): Avoid failing due to extension flags being set.
38333         Reported by Jim Meyering.
38334
38335         Revert use of sig-handler.h in sigprocmask.c.
38336         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
38337         it requires the existence of struct sigaction.
38338         * lib/sigprocmask.c (handler_t): Restore typedef.
38339         (rpl_signal, old_handlers): Use local type.
38340
38341 2008-06-22  Bruno Haible  <bruno@clisp.org>
38342
38343         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
38344         conditionally.
38345         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38346
38347 2008-06-22  Bruno Haible  <bruno@clisp.org>
38348
38349         * doc/posix-functions/siginterrupt.texi: Move note.
38350
38351         * lib/signal.in.h (SA_RESTART): New macro.
38352         * lib/sigaction.c: Update comment.
38353
38354         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
38355
38356         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
38357         (gl_PREREQ_SIGPROCMASK): Invoke it.
38358         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
38359
38360         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
38361
38362         * lib/sigprocmask.c: Update a comment.
38363
38364 2008-06-21  Eric Blake  <ebb9@byu.net>
38365
38366         Use sigaction module rather than signal().
38367         * modules/c-stack (Depends-on): Add sigaction.
38368         * modules/fatal-signal (Depends-on): Likewise.
38369         * modules/nanosleep (Depends-on): Likewise.
38370         * modules/sigprocmask (Files): Add sig-handler.h.
38371         * modules/sigaction (Files): Likewise.
38372         * lib/sig-handler.h (get_handler): New file, suggested by Paul
38373         Eggert.
38374         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
38375         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
38376         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
38377         (init_fatal_signals): Likewise.
38378         * lib/nanosleep.c (rpl_nanosleep): Likewise.
38379         (siginterrupt): Delete fallback.
38380         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
38381         instead.
38382         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
38383         siginterrupt.
38384
38385         New module sigaction, for mingw.
38386         * modules/sigaction: New module...
38387         * modules/sigaction-tests: ...and its test.
38388         * m4/sigaction.m4: New file.
38389         * lib/sigaction.c: Likewise.
38390         * tests/test-sigaction.c: Likewise.
38391         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
38392         * modules/signal (Makefile.am): Likewise.
38393         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
38394         needed.
38395         * doc/posix-headers/signal.texi (signal.h): Mention provided
38396         types.
38397         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
38398         that sigaction is preferable.
38399         * doc/posix-functions/sigaction.texi (sigaction): Mention new
38400         module.
38401         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38402         sigaction.
38403
38404         Improve robustness of sigprocmask by overriding signal.
38405         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
38406         is in use.
38407         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
38408         (SIGKILL, SIGSTOP): Provide fallbacks.
38409         (rpl_signal): Implement.
38410         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
38411         signal can be called inside handlers.
38412
38413         Fix nanosleep module on mingw.
38414         * modules/nanosleep (Depends-on): Add sys_select.
38415         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
38416
38417         Fix licensing of sigprocmask.
38418         * modules/raise (License): Relicense as LGPL.
38419
38420 2008-06-21  Bruno Haible  <bruno@clisp.org>
38421
38422         * lib/propername.c (proper_name_utf8): Don't use the transliterated
38423         result if it contains question marks.
38424         Reported by Michael Geng <linux@michaelgeng.de>.
38425
38426 2008-06-19  Bruno Haible  <bruno@clisp.org>
38427
38428         Fix CVS-ism.
38429         * doc/gnulib.texi: Include updated-stamp.texi.
38430         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
38431         (updated-stamp.texi): New rule.
38432         (gnulib.info): Depend on it.
38433         * doc/.gitignore: Add updated-stamp.texi.
38434         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
38435
38436 2008-06-19  Bruno Haible  <bruno@clisp.org>
38437
38438         * doc/Makefile (gnulib.info): Update and simplify dependencies.
38439         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38440
38441 2008-06-19  Eric Blake  <ebb9@byu.net>
38442
38443         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
38444         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
38445         Reported by Stepan Kasal.
38446
38447 2008-06-18  Bruno Haible  <bruno@clisp.org>
38448
38449         * lib/fatal-signal.c (init_fatal_signals): Add comment.
38450         Reported by Eric Blake.
38451
38452 2008-06-18  Eric Blake  <ebb9@byu.net>
38453
38454         Work around cygwin 1.5.25 strsignal bug.
38455         * tests/test-strsignal.c: Allow for const char *.
38456         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
38457
38458 2008-06-18  Simon Josefsson  <simon@josefsson.org>
38459
38460         * users.txt: Update URL to article and add author/date
38461         information.
38462
38463 2008-06-17  Bruno Haible  <bruno@clisp.org>
38464
38465         New macro gl_DISABLE_THREADS.
38466         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
38467         if the user did not pass --enable-threads or --disable-threads option.
38468         (gl_DISABLE_THREADS): New macro.
38469         Reported by Eric Blake <ebb9@byu.net>.
38470
38471 2008-06-17  Bruno Haible  <bruno@clisp.org>
38472
38473         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
38474         when the macro ignores it.
38475         Based on a patch by Eric Blake <ebb9@byu.net>.
38476
38477 2008-06-17  Bruno Haible  <bruno@clisp.org>
38478
38479         * modules/tls (License): Change to LGPLv2+.
38480         Reported by Eric Blake.
38481
38482 2008-06-17  Eric Blake  <ebb9@byu.net>
38483
38484         Simplify c-stack prerequisites.
38485         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
38486         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
38487         no longer requires <ucontext.h> to exist.  Optimize setrlimit
38488         check.
38489         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
38490         <sys/resource.h>.
38491
38492         Move c-stack test into testsuite.
38493         * modules/c-stack-tests: New file.
38494         * lib/c-stack.c [DEBUG]: Move test program...
38495         * tests/test-c-stack.c: ...into this new file.  Skip rather than
38496         fail test if sigaltstack is lacking.
38497         * tests/test-c-stack.sh: New driver file.
38498
38499 2008-06-16  Eric Blake  <ebb9@byu.net>
38500
38501         Use raise module consistently.
38502         * modules/fatal-signal (Depends-on): Add raise.
38503         * modules/sigprocmask (Depends-on): Likewise.
38504         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
38505         * lib/sigprocmask.c (sigprocmask): Likewise.
38506         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38507         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
38508
38509         Fix compliance bug in sigpending.
38510         * lib/sigprocmask.c (sigpending): Return pending array via
38511         parameter, not return value.
38512
38513 2008-06-14  Eric Blake  <ebb9@byu.net>
38514
38515         Improve obstack-printf test code.
38516         * tests/test-obstack-printf.c (test_function): Fix comment, and
38517         simplify usage of obstack_* in macros.  Add a test for coverage.
38518         Reported by Bruno Haible.
38519
38520 2008-06-14  Bruno Haible  <bruno@clisp.org>
38521
38522         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
38523         array size as a constant, not as a const variable.
38524         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
38525         AC_USE_SYSTEM_EXTENSIONS.
38526         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38527         Test whether the obstack_printf function actually exists.
38528         * modules/obstack-printf (Depends-on): Add extensions.
38529         (Include): Remove obstack.h.
38530         * modules/obstack-printf-posix (Depends-on): Add extensions.
38531         (Include): Remove obstack.h.
38532
38533 2008-06-13  Eric Blake  <ebb9@byu.net>
38534
38535         Add obstack-printf and obstack-printf-posix modules.
38536         * modules/obstack-printf: New file.
38537         * modules/obstack-printf-posix: Likewise.
38538         * MODULES.html.sh (Misc): Mention them.
38539         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38540         Likewise.
38541         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38542         Likewise.
38543         * modules/stdio (Makefile.am): Accomodate new modules.
38544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38545         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
38546         Declare.
38547         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
38548         functions.
38549         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
38550         (gl_REPLACE_OBSTACK_PRINTF): New macros
38551         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
38552         * tests/test-obstack-printf.c: New file.
38553         * modules/obstack-printf-tests: Likewise.
38554         * modules/obstack-printf-posix-tests: Likewise.
38555
38556 2008-06-11  Bruno Haible  <bruno@clisp.org>
38557
38558         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
38559         * lib/open.c: Include errno.h.
38560         (open): Fail when attempting to write to a file that has a trailing
38561         slash.
38562         * tests/test-open.c (main): Test against trailing slash bug.
38563         * doc/posix-functions/open.texi: Mention the trailing slash bug.
38564
38565 2008-06-10  Bruno Haible  <bruno@clisp.org>
38566
38567         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
38568         for $? to work inside the trap command, with various /bin/sh-s.
38569         * tests/test-vc-list-files-cvs.sh: Likewise.
38570
38571 2008-06-10  Bruno Haible  <bruno@clisp.org>
38572
38573         * lib/acl-internal.h: Don't include gettext.h here.
38574         * lib/set-mode-acl.c: Include gettext.h here.
38575         * lib/copy-acl.c: Likewise.
38576
38577 2008-06-10  Bruno Haible  <bruno@clisp.org>
38578
38579         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
38580         * lib/wait-process.c (wait_subprocess): Likewise.
38581         * lib/execute.h (execute): Add termsigp argument.
38582         * lib/execute.c (execute): Likewise.
38583         * lib/csharpcomp.c (compile_csharp_using_pnet,
38584         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
38585         * lib/csharpexec.c (execute_csharp_using_pnet,
38586         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
38587         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
38588         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
38589         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
38590         is_jikes_present): Update.
38591         * lib/javaexec.c (execute_java_class): Update.
38592         * lib/javaversion.c (execute_and_read_line): Update.
38593         * NEWS: Document the changes.
38594         Reported by Eric Blake.
38595
38596 2008-06-10  Eric Blake  <ebb9@byu.net>
38597
38598         Add missing include.
38599         * tests/test-strstr.c (includes): Add <signal.h>.
38600         * tests/test-strcasestr.c (includes): Likewise.
38601         * tests/test-memmem.c (includes): Likewise.
38602
38603 2008-06-10  Bruno Haible  <bruno@clisp.org>
38604
38605         * lib/wait-process.c (wait_subprocess): Add an assertion.
38606
38607 2008-06-10  Bruno Haible  <bruno@clisp.org>
38608
38609         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
38610
38611 2008-06-10  Bruno Haible  <bruno@clisp.org>
38612
38613         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
38614         using alarm().
38615         * tests/test-strcasestr.c (main): Likewise.
38616         * tests/test-strstr.c (main): Likewise.
38617
38618 2008-06-09  Bruno Haible  <bruno@clisp.org>
38619
38620         Work around the Solaris 10 ACE ACLs ABI change.
38621         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
38622         declare if ACL_NO_TRIVIAL is present.
38623         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
38624         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
38625         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
38626         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
38627         define if ACL_NO_TRIVIAL is present.
38628         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
38629         and use the current ABI.
38630         (file_has_acl): Use same #if condition as elsewhere.
38631         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
38632         in use, and use the current ABI.
38633         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
38634         Reported by Jim Meyering.
38635
38636 2008-06-09  Eric Blake  <ebb9@byu.net>
38637
38638         Work around environments that (stupidly) ignore SIGALRM.
38639         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
38640         before using alarm().
38641         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38642         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38643         Reported by Ian Beckwith <ianb@erislabs.net>.
38644
38645         Produce autobuild blurb earlier in log.
38646         * modules/autobuild (configure.ac-early): Move AB_INIT here.
38647
38648 2008-06-09  Jim Meyering  <meyering@redhat.com>
38649         and OndÅ™ej Vašík  <ovasik@redhat.com>
38650
38651         utimens.c: correct kernel bug work-around
38652         OndÅ™ej Vašík found that the invalid return value of 280 indicates
38653         failure, not success, and the kernel bug we're trying to work
38654         around affects not just the utimensat call, but also the fallback
38655         futimens call.
38656         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
38657         not success.
38658         [HAVE_FUTIMENS]: Use the same work-around, here.
38659
38660 2008-06-09  Jim Meyering  <meyering@redhat.com>
38661
38662         add more guards around definition of ACE_-related code
38663         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
38664         ALLOW and ACE_OWNER are also defined.
38665
38666 2008-06-08  Bruno Haible  <bruno@clisp.org>
38667
38668         * lib/acl-internal.h: Add me as co-author.
38669         * lib/file-has-acl.c: Likewise.
38670         * lib/set-mode-acl.c: Likewise.
38671         * lib/copy-acl.c: Likewise.
38672
38673 2008-06-08  Bruno Haible  <bruno@clisp.org>
38674
38675         Add support for AIX ACLs.
38676         * lib/acl-internal.h (acl_nontrivial): New declaration.
38677         * lib/file-has-acl.c (acl_nontrivial): New function.
38678         (file_has_acl): Add implementation using AIX 4 ACL API.
38679         * lib/set-mode-acl.c (qset_acl): Likewise.
38680         * lib/copy-acl.c (qcopy_acl): Likewise.
38681
38682 2008-06-08  Bruno Haible  <bruno@clisp.org>
38683
38684         Add support for HP-UX ACLs.
38685         * lib/acl-internal.h (acl_nontrivial): New declaration.
38686         * lib/file-has-acl.c (acl_nontrivial): New function.
38687         (file_has_acl): Add implementation using HP-UX 11 ACL API.
38688         * lib/set-mode-acl.c (qset_acl): Likewise.
38689         * lib/copy-acl.c (qcopy_acl): Likewise.
38690
38691 2008-06-08  Bruno Haible  <bruno@clisp.org>
38692
38693         Add support for Cygwin ACLs.
38694         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
38695         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
38696         the chmod_or_fchmod call.
38697         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
38698
38699 2008-06-08  Bruno Haible  <bruno@clisp.org>
38700
38701         Fix bug with setuid modes in Solaris 10+ code.
38702         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
38703         succeeded, when the mode contains some special bits.
38704
38705 2008-06-08  Bruno Haible  <bruno@clisp.org>
38706
38707         Add support for Solaris 7..10 ACLs.
38708         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
38709         declarations.
38710         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
38711         functions.
38712         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
38713         * lib/set-mode-acl.c (qset_acl): Likewise.
38714         * lib/copy-acl.c (qcopy_acl): Likewise.
38715
38716 2008-06-08  Bruno Haible  <bruno@clisp.org>
38717
38718         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
38719         declaration.
38720         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
38721         (acl_access_nontrivial): Remove MacOS X case.
38722         (file_has_acl): Use acl_extended_nontrivial.
38723         * lib/copy-acl.c (qcopy_acl): Likewise.
38724
38725 2008-06-08  Bruno Haible  <bruno@clisp.org>
38726
38727         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
38728
38729 2008-06-08  Jim Meyering  <meyering@redhat.com>
38730
38731         * modules/acl (Maintainer): Add Bruno Haible.
38732
38733 2008-06-07  Bruno Haible  <bruno@clisp.org>
38734
38735         Improve support for Tru64 ACLs.
38736         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
38737         ACL on OSF/1.
38738
38739 2008-06-07  Bruno Haible  <bruno@clisp.org>
38740
38741         Add support for MacOS X ACLs.
38742         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
38743         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
38744         * lib/set-mode-acl.c (qset_acl): Likewise.
38745         * lib/copy-acl.c (qcopy_acl): Likewise.
38746
38747 2008-06-07  Bruno Haible  <bruno@clisp.org>
38748
38749         Fix memory leak introduced on 2008-05-22.
38750         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
38751         use.
38752
38753 2008-06-07  Bruno Haible  <bruno@clisp.org>
38754
38755         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
38756         to construct an empty ACL.
38757
38758 2008-06-07  Bruno Haible  <bruno@clisp.org>
38759
38760         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
38761         precisely.
38762         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
38763
38764 2008-06-07  Bruno Haible  <bruno@clisp.org>
38765
38766         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
38767         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
38768
38769 2008-06-07  Bruno Haible  <bruno@clisp.org>
38770
38771         * doc/posix-functions/_setjmp.texi: Explain the use of this function
38772         regardless of POSIX.
38773         * doc/posix-functions/_longjmp.texi: Likewise.
38774         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
38775         SystemV platform in this case.
38776
38777 2008-06-06  Eric Blake  <ebb9@byu.net>
38778
38779         Document abort() bugs.
38780         * doc/posix-functions/abort.texi (abort): Mention anomalies.
38781
38782         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
38783         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
38784         sigsetjmp.
38785         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
38786         siglongjmp, but only as a macro.
38787         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
38788         is obsolete.
38789         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
38790
38791         Tweak documentation to cover cygwin argz bugs.
38792         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
38793         argz bug fix; no code change needed since no cygwin releases
38794         occurred between the last fix and the bug being tested.
38795         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
38796         module and recently fixed cygwin bugs.
38797         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
38798         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
38799         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
38800         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
38801         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
38802         Likewise.
38803         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
38804         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
38805         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
38806         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
38807         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
38808         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
38809         Likewise.
38810
38811         Avoid gcc warning on cygwin.
38812         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
38813         !ACL_NO_TRIVIAL]: Avoid unused variable.
38814
38815 2008-06-05  Eric Blake  <ebb9@byu.net>
38816
38817         Be tolerant of UNKNOWN version in gnulib-tool test dir.
38818         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
38819         git-version-gen fails to come up with a version.
38820         Reported by Simon Josefsson.
38821
38822 2008-06-05  Jim Meyering  <meyering@redhat.com>
38823             Paul Eggert  <eggert@cs.ucla.edu>
38824
38825         utimens.c: work around a probable Linux kernel bug
38826         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
38827         appears to be a kernel bug that causes utimensat to return 280
38828         instead of 0, indicating success.
38829
38830 2008-06-04  Bruno Haible  <bruno@clisp.org>
38831
38832         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
38833         2008-06-01 commit.
38834
38835 2008-06-04  Bruno Haible  <bruno@clisp.org>
38836
38837         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
38838         * lib/file-has-acl.c (acl_access_nontrivial): New function.
38839         (file_has_acl): Use it. Save errno afterwards.
38840         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
38841
38842 2008-06-03  Bruno Haible  <bruno@clisp.org>
38843
38844         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
38845         draft code. Simplify #ifs.
38846         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
38847         Put Solaris code after POSIX-draft code. Fix comments regarding
38848         Solaris 10, HP-UX. Mention Cygwin.
38849         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
38850
38851 2008-06-03  Eric Blake  <ebb9@byu.net>
38852
38853         Provide fallback for older kernels.
38854         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
38855         Provide runtime fallback if kernel lacks support.
38856         Reported by Mike Frysinger.
38857
38858 2008-06-02  Bruno Haible  <bruno@clisp.org>
38859
38860         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
38861         it exists.
38862
38863 2008-06-02  Bruno Haible  <bruno@clisp.org>
38864
38865         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
38866         * lib/copy-acl.c (qcopy_acl): Update comment.
38867
38868 2008-06-02  Bruno Haible  <bruno@clisp.org>
38869
38870         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
38871         like ACL APIs.
38872
38873 2008-06-02  Bruno Haible  <bruno@clisp.org>
38874
38875         * tests/test-file-has-acl.sh: Use different code for Cygwin.
38876         * tests/test-set-mode-acl.sh: Likewise.
38877         * tests/test-copy-acl.sh: Likewise.
38878         * tests/test-copy-file.sh: Likewise.
38879
38880 2008-06-02  Bruno Haible  <bruno@clisp.org>
38881
38882         * tests/test-file-has-acl.sh: Remove unused code.
38883
38884 2008-06-01  Bruno Haible  <bruno@clisp.org>
38885
38886         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
38887         (copy_acl): Just a wrapper around qcopy_acl that emits the error
38888         messages.
38889         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
38890
38891 2008-06-01  Bruno Haible  <bruno@clisp.org>
38892
38893         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
38894         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
38895         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
38896         APIs.
38897         * modules/acl-tests (configure.ac): Remove tests now contained in
38898         m4/acl.m4.
38899
38900 2008-06-02  Jim Meyering  <meyering@redhat.com>
38901
38902         announce-gen: use a better key-server host name
38903         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
38904         it may be more consistently reliable.  Suggested by Werner Koch
38905         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
38906
38907 2008-06-01  Bruno Haible  <bruno@clisp.org>
38908
38909         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
38910         Reported by Voroskoi Andras <voroskoi@gmail.com>.
38911
38912 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
38913
38914         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
38915
38916 2008-06-01  Bruno Haible  <bruno@clisp.org>
38917
38918         New ACL tests.
38919         * tests/test-file-has-acl.sh: New file.
38920         * tests/test-file-has-acl.c: New file.
38921         * tests/test-set-mode-acl.sh: New file.
38922         * tests/test-set-mode-acl.c: New file.
38923         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
38924         * tests/test-copy-acl.c: New file.
38925         * modules/acl-tests: New file, based on modules/copy-file-tests.
38926         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
38927         (Depends-on): Add acl-tests.
38928         (configure.ac): Remove checks.
38929         (Makefile.am): Don't create test-sameacls program here any more.
38930
38931 2008-06-01  Bruno Haible  <bruno@clisp.org>
38932
38933         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
38934         * tests/test-sameacls.c: Include progname.h.
38935         (main): Invoke set_program_name. Portability fixes for MacOS X,
38936         Solaris, HP-UX.
38937
38938 2008-06-01  Bruno Haible  <bruno@clisp.org>
38939
38940         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
38941         function.
38942         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
38943
38944 2008-06-01  Bruno Haible  <bruno@clisp.org>
38945
38946         * modules/rpmatch (Depends-on): Add strdup.
38947
38948 2008-06-01  Bruno Haible  <bruno@clisp.org>
38949
38950         * lib/pipe.c: Include unistd-safer.h.
38951         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
38952         * modules/pipe (Depends-on): Add unistd-safer.
38953
38954 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38955
38956         * modules/autobuild (configure.ac): Call AB_INIT.
38957
38958 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38959
38960         * tests/test-getaddrinfo.c: Don't print debug messages by default.
38961         Suggested by Bruno Haible <bruno@clisp.org>.
38962
38963 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38964
38965         * tests/test-base64.c: Cast size_t to unsigned long when invoking
38966         printf.  Use %lu instead of %d.  Reported by Bruno Haible
38967         <bruno@clisp.org>.
38968
38969 2008-05-29  Eric Blake  <ebb9@byu.net>
38970
38971         Prefer new POSIX 200x interfaces over futimesat.
38972         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
38973         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
38974         when available.
38975         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
38976
38977 2008-05-28  Bruno Haible  <bruno@clisp.org>
38978
38979         * modules/stpcpy (License): Change to LGPLv2+.
38980         Requested by David Lutterkort <dlutter@redhat.com>.
38981
38982 2008-05-27  Bruno Haible  <bruno@clisp.org>
38983
38984         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
38985         current mingw.
38986         Reported by Jose E. Marchesi <jemarch@gnu.org>.
38987
38988 2008-05-27  Bruno Haible  <bruno@clisp.org>
38989
38990         * modules/iconv_open (Link): New section, from module 'iconv'.
38991         * modules/striconv (Link): Likewise.
38992         * modules/striconveh (Link): Likewise.
38993         * modules/xstriconv (Link): Likewise.
38994         * modules/unicodeio (Link): Likewise.
38995         * modules/propername (Link): Likewise.
38996         Reported by Jim Meyering.
38997
38998 2008-05-26  Jim Meyering  <meyering@redhat.com>
38999
39000         sha256: do not artificially restrict buffer length to be < 2^32
39001         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
39002         uint32_t to size_t.
39003         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
39004         to match.
39005
39006         avoid unaligned access errors, e.g., on sparc
39007         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
39008         direct access through a possibly-unaligned uint64* pointer.
39009         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
39010         direct access through a possibly-unaligned uint32* pointer.
39011         Prompted by this patch from Tom "spot" Callaway:
39012         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
39013
39014         sha512.c: fix typo in comment
39015         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
39016
39017 2008-05-25  Bruno Haible  <bruno@clisp.org>
39018
39019         * lib/set-mode-acl.c: Renamed from lib/acl.c.
39020         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
39021         (Makefile.am): Update lib_SOURCES.
39022
39023 2008-05-25  Bruno Haible  <bruno@clisp.org>
39024
39025         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
39026
39027 2008-05-25  Jim Meyering  <meyering@redhat.com>
39028
39029         useless-if-before-free: freed expr may have white-space differences
39030         * build-aux/useless-if-before-free: Recognize cases in which the
39031         freed expression differs from the tested one in embedded white
39032         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
39033         $1 was used, so we can't make any regexp shy.  Improved tests now
39034         detect this.
39035
39036         useless-if-before-free: accept white space in the expression.
39037         * build-aux/useless-if-before-free: For now, any white space
39038         in the expression must be identical in the free argument.
39039
39040         useless-if-before-free: efficiency tweak
39041         * build-aux/useless-if-before-free: Make the expression-matching
39042         regexp "shy".
39043         Make the *outer* regexp shy, not the expr-matching one.
39044
39045         update code-in-comment to accept cast of free arg
39046         * build-aux/useless-if-before-free: Update regexp.
39047
39048 2008-05-25  Bruno Haible  <bruno@clisp.org>
39049
39050         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
39051         * modules/copy-file-tests (Files, Makefile.am): Update.
39052         * tests/test-copy-file.c (func_test_copy): Update.
39053
39054 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
39055
39056         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
39057
39058 2008-05-23  Bruno Haible  <bruno@clisp.org>
39059
39060         Improve support for ACLs on OSF/1.
39061         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
39062         Remove fallback for unknown flavors of ACLs.
39063
39064 2008-05-22  Bruno Haible  <bruno@clisp.org>
39065
39066         Add support for ACLs on OSF/1.
39067         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
39068         replacements.
39069         (acl_free_text): New macro fallback.
39070         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
39071         acl_free.
39072         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
39073         acl_free_text function. Require AC_C_INLINE.
39074
39075 2008-05-22  Bruno Haible  <bruno@clisp.org>
39076
39077         Make copy_acl work on MacOS X 10.5.
39078         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
39079         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
39080         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
39081         If MODE_INSIDE_ACL, don't assume that every system has the same text
39082         representation for ACLs as FreeBSD.
39083         * lib/copy-acl.c (copy_acl): Add support for platforms with
39084         !MODE_INSIDE_ACL.
39085         * lib/file-has-acl.c (file_has_acl): Likewise.
39086         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
39087         FreeBSD, MacOS X, or IRIX, respectively.
39088
39089 2008-05-22  Bruno Haible  <bruno@clisp.org>
39090
39091         * lib/acl.h: Don't include <sys/acl.h>.
39092         (GETACLCNT): Move fallback to lib/acl-internal.h.
39093         * lib/acl-internal.h: Include <sys/acl.h> here.
39094         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
39095
39096 2008-05-22  Bruno Haible  <bruno@clisp.org>
39097
39098         Split off copy_acl function to separate file.
39099         * lib/copy-acl.c: New file, extracted from lib/acl.c.
39100         * lib/acl.c (copy_acl): Moved function to separate file.
39101         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
39102         * modules/acl (Files): Add lib/copy-acl.c.
39103         (Makefiles.am): Augment lib_SOURCES.
39104
39105 2008-05-22  Bruno Haible  <bruno@clisp.org>
39106
39107         * modules/copy-file-tests: New file.
39108         * tests/test-copy-file.sh: New file.
39109         * tests/test-copy-file.c: New file.
39110         * tests/test-copy-file-sameacls.c: New file.
39111
39112 2008-05-22  Eric Blake  <ebb9@byu.net>
39113
39114         Avoid gcc warning.
39115         * tests/test-memcmp.c (main): Pass NULL indirectly.
39116
39117 2008-05-21  Bruno Haible  <bruno@clisp.org>
39118
39119         Add reference doc about ACLs.
39120         * doc/acl-resources.txt: New file.
39121         * doc/acl-cygwin.txt: New file.
39122
39123 2008-05-21  Bruno Haible  <bruno@clisp.org>
39124
39125         Avoid one more warning from gcc.
39126         * lib/vasnprintf.c (IF_LINT): Update comments.
39127         (VASNPRINTF): Use it also for the 'prefix' array initializer.
39128
39129 2008-05-21  Jim Meyering  <meyering@redhat.com>
39130
39131         avoid a warning from gcc
39132         * lib/vasnprintf.c (IF_LINT): Define.
39133         (scale10_round_decimal_long_double):
39134         Use it to avoid a "may be used uninitialized" warning.
39135         (scale10_round_decimal_double): Likewise.
39136
39137 2008-05-21  Simon Josefsson  <simon@josefsson.org>
39138
39139         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
39140         declared.
39141
39142 2008-05-20  Bruno Haible  <bruno@clisp.org>
39143
39144         * tests/test-memcmp.c (main): Test also the sign of the result. Test
39145         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
39146
39147 2008-05-20  Simon Josefsson  <simon@josefsson.org>
39148
39149         * modules/memcmp-tests: New file.
39150         * tests/test-memcmp.c: New file.
39151
39152 2008-05-19  Bruno Haible  <bruno@clisp.org>
39153
39154         * modules/propername (Notice, configure.ac): Put quoted "..." into
39155         --keyword option.
39156         * lib/propername.h: Update comments accordingly.
39157         Reported by Eric Blake.
39158
39159 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
39160
39161         * modules/getpass-gnu (Depends-on): Add fseeko.
39162
39163 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39164
39165         * modules/base64-tests: New file.
39166
39167 2008-05-19  Bo Borgerson <gigabo@gmail.com>
39168
39169         * lib/base64.c (base64_decode_ctx): If a decode context structure
39170         was passed in use it to ignore newlines.  If a context structure
39171         was _not_ passed in, continue to treat newlines as garbage (this
39172         is the historical behavior).  Formerly base64_decode.
39173         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39174         takes a decode context structure.
39175         * lib/base64.h (base64_decode): Macro for four-argument calls.
39176         (base64_decode_alloc): Likewise.
39177         * lib/base64.c (base64_decode_ctx): If a decode context structure
39178         was passed in use it to ignore newlines.  If a context structure
39179         was _not_ passed in, continue to treat newlines as garbage (this
39180         is the historical behavior).  Formerly base64_decode.
39181         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39182         takes a decode context structure.
39183         * lib/base64.h (base64_decode): Macro for four-argument calls.
39184         (base64_decode_alloc): Likewise.
39185
39186 2008-05-19  Jim Meyering  <meyering@redhat.com>
39187
39188         avoid a warning from gcc
39189         * lib/trim.c (IF_LINT): Define.
39190         (trim2): Use it to avoid a "may be used uninitialized" warning.
39191
39192         Fix doc typo.
39193         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
39194
39195 2008-05-19  Bruno Haible  <bruno@clisp.org>
39196
39197         * doc/glibc-functions/getpass.texi: Document limits of other
39198         implementations.
39199
39200 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39201             Bruno Haible <bruno@clisp.org>
39202
39203         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
39204
39205 2008-05-18  Bruno Haible  <bruno@clisp.org>
39206
39207         * modules/propername: New file, from GNU gettext.
39208         * lib/propername.h: New file, from GNU gettext.
39209         * lib/propername.c: New file, from GNU gettext.
39210         * MODULES.html.sh (Internationalization functions): Add propername.
39211
39212 2008-05-16  Jim Meyering  <meyering@redhat.com>
39213             Bruno Haible  <bruno@clisp.org>
39214
39215         Avoid some warnings from "gcc -Wshadow".
39216         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
39217
39218 2008-05-15  Eric Blake  <ebb9@byu.net>
39219
39220         Extend previous patch to cygwin 1.7.0.
39221         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
39222         fast implementation in cygwin >= 1.7.0.
39223         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39224         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39225
39226 2008-05-15  Bruno Haible  <bruno@clisp.org>
39227
39228         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
39229         implementation in glibc >= 2.9.
39230         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39231         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39232
39233 2008-05-15  Bruno Haible  <bruno@clisp.org>
39234
39235         * MODULES.html.sh (Internationalization functions): Remove linebreak.
39236         (Unicode string functions): Add unilbrk/*.
39237         Reported by Karl Berry.
39238
39239 2008-05-15  Eric Blake  <ebb9@byu.net>
39240
39241         Fix violation of <stdbool.h> replacement in regex.
39242         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
39243         * lib/regexec.c (re_search_internal): Likewise.
39244         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
39245
39246 2008-05-15  Jim Meyering  <meyering@redhat.com>
39247
39248         avoid distracting test output when git or cvs is not found
39249         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
39250         * tests/test-vc-list-files-git.sh: Likewise.
39251
39252 2008-05-15  Eric Blake  <ebb9@byu.net>
39253
39254         Glibc finally accepted the memmem speedup code, bugzilla #5514.
39255         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
39256         glibc version.
39257         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39258         * doc/posix-functions/strstr.texi (strstr): Likewise.
39259         * lib/str-two-way.h (MAX): Sychronize with glibc.
39260
39261 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
39262
39263         * lib/regcomp.c (optimize_utf8): Add a note on why we test
39264         opr.ctx_type.
39265         (calc_first): Initialize constraint field.
39266         (duplicate_node_closure): Use it instead of special casing ANCHORS.
39267         Fix grammar.
39268         (duplicate_node): Merge constraint field for all node types.
39269         (calc_eclosure_iter): Look at constraint field for all node types.
39270         * lib/regex_internal.c (create_cd_newstate): Don't look at
39271         opr.ctx_type.
39272
39273 2008-05-14  Bruno Haible  <bruno@clisp.org>
39274
39275         Help GCC to do better code generation.
39276         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
39277         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
39278         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
39279         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
39280         Declare with attribute 'malloc' if supported.
39281
39282 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
39283
39284         use "echo STR|wc -c" rather than unportable "expr length STR"
39285         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
39286         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
39287
39288 2008-05-14  Jim Meyering  <meyering@redhat.com>
39289
39290         use dd ibs=$n count=1 ... rather than less-portable head -c$n
39291         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
39292         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
39293         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
39294         via Collin Lasse.
39295
39296 2008-05-14  Eric Blake  <ebb9@byu.net>
39297
39298         Avoid quadratic growth in gl_LIBSOURCES.
39299         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
39300         Suggested by Bruno Haible.
39301
39302         Test xmemdup0.
39303         * modules/xmemdup0-tests: New file.
39304         * tests/test-xmemdup0.c: Likewise.
39305
39306 2008-05-13  Eric Blake  <ebb9@byu.net>
39307
39308         Split xmemdup0 into its own module.
39309         * modules/xmemdup0: New file.
39310         * lib/xmemdup0.h: Likewise.
39311         * lib/xmemdup0.c: Likewise.
39312         * MODULES.html.sh (Memory management functions): Add xmemdup0.
39313         * lib/xalloc.h (xmemdup0): Remove.
39314         * lib/xmalloc.c (xmemdup0): Likewise.
39315
39316 2008-05-13  Eric Blake  <ebb9@byu.net>
39317             Bruno Haible  <bruno@clisp.org>
39318
39319         Reduce number of forks required during autoconf.
39320         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
39321         and gl_LIBSOURCES_DIR.
39322         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
39323         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
39324         m4_syscmd per file.
39325         <m4_foreach_w>: Move...
39326         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
39327
39328 2008-05-13  Eric Blake  <ebb9@byu.net>
39329
39330         * gnulib-tool: Fix various comment typos.
39331
39332 2008-05-12  Bruno Haible  <bruno@clisp.org>
39333
39334         Tailor the linebreaking algorithm.
39335         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
39336
39337 2008-05-12  Bruno Haible  <bruno@clisp.org>
39338
39339         Update to Unicode 5.0.0.
39340         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39341         LBP_JV, LBP_JT. Redistribute values.
39342         (unilbrk_table): Change size.
39343         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
39344         Unicode TR#14 rev. 22.
39345         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39346         LBP_JV, LBP_JT. Redistribute values.
39347         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
39348         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
39349         Update.
39350         * lib/unilbrk/lbrkprop1.h: Regenerated.
39351         * lib/unilbrk/lbrkprop2.h: Regenerated.
39352         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
39353         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
39354         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
39355         Likewise.
39356         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
39357         Likewise.
39358         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
39359         result.
39360         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39361         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39362         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
39363         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
39364         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
39365         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
39366
39367 2008-05-11  Bruno Haible  <bruno@clisp.org>
39368
39369         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
39370
39371 2008-05-11  Bruno Haible  <bruno@clisp.org>
39372
39373         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
39374         * modules/unilbrk/gen-lbrk: New file.
39375
39376 2008-05-11  Bruno Haible  <bruno@clisp.org>
39377
39378         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
39379         * m4/sha512.m4 (gl_SHA512): Likewise.
39380
39381 2008-05-11  Jim Meyering  <meyering@redhat.com>
39382
39383         New modules: crypto/sha256, crypto/sha512 (from coreutils)
39384         * modules/crypto/sha256: New file.
39385         * modules/crypto/sha512: Likewise.
39386         * lib/sha256.c: Likewise.
39387         * lib/sha256.h: Likewise.
39388         * lib/sha512.c: Likewise.
39389         * lib/sha512.h: Likewise.
39390         * lib/u64.h: Likewise.
39391         * m4/sha256.m4: Likewise.
39392         * m4/sha512.m4: Likewise.
39393         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
39394
39395 2008-05-10  Bruno Haible  <bruno@clisp.org>
39396
39397         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
39398         (Input/Output <stdio.h>): Add xprintf.
39399         (Signal handling <signal.h>): Add strsignal.
39400         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
39401         (Core language properties): Add func.
39402         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
39403         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
39404         strings.
39405         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
39406         (Input/output): New section.
39407         (File system functions): Add openat-die, stat-macros.
39408         (Networking functions): Add sockets.
39409         (Unicode string functions): Add unictype/*.
39410         (Support for building libraries and executables): Add gperf.
39411         (Support for building documentation): Add agpl-3.0.
39412         (Misc): Add nocrash.
39413
39414 2008-05-10  Bruno Haible  <bruno@clisp.org>
39415
39416         * modules/unictype/gen-ctype: New file.
39417
39418 2008-05-10  Jim Meyering  <meyering@redhat.com>
39419
39420         Make chdir-safer.c more efficient on a system with no symlinks.
39421         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
39422         also if ELOOP is zero.  Suggested by Bruno Haible.
39423
39424         Make chdir-safer.c slightly safer.
39425         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
39426         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
39427
39428         Avoid compile failure on systems without ELOOP (like mingw).
39429         * lib/chdir-safer.c (ELOOP): Define if not already defined.
39430         Reported by Bruno Haible.
39431
39432 2008-05-10  Bruno Haible  <bruno@clisp.org>
39433
39434         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
39435         (is_utf8_encoding): Use a case-insensitive comparison.
39436         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
39437         streq.
39438
39439 2008-05-10  Bruno Haible  <bruno@clisp.org>
39440
39441         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
39442         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
39443         * lib/unilbrk/ulc-common.h (iconv_string_length,
39444         iconv_string_keeping_offsets): Remove declarations.
39445         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
39446         Don't include <iconv.h>, streq.h, xsize.h.
39447         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
39448         conversion.
39449         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
39450         <iconv.h>, streq.h, xsize.h.
39451         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
39452         conversion.
39453         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
39454         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
39455         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
39456         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
39457
39458 2008-05-10  Bruno Haible  <bruno@clisp.org>
39459
39460         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
39461         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
39462
39463         * modules/unilbrk/u32-width-linebreaks-tests: New file.
39464         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
39465
39466         * modules/unilbrk/u16-width-linebreaks-tests: New file.
39467         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
39468
39469         * modules/unilbrk/u8-width-linebreaks-tests: New file.
39470         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
39471
39472         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
39473         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
39474
39475         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
39476         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
39477
39478         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
39479         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
39480
39481         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
39482         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
39483
39484 2008-05-10  Bruno Haible  <bruno@clisp.org>
39485
39486         Split up 'linebreak' module.
39487         * lib/unilbrk.h: New file, based on lib/linebreak.h.
39488         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
39489         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
39490         modifications.
39491         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
39492         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
39493         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
39494         lib/linebreak.c.
39495         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
39496         lib/linebreak.c.
39497         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
39498         lib/linebreak.c.
39499         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
39500         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
39501         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
39502         lib/linebreak.c.
39503         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
39504         lib/linebreak.c.
39505         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
39506         lib/linebreak.c.
39507         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
39508         lib/linebreak.c.
39509         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
39510         lib/linebreak.c.
39511         * modules/unilbrk/base: New file.
39512         * modules/unilbrk/tables: New file.
39513         * modules/unilbrk/u8-possible-linebreaks: New file.
39514         * modules/unilbrk/u16-possible-linebreaks: New file.
39515         * modules/unilbrk/u32-possible-linebreaks: New file.
39516         * modules/unilbrk/ulc-common: New file.
39517         * modules/unilbrk/ulc-possible-linebreaks: New file.
39518         * modules/unilbrk/u8-width-linebreaks: New file.
39519         * modules/unilbrk/u16-width-linebreaks: New file.
39520         * modules/unilbrk/u32-width-linebreaks: New file.
39521         * modules/unilbrk/ulc-width-linebreaks: New file.
39522         * lib/linebreak.h: Remove file.
39523         * lib/linebreak.c: Remove file.
39524         * m4/linebreak.m4: Remove file.
39525         * modules/linebreak: Remove file.
39526         * NEWS: Mention the changes.
39527
39528 2008-05-09  Eric Blake  <ebb9@byu.net>
39529
39530         Add xmemdup0.
39531         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
39532         implementation.
39533         * lib/xmalloc.c (xmemdup0): New C implementation.
39534
39535 2008-05-08  Bruno Haible  <bruno@clisp.org>
39536
39537         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
39538
39539 2008-05-07  Eric Blake  <ebb9@byu.net>
39540
39541         Support cross-compilation of <wctype.h>.
39542         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
39543         AC_CACHE_CHECK.
39544
39545 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
39546
39547         * build-aux/vc-list-files: Add support for bzr.
39548
39549 2008-05-03  Jim Meyering  <meyering@redhat.com>
39550
39551         avoid failed assertion with tight malloc
39552         * tests/test-getndelim2.c: Correct an off-by-one assertion.
39553
39554 2008-05-03  Simon Josefsson  <simon@josefsson.org>
39555
39556         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
39557         are needed from arpa/inet.h.
39558         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
39559         Reported by Bruno Haible.
39560
39561 2008-05-02  Jim Meyering  <meyering@redhat.com>
39562
39563         avoid compilation error on FreeBSD 6
39564         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
39565
39566 2008-05-01  Jim Meyering  <meyering@redhat.com>
39567
39568         useless-if-before-free: correct --help's exit status description
39569         * build-aux/useless-if-before-free (usage): Like grep, exit 0
39570         for one or more matches, etc.  Reported by Bruno Haible.
39571
39572         vc-list-files: make the stand-alone gnulib test work
39573         * modules/vc-list-files-tests (configure.ac):
39574         Define and AC_SUBST abs_aux_dir.
39575         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
39576         $(abs_top_srcdir) to each script and having each of them
39577         duplicate the work of setting PATH, set PATH here, using
39578         the new variable, abs_aux_dir instead.
39579         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
39580         * tests/test-vc-list-files-git.sh: Likewise.
39581         Reported by Bruno Haible.
39582
39583 2008-05-01  Bruno Haible  <bruno@clisp.org>
39584
39585         * lib/getndelim2.c (getndelim2): Fix newsize computation during
39586         reallocation. Rename 'done' to 'found_delimiter'.
39587
39588 2008-05-01  Jim Meyering  <meyering@redhat.com>
39589
39590         vc-list-files: accommodate /bin/sh like the one from Solaris 10
39591         * build-aux/vc-list-files: Use `...`, not $(...).
39592
39593 2008-04-30  Jim Meyering  <meyering@redhat.com>
39594
39595         add tests for vc-list-files
39596         * modules/vc-list-files-tests: New module.
39597         * tests/test-vc-list-files-cvs.sh: New file.
39598         * tests/test-vc-list-files-git.sh: New file.
39599
39600         avoid a warning from gcc
39601         * lib/getndelim2.c (IF_LINT): Define.
39602         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
39603
39604         vc-list-files: work properly with build-aux/cvsu, too
39605         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
39606         to all cvs-based clauses.
39607
39608         vc-list-files: work properly in the CVS+awk case, too
39609         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
39610
39611         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
39612         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
39613         take more than one file argument, so .  Add quotes, just in case $dir
39614         ever contains a shell meta-character.  Prompted by Soren Hansen in
39615         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
39616
39617 2008-04-29  Eric Blake  <ebb9@byu.net>
39618
39619         Optimize getndelim2 to use block operations when possible.
39620         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
39621         freadseek, and memchr2.
39622         * lib/getndelim2.c (getndelim2): Use them for block reads.
39623
39624 2008-04-29  Bruno Haible  <bruno@clisp.org>
39625
39626         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
39627         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39628         * modules/inet_ntop (Depends-on): Add extensions.
39629         * modules/inet_pton (Depends-on): Likewise.
39630         Reported by Simon Josefsson.
39631
39632 2008-04-29  Jim Meyering  <meyering@redhat.com>
39633
39634         When the is more than one match in a block, match all of them.
39635         * build-aux/useless-if-before-free: Iterate through each block
39636         until there are no more matches.
39637
39638         Fix broken useless-if-before-free script.
39639         * build-aux/useless-if-before-free: Fix typo: missing "?" after
39640         the expression to match cast of argument to free-like function.
39641
39642 2008-04-29  Eric Blake  <ebb9@byu.net>
39643
39644         Use new header.
39645         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
39646
39647 2008-04-29  Jim Meyering  <meyering@redhat.com>
39648
39649         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
39650         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
39651         by gnulib to exist and to declare e.g., inet_ntop.
39652         Don't include "inet_ntop.h", now removed.
39653
39654         * m4/arpa_inet_h.m4: Remove trailing blanks.
39655
39656 2008-04-29  Eric Blake  <ebb9@byu.net>
39657
39658         Silence valgrind on safe reads beyond potential array bounds.
39659         * lib/rawmemchr.valgrind: New file.
39660         * lib/strchrnul.valgrind: Likewise.
39661         * modules/rawmemchr (Files): Distribute new file.
39662         * modules/strchrnul (Files): Likewise.
39663         Suggested by Bruno Haible.
39664
39665 2008-04-29  Bruno Haible  <bruno@clisp.org>
39666
39667         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
39668         (inet_ntop, inet_pton): Change portability warning's wording.
39669         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
39670         Invoke gl_CHECK_NEXT_HEADERS.
39671         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
39672         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
39673         set ARPA_INET_H.
39674         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39675         * modules/arpa_inet (Description): No longer only for systems that
39676         lack it.
39677         (Depends-on): Add include_next.
39678         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
39679         HAVE_ARPA_INET_H.
39680
39681 2008-04-29  Jim Meyering  <meyering@redhat.com>
39682
39683         * modules/mkdir (License): Re-license as LGPLv2+.
39684
39685 2008-04-29  Bruno Haible  <bruno@clisp.org>
39686
39687         * modules/rawmemchr (Maintainer): Set to Eric.
39688         * modules/strchrnul (Maintainer): Likewise.
39689
39690 2008-04-29  Simon Josefsson  <simon@josefsson.org>
39691
39692         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
39693         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
39694
39695         * modules/arpa_inet (arpa/inet.h): Use them.
39696
39697 2008-04-28  Eric Blake  <ebb9@byu.net>
39698
39699         Test getndelim2.
39700         * modules/getndelim2-tests: New file.
39701         * tests/test-getndelim2.c: Likewise.
39702         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
39703         stream.
39704         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
39705
39706         * MODULES.html.sh: Document new module.
39707
39708 2008-04-20  Bruno Haible  <bruno@clisp.org>
39709
39710         * lib/c-stack.c (die): Use raise.
39711         * modules/c-stack (Depends-on): Add raise.
39712
39713 2008-04-28  Bruno Haible  <bruno@clisp.org>
39714
39715         Expect rpmatch to be declared.
39716         * lib/yesno.c (rpmatch): Remove declaration.
39717
39718         Declare rpmatch.
39719         * lib/stdlib.in.h (rpmatch): New declaration.
39720         * lib/rpmatch.c: Include <stdlib.h> first.
39721         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
39722         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
39723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
39724         HAVE_RPMATCH.
39725         * modules/rpmatch (Depends-on): Add stdlib, extensions.
39726         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39727         (Include): Set to <stdlib.h>.
39728         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
39729         HAVE_RPMATCH.
39730         * NEWS: Document the change.
39731
39732 2008-04-28  Bruno Haible  <bruno@clisp.org>
39733
39734         Change rpmatch to use nl_langinfo when appropriate.
39735         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
39736         (N_): New macro.
39737         (localized_pattern): New function/macro.
39738         (try): Remove match, nomatch arguments. Copy the pattern into safe
39739         memory before caching it.
39740         (rpmatch): Use localized_pattern. Add translator comments.
39741         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
39742         Suggested by Eric Blake.
39743         * modules/rpmatch (Depends-on): Add stdbool.
39744
39745 2008-04-28  Eric Blake  <ebb9@byu.net>
39746
39747         Add rawmemchr module, matching glibc.
39748         * modules/string (Makefile.am): New indicator.
39749         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
39750         * lib/string.in.h (rawmemchr): Declare when appropriate.
39751         * modules/rawmemchr: New file.
39752         * m4/rawmemchr.m4: Likewise.
39753         * lib/rawmemchr.c: Likewise.
39754         * modules/rawmemchr-tests: Likewise.
39755         * tests/test-rawmemchr.c: Likewise.
39756         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
39757         module.
39758         * modules/strchrnul (Depends-on): Add rawmemchr.
39759         * lib/strchrnul.c (strchrnul): Optimize a corner case.
39760
39761         Whitespace cleanup.
39762         * tests/test-strchrnul.c: Reindent.
39763         * lib/strchrnul.c: Likewise.
39764
39765         Optimize and test strchrnul.
39766         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
39767         * modules/strchrnul-tests: New file.
39768         * tests/test-strchrnul.c: Likewise.
39769
39770         Remove intprops dependency.
39771         * modules/memchr (Depends-on): Remove intprops.
39772         * modules/memrchr (Depends-on): Likewise.
39773         * modules/memchr2 (Depends-on): Likewise.
39774         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
39775         * lib/memrchr.c (__memrchr): Likewise.
39776         * lib/memrchr2.c (memchr2): Likewise.
39777         Reported by Simon Josefsson.
39778
39779 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39780
39781         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
39782         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39783
39784 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39785
39786         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
39787
39788         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
39789
39790         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
39791
39792         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
39793         declarations.
39794         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
39795
39796         * m4/inet_pton.m4: Don't check for header files.
39797
39798         * m4/inet_ntop.m4: Don't check for header files.
39799
39800 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39801
39802         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
39803         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
39804         trigger for cygwin).
39805         Reported by Bruno Haible  <bruno@clisp.org>.
39806
39807 2008-04-28  Bruno Haible  <bruno@clisp.org>
39808
39809         * doc/posix-functions/strdup.texi: Mention mingw problem.
39810
39811 2008-04-27  Bruno Haible  <bruno@clisp.org>
39812
39813         * modules/stat-time-tests (Depends-on): Add sleep.
39814         * tests/test-stat-time.c (force_unlink): New function.
39815         (cleanup): Use it.
39816         (test_mtime): Remove the ctime related tests.
39817         (test_ctime): New function, containing the ctime related tests.
39818         (main): Call test_ctime, except on native Windows platforms.
39819
39820 2008-04-27  Bruno Haible  <bruno@clisp.org>
39821
39822         * lib/rpmatch.c (rpmatch): Add some comments.
39823         Reported by James Youngman <jay@gnu.org>.
39824
39825 2008-04-27  Bruno Haible  <bruno@clisp.org>
39826
39827         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
39828         quiet NaNs.
39829
39830 2008-04-27  Bruno Haible  <bruno@clisp.org>
39831
39832         Make test-yesno.sh work on mingw.
39833         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
39834         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
39835         (main): Set stdin to binary mode.
39836         * modules/yesno-tests (Depends-on): Add binary-io.
39837
39838 2008-04-27  Bruno Haible  <bruno@clisp.org>
39839
39840         Fix 'isfinite' on x86, x86_64, ia64 platforms.
39841         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
39842         argument that lie outside the IEEE 854 domain.
39843         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
39844         (gl_ISFINITE): Use it.
39845         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
39846
39847 2008-04-27  Bruno Haible  <bruno@clisp.org>
39848
39849         Allow local renaming in config.h.
39850         * lib/memrchr.c (memrchr): Don't undefine outside libc.
39851
39852 2008-04-27  Bruno Haible  <bruno@clisp.org>
39853
39854         * lib/memchr.c (__memchr): Change type of 'i'.
39855         * lib/memchr2.c (memchr2): Likewise.
39856
39857 2008-04-26  Eric Blake  <ebb9@byu.net>
39858         and Bruno Haible  <bruno@clisp.org>
39859
39860         Optimize and test memrchr.
39861         * modules/memrchr (Depends-on): Add intprops.
39862         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
39863         * modules/memrchr-tests: New file.
39864         * tests/test-memrchr.c: New file.
39865
39866 2008-04-26  Bruno Haible  <bruno@clisp.org>
39867
39868         Add tentative support for DragonFly BSD.
39869         * lib/stdio-impl.h: Add macros for DragonFly BSD.
39870         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
39871         fp.
39872         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39873         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
39874         * lib/fpurge.c (fpurge): Likewise.
39875         * lib/freadable.c (freaadable): Likewise.
39876         * lib/freadahead.c (freadahead): Likewise.
39877         * lib/freading.c (freading): Likewise.
39878         * lib/freadptr.c (freadptr): Likewise.
39879         * lib/freadseek.c (freadptrinc): Likewise.
39880         * lib/fseeko.c (fseeko): Likewise.
39881         * lib/fseterr.c (fseterr): Likewise.
39882         * lib/fwritable.c (fwritable): Likewise.
39883         * lib/fwriting.c (fwriting): Likewise.
39884
39885 2008-04-26  Bruno Haible  <bruno@clisp.org>
39886
39887         * lib/stdio-impl.h: New file.
39888         * lib/fbufmode.c: Include stdio-impl.h.
39889         (fbufmode): Use fp_, remove redundant #defines.
39890         * lib/fflush.c: Include stdio-impl.h.
39891         (clear_ungetc_buffer): Remove redundant #defines.
39892         * lib/fpurge.c: Include stdio-impl.h.
39893         (fpurge): Remove redundant #defines.
39894         * lib/freadable.c: Include stdio-impl.h.
39895         (freadable): Remove redundant #defines.
39896         * lib/freadahead.c: Include stdio-impl.h.
39897         (freadahead): Remove redundant #defines.
39898         * lib/freading.c: Include stdio-impl.h.
39899         (freading): Remove redundant #defines.
39900         * lib/freadptr.c: Include stdio-impl.h.
39901         (freadptr): Remove redundant #defines.
39902         * lib/freadseek.c: Include stdio-impl.h.
39903         (freadptrinc): Remove redundant #defines.
39904         * lib/fseeko.c: Include stdio-impl.h.
39905         (rpl_fseeko): Remove redundant #defines.
39906         * lib/fseterr.c: Include stdio-impl.h.
39907         (fseterr): Remove redundant #defines.
39908         * lib/fwritable.c: Include stdio-impl.h.
39909         (fwritable: Remove redundant #defines.
39910         * lib/fwriting.c: Include stdio-impl.h.
39911         (fwriting): Remove redundant #defines.
39912         * modules/fbufmode (Files): Add lib/stdio-impl.h.
39913         * modules/fflush (Files): Likewise.
39914         * modules/fpurge (Files): Likewise.
39915         * modules/freadable (Files): Likewise.
39916         * modules/freadahead (Files): Likewise.
39917         * modules/freading (Files): Likewise.
39918         * modules/freadptr (Files): Likewise.
39919         * modules/freadseek (Files): Likewise.
39920         * modules/fseeko (Files): Likewise.
39921         * modules/fseterr (Files): Likewise.
39922         * modules/fwritable (Files): Likewise.
39923         * modules/fwriting (Files): Likewise.
39924
39925 2008-04-26  Bruno Haible  <bruno@clisp.org>
39926
39927         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39928         restore_seek_optimization, update_fpos_cache): New functions, extracted
39929         from rpl_fflush.
39930         (rpl_fflush): Use them.
39931         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
39932         (gl_REPLACE_FFLUSH): Use it.
39933
39934 2008-04-26  Bruno Haible  <bruno@clisp.org>
39935
39936         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
39937         on Solaris.
39938         * tests/test-xstrtoimax.sh: Likewise.
39939         * tests/test-xstrtoumax.sh: Likewise.
39940         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39941
39942 2008-04-26  Bruno Haible  <bruno@clisp.org>
39943
39944         * modules/memchr-tests: New file.
39945         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
39946
39947 2008-04-26  Eric Blake  <ebb9@byu.net>
39948             Bruno Haible  <bruno@clisp.org>
39949
39950         * lib/memchr.c: Include intprops.h.
39951         (__memchr): Optimize parallel detection of matching bytes. Rename local
39952         variables. Add explanatory comments.
39953
39954 2008-04-26  Bruno Haible  <bruno@clisp.org>
39955
39956         Fix module 'memchr', broken since 2000-10-28.
39957         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
39958
39959 2008-04-26  Bruno Haible  <bruno@clisp.org>
39960
39961         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
39962         comments.
39963
39964 2008-04-25  Eric Blake  <ebb9@byu.net>
39965
39966         Use native fstatat on cygwin 1.7.0.
39967         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
39968         first.
39969
39970 2008-04-23  Eric Blake  <ebb9@byu.net>
39971
39972         Improve memchr2 performance.
39973         * lib/memchr2.c (memchr2): Further optimize parallel detection of
39974         NUL bytes.
39975         * modules/memchr2 (Depends-on): Use intprops.h.
39976
39977 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39978
39979         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
39980         an inline function instead of a CPP macro.  Patch by Ben Pfaff
39981         <blp@cs.stanford.edu>.
39982
39983 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39984
39985         * lib/arpa_inet.in.h: New file.
39986
39987         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
39988         (Makefile.am): Sed in substitute header file.
39989
39990         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
39991         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
39992
39993         * modules/inet_ntop (configure.ac): Use
39994         gl_ARPA_INET_MODULE_INDICATOR.
39995
39996         * modules/inet_pton (configure.ac): Use
39997         gl_ARPA_INET_MODULE_INDICATOR.
39998
39999 2008-04-22  Jim Meyering  <meyering@redhat.com>
40000
40001         * modules/verify (License): Re-license as LGPLv2+.
40002
40003 2008-04-22  Simon Josefsson  <simon@josefsson.org>
40004
40005         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
40006         parameter to void* as per POSIX standard (MinGW uses char*).
40007
40008 2008-04-21  Bruno Haible  <bruno@clisp.org>
40009
40010         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
40011         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
40012         Define to replacements if REPLACE_ISWCNTRL is 1.
40013         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
40014         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
40015         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
40016         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
40017         what it fixes.
40018         * doc/posix-functions/iswalpha.texi: Likewise.
40019         * doc/posix-functions/iswblank.texi: Likewise.
40020         * doc/posix-functions/iswcntrl.texi: Likewise.
40021         * doc/posix-functions/iswdigit.texi: Likewise.
40022         * doc/posix-functions/iswgraph.texi: Likewise.
40023         * doc/posix-functions/iswlower.texi: Likewise.
40024         * doc/posix-functions/iswprint.texi: Likewise.
40025         * doc/posix-functions/iswpunct.texi: Likewise.
40026         * doc/posix-functions/iswspace.texi: Likewise.
40027         * doc/posix-functions/iswupper.texi: Likewise.
40028         * doc/posix-functions/iswxdigit.texi: Likewise.
40029         Reported by Alain Guibert.
40030
40031 2008-04-21  Bruno Haible  <bruno@clisp.org>
40032
40033         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
40034         Patch by Alain Guibert.
40035
40036 2008-04-21  Bruno Haible  <bruno@clisp.org>
40037
40038         Fix test failures on mingw.
40039         * tests/test-xstrtol.c (print_no_progname): New function.
40040         (main): Install it in error_print_progname hook.
40041         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
40042         * tests/test-xstrtoimax.sh: Likewise.
40043         * tests/test-xstrtoumax.sh: Likewise.
40044
40045 2008-04-21  Bruno Haible  <bruno@clisp.org>
40046
40047         Fix test failure on mingw.
40048         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
40049
40050 2008-04-21  Bruno Haible  <bruno@clisp.org>
40051
40052         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
40053         Actually assign a value.
40054
40055 2008-04-20  Bruno Haible  <bruno@clisp.org>
40056
40057         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
40058         take 2.
40059         * lib/canonicalize.c (canonicalize_file_name): Elide if the
40060         'canonicalize-lgpl' module is also used.
40061         * lib/canonicalize-lgpl.c: Undo last change.
40062         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
40063
40064 2008-04-20  Bruno Haible  <bruno@clisp.org>
40065
40066         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
40067         config.h. Provide _mkdir based fallback for mingw.
40068         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
40069         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
40070         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
40071         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
40072         rather than defining mkdir in config.h.
40073         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
40074         (gl_SYS_STAT_H_DEFAULTS): New macro.
40075         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
40076         HAVE_IO_H any more.
40077         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
40078         HAVE_DECL_MKDIR and HAVE_IO_H.
40079
40080 2008-04-20  Bruno Haible  <bruno@clisp.org>
40081
40082         * lib/isapipe.c: Port to native Windows platforms.
40083
40084 2008-04-20  Bruno Haible  <bruno@clisp.org>
40085
40086         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
40087
40088 2008-04-21  Eric Blake  <ebb9@byu.net>
40089
40090         Work around preprocessors that don't handle UINTMAX_MAX.
40091         * lib/memchr2.c (memchr2): Avoid embedded #if.
40092         Reported by Alain Guibert, fix suggested by Bruno Haible.
40093
40094 2008-04-21  Simon Josefsson  <simon@josefsson.org>
40095
40096         * doc/posix-functions/strftime.texi (strftime): Explain better
40097         Windows incompatibility.  Suggested by Micah Cowan
40098         <micah@cowan.name>.
40099
40100 2008-04-20  Bruno Haible  <bruno@clisp.org>
40101
40102         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
40103         unistr/u8-mblen.
40104
40105 2008-04-20  Bruno Haible  <bruno@clisp.org>
40106
40107         Fix test failure on platforms with non-GNU iconv.
40108         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
40109         (U_TO_U8): Use it, rather than u16_to_u8.
40110         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
40111         units at the end of the input string.
40112         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
40113
40114 2008-04-20  Bruno Haible  <bruno@clisp.org>
40115
40116         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
40117         when the resulting length is 0.
40118         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
40119
40120 2008-04-20  Bruno Haible  <bruno@clisp.org>
40121
40122         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
40123         works.
40124         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
40125
40126 2008-04-20  Bruno Haible  <bruno@clisp.org>
40127
40128         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
40129         * modules/tsearch-tests (configure.ac): Test for initstate function.
40130
40131 2008-04-20  Bruno Haible  <bruno@clisp.org>
40132
40133         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
40134         for nlink_t if missing.
40135         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
40136
40137 2008-04-19  Bruno Haible  <bruno@clisp.org>
40138
40139         Work around snprintf bug on Linux libc5.
40140         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
40141         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40142         gl_SNPRINTF_SIZE1.
40143         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40144         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
40145         that test failed.
40146         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
40147         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
40148         * modules/snprintf (Files): Add m4/printf.m4.
40149         * modules/vsnprintf (Files): Likewise.
40150         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
40151         * doc/posix-functions/vsnprintf.texi: Likewise.
40152
40153 2008-04-19  Bruno Haible  <bruno@clisp.org>
40154
40155         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
40156         from 0.0058 to less than 10^-7.
40157
40158 2008-04-19  Bruno Haible  <bruno@clisp.org>
40159
40160         Fix rounding when a precision is given.
40161         * lib/vasnprintf.c (is_borderline): New function.
40162         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
40163         9...9x.
40164         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
40165         %e, %g.
40166         * tests/test-vasprintf-posix.c (test_function): Likewise.
40167         * tests/test-snprintf-posix.h (test_function): Likewise.
40168         * tests/test-sprintf-posix.h (test_function): Likewise.
40169         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
40170         * tests/test-printf-posix.h (test_function): Likewise.
40171         * tests/test-printf-posix.output: Update.
40172         Reported by John Darrington <john@darrington.wattle.id.au> via
40173         Ben Pfaff <blp@cs.stanford.edu>.
40174
40175 2008-04-18  Simon Josefsson  <simon@josefsson.org>
40176
40177         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
40178         Suggested by Bruno Haible <bruno@clisp.org>.
40179
40180 2008-04-17  Bruno Haible  <bruno@clisp.org>
40181
40182         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
40183         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
40184         implementation.
40185         Patch by Bruce Merry <bmerry@gmail.com>.
40186
40187 2008-04-17  Simon Josefsson  <simon@josefsson.org>
40188
40189         * doc/posix-functions/strftime.texi (strftime): Mention that %e
40190         doesn't work under Windows.
40191
40192 2008-04-16  Bruno Haible  <bruno@clisp.org>
40193
40194         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
40195         New macros.
40196         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
40197         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
40198         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
40199         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
40200         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
40201         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
40202         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
40203         macros.
40204         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
40205         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
40206         Northern Sotho, Uighur.
40207
40208 2008-04-16  Bruno Haible  <bruno@clisp.org>
40209
40210         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
40211         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
40212         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
40213         Reported by Daniel Bergström <daniel@octocode.com>.
40214
40215 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
40216             Bruno Haible  <bruno@clisp.org>
40217
40218         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
40219         function.
40220         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
40221         New functions, mostly extracted from gl_locale_name_default.
40222         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
40223
40224 2008-04-16  Eric Blake  <ebb9@byu.net>
40225
40226         Adjust strtod detection to catch glibc 2.7 bug.
40227         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
40228         Reported by John Gatewood Ham.
40229
40230 2008-04-16  Bruno Haible  <bruno@clisp.org>
40231
40232         Add tentative support for Linux libc5.
40233         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
40234         * lib/fpurge.c (fpurge): Likewise.
40235         * lib/freadable.c (freadable): Likewise.
40236         * lib/freadahead.c (freadahead): Likewise.
40237         * lib/freading.c (freading): Likewise.
40238         * lib/freadptr.c (freadptr): Likewise.
40239         * lib/freadseek.c (freadptrinc): Likewise.
40240         * lib/fseeko.c (rpl_fseeko): Likewise.
40241         * lib/fseterr.c (fseterr): Likewise.
40242         * lib/fwritable.c (fwritable): Likewise.
40243         * lib/fwriting.c (fwriting): Likewise.
40244         Reported by Alain Guibert <alguibert+bts@free.fr>.
40245
40246 2008-04-15  Bruno Haible  <bruno@clisp.org>
40247
40248         * modules/mathl (configure.ac): Define module indicator.
40249
40250 2008-04-15  Bruno Haible  <bruno@clisp.org>
40251
40252         * lib/logl.c (logl): Remove unused variables.
40253
40254 2008-04-15  Bruno Haible  <bruno@clisp.org>
40255
40256         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
40257         fails.
40258
40259 2008-04-15  Bruno Haible  <bruno@clisp.org>
40260
40261         * lib/trim.c (trim2): Fix argument of isspace() macro.
40262
40263 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
40264
40265         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
40266         to 0.
40267         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
40268
40269 2008-04-14  Bruno Haible  <bruno@clisp.org>
40270
40271         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
40272         AC_LANG_PROGRAM argument.
40273         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
40274         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
40275         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40276         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40277         * m4/math_h.m4 (gl_MATH_H): Likewise.
40278         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40279         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40280         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40281         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
40282         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40283         * m4/regex.m4 (gl_REGEX): Likewise.
40284         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
40285         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
40286         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40287         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
40288         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40289         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40290         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40291         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40292
40293 2008-04-14  Jim Meyering  <meyering@redhat.com>
40294
40295         test-strtod: fix typos: s/abs/fabs/
40296         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
40297
40298 2008-04-13  Bruno Haible  <bruno@clisp.org>
40299
40300         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
40301         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
40302         module is also used and while not building the reloc-wrapper.
40303
40304 2008-04-13  Bruno Haible  <bruno@clisp.org>
40305
40306         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
40307
40308 2008-04-13  Bruno Haible  <bruno@clisp.org>
40309
40310         Fix AIX compilation failure introduced on 2008-04-02.
40311         * tests/test-frexp.c (exp): Undefine before redefining.
40312         * tests/test-frexpl.c (exp): Likewise.
40313
40314 2008-04-13  Bruno Haible  <bruno@clisp.org>
40315
40316         Work around a HP-UX stdio bug.
40317         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
40318         * tests/test-ftello.c (main): Likewise.
40319         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
40320         * doc/posix-functions/ftello.texi: Likewise.
40321
40322 2008-04-13  Bruno Haible  <bruno@clisp.org>
40323
40324         Make test-signbit pass on HP-UX/hppa.
40325         * tests/test-signbit.c (minus_zerol): New variable.
40326         (test_signbitl): Use it.
40327
40328 2008-04-13  Bruno Haible  <bruno@clisp.org>
40329
40330         Make truncl work on OSF/1 4.0.
40331         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
40332         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40333         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
40335         HAVE_DECL_TRUNCL.
40336         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
40337         HAVE_DECL_TRUNCL.
40338         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
40339
40340 2008-04-13  Bruno Haible  <bruno@clisp.org>
40341
40342         * lib/unictype.h: Remove trailing comma from enumeration definitions.
40343
40344 2008-04-13  Bruno Haible  <bruno@clisp.org>
40345
40346         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
40347         expression, so as to avoid HP-UX 11 cc compiler bug.
40348
40349 2008-04-13  Bruno Haible  <bruno@clisp.org>
40350
40351         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
40352
40353 2008-04-13  Bruno Haible  <bruno@clisp.org>
40354
40355         * lib/git-merge-changelog.c: Remove empty declaration outside of
40356         functions.
40357
40358 2008-04-13  Bruno Haible  <bruno@clisp.org>
40359
40360         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
40361
40362 2008-04-13  Bruno Haible  <bruno@clisp.org>
40363
40364         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
40365         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
40366         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
40367         also if it exists but lacks definitions of the SHUT_* macros.
40368         * modules/sys_socket (Description): Update.
40369         Reported by Elbert Pol <e.pol@chello.nl>.
40370
40371 2008-04-13  Bruno Haible  <bruno@clisp.org>
40372
40373         * lib/localcharset.c (OS2): Don't redefine if already defined.
40374         Reported by Elbert Pol <e.pol@chello.nl>.
40375
40376 2008-04-13  Bruno Haible  <bruno@clisp.org>
40377
40378         * lib/binary-io.h [__EMX__]: Include <io.h>.
40379         Reported by Elbert Pol <e.pol@chello.nl>.
40380
40381 2008-04-12  Bruno Haible  <bruno@clisp.org>
40382
40383         * lib/fpucw.h: Enable the definitions also for x86_64.
40384         Needed for NetBSD/x86_64.
40385         Reported by Thomas Klausner <tk@giga.or.at>.
40386
40387 2008-04-12  Bruno Haible  <bruno@clisp.org>
40388
40389         * tests/test-strtod.c: Include isnand.h.
40390         (main): Use isnand instead of isnan.
40391         Reported by Jim Meyering.
40392
40393 2008-04-12  Bruno Haible  <bruno@clisp.org>
40394
40395         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
40396         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40397
40398 2008-04-12  Jim Meyering  <meyering@redhat.com>
40399
40400         * m4/math_h.m4 (gl_MATH_H): Fix typos.
40401
40402 2008-04-12  Bruno Haible  <bruno@clisp.org>
40403
40404         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
40405         Reported by Elbert Pol <e.pol@chello.nl>.
40406
40407 2008-04-12  Eric Blake  <ebb9@byu.net>
40408
40409         Work around Solaris 10 math.h bug.
40410         * m4/math_h.m4 (gl_MATH_H): Check for bug.
40411         (gl_MATH_H_DEFAULTS): Set up default.
40412         * modules/math (Makefile.am): Replace new indicators.
40413         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
40414         * tests/test-math.c (main): Test this.
40415         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
40416         * doc/posix-headers/math.texi (math.h): Mention bug.
40417         Reported by Nelson H. F. Beebe and Jim Meyering.
40418
40419 2008-04-11  Bruno Haible  <bruno@clisp.org>
40420
40421         Adapt to future versions of Apple GCC.
40422         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
40423         Reported by Peter O'Gorman <peter@pogma.com>.
40424
40425 2008-04-11  Bruno Haible  <bruno@clisp.org>
40426
40427         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
40428
40429 2008-04-11  Bruno Haible  <bruno@clisp.org>
40430
40431         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
40432
40433         * modules/getaddrinfo-tests (Makefile.am): Define
40434         test_getaddrinfo_LDADD.
40435
40436 2008-04-11  Bruno Haible  <bruno@clisp.org>
40437
40438         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
40439         (init): Fix syntax error.
40440         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
40441         is declared.
40442
40443 2008-04-11  Bruno Haible  <bruno@clisp.org>
40444
40445         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
40446         * modules/glob (Depends-on): Add stdbool.
40447
40448 2008-04-11  Bruno Haible  <bruno@clisp.org>
40449
40450         * lib/trim.c: Include <string.h>.
40451
40452 2008-04-11  Eric Blake  <ebb9@byu.net>
40453
40454         Avoid compile failure on OS/2.
40455         * lib/regex_internal.h (internal_function): Disable optimization
40456         on OS/2 (__EMX__), where it caused compiler error.
40457         Reported by Elbert Pol.
40458
40459 2008-04-11  Bruno Haible  <bruno@clisp.org>
40460
40461         Flush the standard error stream before aborting. Needed on mingw.
40462         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
40463         * tests/test-array_list.c (ASSERT): Likewise.
40464         * tests/test-array_oset.c (ASSERT): Likewise.
40465         * tests/test-avltree_list.c (ASSERT): Likewise.
40466         * tests/test-avltree_oset.c (ASSERT): Likewise.
40467         * tests/test-avltreehash_list.c (ASSERT): Likewise.
40468         * tests/test-binary-io.c (ASSERT): Likewise.
40469         * tests/test-byteswap.c (ASSERT): Likewise.
40470         * tests/test-c-ctype.c (ASSERT): Likewise.
40471         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
40472         * tests/test-c-strcasestr.c (ASSERT): Likewise.
40473         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
40474         * tests/test-c-strstr.c (ASSERT): Likewise.
40475         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
40476         * tests/test-canonicalize.c (ASSERT): Likewise.
40477         * tests/test-carray_list.c (ASSERT): Likewise.
40478         * tests/test-ceilf1.c (ASSERT): Likewise.
40479         * tests/test-ceilf2.c (ASSERT): Likewise.
40480         * tests/test-ceill.c (ASSERT): Likewise.
40481         * tests/test-count-one-bits.c (ASSERT): Likewise.
40482         * tests/test-fbufmode.c (ASSERT): Likewise.
40483         * tests/test-fflush2.c (ASSERT): Likewise.
40484         * tests/test-floorf1.c (ASSERT): Likewise.
40485         * tests/test-floorf2.c (ASSERT): Likewise.
40486         * tests/test-floorl.c (ASSERT): Likewise.
40487         * tests/test-fopen.c (ASSERT): Likewise.
40488         * tests/test-fpending.c (ASSERT): Likewise.
40489         * tests/test-fprintf-posix.c (ASSERT): Likewise.
40490         * tests/test-fpurge.c (ASSERT): Likewise.
40491         * tests/test-freadable.c (ASSERT): Likewise.
40492         * tests/test-freadahead.c (ASSERT): Likewise.
40493         * tests/test-freading.c (ASSERT): Likewise.
40494         * tests/test-freadptr.c (ASSERT): Likewise.
40495         * tests/test-freadptr2.c (ASSERT): Likewise.
40496         * tests/test-freadseek.c (ASSERT): Likewise.
40497         * tests/test-freopen.c (ASSERT): Likewise.
40498         * tests/test-frexp.c (ASSERT): Likewise.
40499         * tests/test-frexpl.c (ASSERT): Likewise.
40500         * tests/test-fseek.c (ASSERT): Likewise.
40501         * tests/test-fseeko.c (ASSERT): Likewise.
40502         * tests/test-fstrcmp.c (ASSERT): Likewise.
40503         * tests/test-ftell.c (ASSERT): Likewise.
40504         * tests/test-ftello.c (ASSERT): Likewise.
40505         * tests/test-func.c (ASSERT): Likewise.
40506         * tests/test-fwritable.c (ASSERT): Likewise.
40507         * tests/test-fwriting.c (ASSERT): Likewise.
40508         * tests/test-getdelim.c (ASSERT): Likewise.
40509         * tests/test-getline.c (ASSERT): Likewise.
40510         * tests/test-i-ring.c (ASSERT): Likewise.
40511         * tests/test-iconv-utf.c (ASSERT): Likewise.
40512         * tests/test-iconv.c (ASSERT): Likewise.
40513         * tests/test-isfinite.c (ASSERT): Likewise.
40514         * tests/test-isnand.c (ASSERT): Likewise.
40515         * tests/test-isnanf.c (ASSERT): Likewise.
40516         * tests/test-isnanl.h (ASSERT): Likewise.
40517         * tests/test-ldexpl.c (ASSERT): Likewise.
40518         * tests/test-linked_list.c (ASSERT): Likewise.
40519         * tests/test-linkedhash_list.c (ASSERT): Likewise.
40520         * tests/test-localename.c (ASSERT): Likewise.
40521         * tests/test-lseek.c (ASSERT): Likewise.
40522         * tests/test-mbscasecmp.c (ASSERT): Likewise.
40523         * tests/test-mbscasestr1.c (ASSERT): Likewise.
40524         * tests/test-mbscasestr2.c (ASSERT): Likewise.
40525         * tests/test-mbscasestr3.c (ASSERT): Likewise.
40526         * tests/test-mbscasestr4.c (ASSERT): Likewise.
40527         * tests/test-mbschr.c (ASSERT): Likewise.
40528         * tests/test-mbscspn.c (ASSERT): Likewise.
40529         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
40530         * tests/test-mbspbrk.c (ASSERT): Likewise.
40531         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
40532         * tests/test-mbsrchr.c (ASSERT): Likewise.
40533         * tests/test-mbsspn.c (ASSERT): Likewise.
40534         * tests/test-mbsstr1.c (ASSERT): Likewise.
40535         * tests/test-mbsstr2.c (ASSERT): Likewise.
40536         * tests/test-mbsstr3.c (ASSERT): Likewise.
40537         * tests/test-memchr2.c (ASSERT): Likewise.
40538         * tests/test-memmem.c (ASSERT): Likewise.
40539         * tests/test-open.c (ASSERT): Likewise.
40540         * tests/test-printf-frexp.c (ASSERT): Likewise.
40541         * tests/test-printf-frexpl.c (ASSERT): Likewise.
40542         * tests/test-printf-posix.c (ASSERT): Likewise.
40543         * tests/test-quotearg.c (ASSERT): Likewise.
40544         * tests/test-rbtree_list.c (ASSERT): Likewise.
40545         * tests/test-rbtree_oset.c (ASSERT): Likewise.
40546         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
40547         * tests/test-round1.c (ASSERT): Likewise.
40548         * tests/test-roundf1.c (ASSERT): Likewise.
40549         * tests/test-roundl.c (ASSERT): Likewise.
40550         * tests/test-signbit.c (ASSERT): Likewise.
40551         * tests/test-sleep.c (ASSERT): Likewise.
40552         * tests/test-snprintf-posix.c (ASSERT): Likewise.
40553         * tests/test-snprintf.c (ASSERT): Likewise.
40554         * tests/test-sprintf-posix.c (ASSERT): Likewise.
40555         * tests/test-stat-time.c (ASSERT): Likewise.
40556         * tests/test-strcasestr.c (ASSERT): Likewise.
40557         * tests/test-strerror.c (ASSERT): Likewise.
40558         * tests/test-striconv.c (ASSERT): Likewise.
40559         * tests/test-striconveh.c (ASSERT): Likewise.
40560         * tests/test-striconveha.c (ASSERT): Likewise.
40561         * tests/test-strsignal.c (ASSERT): Likewise.
40562         * tests/test-strstr.c (ASSERT): Likewise.
40563         * tests/test-strtod.c (ASSERT): Likewise.
40564         * tests/test-trunc1.c (ASSERT): Likewise.
40565         * tests/test-trunc2.c (ASSERT): Likewise.
40566         * tests/test-truncf1.c (ASSERT): Likewise.
40567         * tests/test-truncf2.c (ASSERT): Likewise.
40568         * tests/test-truncl.c (ASSERT): Likewise.
40569         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
40570         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
40571         * tests/test-vasnprintf.c (ASSERT): Likewise.
40572         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
40573         * tests/test-vasprintf.c (ASSERT): Likewise.
40574         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
40575         * tests/test-vprintf-posix.c (ASSERT): Likewise.
40576         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
40577         * tests/test-vsnprintf.c (ASSERT): Likewise.
40578         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
40579         * tests/test-wcwidth.c (ASSERT): Likewise.
40580         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
40581         * tests/test-xprintf-posix.c (ASSERT): Likewise.
40582         * tests/test-xvasprintf.c (ASSERT): Likewise.
40583         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
40584         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
40585         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
40586         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
40587         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
40588         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
40589         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
40590         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
40591         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
40592         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
40593         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
40594         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
40595         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
40596         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
40597         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
40598         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
40599         * tests/unictype/test-block_list.c (ASSERT): Likewise.
40600         * tests/unictype/test-block_of.c (ASSERT): Likewise.
40601         * tests/unictype/test-block_test.c (ASSERT): Likewise.
40602         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
40603         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
40604         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
40605         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
40606         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
40607         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
40608         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
40609         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
40610         * tests/unictype/test-combining.c (ASSERT): Likewise.
40611         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
40612         * tests/unictype/test-digit.c (ASSERT): Likewise.
40613         * tests/unictype/test-mirror.c (ASSERT): Likewise.
40614         * tests/unictype/test-numeric.c (ASSERT): Likewise.
40615         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
40616         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
40617         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
40618         * tests/unictype/test-scripts.c (ASSERT): Likewise.
40619         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
40620         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
40621         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
40622         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
40623         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
40624         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
40625         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
40626         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
40627         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
40628         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
40629         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
40630         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
40631         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
40632         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
40633         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
40634         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
40635         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
40636         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
40637         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
40638         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
40639         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
40640         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
40641         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
40642         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
40643         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
40644         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
40645         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
40646         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
40647         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
40648         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
40649         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
40650         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
40651         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
40652         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
40653         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
40654         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
40655         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
40656         Reported by Eric Blake.
40657
40658 2008-04-11  Bruno Haible  <bruno@clisp.org>
40659
40660         * lib/wchar.in.h: Tweak comment.
40661
40662 2008-04-11  Bruno Haible  <bruno@clisp.org>
40663
40664         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
40665         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
40666         gl_COMMON.
40667         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
40668
40669 2008-04-11  Bruno Haible  <bruno@clisp.org>
40670
40671         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
40672
40673 2008-04-11  Simon Josefsson  <simon@josefsson.org>
40674
40675         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
40676         of attempting to use non-existing /dev/*random.  Based on patch
40677         from Adam Strzelecki <ono@java.pl> in
40678         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
40679
40680 2008-04-08  Bruno Haible  <bruno@clisp.org>
40681
40682         Add tentative support for emx+gcc.
40683         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
40684         * lib/fpurge.c (fpurge): Likewise.
40685         * lib/freadable.c (freadable): Likewise.
40686         * lib/freadahead.c (freadahead): Likewise.
40687         * lib/freading.c (freading): Likewise.
40688         * lib/freadptr.c (freadptr): Likewise.
40689         * lib/freadseek.c (freadptrinc): Likewise.
40690         * lib/fseeko.c (rpl_fseeko): Likewise.
40691         * lib/fseterr.c (fseterr): Likewise.
40692         * lib/fwritable.c (fwritable): Likewise.
40693         * lib/fwriting.c (fwriting): Likewise.
40694         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
40695
40696 2008-04-09  Eric Blake  <ebb9@byu.net>
40697
40698         Avoid some autoconf warnings.
40699         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
40700         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
40701         * m4/afs.m4 (gl_AFS): Likewise.
40702         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
40703         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
40704         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40705         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
40706         (gl_INTEGER_TYPE_SUFFIX): Likewise.
40707         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
40708         (AC_CHECK_DECLS_ONCE): Likewise.
40709         Rename file...
40710         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
40711         gnulib-tool requires autoconf 2.59 or better.
40712         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
40713
40714 2008-04-08  Eric Blake  <ebb9@byu.net>
40715
40716         Use 'git describe --match' if present (added in git 1.5.5).
40717         * build-aux/git-version-gen: Limit result to tags that match 'v*'
40718         if possible.
40719
40720 2008-04-08  Bruno Haible  <bruno@clisp.org>
40721
40722         Add tentative support for OpenServer.
40723         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
40724         _ptr, _cnt.
40725         * lib/fpurge.c (fpurge): Likewise.
40726         * lib/freadable.c (freadable): Likewise.
40727         * lib/freadahead.c (freadahead): Likewise.
40728         * lib/freading.c (freading): Likewise.
40729         * lib/freadptr.c (freadptr): Likewise.
40730         * lib/freadseek.c (freadptrinc): Likewise.
40731         * lib/fseeko.c (rpl_fseeko): Likewise.
40732         * lib/fseterr.c (fseterr): Likewise.
40733         * lib/fwritable.c (fwritable): Likewise.
40734         * lib/fwriting.c (fwriting): Likewise.
40735         Reported by Roger Cornelius <rac@tenzing.org> and
40736         Brian K. White <brian@aljex.com>.
40737
40738 2008-04-06  Jim Meyering  <meyering@redhat.com>
40739
40740         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
40741
40742 2008-04-06  Bruno Haible  <bruno@clisp.org>
40743
40744         Avoid possible error with non-ASCII bytes in UTF-8 locales.
40745         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
40746         * tests/test-printf-posix.sh: Likewise.
40747         * tests/test-vfprintf-posix.sh: Likewise.
40748         * tests/test-vprintf-posix.sh: Likewise.
40749         * tests/test-xprintf-posix.sh: Likewise.
40750
40751 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40752
40753         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
40754         hide error from 'ls', needed on OS/2.
40755         Report by Elbert Pol <elbert.pol@gmail.com>.
40756
40757 2008-04-04  Eric Blake  <ebb9@byu.net>
40758
40759         Make test-fseeko.c failures meaningful.
40760         * tests/test-fseeko.c: Print line number on failure.
40761         * tests/test-fseek.c: Likewise.
40762         Reported by Nelson H. F. Beebe.
40763
40764         Improve strtod bug detection check.
40765         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
40766         required for Solaris 10.
40767         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
40768
40769 2008-04-04  Bruno Haible  <bruno@clisp.org>
40770
40771         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
40772         by m4/setenv.m4.
40773
40774 2008-04-03  Eric Blake  <ebb9@byu.net>
40775
40776         Ensure sane .version contents.
40777         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
40778         version string.
40779         * build-aux/git-version-gen: Improve documentation.
40780
40781         Make GNU make output nicer.
40782         * top/GNUmakefile [!_have-Makefile]: Add dependency on
40783         MAKECMDGOALS to enforce message for all command line targets.  Set
40784         srcdir for use in maint.mk.
40785
40786         Another maintainer tweak.
40787         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
40788         a target that regenerates version.
40789
40790 2008-04-03  Jim Meyering  <meyering@redhat.com>
40791
40792         vc-list-files: don't cause coreutils "make po-check" failure
40793         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
40794
40795 2008-04-03  Eric Blake  <ebb9@byu.net>
40796
40797         Allow VPATH usage of vc-list-files.
40798         * build-aux/vc-list-files (scriptversion): Add timestamp.
40799         (options): Add --help, --version, -C.
40800         (CVS): Support installed cvsu.
40801
40802 2008-04-02  Bruno Haible  <bruno@clisp.org>
40803
40804         Avoid some "statement with no effect" warnings from gcc.
40805         * tests/test-wctype.c (main): Explicitly ignore unused values.
40806         Reported by Jim Meyering.
40807
40808 2008-04-02  Jim Meyering  <meyering@redhat.com>
40809
40810         Avoid some warnings from "gcc -Wshadow".
40811         * tests/test-frexp.c (exp): Define to a different identifier.
40812         * tests/test-frexpl.c (exp): Likewise.
40813
40814 2008-04-03  Jim Meyering  <meyering@redhat.com>
40815
40816         bootstrap: remove dangling *.[ch] symlinks from lib
40817         * build-aux/bootstrap [dangling symlink removal]: Move find's
40818         -depth option to precede all others, to avoid a warning.
40819         Remove *.[ch] files too, and from "$source_base" (usually lib/).
40820
40821 2008-04-02  Bruno Haible  <bruno@clisp.org>
40822
40823         Avoid some warnings from "gcc -Wshadow".
40824         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
40825         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
40826         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
40827         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
40828         Reported by Jim Meyering.
40829
40830 2008-04-01  Bruno Haible  <bruno@clisp.org>
40831
40832         Fix test to work on IRIX 6.5 with cc.
40833         * tests/test-math.c (numeric_equal): New function.
40834         (main): Use it.
40835
40836 2008-04-01  Bruno Haible  <bruno@clisp.org>
40837
40838         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
40839
40840 2008-04-01  Bruno Haible  <bruno@clisp.org>
40841
40842         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
40843         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40844         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
40845         (Depends-on): Remove math.
40846
40847         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
40848         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40849         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
40850         (Depends-on): Remove math.
40851
40852         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
40853         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40854         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
40855         (Depends-on): Remove math.
40856         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
40857         (Depends-on): Remove math.
40858
40859         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
40860         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40861         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
40862         (Depends-on): Remove math.
40863         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
40864         (Depends-on): Remove math.
40865
40866         * tests/test-round1.c: Include nan.h.
40867         (main): Use NaNd instead of NAN.
40868         * modules/round-tests (Files): Add tests/nan.h.
40869
40870         * tests/test-trunc1.c: Include nan.h.
40871         (main): Use NaNd instead of NAN.
40872         * modules/trunc-tests (Files): Add tests/nan.h.
40873
40874         * tests/test-roundf1.c: Include nan.h.
40875         (main): Use NaNf instead of NAN.
40876         * modules/roundf-tests (Files): Add tests/nan.h.
40877
40878         * tests/test-truncf1.c: Include nan.h.
40879         (main): Use NaNf instead of NAN.
40880         * modules/truncf-tests (Files): Add tests/nan.h.
40881
40882         * tests/test-ceilf1.c: Include nan.h.
40883         (main): Use NaNf instead of NAN.
40884         * modules/ceilf-tests (Files): Add tests/nan.h.
40885
40886         * tests/test-floorf1.c: Include nan.h.
40887         (main): Use NaNf instead of NAN.
40888         * modules/floorf-tests (Files): Add tests/nan.h.
40889
40890         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
40891         (main): Use NaNf instead of NAN.
40892         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
40893
40894         * tests/test-isnand.c: Include nan.h instead of <math.h>.
40895         (main): Use NaNd instead of NAN.
40896         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
40897
40898         * tests/test-frexp.c: Include nan.h.
40899         (main): Use NaNd instead of NAN.
40900         * modules/frexp-tests (Files): Add tests/nan.h.
40901
40902         * lib/isnan.c: Don't include <math.h>.
40903         (FUNC): Don't use NAN macro.
40904         * modules/isnand-nolibm (Depends-on): Remove math.
40905         * modules/isnanf-nolibm (Depends-on): Remove math.
40906         * modules/isnanl (Depends-on): Remove math.
40907         * modules/isnanl-nolibm (Depends-on): Remove math.
40908
40909         * tests/nan.h: New file.
40910
40911 2008-04-01  Eric Blake  <ebb9@byu.net>
40912
40913         Fix typos.
40914         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
40915         values to be the right type.
40916
40917         For now, cater to gnulib strtod inaccuracies.
40918         * tests/test-strtod.c (main): Allow 1-ulp error on expected
40919         fractional results.  While not as nice from a QoI perspective, it
40920         is a quicker patch than correctly implementing decimal to binary
40921         rounding.
40922
40923 2008-03-31  Eric Blake  <ebb9@byu.net>
40924
40925         Guarantee a definition of NAN.
40926         * lib/math.in.h (NAN): Define if missing.
40927         * tests/test-math.c (main): Test it.
40928         * doc/posix-headers/math.texi (math.h): Document this.
40929         * lib/isnan.c (rpl_isnand): Use it.
40930         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
40931         * tests/test-floorf1.c (NaN): Likewise.
40932         * tests/test-frexp.c (NaN): Likewise.
40933         * tests/test-isnand.c (NaN): Likewise.
40934         * tests/test-isnanf.c (NaN): Likewise.
40935         * tests/test-round1.c (NaN): Likewise.
40936         * tests/test-roundf1.c (NaN): Likewise.
40937         * tests/test-snprintf-posix.h (NaN): Likewise.
40938         * tests/test-sprintf-posix.h (NaN): Likewise.
40939         * tests/test-trunc1.c (NaN): Likewise.
40940         * tests/test-truncf1.c (NaN): Likewise.
40941         * tests/test-vasnprintf-posix.c (NaN): Likewise.
40942         * tests/test-vasprintf-posix.c (NaN): Likewise.
40943         * modules/isnand-nolibm (Depends-on): Add math.
40944         * modules/isnanf-nolibm (Depends-on): Likewise.
40945         * modules/isnanl (Depends-on): Likewise.
40946         * modules/isnanl-nolibm (Depends-on): Likewise.
40947         * modules/snprintf-posix-tests (Depends-on): Likewise.
40948         * modules/sprintf-posix-tests (Depends-on): Likewise.
40949         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
40950         * modules/vsprintf-posix-tests (Depends-on): Likewise.
40951         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
40952         * modules/vasprintf-posix-tests (Depends-on): Likewise.
40953
40954 2008-03-31  Bruno Haible  <bruno@clisp.org>
40955
40956         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
40957         * doc/posix-functions/strtod.texi: Likewise.
40958
40959 2008-03-31  Bruno Haible  <bruno@clisp.org>
40960
40961         * tests/test-strtod.c (main): Don't use C99 syntax.
40962
40963 2008-03-31  Bruno Haible  <bruno@clisp.org>
40964
40965         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
40966         Reported by Eric Blake.
40967
40968 2008-03-31  Jim Meyering  <meyering@redhat.com>
40969
40970         Don't compare actual signbit return values.
40971         * tests/test-strtod.c (main): Rather, compare only their
40972         zero/non-zero nature.
40973
40974 2008-03-31  Eric Blake  <ebb9@byu.net>
40975
40976         More strtod documentation.
40977         * doc/posix-functions/strtod.texi (strtod): Interpret more test
40978         failures as distinct bugs.
40979
40980 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40981
40982         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
40983         Problem reported by Erik Benada in
40984         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
40985
40986 2008-03-30  Bruno Haible  <bruno@clisp.org>
40987
40988         * tests/test-strtod.c: Add comments about which assertion fails on which
40989         platform.
40990         * doc/posix-functions/strtod.texi: Add info about many more platforms.
40991
40992 2008-03-30  Eric Blake  <ebb9@byu.net>
40993
40994         Test signbit behavior on zeros.
40995         * tests/test-signbit.c (test_signbitf): Add tests for zero.
40996         (test_signbitd, test_signbitl): Likewise.
40997
40998         More strtod touchups.
40999         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
41000         sign of negative underflow, for now.  Use .5, not .1.
41001         * doc/posix-functions/strtod.texi (strtod): Mention these
41002         limitations.
41003         Reported by Jim Meyering.
41004
41005 2008-03-30  Bruno Haible  <bruno@clisp.org>
41006
41007         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
41008         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
41009
41010 2008-03-30  Bruno Haible  <bruno@clisp.org>
41011
41012         Avoid failure when attempting to return empty iconv results on some
41013         platforms.
41014         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
41015         allocation, don't report ENOMEM when the resulting string is empty.
41016
41017 2008-03-30  Bruno Haible  <bruno@clisp.org>
41018
41019         Fix buffer overrun.
41020         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
41021         Don't consider the width for tmp_length. Check count against tmp_length
41022         before doing the padding. Ensure enough allocation during padding.
41023
41024 2008-03-30  Eric Blake  <ebb9@byu.net>
41025
41026         strtod touchups.
41027         * lib/strtod.c (strtod): Avoid compiler warnings.
41028         Reported by Jim Meyering.
41029
41030 2008-03-30  Bruno Haible  <bruno@clisp.org>
41031
41032         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
41033         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
41034         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
41035         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
41036         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
41037         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
41038         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
41039         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
41040
41041         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
41042         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
41043         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
41044         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
41045         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
41046         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
41047         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
41048         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
41049
41050         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
41051         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
41052         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
41053         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
41054         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
41055         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
41056         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
41057         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
41058
41059         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
41060         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
41061
41062         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
41063         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
41064
41065         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
41066         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
41067
41068         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
41069         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
41070         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
41071
41072         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
41073         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
41074         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
41075
41076         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
41077         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
41078         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
41079
41080         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
41081         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
41082         * modules/vasprintf (Depends-on): Add EOVERFLOW.
41083
41084         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
41085         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
41086         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
41087         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
41088         (Depends-on): Add EOVERFLOW.
41089         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
41090         (Depends-on): Add EOVERFLOW.
41091         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41092         (Depends-on): Add EOVERFLOW.
41093         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41094         (Depends-on): Add EOVERFLOW.
41095         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41096         (Depends-on): Add EOVERFLOW.
41097         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41098         (Depends-on): Add EOVERFLOW.
41099         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41100         (Depends-on): Add EOVERFLOW.
41101         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41102         (Depends-on): Add EOVERFLOW.
41103
41104         * lib/sprintf.c (EOVERFLOW): Remove fallback.
41105         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
41106         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
41107
41108         * lib/snprintf.c (EOVERFLOW): Remove fallback.
41109         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
41110         * modules/snprintf (Depends-on): Add EOVERFLOW.
41111
41112         * lib/poll.c (EOVERFLOW): Remove fallback.
41113         * modules/poll (Depends-on): Add EOVERFLOW.
41114
41115         * lib/getugroups.c (EOVERFLOW): Remove fallback.
41116         * modules/getugroups (Depends-on): Add EOVERFLOW.
41117
41118         * lib/getdelim.c (EOVERFLOW): Remove fallback.
41119         * modules/getdelim (Depends-on): Add EOVERFLOW.
41120
41121         * lib/ftell.c (EOVERFLOW): Remove fallback.
41122         * modules/ftell (Depends-on): Add EOVERFLOW.
41123
41124         * lib/fprintf.c (EOVERFLOW): Remove fallback.
41125         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
41126         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
41127
41128         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
41129
41130         * modules/EOVERFLOW-tests: New file.
41131         * tests/test-EOVERFLOW.c: New file.
41132
41133         * modules/EOVERFLOW: New file.
41134         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
41135
41136 2008-03-30  Bruno Haible  <bruno@clisp.org>
41137
41138         Fix bug introduced on 2007-06-10.
41139         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
41140         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
41141
41142 2008-03-30  Bruno Haible  <bruno@clisp.org>
41143
41144         Improve freadseek's efficiency after ungetc.
41145         * lib/freadseek.c: Include freadahead.h.
41146         (freadptrinc): New function, extracted from freadseek.
41147         (freadseek): Use it in a loop. Use freadahead to determine the number
41148         of loop iterations.
41149         * modules/freadseek (Depends-on): Add freadahead.
41150         (configure.ac): Require AC_C_INLINE.
41151
41152 2008-03-30  Bruno Haible  <bruno@clisp.org>
41153
41154         * lib/freadseek.c (freadseek): Don't ignore the return value of
41155         freadptr.
41156
41157 2008-03-29  Eric Blake  <ebb9@byu.net>
41158
41159         Add hex float support.
41160         * modules/strtod (Depends-on): Add c-ctype.
41161         (Link): Mention POW_LIB.
41162         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
41163         whitespace between 'e' and exponent.
41164         * tests/test-strtod.c (main): Enable hex float tests.
41165         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
41166         now provides.
41167
41168         Document various strtod bugs, with some fixes.
41169         * doc/posix-functions/strtod.texi (strtod): Document bugs with
41170         "-0x", "inf", "nan", and hex constants.
41171         * doc/posix-functions/atof.texi (atof): Likewise.
41172         * modules/stdlib (Makefile.am): Support strtod.
41173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41174         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
41175         detect additional strtod bugs.
41176         * lib/stdlib.in.h (rpl_strtod): Add declarations.
41177         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
41178         bool where appropriate.  Parse 'inf' and 'nan'.
41179         * tests/test-strtod.c: New file.
41180         * modules/strtod (Depends-on): Add stdbool, stdlib.
41181         (configure.ac): Turn on module indicator.
41182         * modules/strtod-tests: New module.
41183
41184 2008-03-29  Eric Blake  <ebb9@byu.net>
41185
41186         Fix ftell on mingw.
41187         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
41188         * modules/ftell-tests (Depends-on): Add binary-io.
41189         * modules/ftello-tests (Depends-on): Likewise.
41190         * tests/test-ftell.c (main): Enhance test to cover behavior after
41191         ungetc.  Enforce binary mode.
41192         * tests/test-ftello.c (main): Likewise.
41193
41194         Pass test-freadseek on cygwin.
41195         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
41196         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
41197         ungetc buffer.
41198
41199         * tests/test-fflush2.c (main): Fix typo.
41200
41201 2008-03-29  Bruno Haible  <bruno@clisp.org>
41202
41203         * tests/test-fflush2.c (main): Temporarily disable the contents of
41204         this test.
41205         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
41206         Reported by Eric Blake.
41207
41208 2008-03-28  Simon Josefsson  <simon@josefsson.org>
41209
41210         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
41211         (GC_SHA224_DIGEST_SIZE): Add.
41212
41213         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
41214         (gc_hash_digest_length): Likewise.
41215         (gc_hash_buffer): Likewise.
41216
41217 2008-03-25  Bruno Haible  <bruno@clisp.org>
41218
41219         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
41220         detail which gettext release to use.
41221         Reported by Simon Josefsson.
41222
41223 2008-03-26  Jim Meyering  <meyering@redhat.com>
41224
41225         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
41226         * modules/gnumakefile (clean-GNUmakefile): Also, use
41227         test ... && ... || : syntax rather than if-then ... fi.
41228
41229         gnumakefile: Don't double-quote-expand $(VPATH) value.
41230         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
41231
41232 2008-03-24  Eric Blake  <ebb9@byu.net>
41233
41234         Alter GNUmakefile to install into top directory.
41235         * modules/maintainer-makefile: Split, and add dependency...
41236         * modules/gnumakefile: to this new module.
41237         * build-aux/GNUmakefile: Move...
41238         * top/GNUmakefile: ...here.
41239         * build-aux/maint.mk: Move...
41240         * top/maint.mk: ...here.
41241         * MODULES.html.sh (Support for maintaining...): Document new
41242         module.
41243
41244 2008-03-23  Bruno Haible  <bruno@clisp.org>
41245
41246         * gnulib-tool: New options --vc-files, --no-vc-files.
41247         (func_usage): Document them.
41248         (vc_files): New variable.
41249         (func_import): Consider vc_files.
41250         (func_create_testdir): Set vc_files to empty.
41251         Suggested by Jim Meyering and Karl Berry.
41252
41253 2008-03-23  Bruno Haible  <bruno@clisp.org>
41254
41255         Fix regex compilation error on HP-UX 11.
41256         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
41257         * modules/regex (Files): Add m4/mbstate_t.m4.
41258         Reported by Ton Voon <ton.voon@altinity.com>.
41259
41260 2008-03-23  Bruno Haible  <bruno@clisp.org>
41261
41262         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
41263
41264 2008-03-23  Eric Blake  <ebb9@byu.net>
41265             Bruno Haible  <bruno@clisp.org>
41266
41267         Install files from top/ in the destination directory.
41268         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41269         augmentation also for the files from top/.
41270         (func_import, func_create_testdir): Rewrite file names:
41271         top/filename -> filename.
41272
41273 2008-03-23  Bruno Haible  <bruno@clisp.org>
41274
41275         Tweak "gnulib --version" output.
41276         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
41277
41278 2008-03-23  Bruno Haible  <bruno@clisp.org>
41279
41280         Tweak "gnulib --version" output.
41281         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
41282         rather than contents of ChangeLog, when possible.
41283
41284 2008-03-21  Eric Blake  <ebb9@byu.net>
41285
41286         More --version tweaks.
41287         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
41288         date of last ChangeLog entry.
41289
41290 2008-03-21  Jim Meyering  <meyering@redhat.com>
41291
41292         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
41293
41294 2008-03-20  Eric Blake  <ebb9@byu.net>
41295
41296         VPATH fix.
41297         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
41298
41299 2008-03-20  Simon Josefsson  <simon@josefsson.org>
41300
41301         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
41302         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
41303
41304 2008-03-20  Eric Blake  <ebb9@byu.net>
41305
41306         Sync GNUmakefile with coreutils.
41307         * build-aux/GNUmakefile (have-Makefile): Rename...
41308         (_have-Makefile): ...to this, for namespace consideration.
41309         (GNUmakefile.cfg): Include, if present.
41310         (_autoreconf): Define a default.
41311         (_is-dist-target): New rule for rebuilds to pick up intra-release
41312         version.
41313         (maint-cfg.mk): Rename...
41314         (cfg.mk): ...to this.
41315
41316 2008-03-18  Jim Meyering  <meyering@redhat.com>
41317
41318         New script and module: mktempd
41319         * MODULES.html.sh (maint+release support): Add mktempd.
41320         * build-aux/mktempd: New file.
41321         * modules/mktempd: New file.
41322
41323 2008-03-15  Jim Meyering  <meyering@redhat.com>
41324
41325         Undo last change.
41326         * lib/sha1.c, lib/md5.c: 63 != ~63.
41327         Reported by Andreas Schwab.
41328
41329         sha1.c, md5.c: Hoist a redundant expression.
41330         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
41331         "ctx->buflen" only once, before calling *_process_block.
41332         * lib/md5.c (md5_process_bytes): Likewise.
41333
41334 2008-03-14  Eric Blake  <ebb9@byu.net>
41335
41336         Bump copyright year in files generated by gnulib-tool.
41337         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
41338         gnulib-tool, rather than hard-coding it.
41339
41340         Fix 'gnulib-tool --version' output to work with git.
41341         * gnulib-tool (func_gnulib_dir): New function, extracted from...
41342         (startup): ...here.
41343         (func_version): Use it to invoke git-version-gen, rather than
41344         relying on CVS keyword expansion.  Modernize wording.
41345         (cvsdatestamp, last_checkin_date, version): Kill unused
41346         variables.
41347
41348 2008-03-12  Jim Meyering  <meyering@redhat.com>
41349
41350         Recognize optional cast of the argument to free.
41351         * build-aux/useless-if-before-free: Update regexps.
41352
41353         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
41354
41355 2008-03-11  Bruno Haible  <bruno@clisp.org>
41356
41357         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
41358         by a single package.
41359         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
41360         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
41361         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
41362         Reported by Sam Steingold <sds@gnu.org>.
41363
41364 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41365
41366         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
41367         repositories.
41368
41369 2008-03-11  Bruno Haible  <bruno@clisp.org>
41370
41371         Avoid conflicts between local macro definitions.
41372         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41373         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
41374
41375 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
41376             Bruno Haible  <bruno@clisp.org>
41377
41378         Make va_copy work with some version of xlc on AIX 5.1.
41379         * lib/stdarg.in.h: New file.
41380         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
41381         On AIX, use a <stdarg.h> file substitute.
41382         * modules/stdarg (Files): Add lib/stdarg.in.h.
41383         (Depends-on): Add include_next.
41384         (Makefile.am): Build a stdarg.h substitute if requested.
41385         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
41386
41387 2008-03-10  Bruno Haible  <bruno@clisp.org>
41388
41389         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
41390         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41391         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41392
41393 2008-03-10  Bruno Haible  <bruno@clisp.org>
41394
41395         * modules/stdlib (Depends-on): Add include_next, remove
41396         absolute-header.
41397
41398 2008-03-09  Bruno Haible  <bruno@clisp.org>
41399
41400         * lib/freadahead.h (freadahead): Document more precisely.
41401         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
41402         the sum of both buffer sizes.
41403         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
41404         * NEWS: Document the change.
41405
41406 2008-03-09  Bruno Haible  <bruno@clisp.org>
41407
41408         Extend freadptr to return also the buffer size.
41409         * lib/freadptr.h (freadptr): Add sizep argument.
41410         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
41411         (freadptr): Add sizep argument. Determine buffer size like freadahead
41412         does.
41413         * tests/test-freadptr.c: Don't include freadahead.h.
41414         (main): Adapt for new calling convention of freadptr.
41415         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
41416         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
41417         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
41418         tests/test-freadptr2.sh.
41419         (Depends): Remove freadahead.
41420         (TESTS): Add test-freadptr2.sh.
41421         (check_PROGRAMS): Add test-freadptr2.
41422
41423 2008-03-09  Bruno Haible  <bruno@clisp.org>
41424
41425         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
41426         Report and solution by Simon Josefsson.
41427
41428 2008-03-06  Bruno Haible  <bruno@clisp.org>
41429
41430         Make fflush after ungetc work on BSD platforms.
41431         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
41432         * tests/test-fflush2.c: New file.
41433         * tests/test-fflush2.sh: New file.
41434         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
41435         tests/test-fflush2.c.
41436         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
41437         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
41438
41439 2008-03-06  Eric Blake  <ebb9@byu.net>
41440
41441         Likewise for ftello.
41442         * modules/ftello (Dependencies): Add extensions.
41443         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
41444
41445 2008-03-06  Bruno Haible  <bruno@clisp.org>
41446
41447         * modules/fseeko (Dependencies): Add extensions.
41448         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
41449         Needed on glibc systems.
41450
41451 2008-03-06  Bruno Haible  <bruno@clisp.org>
41452
41453         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
41454         email address.
41455         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41456
41457 2008-03-06  Bruno Haible  <bruno@clisp.org>
41458
41459         * users.txt: Add libgnupdf.
41460
41461 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41462
41463         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
41464         (Header File Substitutes, Function Substitutes,
41465         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
41466         (Build robot for gnulib): Fix typo.
41467
41468 2008-03-06  Bruno Haible  <bruno@clisp.org>
41469
41470         * doc/gnulib-tool.texi (VCS Issues): Small updates.
41471         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41472
41473 2008-03-06  Bruno Haible  <bruno@clisp.org>
41474
41475         * doc/func.texi: New file, extracted from doc/gnulib.texi.
41476         * doc/gnulib.texi: Include it.
41477
41478 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41479
41480         * modules/func (License): Change license to unlimited; there was
41481         no LGPL parts in the module anyway.
41482
41483 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41484
41485         * modules/__func__: Renamed to modules/func.
41486         * modules/__func__-tests: Renamed to modules/func-tests.
41487         * tests/test-__func__.c: Renamed to tests/test-func.c.
41488         * m4/__func__.m4: Renamed to m4/func.m4.
41489         * doc/gnulib.texi (__func__): Section renamed to func.
41490         Suggested by Eric Blake <ebb9@byu.net>.
41491
41492 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41493
41494         * doc/gnulib.texi (__func__): Use C99 terminology when talking
41495         about __func__.  Make example self-contained.  Suggested by Eric
41496         Blake <ebb9@byu.net>.
41497
41498         * tests/test-__func__.c (main): Avoid extraneous () around __func.
41499         Suggested by Eric Blake <ebb9@byu.net>.
41500
41501 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41502
41503         * modules/__func__: New file.
41504         * modules/__func__-tests: New file.
41505         * tests/test-__func__.c: New file.
41506         * m4/__func__.m4: New file.
41507         * doc/gnulib.texi (__func__): Document __func__ module.
41508
41509 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41510
41511         * modules/byteswap (License): Re-license as LGPLv2+.
41512
41513 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41514
41515         * doc/Makefile: Add pdf target.
41516
41517 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41518
41519         * modules/inline (License): Use 'unlimited', since there are only
41520         *.m4 files in this module.
41521
41522 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41523             Bruno Haible  <bruno@clisp.org>
41524
41525         Add support for HP C 7.1 on OpenVMS 8.3.
41526         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
41527
41528 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41529
41530         Update VMS specifics.
41531         * lib/getopt.c [VMS]: Remove include of unixlib.h.
41532
41533 2008-03-02  Jim Meyering  <meyering@redhat.com>
41534
41535         Remove the last dependency on the "free" module.
41536         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
41537         Reported by Bob Proulx.
41538
41539         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
41540
41541         Remove useless "if" tests before free.  Deprecate "free" module.
41542         * doc/posix-functions/free.texi: Mention that this
41543         module is no longer useful.
41544         * modules/free (Notice): Say this module is obsolete.
41545         * modules/readutmp (Depends-on): Remove free.
41546         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
41547         * lib/putenv.c (putenv): Likewise.
41548         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
41549         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
41550         * tests/test-c-strcasestr.c (main): Likewise.
41551         * tests/test-c-strstr.c (main): Likewise.
41552         * tests/test-mbscasestr1.c (main): Likewise.
41553         * tests/test-mbscasestr2.c (main): Likewise.
41554         * tests/test-mbsstr1.c (main): Likewise.
41555         * tests/test-mbsstr2.c (main): Likewise.
41556         * tests/test-memmem.c (main): Likewise.
41557         * tests/test-strcasestr.c (main): Likewise.
41558         * tests/test-striconv.c (main): Likewise.
41559         * tests/test-striconveh.c (main): Likewise.
41560         * tests/test-striconveha.c (main): Likewise.
41561         * tests/test-strstr.c (main): Likewise.
41562
41563         * build-aux/git-version-gen: Adjust a comment and the Usage string.
41564
41565         bootstrap: sync from coreutils again
41566         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
41567
41568 2008-03-01  Jim Meyering  <meyering@redhat.com>
41569
41570         bootstrap: sync from coreutils
41571         * build-aux/bootstrap (update_po_files): Copy a .po file into place
41572         also when the target doesn't exist.
41573
41574 2008-03-01  Eric Blake  <ebb9@byu.net>
41575
41576         Fix bugs in last patch.
41577         * lib/memchr2.c (memchr2): Fix typo.
41578         * tests/test-memchr2.c: Test previous bug, and don't use GNU
41579         extension.
41580         Reported by Bruce Korb.
41581
41582         New module 'memchr2'.
41583         * modules/memchr2: New file.
41584         * modules/memchr2-tests: Likewise.
41585         * lib/memchr2.h: Likewise.
41586         * lib/memchr2.c: Likewise, based on memchr.c.
41587         * tests/test-memchr2.c: New test.
41588         * MODULES.html.sh (String handling): Add memchr2.
41589
41590 2008-02-29  Bruno Haible  <bruno@clisp.org>
41591
41592         * modules/freadseek-tests: New file.
41593         * tests/test-freadseek.sh: New file.
41594         * tests/test-freadseek.c: New file.
41595
41596         New module 'freadseek'.
41597         * modules/freadseek: New file.
41598         * lib/freadseek.h: New file.
41599         * lib/freadseek.c: New file.
41600         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
41601
41602 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41603
41604         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
41605         wydawca.
41606
41607         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
41608         program_invocation_name and program_invocation_short_name are
41609         present.
41610
41611 2008-02-28  Bruno Haible  <bruno@clisp.org>
41612
41613         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
41614         * tests/test-freadptr.sh: Also test non-seekable stdin.
41615
41616 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
41617
41618         * build-aux/bootstrap (source_base, m4_base)
41619         (doc_base, tests_base): New variables.
41620         (gnulib_tool_options): Do not hardcode base directories, use
41621         the above variables instead.
41622
41623 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
41624
41625         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
41626
41627 2008-02-28  Bruno Haible  <bruno@clisp.org>
41628
41629         * modules/freadptr-tests: New file.
41630         * tests/test-freadptr.sh: New file.
41631         * tests/test-freadptr.c: New file.
41632
41633         New module 'freadptr'.
41634         * modules/freadptr: New file.
41635         * lib/freadptr.h: New file.
41636         * lib/freadptr.c: New file.
41637         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
41638
41639 2008-02-26  Karl Berry  <karl@freefriends.org>
41640
41641         Sync from Libtool:
41642         * libltdl/argz.c (argz_add, argz_count): New functions.
41643         * libltdl/argz.in.h: Declare them.
41644         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
41645
41646 2008-02-22  Bruno Haible  <bruno@clisp.org>
41647
41648         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
41649         is a pointer type.  Needed for HP-UX 10.
41650         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
41651         * doc/posix-functions/gmtime_r.texi: Likewise.
41652         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41653
41654 2008-02-24  Bruno Haible  <bruno@clisp.org>
41655
41656         * modules/environ-tests: New file.
41657         * tests/test-environ.c: New file.
41658
41659         New module 'environ'.
41660         * modules/environ: New file.
41661         * lib/unistd.in.h (environ): New declaration.
41662         * m4/environ.m4: New file.
41663         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
41664         after use.
41665         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
41666         HAVE_DECL_ENVIRON.
41667         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
41668         HAVE_DECL_ENVIRON.
41669         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
41670         wrong claim that 'environ' is missing on some systems.
41671         * modules/execute (Depends-on): Add environ.
41672         * lib/execute.c (environ): Remove fallback declaration.
41673         * modules/pipe (Depends-on): Add environ.
41674         * lib/pipe.c (environ): Remove fallback declaration.
41675         * modules/setenv (Depends-on): Add environ.
41676         * lib/setenv.c (environ): Remove fallback declaration.
41677         * modules/unsetenv (Depends-on): Add environ.
41678         * lib/unsetenv.c (environ): Remove fallback declaration.
41679         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
41680         m4/environ.m4.
41681         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
41682         (gl_PREREQ_UNSETENV): Likewise.
41683
41684 2008-02-24  Bruno Haible  <bruno@clisp.org>
41685
41686         * doc/posix-functions/environ.texi: Document the MacOS X problem.
41687
41688 2008-02-20  Bob Proulx  <bob@proulx.com>
41689
41690         Enable use of older two part flavor 'git describe'.
41691         * build-aux/git-version-gen: If using the older two part flavor of
41692         git version then recreate the third part now present in the
41693         newer three part flavor of git describe.
41694
41695 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
41696
41697         * lib/fts.c (fts_build): Typo correction to comment.
41698
41699 2008-02-17  Bruno Haible  <bruno@clisp.org>
41700
41701         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
41702         generating no-op conflicts.
41703
41704 2008-02-17  Bruno Haible  <bruno@clisp.org>
41705
41706         Speed up by 10%.
41707         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
41708         result_entries, rather than an index-based loop.
41709
41710 2008-02-17  Bruno Haible  <bruno@clisp.org>
41711
41712         Speed up by 25%.
41713         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
41714         'hashcode_cached'.
41715         (entry_create): New function.
41716         (entry_hashcode): Use the cached hashcode if possible.
41717         (read_changelog_file, try_split_merged_entry): Use entry_create.
41718
41719 2008-02-17  Bruno Haible  <bruno@clisp.org>
41720
41721         Speed up from O(n^2) to O(n) for long ChangeLog files.
41722         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
41723         (read_changelog_file): Change implementation of entries_reversed list
41724         to rbtreehash.
41725         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
41726
41727 2008-02-17  Bruno Haible  <bruno@clisp.org>
41728
41729         New option --split-merged-entry.
41730         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
41731         (find_paragraph_end, try_split_merged_entry): New functions.
41732         (long_options): Add option --split-merged-entry.
41733         (usage): Document option --split-merged-entry.
41734         (main): Implement option --split-merged-entry.
41735         Reported by Eric Blake.
41736
41737 2008-02-17  Bruno Haible  <bruno@clisp.org>
41738
41739         * lib/git-merge-changelog.c: Include c-strstr.h.
41740         (main): Support the "git pull --rebase" situation.
41741         * modules/git-merge-changelog (Depends-on): Add c-strstr.
41742         Reported by Eric Blake.
41743
41744 2008-02-16  Eric Blake  <ebb9@byu.net>
41745
41746         Avoid doubling \ in common case of "c-maybe" quoting style.
41747         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
41748         eliding outer quotes.
41749         * lib/quotearg.h: Document this.
41750         * tests/test-quotearg.c (result_strings, inputs, results_g)
41751         (flag_results, locale_results): Test it by adding a new string to
41752         each test group.
41753         (compare_strings): Test new string.
41754
41755 2008-02-13  Eric Blake  <ebb9@byu.net>
41756
41757         Avoid trigraph quoting in default output.
41758         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
41759         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
41760         unless explicitly requested.
41761         * tests/test-quotearg.c (flag_results, main): Add additional tests.
41762
41763 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
41764
41765         Don't rely on signed integer overflowing to negative value.
41766         * lib/getugroups.c (getugroups): Include <limits.h>.
41767         Instead, compare against INT_MAX, and increment only if the test passes.
41768
41769 2008-02-13  Jim Meyering  <meyering@redhat.com>
41770         and Eric Blake  <ebb9@byu.net>
41771
41772         Avoid shadowing warning and compile errors on Linux.
41773         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
41774         forwarding macros on Linux.
41775         (dcgettext): Define a stub, for Linux.
41776         (results_g, main): Avoid warnings.
41777
41778 2008-02-12  Eric Blake  <ebb9@byu.net>
41779
41780         Silence warning in last patch.
41781         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
41782
41783         Quotearg part 4: add tests, fix c-maybe colon quoting.
41784         * lib/quotearg.h: Improve documentation.
41785         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
41786         escapes when adding outer quotes.  When quoting trigraphs, use
41787         valid C notation.  When quoting NUL, omit extra characters if next
41788         character is not digit.  Alter prototype.
41789         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
41790         callers.
41791         * modules/quotearg-tests: New module.
41792         * tests/test-quotearg.c: New test.
41793
41794 2008-02-07  Eric Blake  <ebb9@byu.net>
41795
41796         Quotearg part 3: add flag to control outer quote elision.
41797         * lib/quotearg.h (c_maybe_quoting_style): New style.
41798         (enum quoting_flags): Better documentation of flags.
41799         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
41800         c-maybe style.
41801         (quotearg_buffer_restyled): Handle new flag to elide outer
41802         quotes.
41803
41804         Quotearg part 2: add flag that can control NUL elision.
41805         * lib/quotearg.h (set_quoting_flags): New prototype.
41806         * lib/quotearg.c (struct quoting_options): Add flag field.
41807         (set_quoting_flags): New function.
41808         (quotearg_buffer_restyled): Add flags parameter.
41809         (quotearg_alloc_mem): Set the flag if length cannot be returned.
41810         (quotearg_n_options): Set the flag, since length cannot be
41811         returned.
41812         (quoting_options_from_style): Default flags correctly.
41813
41814         Quotearg part 1: more wrappers, restore quotearg_char state.
41815         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
41816         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
41817         (quotearg_colon_mem): New wrappers.
41818         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
41819         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
41820         functions.
41821         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
41822         (quotearg_colon_mem): New functions.
41823
41824 2008-02-11  Bruno Haible  <bruno@clisp.org>
41825
41826         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
41827         library in the current directory: it does not work with parallel make.
41828         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41829
41830 2008-02-11  Bruno Haible  <bruno@clisp.org>
41831
41832         * .gitattributes: New file.
41833
41834 2008-02-11  Jim Meyering  <meyering@redhat.com>
41835
41836         useless-if-before-free: Fix reversed exit values.
41837         * build-aux/useless-if-before-free: Use correct values
41838         for EXIT_MATCH and EXIT_NO_MATCH.
41839
41840         * build-aux/useless-if-before-free: Close stdout carefully.
41841
41842 2008-02-10  Bruno Haible  <bruno@clisp.org>
41843
41844         New module 'git-merge-changelog'.
41845         * modules/git-merge-changelog: New file.
41846         * lib/git-merge-changelog.c: New file.
41847
41848 2008-02-10  Jim Meyering  <meyering@redhat.com>
41849
41850         useless-if-before-free: New option: --list (-l).
41851
41852         useless-if-before-free: Don't exit immediately upon open failure.
41853         * build-aux/useless-if-before-free: Exit 2 for errors.
41854         Upon failure to open a file, don't exit immediately.
41855         Rather, just warn and continue with any remaining files.
41856
41857 2008-02-10  Bruno Haible  <bruno@clisp.org>
41858
41859         New abstract list operation 'node_set_value'.
41860         * lib/gl_list.h (gl_list_node_set_value): New function.
41861         (struct gl_list_implementation): New field node_set_value.
41862         * lib/gl_list.c (gl_list_node_set_value): New function.
41863         * lib/gl_array_list.c (gl_array_node_set_value): New function.
41864         (gl_array_list_implementation): Update.
41865         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
41866         (gl_carray_list_implementation): Update.
41867         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
41868         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41869         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41870         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
41871         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41872         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41873         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41874         Update.
41875         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41876         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
41877         (gl_sublist_list_implementation): Update.
41878
41879 2008-02-10  Bruno Haible  <bruno@clisp.org>
41880
41881         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
41882         Needed when ELEMENT is #defined to 'some_type *'.
41883
41884 2008-02-10  Jim Meyering  <meyering@redhat.com>
41885
41886         New script and module: useless-if-before-free
41887         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
41888         * build-aux/useless-if-before-free: New file.
41889         * modules/useless-if-before-free: New file.
41890
41891         * build-aux/gitlog-to-changelog: Use committer date, not author date.
41892
41893         xstrtol_error: Fix typo.
41894         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
41895         s/exit_failure/exit_status/.
41896
41897 2008-02-09  Jim Meyering  <meyering@redhat.com>
41898
41899         New script and module: gitlog-to-changelog
41900         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
41901         * modules/gitlog-to-changelog: New file.
41902         * build-aux/gitlog-to-changelog: New file.
41903
41904 2008-02-08  Jim Meyering  <meyering@redhat.com>
41905
41906         Avoid two "parameter unused" warnings.
41907         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
41908         Mark "st" as used.
41909
41910         Use "git COMMAND", not "git-COMMAND".
41911         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
41912         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
41913         * build-aux/git-version-gen: Use "git status", not "git-status".
41914
41915 2008-02-07  Bruno Haible  <bruno@clisp.org>
41916
41917         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
41918         Avoids a crash on Windows Vista.
41919         Reported by Adam Strzelecki <ono@java.pl> via
41920         Simon Josefsson <simon@josefsson.org>.
41921
41922 2008-02-06  Bruno Haible  <bruno@clisp.org>
41923
41924         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
41925         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
41926         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
41927         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
41928         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41929         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41930         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
41931         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
41932         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41933         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41934         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41935         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41936         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41937         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41938         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41939         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
41940         left-adjust flag.
41941         * tests/test-snprintf-posix.h (test_function): Likewise.
41942         * tests/test-sprintf-posix.h (test_function): Likewise.
41943         * tests/test-vasprintf-posix.c (test_function): Likewise.
41944         * doc/posix-functions/fprintf.texi: Update.
41945         * doc/posix-functions/printf.texi: Update.
41946         * doc/posix-functions/snprintf.texi: Update.
41947         * doc/posix-functions/sprintf.texi: Update.
41948         * doc/posix-functions/vfprintf.texi: Update.
41949         * doc/posix-functions/vprintf.texi: Update.
41950         * doc/posix-functions/vsnprintf.texi: Update.
41951         * doc/posix-functions/vsprintf.texi: Update.
41952         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41953
41954 2008-02-06  Bruno Haible  <bruno@clisp.org>
41955
41956         Fix bug introduced on 2008-01-26.
41957         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
41958
41959 2008-02-06  Bruno Haible  <bruno@clisp.org>
41960
41961         Fix bug introduced on 2007-06-10.
41962         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
41963         !NEED_PRINTF_FLAG_ZERO.
41964
41965 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
41966
41967         getloadavg: use libperfstat on AIX5
41968         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
41969
41970 2008-02-03  Bruno Haible  <bruno@clisp.org>
41971
41972         * lib/diffseq.h: Add comments about required #includes.
41973         Reported by Michael Biggs <gnulib@doubleplum.net>.
41974
41975 2008-02-01  Bruno Haible  <bruno@clisp.org>
41976
41977         * users.txt: Add gnuit.
41978
41979 2008-01-31  Bruno Haible  <bruno@clisp.org>
41980
41981         * lib/md4.c (set_uint32): Mark as inline.
41982         * lib/md5.c (set_uint32): Likewise.
41983         * lib/sha1.c (set_uint32): Likewise.
41984         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
41985         * m4/md5.m4 (gl_MD5): Likewise.
41986         * m4/sha1.m4 (gl_SHA1): Likewise.
41987
41988 2008-01-31  Jim Meyering  <meyering@redhat.com>
41989
41990         Use "sizeof VAR", rather than a literal "4".
41991         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
41992         * lib/md4.c (md4_read_ctx): Likewise.
41993         * lib/sha1.c (sha1_read_ctx): Likewise.
41994
41995 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41996
41997         * tests/test-sha1.c: New file, based on test-md5.c.
41998
41999         * modules/crypto/sha1-tests: New file.
42000
42001 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42002
42003         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
42004
42005 2008-01-31  Jim Meyering  <meyering@redhat.com>
42006
42007         Prefer "sizeof v" over the equivalent "4".
42008         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
42009         * lib/md5.c (set_uint32): Likewise.
42010         * lib/sha1.c (set_uint32): Likewise.
42011
42012 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42013
42014         * lib/sha1.c (set_uint32): Mark function as static.
42015
42016 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42017
42018         md2: clarify comments to say that alignment is not required.
42019         * lib/md2.h: Remove warning about alignment in comment.
42020         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
42021         never been required.
42022
42023 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42024
42025         md4: adapt alignment constraint fix from sha1.
42026         * lib/md4.c (set_uint32): New function, from sha1.c
42027         (md4_read_ctx): Use it.
42028         (md4_finish_ctx): Doc fix.
42029         * lib/md4.h: Doc fix.
42030
42031 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42032
42033         md5: adapt alignment constraint fix from sha1.
42034         * lib/md5.c (set_uint32): New function, from sha1.c
42035         (md5_read_ctx): Use it.
42036         (md5_finish_ctx): Doc fix.
42037         * lib/md5.h: Doc fix.
42038
42039 2008-01-30  Peter Palfrader  <weasel@debian.org>
42040
42041         sha1: remove the result buffer alignment constraint
42042         * lib/sha1.c (set_uint32): New function.
42043         (sha1_read_ctx): Rewrite to remove the result buffer alignment
42044         constraint.
42045         (sha1_finish_ctx): Remove comment warning about alignment constraint.
42046         * lib/sha1.h: Likewise.
42047
42048 2008-01-30  Andreas Schwab  <schwab@suse.de>
42049             Bruno Haible  <bruno@clisp.org>
42050
42051         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
42052         correct definition of LDBL_MIN_EXP.
42053
42054 2008-01-30  Karl Berry  <karl@gnu.org>
42055
42056         * config/srclist-update: try to preserve x bit on updates.
42057         * config/srclistvars.sh: update for karl.
42058
42059 2008-01-29  Jim Meyering  <meyering@redhat.com>
42060
42061         vasnprintf.c: Avoid warning about unused label
42062         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
42063         "overflow" label definition and associated code with the
42064         same cpp condition that guards the sole use of that label.
42065
42066 2008-01-26  Bruno Haible  <bruno@clisp.org>
42067
42068         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
42069         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
42070         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
42071         * lib/isnanl-nolibm.h (isnanl): Likewise.
42072         Reported by Paul Eggert <eggert@cs.ucla.edu>.
42073
42074 2008-01-26  Bruno Haible  <bruno@clisp.org>
42075
42076         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
42077         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
42078
42079 2008-01-26  Bruno Haible  <bruno@clisp.org>
42080
42081         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
42082         GCC >= 4.0 built-in.
42083         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
42084
42085 2008-01-26  Bruno Haible  <bruno@clisp.org>
42086
42087         Rename isnan, applicable to 'double' only, to isnand.
42088         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
42089         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
42090         (configure.ac): Update.
42091         (Include): Replace "isnan.h" with "isnand.h".
42092         * m4/isnand.m4: Renamed from m4/isnan.m4.
42093         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
42094         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
42095         instead of isnan.c.
42096         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
42097         instead of HAVE_ISNAN_IN_LIBC.
42098         (isnand): Renamed from isnan.
42099         * lib/isnand.c: New file.
42100         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
42101         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
42102         (Makefile.am): Update.
42103         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
42104         Include isnand.h instead of isnan.h.
42105         (main): Test isnand instead of isnan.
42106         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
42107         isnan-nolibm.
42108         * modules/frexp (Depends-on): Likewise.
42109         * modules/frexp-tests (Depends-on): Likewise.
42110         * modules/frexp-nolibm (Depends-on): Likewise.
42111         * modules/frexp-nolibm-tests (Depends-on): Likewise.
42112         * modules/isfinite (Depends-on): Likewise.
42113         * modules/round-tests (Depends-on): Likewise.
42114         * modules/signbit (Depends-on): Likewise.
42115         * modules/signbit-tests (Depends-on): Likewise.
42116         * modules/snprintf-posix (Depends-on): Likewise.
42117         * modules/sprintf-posix (Depends-on): Likewise.
42118         * modules/trunc-tests (Depends-on): Likewise.
42119         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42120         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42121         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42122         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42123         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42124         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42125         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42126         * modules/vasnprintf-posix (Depends-on): Likewise.
42127         * modules/vasprintf-posix (Depends-on): Likewise.
42128         * modules/vfprintf-posix (Depends-on): Likewise.
42129         * modules/vsnprintf-posix (Depends-on): Likewise.
42130         * modules/vsprintf-posix (Depends-on): Likewise.
42131         * lib/frexp.c: Include isnand.h instead of isnan.h.
42132         (ISNAN): Set to isnand instead of isnan.
42133         * lib/isfinite.c: Include isnand.h instead of isnan.h.
42134         (gl_isfinited): Use isnand instead of isnan.
42135         * lib/signbitd.c: Include isnand.h instead of isnan.h.
42136         (gl_signbitd): Use isnand instead of isnan.
42137         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
42138         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
42139         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
42140         (main): Use isnand instead of isnan.
42141         * tests/test-round1.c: Include isnand.h.
42142         (main): Use isnand instead of isnan.
42143         * tests/test-round2.c: Include isnand.h instead of isnan.h.
42144         (ISNAN): Set to isnand instead of isnan.
42145         * tests/test-trunc1.c: Include isnand.h.
42146         (main): Use isnand instead of isnan.
42147         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
42148         (equal): Use isnand instead of isnan.
42149         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
42150         isnand-nolibm.
42151         * NEWS: Mention the change.
42152
42153 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42154             Bruno Haible  <bruno@clisp.org>
42155
42156         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
42157         the GCC builtins for signbits are present and set
42158         REPLACE_SIGNBIT_USING_GCC if so.
42159         * lib/math.in.h (signbit): Define using GCC builtins if
42160         REPLACE_SIGNBIT_USING_GCC is set.
42161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
42162         REPLACE_SIGNBIT_USING_GCC.
42163         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
42164
42165 2008-01-25  Jim Meyering  <meyering@redhat.com>
42166
42167         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
42168         * lib/poll.c: Include <config.h>, not "config.h".
42169         * tests/test-getaddrinfo.c: Likewise.
42170
42171 2008-01-25  Simon Josefsson  <simon@josefsson.org>
42172
42173         * modules/sockets-tests: New file.
42174
42175 2008-01-24  Simon Josefsson  <simon@josefsson.org>
42176
42177         * modules/sockets: New module, can be used to call WSA_Startup and
42178         WSA_Cleanup when needed.
42179
42180         * lib/sockets.h, lib/sockets.c: New files.
42181
42182         * m4/sockets.m4: New file.
42183
42184         * tests/test-sockets.c: New file.
42185
42186 2008-01-19  Bruno Haible  <bruno@clisp.org>
42187
42188         * doc/posix-headers: Renamed from doc/headers.
42189         * doc/posix-functions: Renamed from doc/functions.
42190         * doc/gnulib.texi: Update.
42191
42192 2008-01-19  Bruno Haible  <bruno@clisp.org>
42193
42194         * doc/glibc-functions/strcasestr.texi: Include contents of
42195         doc/functions/strcasestr.texi, fixing the list of platforms.
42196         * doc/functions/strcasestr.texi: Remove file.
42197
42198 2008-01-19  Bruno Haible  <bruno@clisp.org>
42199
42200         * doc/glibc-functions/memmem.texi: Include contents of
42201         doc/functions/memmem.texi.
42202         * doc/functions/memmem.texi: Remove file.
42203
42204 2008-01-18  Bruno Haible  <bruno@clisp.org>
42205
42206         * doc/glibc-functions/*.texi: New files.
42207         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
42208         to use the new files.
42209
42210 2008-01-17  Bruno Haible  <bruno@clisp.org>
42211
42212         * tests/test-gethostname.c (main): Fix printf statement.
42213
42214 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42215
42216         * modules/gethostname-tests: New file.
42217
42218         * tests/test-gethostname.c: New file.
42219
42220 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42221
42222         * lib/gethostname.c: Include string.h unconditionally, strncpy is
42223         used by the UNAME case.  Reported by Bruno Haible
42224         <bruno@clisp.org>.
42225
42226 2008-01-17  Eric Blake  <ebb9@byu.net>
42227
42228         Convert c-strcasestr to be more efficient.
42229         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
42230         (Depends-on): Add c-strcase, remove malloca, strnlen.
42231         * tests/test-c-strcasestr.c (main): Enhance test.
42232         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
42233
42234 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
42235
42236         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
42237         Use it in creating po/Makevars.
42238
42239 2008-01-15  Simon Josefsson  <simon@josefsson.org>
42240
42241         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
42242         Applications that requires it should initialize libgcrypt
42243         manually.
42244
42245 2008-01-16  Simon Josefsson  <simon@josefsson.org>
42246
42247         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
42248
42249 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
42250
42251         Fix problem with getdate on mingw32 reported by Simon Josefsson
42252         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
42253         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
42254         tzname", when deciding whether to declare tzname.
42255         * lib/strftime.c (tzname): Likewise.
42256
42257 2008-01-15  Bruno Haible  <bruno@clisp.org>
42258
42259         Work around a MacOS X 10.5 bug in frexpl().
42260         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
42261         * doc/functions/frexpl.texi: Document the bug.
42262         Reported by Elias Pipping <pipping@gentoo.org>.
42263
42264 2008-01-14  Eric Blake  <ebb9@byu.net>
42265
42266         Touch up previous patch.
42267         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
42268         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
42269
42270         Convert strcasestr module to use Two-Way algorithm.
42271         * modules/strcasestr-simple: New module, based on the old
42272         strcasestr, but with Two-Way rather than KMP.
42273         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
42274         * lib/string.in.h (rpl_strcasestr): Declare.
42275         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
42276         performance.
42277         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
42278         * modules/string (Makefile.am): Support strcasestr.
42279         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42280         * modules/strcasestr-tests (Depends-on): Check for alarm.
42281         * tests/test-strcasestr.c: Augment test.
42282         * lib/str-two-way.h: Clean up stray macro.
42283         * NEWS: Document new module.
42284         * MODULES.html.sh (string handling): Likewise.
42285         * doc/functions/strcasestr.texi: New file.
42286         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
42287         here, since it is not a POSIX function.
42288
42289 2008-01-14  Colin Watson  <cjwatson@debian.org>
42290             Bruno Haible  <bruno@clisp.org>
42291
42292         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
42293         works fine; if not, set REPLACE_STRSIGNAL.
42294         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
42295         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42296         REPLACE_STRSIGNAL.
42297         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
42298         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
42299         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
42300
42301 2008-01-14  Bruno Haible  <bruno@clisp.org>
42302
42303         * modules/strsignal (Include): Change to <string.h>.
42304
42305 2008-01-14  Colin Watson  <cjwatson@debian.org>
42306
42307         * modules/argp (Notice): Add a notice recommending to change
42308         XGETTEXT_OPTIONS.
42309         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
42310
42311 2008-01-13  Colin Watson  <cjwatson@debian.org>
42312
42313         * modules/strsignal-tests: New file.
42314         * tests/test-strsignal.c: New file.
42315
42316         * lib/strsignal.c: New file, from glibc with modifications.
42317         * lib/siglist.h: New file, from glibc with modifications.
42318         * lib/string.in.h (strsignal): New declaration.
42319         * m4/strsignal.m4: New file.
42320         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42321         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
42322         * modules/strsignal: New file.
42323         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
42324         HAVE_DECL_STRSIGNAL.
42325
42326 2008-01-13  Bruno Haible  <bruno@clisp.org>
42327
42328         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
42329         locale encoding is not ASCII. Needed for OpenBSD 4.0.
42330         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42331         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42332
42333 2008-01-13  Bruno Haible  <bruno@clisp.org>
42334
42335         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
42336         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
42337         * lib/argp.h (__attribute__): Likewise.
42338         * lib/c-stack.c (__attribute__): Likewise.
42339         * lib/error.h (__attribute__): Likewise.
42340         * lib/fts.c (__attribute__): Likewise.
42341         * lib/openat.h (__attribute__): Likewise.
42342         * lib/stdio.in.h (__attribute__): Likewise.
42343         * lib/string.in.h (__attribute__): Likewise.
42344         * lib/utimens.c (__attribute__): Likewise.
42345         * lib/vasnprintf.h (__attribute__): Likewise.
42346         * lib/xalloc.h (__attribute__): Likewise.
42347         * lib/xprintf.h (__attribute__): Likewise.
42348         * lib/xstrtol.h (__attribute__): Likewise.
42349         * lib/xvasprintf.h (__attribute__): Likewise.
42350
42351 2008-01-12  Bruno Haible  <bruno@clisp.org>
42352
42353         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
42354         * doc/glibc-headers/a.out.texi: New file.
42355         * doc/glibc-headers/aliases.texi: New file.
42356         * doc/glibc-headers/alloca.texi: New file.
42357         * doc/glibc-headers/ar.texi: New file.
42358         * doc/glibc-headers/argp.texi: New file.
42359         * doc/glibc-headers/argz.texi: New file.
42360         * doc/glibc-headers/byteswap.texi: New file.
42361         * doc/glibc-headers/crypt.texi: New file.
42362         * doc/glibc-headers/endian.texi: New file.
42363         * doc/glibc-headers/envz.texi: New file.
42364         * doc/glibc-headers/err.texi: New file.
42365         * doc/glibc-headers/error.texi: New file.
42366         * doc/glibc-headers/execinfo.texi: New file.
42367         * doc/glibc-headers/fpu_control.texi: New file.
42368         * doc/glibc-headers/fstab.texi: New file.
42369         * doc/glibc-headers/fts.texi: New file.
42370         * doc/glibc-headers/getopt.texi: New file.
42371         * doc/glibc-headers/ieee754.texi: New file.
42372         * doc/glibc-headers/ifaddrs.texi: New file.
42373         * doc/glibc-headers/libintl.texi: New file.
42374         * doc/glibc-headers/mcheck.texi: New file.
42375         * doc/glibc-headers/mntent.texi: New file.
42376         * doc/glibc-headers/obstack.texi: New file.
42377         * doc/glibc-headers/paths.texi: New file.
42378         * doc/glibc-headers/printf.texi: New file.
42379         * doc/glibc-headers/pty.texi: New file.
42380         * doc/glibc-headers/resolv.texi: New file.
42381         * doc/glibc-headers/shadow.texi: New file.
42382         * doc/glibc-headers/sysexits.texi: New file.
42383         * doc/glibc-headers/ttyent.texi: New file.
42384
42385 2008-01-12  Jim Meyering  <meyering@redhat.com>
42386
42387         announce-gen: emit Gnulib's git-based version string.
42388         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
42389         New option --gnulib-version=V, where V is expected to be
42390         the output of running git describe in the gnulib directory.
42391         (get_tool_versions): Request feedback on xdelta.  I suspect it's
42392         not useful, and plan to stop publishing an xdelta file with each
42393         coreutils release.
42394
42395         * build-aux/announce-gen: Also check for lzma-compressed files.
42396
42397 2008-01-11  Bruno Haible  <bruno@clisp.org>
42398
42399         * tests/test-memmem.c (main): Increase maximum allowed time.
42400         * tests/test-strstr.c (main): Likewise.
42401
42402 2008-01-11  Bruno Haible  <bruno@clisp.org>
42403
42404         * doc/functions/memmem.texi: Add more precisions about platforms.
42405         * doc/functions/strstr.texi: Likewise.
42406
42407 2008-01-10  Eric Blake  <ebb9@byu.net>
42408
42409         * m4/strstr.m4: Delete cruft from copy-n-paste.
42410         Reported by Bruno Haible.
42411
42412 2008-01-10  Bruno Haible  <bruno@clisp.org>
42413
42414         Make c-strstr rely on strstr.
42415         * lib/c-strstr.c: Don't include str-kmp.h.
42416         (c_strstr): Define in terms of strstr.
42417         * modules/c-strstr (Files): Remove lib/str-kmp.h.
42418         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
42419
42420 2008-01-10  Bruno Haible  <bruno@clisp.org>
42421
42422         * doc/gnulib.texi (String Functions in C Locale): New section.
42423         * doc/c-ctype.texi: New file.
42424         * doc/c-strcase.texi: New file.
42425         * doc/c-strcaseeq.texi: New file.
42426         * doc/c-strcasestr.texi: New file.
42427         * doc/c-strstr.texi: New file.
42428         * doc/c-strtod.texi: New file.
42429         * doc/c-strtold.texi: New file.
42430
42431 2008-01-10  Eric Blake  <ebb9@byu.net>
42432
42433         * lib/relocatable.h: Fix a comment.
42434
42435 2008-01-10  Eric Blake  <ebb9@byu.net>
42436
42437         Share two-way algorithm.
42438         * lib/str-two-way.h: New file, merged from...
42439         * lib/memmem.c: ...here...
42440         * lib/strstr.c: ...and here.
42441         * modules/memmem (Files): Use it.
42442         * modules/strstr (Files): Likewise.
42443
42444         Avoid quadratic strstr implementations.
42445         * lib/strstr.c: New file.
42446         * m4/strstr.m4: Likewise.
42447         * modules/strstr: Likewise.
42448         * modules/strstr-tests: Likewise.
42449         * tests/test-strstr.c: Likewise.
42450         * lib/string.in.h (rpl_strstr): Declare.
42451         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
42452         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
42453         * modules/string (Makefile.am): Likewise.
42454         * MODULES.html.sh (string handling): Mention new module.
42455         * doc/functions/strstr.texi (strstr): Document the bug.
42456
42457 2008-01-10  Bruno Haible  <bruno@clisp.org>
42458
42459         * lib/relocatable.h (relocate): State whether result is freshly
42460         allocated or not.
42461         * lib/relocatable.c (relocate): Return a freshly allocated string
42462         instead of a pointer to a privately held string.
42463         Reported by Sylvain Beucler <beuc@gnu.org>.
42464
42465 2008-01-10  Colin Watson  <cjwatson@debian.org>
42466
42467         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
42468         s/S_ISNLK/S_ISLNK/.
42469
42470 2008-01-09  Bruno Haible  <bruno@clisp.org>
42471
42472         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
42473         and other files.
42474         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
42475         if it's only a guess.
42476         * modules/memmem: Simplify by depending on memmem-simple.
42477
42478 2008-01-09  Bruno Haible  <bruno@clisp.org>
42479
42480         Work around OpenBSD 4.0 tdelete() bug.
42481         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
42482         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
42483         macros and don't redefine the enum values.
42484         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
42485         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
42486         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
42487
42488 2008-01-09  Bruno Haible  <bruno@clisp.org>
42489
42490         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
42491         (main): Don't perform the tests if setlocale did not install a UTF-8
42492         locale. Needed on OpenBSD 4.0.
42493         * modules/wcwidth-tests (Depends-on): Add localcharset.
42494
42495 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
42496
42497         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
42498         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
42499         * NEWS: announce this.
42500         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
42501
42502 2008-01-09  Simon Josefsson  <simon@josefsson.org>
42503         and Eric Blake  <ebb9@byu.net>
42504
42505         Add memmem-simple module.
42506         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
42507         (gl_FUNC_MEMMEM): Separate performance from presence checks.
42508         * modules/memmem-simple: New file.
42509         * modules/memmem (Description): Tweak.
42510         * MODULES.html.sh (string handling): Mention new module.
42511         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
42512         addressed by memmem-simple.
42513         * NEWS: Document the difference.
42514
42515 2008-01-09  Eric Blake  <ebb9@byu.net>
42516
42517         Give gcc some memmem optimization hints.
42518         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
42519         (strcasestr): Declare as pure.
42520         * modules/memmem (Maintainer): Claim my implementation.
42521
42522 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42523
42524         Support AIX 6.1 and higher.
42525         * build-aux/config.libpath: Likewise.
42526         * build-aux/config.rpath: Likewise.
42527
42528 2008-01-08  Jim Meyering  <meyering@redhat.com>
42529             Bruno Haible  <bruno@clisp.org>
42530
42531         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
42532         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
42533         Reported by Peter Fales in
42534         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
42535
42536 2008-01-08  Bruno Haible  <bruno@clisp.org>
42537
42538         * modules/unictype/category-of (Depends-on): Add
42539         unictype/category-none.
42540         * modules/unictype/category-and-tests (Depends-on): Add
42541         unictype/category-{L,N,Lu,Nd}.
42542         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
42543         * modules/unictype/category-or-tests (Depends-on): Add
42544         unictype/category-{L,N}.
42545         * modules/unictype/category-name-tests (Depends-on): Add
42546         unictype/category-{Z,Nl}.
42547         Reported by Simon Josefsson.
42548
42549 2008-01-08  Bruno Haible  <bruno@clisp.org>
42550
42551         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
42552         convention better.
42553         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
42554         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
42555         Reported by Peter Miller <millerp@canb.auug.org.au>.
42556
42557 2008-01-08  Eric Blake  <ebb9@byu.net>
42558
42559         Rewrite memmem to guarantee linear complexity without malloc.
42560         * lib/memmem.c (memmem): Use Two-Way rather than
42561         Knuth-Morris-Pratt, to allow O(1) space usage.
42562         (critical_factorization, two_way_short_needle)
42563         (two_way_long_needle): New functions.
42564         (knuth_morris_pratt): Delete.
42565         * modules/memmem (Depends-on): No longer need malloca or stdbool.
42566         Add stdint.
42567         * tests/test-memmem.c (main): Add tests for periodic needle and
42568         sublinear performance.
42569         * doc/functions/memmem.texi (memmem): Document other deficiencies
42570         in cygwin and older glibc.
42571
42572 2008-01-08  Bruno Haible  <bruno@clisp.org>
42573
42574         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
42575         augmentation.
42576
42577 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
42578
42579         Add a configure time option: --disable-acl.
42580         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
42581         AC_ARG_ENABLE(acl).
42582
42583 2008-01-06  Simon Josefsson  <simon@josefsson.org>
42584
42585         * tests/test-localename.c: Don't include obsolete "setenv.h".
42586
42587         * modules/localename-tests (Depends-on): Need unsetenv.
42588
42589 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42590
42591         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
42592
42593 2008-01-06  Colin Watson  <cjwatson@debian.org>
42594
42595         * users.txt: Add man-db.
42596
42597 2008-01-07  Bruno Haible  <bruno@clisp.org>
42598
42599         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
42600         previous section name.
42601
42602 2008-01-07  Bruno Haible  <bruno@clisp.org>
42603
42604         * lib/progname.c (set_program_name): Don't strip off a leading
42605         "lt-" prefix outside a .libs directory.
42606         Suggested by Paul Eggert.
42607
42608 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
42609             Bruno Haible  <bruno@clisp.org>
42610
42611         Improve memory cleanup in 'relocatable' module.
42612         * lib/relocatable.h (compute_curr_prefix): Change return type to
42613         'char *'.
42614         * lib/relocatable.c (compute_curr_prefix): Change return type to
42615         'char *'. Free curr_installdir after use.
42616         (relocate): Free curr_prefix_better after use.
42617         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
42618
42619 2008-01-01  Bruno Haible  <bruno@clisp.org>
42620
42621         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
42622         failure on older glibc systems.
42623         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42624
42625 2008-01-05  Eric Blake  <ebb9@byu.net>
42626
42627         Avoid quadratic system memmem.
42628         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
42629         Reported by Ralf Wildenhues.
42630
42631         Fix memmem test for mingw.
42632         * modules/memmem-tests (configure.ac): Check for alarm.
42633         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
42634         it.
42635         * doc/functions/memmem.texi: New file.
42636         * doc/gnulib.texi (Function Substitutes): Add memmem.
42637         Reported by Bruno Haible.
42638
42639 2008-01-04  Bruno Haible  <bruno@clisp.org>
42640
42641         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
42642         Require gl_HEADER_STRINGS_H_DEFAULTS, not
42643         gl_HEADER_STRING_H_DEFAULTS.
42644
42645 2008-01-04  Eric Blake  <ebb9@byu.net>
42646
42647         Shorten duration of memmem test.
42648         * tests/test-memmem.c (main): Use alarm to declare failure if test
42649         is taking too long.
42650         Reported by Ralf Wildenhues.
42651
42652 2007-12-21  Simon Josefsson  <simon@josefsson.org>
42653
42654         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
42655         string, needed by strerror.
42656
42657 2008-01-03  Colin Watson  <cjwatson@debian.org>
42658             Bruno Haible  <bruno@clisp.org>
42659
42660         * doc/gnulib-tool.texi (Localization): New section.
42661
42662 2008-01-02  Bruno Haible  <bruno@clisp.org>
42663
42664         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
42665         variables to 'unsigned char *' type.
42666         Reported by Paul Eggert.
42667
42668 2008-01-02  Jim Meyering  <jim@meyering.net>
42669
42670         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
42671
42672 2007-12-31  Jim Meyering  <jim@meyering.net>
42673
42674         Avoid use of private FTS type name.
42675         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
42676
42677 2007-12-30  Karl Berry  <karl@gnu.org>
42678
42679         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
42680         work around defect in Texinfo and/or the standalone Info browser.
42681
42682 2007-12-30  Bruno Haible  <bruno@clisp.org>
42683
42684         Unify 5 copies of the KMP code.
42685         * lib/str-kmp.h: New file.
42686         * lib/c-strcasestr.c: Include str-kmp.h.
42687         (knuth_morris_pratt): Remove function.
42688         (c_strcasestr): Update.
42689         * lib/c-strstr.c: Include str-kmp.h.
42690         (knuth_morris_pratt): Remove function.
42691         (c_strcasestr): Update.
42692         * lib/mbscasestr.c: Include str-kmp.h.
42693         (knuth_morris_pratt_unibyte): Remove function.
42694         * lib/mbsstr.c: Include str-kmp.h.
42695         (knuth_morris_pratt_unibyte): Remove function.
42696         * lib/strcasestr.c: Include str-kmp.h.
42697         (knuth_morris_pratt): Remove function.
42698         (strcasestr): Update.
42699         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
42700         * modules/c-strstr (Files): Likewise.
42701         * modules/mbscasestr (Files): Likewise.
42702         * modules/mbsstr (Files): Likewise.
42703         * modules/strcasestr (Files): Likewise.
42704         Suggested by Paul Eggert.
42705
42706 2007-12-30  Bruno Haible  <bruno@clisp.org>
42707
42708         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
42709         defined.
42710
42711 2007-12-30  Bruno Haible  <bruno@clisp.org>
42712
42713         * lib/xmalloca.h: Include xalloc.h.
42714         (xnmalloca): New macro.
42715
42716 2007-12-30  Bruno Haible  <bruno@clisp.org>
42717
42718         * lib/malloca.h (nmalloca): New macro.
42719         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
42720         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
42721         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
42722         knuth_morris_pratt_multibyte): Likewise.
42723         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
42724         knuth_morris_pratt_multibyte): Likewise.
42725         * lib/memmem.c (knuth_morris_pratt): Likewise.
42726         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
42727
42728 2007-12-25  Bruno Haible  <bruno@clisp.org>
42729
42730         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
42731         * lib/glob.c: Don't include openat.h.
42732         (link_exists2_p): Add back the code that deals with the
42733         !GLOB_ALTDIRFUNC case.
42734         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
42735         let it do the filename concatenation.
42736         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
42737         * modules/glob (Depends-on): Remove openat.
42738
42739 2007-12-31  Bruno Haible  <bruno@clisp.org>
42740
42741         * modules/dirfd (License): Change to LGPLv2+.
42742         Approved by Jim Meyering.
42743
42744 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
42745
42746         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
42747         when multiplying M by sizeof (size_t).
42748
42749 2007-12-10  Martin Lambers  <marlam@marlam.de>
42750
42751         Override getpagesize on mingw.
42752         * lib/getpagesize.c: New file.
42753         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
42754         * modules/getpagesize (Files): Add lib/getpagesize.c.
42755         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
42756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42757         REPLACE_GETPAGESIZE.
42758         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
42759
42760 2007-12-25  Bruno Haible  <bruno@clisp.org>
42761
42762         * modules/localcharset (Notice): New field.
42763         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
42764         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
42765
42766 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
42767             Bruno Haible  <bruno@clisp.org>
42768
42769         Avoid using the syntax symbol() in formatted documentation.
42770         * MODULES.html.sh (func_module): When replacing symbol() with a
42771         hyperlink, remove the parentheses. Show an error if some remain.
42772         Recognize and render the '...' syntax.
42773         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
42774         Rework. Add paragraph about GCC's inlining.
42775         * doc/alloca.texi: Likewise.
42776         * doc/error.texi: Remove parentheses from symbol reference.
42777         * doc/gnulib-intro.texi: Likewise.
42778         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
42779         * modules/fnmatch (Description): Reword to say "the ... function".
42780         * modules/full-read (Description): Likewise.
42781         * modules/full-write (Description): Likewise.
42782         * modules/safe-read (Description): Likewise.
42783         * modules/safe-write (Description): Likewise.
42784         * modules/strchrnul (Description): Likewise.
42785         * modules/trim (Description): Likewise.
42786         * modules/error (Description): Remove parentheses from symbol
42787         references.
42788         * modules/verror (Description): Likewise.
42789         Reported by Karl Berry.
42790
42791 2007-12-25  Bruno Haible  <bruno@clisp.org>
42792
42793         Fixup after 2007-10-16 commit.
42794         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
42795
42796 2007-12-24  Bruno Haible  <bruno@clisp.org>
42797
42798         Make --enable-relocatable work with DESTDIR.
42799         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
42800         to compute installdir from destprog.
42801         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
42802         also set the RELOC_DESTDIR variable.
42803         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42804
42805 2007-12-24  Bruno Haible  <bruno@clisp.org>
42806
42807         Fix link error due to xalloc_die().
42808         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
42809         of xreadlink.
42810         * lib/relocwrapper.c: Update comments.
42811         * build-aux/install-reloc: Remove xreadlink.c from file list.
42812         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
42813         xreadlink.c.
42814         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42815
42816 2007-12-24  Bruno Haible  <bruno@clisp.org>
42817
42818         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
42819         * lib/setenv.h: Remove file.
42820         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
42821         lib/setenv.h.
42822         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
42823         (Depends-on): Add stdlib.
42824         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
42825         gl_FUNC_UNSETENV.
42826         (Include): Replace setenv.h with <stdlib.h>.
42827         * modules/unsetenv: New file.
42828         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
42829         * lib/unsetenv.c: Include <stdlib.h> first.
42830         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
42831         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
42832         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
42833         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
42834         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
42835         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
42837         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42838         * doc/functions/unsetenv.texi: Update.
42839         * modules/xsetenv (Depends-on): Add unsetenv.
42840         * modules/getdate (Depends-on): Likewise.
42841         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
42842         * lib/xsetenv.c: Don't include setenv.h.
42843         * lib/getdate.y: Likewise.
42844         * lib/relocwrapper.c: Likewise.
42845         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
42846         (Depends-on): Add stdlib.
42847         * NEWS: Mention the changes.
42848         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42849
42850 2007-12-23  Bruno Haible  <bruno@clisp.org>
42851
42852         * lib/memmem.c (memmem): Use lowercase variable names. Tab
42853         indentation.
42854
42855 2007-12-23  Bruno Haible  <bruno@clisp.org>
42856
42857         * lib/c-strcasestr.c: Add more comments.
42858         * lib/c-strstr.c: Likewise.
42859         * lib/mbscasestr.c: Likewise.
42860         * lib/mbsstr.c: Likewise.
42861         * lib/strcasestr.c: Likewise.
42862         * lib/memmem.c: Likewise.
42863
42864 2007-12-23  Bruno Haible  <bruno@clisp.org>
42865
42866         * tests/test-memmem.c: Include <string.h> first.
42867
42868 2007-12-22  Bruno Haible  <bruno@clisp.org>
42869
42870         * gnulib-tool (func_create_testdir): Change $auxdir while generating
42871         the contents of $testsbase.
42872         Reported by Ralf Wildenhues.
42873
42874 2007-12-22  Bruno Haible  <bruno@clisp.org>
42875
42876         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
42877         two variables local_ldadd_before, local_ldadd_last.
42878
42879 2007-12-20  Eric Blake  <ebb9@byu.net>
42880
42881         Work around circular library issue when cross-compiling.
42882         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
42883         that progname.o does not need to pull in rpl_memcmp.
42884
42885 2007-12-19  Eric Blake  <ebb9@byu.net>
42886
42887         Fix memmem to avoid O(n^2) worst-case complexity.
42888         * lib/memmem.c (knuth_morris_pratt): New function.
42889         (memmem): Use it if first few naive iterations fail.
42890         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
42891         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
42892         * modules/memchr (License): Likewise.
42893         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
42894         malloca.
42895         * tests/test-memmem.c: Rewrite, borrowing ideas from
42896         test-mbsstr1.c; the old version wouldn't even compile!
42897         * modules/memmem-tests: New file.
42898         * lib/string.in.h (rpl_memmem): Add declaration.
42899         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
42900         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
42901         REPLACE_MEMMEM.
42902
42903 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42904
42905         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
42906         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
42907         before any system include files, and undef after them all.  This
42908         should fix a problem on VMS reported by John E. Malmberg in
42909         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
42910
42911 2007-12-17  Eric Blake  <ebb9@byu.net>
42912
42913         Revert addition of verify, for BSD/OS.
42914         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
42915         can't handle large files, for the sake of obsolete platforms.
42916         * modules/fseeko (Depends-on): Remove verify.
42917         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
42918         * doc/functions/ftello.texi (ftello): Likewise.
42919         * doc/functions/fgetpos.texi (fgetpos): Likewise.
42920         Reported by Larry Jones.
42921
42922 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
42923
42924         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
42925         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
42926
42927 2007-12-17  Jim Meyering  <meyering@redhat.com>
42928
42929         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
42930         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
42931         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
42932         * modules/getcwd (Depends-on): Add openat.
42933         Reported by Petr Salinger.
42934
42935 2007-12-17  Bruno Haible  <bruno@clisp.org>
42936
42937         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
42938         avoid a segmentation fault of the configure test on x86_64 systems.
42939
42940 2007-12-15  Jim Meyering  <meyering@redhat.com>
42941
42942         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
42943
42944 2007-12-13  Eric Blake  <ebb9@byu.net>
42945
42946         Another fseek test.
42947         * tests/test-fseek.c (main): Also test ungetc handling.
42948         * tests/test-fseeko.c (main): Likewise.
42949         * modules/fseeko (Depends-on): Add verify.
42950         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
42951         large.
42952         Reported by Larry Jones.
42953
42954         Fix fseeko on mingw.
42955         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
42956         seek.
42957
42958         Beef up fseek tests.
42959         * tests/test-fseek.c (main): Also test eof handling.
42960         * tests/test-fseeko.c (main): Likewise.
42961         Reported by Larry Jones.
42962
42963 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
42964
42965         Fix fseeko on BSD-based platforms.
42966         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
42967         successful seek.
42968
42969 2007-12-12  Eric Blake  <ebb9@byu.net>
42970
42971         Allow circular dependency of separate libtests.a
42972         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
42973         when use_libtests.
42974
42975 2007-12-11  Eric Blake  <ebb9@byu.net>
42976
42977         Fix bug with -0.0L in previous patch.
42978         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
42979         * tests/test-isnan.c (main): Also test on zeroes.
42980         * tests/test-isnanf.c (main): Likewise.
42981         * tests/test-isnanl.h (main): Likewise.
42982
42983         Detect pseudo-denormals on x86 even when cross-compiling.
42984         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
42985         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
42986         invalid bit patterns that happen to satisfy ==.
42987
42988         Avoid link failures with separate libtests.a.
42989         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
42990         last, to satisfy circular dependencies.
42991
42992 2007-12-11  Eric Blake  <ebb9@byu.net>
42993         and Bruno Haible  <bruno@clisp.org>
42994
42995         Fix OpenBSD 4.0 <float.h> handling of long double.
42996         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
42997         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
42998         * doc/headers/float.texi (float.h): Document OpenBSD bug.
42999
43000 2007-12-11  Jim Meyering  <meyering@redhat.com>
43001
43002         * users.txt: Add libvirt.
43003
43004         Support versions of autoconf prior to 2.59c.
43005         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
43006         if it is not already defined.
43007
43008 2007-12-09  Bruno Haible  <bruno@clisp.org>
43009
43010         Let 'gnulib-tool --import' collect sources needed for the tests in
43011         tests/ rather than in lib/.
43012         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
43013         argument. If true, add rules to generate libtests.a, and put libtests.a
43014         into $(LDADD). Consider source files in subdirectories and set
43015         uses_subdirs.
43016         (func_emit_initmacro_start, func_emit_initmacro_end,
43017         func_emit_initmacro_done): Pass all arguments explicitly.
43018         (func_import): Determine two module lists main_modules,
43019         testsrelated_modules. Determine use_libtests. Determine two variables
43020         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
43021         instead of just sed_transform_lib_file. Determine two variables
43022         main_files and testsrelated_files. Compute 'files' as the union of
43023         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
43024         func_add_or_update. In the generated gnulib-comp.m4, collect the
43025         object files for tests/ in different variables than those for lib/.
43026         Substitute LIBTESTS_LIBDEPS.
43027         (func_create_testdir): Combine the uses_subdirs results from
43028         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
43029
43030 2007-12-09  Bruno Haible  <bruno@clisp.org>
43031
43032         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
43033         the build-aux directory.
43034
43035 2007-12-09  Bruno Haible  <bruno@clisp.org>
43036
43037         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
43038         introduced on 2006-09-09.
43039
43040 2007-12-07  Jim Meyering  <meyering@redhat.com>
43041
43042         Let these macros work also with autoconf-2.59.
43043         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
43044         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
43045         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43046
43047 2007-12-06  Jim Meyering  <meyering@redhat.com>
43048
43049         Avoid a configure-time syntax error in gl_FUNC_ACL.
43050         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
43051         function in each branch, before testing the cache variable.
43052
43053 2007-12-04  Eric Blake  <ebb9@byu.net>
43054
43055         Make scripts executable.
43056         * build-aux/config.guess: Add execute permissions.
43057         * build-aux/config.sub: Likewise.
43058         * build-aux/gendocs.sh: Likewise.
43059
43060         Fix frexp on mingw.
43061         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
43062         cross-compiling.
43063         * doc/functions/frexp.texi (frexp): Document the bug.
43064
43065         Make cygwin fseeko check more reliable.
43066         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
43067         version numbers, rather than unrelated feature check.
43068         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
43069         * doc/functions/ftello.texi (ftello): Likewise.
43070         Reported by Bruno Haible.
43071
43072         * m4/strerror.m4: Bump version number.
43073
43074 2007-12-03  Bruno Haible  <bruno@clisp.org>
43075
43076         * doc/functions/mprotect.texi: Mention the mingw problem.
43077
43078 2007-12-03  Eric Blake  <ebb9@byu.net>
43079
43080         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
43081         REPLACE_STRERROR is initialized before this macro.
43082
43083 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
43084
43085         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
43086         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
43087         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
43088         put -lsec in even for programs other than 'ls'.  This fixes a problem
43089         for gettext reported by Bruno Haible in
43090         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
43091         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
43092         Add support for Solaris 10.  This isn't efficient, but should get the
43093         job done for now.
43094
43095 2007-12-03  James Youngman  <jay@gnu.org>
43096
43097         * doc/regexprops-generic.texi: change "an close-group" to "a
43098         close-group" and "illegal" to "not allowed".
43099
43100 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43101
43102         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
43103         pr_byname.h. Needed for the rare case when the maintainer has done
43104         "make maintainer-clean" in the source directory and then attempts a
43105         build outside the source directory.
43106         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
43107         scripts_byname.h.
43108
43109 2007-12-02  Martin Lambers <marlam@marlam.de>
43110             Bruno Haible  <bruno@clisp.org>
43111
43112         * lib/getpagesize.h: Remove file.
43113         * lib/unistd.in.h: Include declaration of getpagesize here.
43114         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
43115         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
43116         HAVE_SYS_PARAM_H.
43117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
43118         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43119         * modules/getpagesize (Files): Remove lib/getpagesize.h.
43120         (Depends-on): Add unistd.
43121         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43122         (Include): Use <unistd.h> instead of getpagesize.h.
43123         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
43124         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43125         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
43126         gl_GETPAGESIZE invocation, already handled by module dependency.
43127         * lib/pagealign_alloc.c: Don't include getpagesize.h.
43128
43129 2007-12-02  Bruno Haible  <bruno@clisp.org>
43130
43131         * modules/strings-tests: New file.
43132         * tests/test-strings.c: New file.
43133
43134         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
43135         * lib/strings.in.h: New file.
43136         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
43137         * m4/strings_h.m4: New file.
43138         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
43139         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
43140         * modules/strings: New file.
43141         * modules/string (Makefile.am): Update.
43142         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
43143         Reported by Karl Berry.
43144
43145 2007-12-01  Eric Blake  <ebb9@byu.net>
43146
43147         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
43148         accomodate fix in cygwin 1.5.25.
43149
43150 2007-12-01  Jim Meyering  <meyering@redhat.com>
43151
43152         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
43153         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
43154         that would inhibit utf8-optimization of a regexp containing line-
43155         or buffer-anchors, e.g., `^', `$'.
43156
43157 2007-11-30  Bruno Haible  <bruno@clisp.org>
43158
43159         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
43160         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
43161         glthread_recursive_lock_init.
43162         * lib/lock.c (glthread_recursive_lock_init)
43163         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
43164         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43165
43166 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
43167
43168         New function qset_acl, like set_acl but with syscall semantics.
43169         * lib/acl.h (qset_acl): New decl.
43170         * lib/acl.c (qset_acl): New function.
43171         (set_acl): Use new function.  Use more-consistent diagnostics.
43172
43173 2007-11-28  Jim Meyering  <meyering@redhat.com>
43174
43175         * modules/physmem (License): Change from GPL to LGPLv2+.
43176
43177 2007-11-26  Bruno Haible  <bruno@clisp.org>
43178
43179         * lib/vasnprintf.c (decode_long_double): Don't abort if the
43180         'long double' type has excess precision.
43181         Reported by Jim Meyering in
43182         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
43183
43184 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43185
43186         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
43187         Sync from <http://gnu.org/licenses>.
43188         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
43189         with license text from same location.
43190         * doc/maintain.texi, doc/standards.texi:  Sync from
43191         <http://savannah.gnu.org/projects/gnustandards>.
43192
43193 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
43194         and Jim Meyering  <meyering@redhat.com>
43195
43196         Adjust getdate' grammar to accept a slightly more regular language.
43197         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
43198         Before, the former was rejected.
43199         * lib/getdate.y (digits_to_date_time): New function, factored
43200         out of ...
43201         (number): ...here.  Just call digits_to_date_time.
43202         (hybrid): New non-terminal to handle an <unsigned number,
43203         signed relative offset> sequence consistently.
43204
43205 2007-11-18  Jim Meyering  <meyering@redhat.com>
43206
43207         Pull my changes from coreutils:
43208         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
43209         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
43210         use of $gnulib_tool_option_extras, so that it's separated from the
43211         preceding argument.
43212
43213         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
43214         * build-aux/bootstrap (cp_mark_as_generated): Create any required
43215         parent destination directories before copying a file into place.
43216
43217 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
43218
43219         bootstrap: work also with 4-argument variant of AC_INIT
43220         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
43221
43222 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43223
43224         Port test-getaddrinfo to Solaris.
43225         Problem reported by Bruno Haible in
43226         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
43227         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
43228         explanation of setting 'hints'.
43229         Don't reject an implementation merely because it returns EAI_SERVICE.
43230         (EAI_SERVICE): Define to 0 if not defined.
43231
43232 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43233
43234         The license of gnu-make and posix-shell is now "GPLed build tool".
43235         * modules/gnu-make (License): Likewise.
43236         * modules/posix-shell (License): Likewise.
43237
43238         New module posix-shell, for determining a POSIX shell
43239         or perhaps something that is close enough to a POSIX shell.
43240         * m4/posix-shell.m4: New file.
43241         * modules/posix-shell: New file.
43242
43243         * MODULES.html.sh: Mention new module.
43244
43245         New module gnu-make, for determining whether we're using GNU Make.
43246         * m4/gnu-make.m4: New file.
43247         * modules/gnu-make: New file.
43248         * MODULES.html.sh: Mention new module.
43249
43250 2007-11-14  Jim Meyering  <meyering@redhat.com>
43251
43252         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
43253         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
43254         use this macro to create a function _definition_.
43255         Remove useless "#undef ARGMATCH_DIE".
43256
43257 2007-11-14  Bruno Haible  <bruno@clisp.org>
43258
43259         * lib/config.charset: Update for OpenBSD 4.1.
43260         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
43261
43262 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
43263
43264         Document 64-bit #if problems in stdint.texi.
43265         * doc/headers/stdint.texi (stdint.h): Mention problems with
43266         64-bit-#if, and how to work around them.
43267
43268         Don't insist on 'long long int' support in the preprocessor.  It
43269         breaks too many things.  For example, PRIdMAX still uses a 'long
43270         long int' format with the latest Sun compiler, even though
43271         HAVE_LONG_LONG_INT isn't defined due to that compiler's
43272         preprocessor problem.  This causes the latest coreutils to dump
43273         core on Solaris 10 sparc with the Sun C compiler.
43274         Instead, fix the 2007-10-16 problem in a different way, by evaluating
43275         the troublesome expressions at configure-time, not at #if-time.
43276         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
43277         preprocessor.
43278         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
43279         compile-time C checks, done at 'configure'-time.
43280         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
43281         * modules/inttypes (Makefile): Substitute the new symbols that
43282         gl_INTTYPES_H now generates.
43283         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
43284
43285 2007-11-12  Bruno Haible  <bruno@clisp.org>
43286
43287         Tests for Unicode character classification functions.
43288
43289         * modules/unictype/bidicategory-byname-tests: New file.
43290         * modules/unictype/bidicategory-name-tests: New file.
43291         * modules/unictype/bidicategory-of-tests: New file.
43292         * modules/unictype/bidicategory-test-tests: New file.
43293         * modules/unictype/block-list-tests: New file.
43294         * modules/unictype/block-of-tests: New file.
43295         * modules/unictype/block-test-tests: New file.
43296         * modules/unictype/category-C-tests: New file.
43297         * modules/unictype/category-Cc-tests: New file.
43298         * modules/unictype/category-Cf-tests: New file.
43299         * modules/unictype/category-Cn-tests: New file.
43300         * modules/unictype/category-Co-tests: New file.
43301         * modules/unictype/category-Cs-tests: New file.
43302         * modules/unictype/category-L-tests: New file.
43303         * modules/unictype/category-Ll-tests: New file.
43304         * modules/unictype/category-Lm-tests: New file.
43305         * modules/unictype/category-Lo-tests: New file.
43306         * modules/unictype/category-Lt-tests: New file.
43307         * modules/unictype/category-Lu-tests: New file.
43308         * modules/unictype/category-M-tests: New file.
43309         * modules/unictype/category-Mc-tests: New file.
43310         * modules/unictype/category-Me-tests: New file.
43311         * modules/unictype/category-Mn-tests: New file.
43312         * modules/unictype/category-N-tests: New file.
43313         * modules/unictype/category-Nd-tests: New file.
43314         * modules/unictype/category-Nl-tests: New file.
43315         * modules/unictype/category-No-tests: New file.
43316         * modules/unictype/category-P-tests: New file.
43317         * modules/unictype/category-Pc-tests: New file.
43318         * modules/unictype/category-Pd-tests: New file.
43319         * modules/unictype/category-Pe-tests: New file.
43320         * modules/unictype/category-Pf-tests: New file.
43321         * modules/unictype/category-Pi-tests: New file.
43322         * modules/unictype/category-Po-tests: New file.
43323         * modules/unictype/category-Ps-tests: New file.
43324         * modules/unictype/category-S-tests: New file.
43325         * modules/unictype/category-Sc-tests: New file.
43326         * modules/unictype/category-Sk-tests: New file.
43327         * modules/unictype/category-Sm-tests: New file.
43328         * modules/unictype/category-So-tests: New file.
43329         * modules/unictype/category-Z-tests: New file.
43330         * modules/unictype/category-Zl-tests: New file.
43331         * modules/unictype/category-Zp-tests: New file.
43332         * modules/unictype/category-Zs-tests: New file.
43333         * modules/unictype/category-and-not-tests: New file.
43334         * modules/unictype/category-and-tests: New file.
43335         * modules/unictype/category-byname-tests: New file.
43336         * modules/unictype/category-name-tests: New file.
43337         * modules/unictype/category-none-tests: New file.
43338         * modules/unictype/category-of-tests: New file.
43339         * modules/unictype/category-or-tests: New file.
43340         * modules/unictype/category-test-withtable-tests: New file.
43341         * modules/unictype/combining-class-tests: New file.
43342         * modules/unictype/ctype-alnum-tests: New file.
43343         * modules/unictype/ctype-alpha-tests: New file.
43344         * modules/unictype/ctype-blank-tests: New file.
43345         * modules/unictype/ctype-cntrl-tests: New file.
43346         * modules/unictype/ctype-digit-tests: New file.
43347         * modules/unictype/ctype-graph-tests: New file.
43348         * modules/unictype/ctype-lower-tests: New file.
43349         * modules/unictype/ctype-print-tests: New file.
43350         * modules/unictype/ctype-punct-tests: New file.
43351         * modules/unictype/ctype-space-tests: New file.
43352         * modules/unictype/ctype-upper-tests: New file.
43353         * modules/unictype/ctype-xdigit-tests: New file.
43354         * modules/unictype/decimal-digit-tests: New file.
43355         * modules/unictype/digit-tests: New file.
43356         * modules/unictype/mirror-tests: New file.
43357         * modules/unictype/numeric-tests: New file.
43358         * modules/unictype/property-alphabetic-tests: New file.
43359         * modules/unictype/property-ascii-hex-digit-tests: New file.
43360         * modules/unictype/property-bidi-arabic-digit-tests: New file.
43361         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
43362         * modules/unictype/property-bidi-block-separator-tests: New file.
43363         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
43364         * modules/unictype/property-bidi-common-separator-tests: New file.
43365         * modules/unictype/property-bidi-control-tests: New file.
43366         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
43367         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
43368         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
43369         * modules/unictype/property-bidi-european-digit-tests: New file.
43370         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
43371         * modules/unictype/property-bidi-left-to-right-tests: New file.
43372         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
43373         * modules/unictype/property-bidi-other-neutral-tests: New file.
43374         * modules/unictype/property-bidi-pdf-tests: New file.
43375         * modules/unictype/property-bidi-segment-separator-tests: New file.
43376         * modules/unictype/property-bidi-whitespace-tests: New file.
43377         * modules/unictype/property-byname-tests: New file.
43378         * modules/unictype/property-combining-tests: New file.
43379         * modules/unictype/property-composite-tests: New file.
43380         * modules/unictype/property-currency-symbol-tests: New file.
43381         * modules/unictype/property-dash-tests: New file.
43382         * modules/unictype/property-decimal-digit-tests: New file.
43383         * modules/unictype/property-default-ignorable-code-point-tests: New file.
43384         * modules/unictype/property-deprecated-tests: New file.
43385         * modules/unictype/property-diacritic-tests: New file.
43386         * modules/unictype/property-extender-tests: New file.
43387         * modules/unictype/property-format-control-tests: New file.
43388         * modules/unictype/property-grapheme-base-tests: New file.
43389         * modules/unictype/property-grapheme-extend-tests: New file.
43390         * modules/unictype/property-grapheme-link-tests: New file.
43391         * modules/unictype/property-hex-digit-tests: New file.
43392         * modules/unictype/property-hyphen-tests: New file.
43393         * modules/unictype/property-id-continue-tests: New file.
43394         * modules/unictype/property-id-start-tests: New file.
43395         * modules/unictype/property-ideographic-tests: New file.
43396         * modules/unictype/property-ids-binary-operator-tests: New file.
43397         * modules/unictype/property-ids-trinary-operator-tests: New file.
43398         * modules/unictype/property-ignorable-control-tests: New file.
43399         * modules/unictype/property-iso-control-tests: New file.
43400         * modules/unictype/property-join-control-tests: New file.
43401         * modules/unictype/property-left-of-pair-tests: New file.
43402         * modules/unictype/property-line-separator-tests: New file.
43403         * modules/unictype/property-logical-order-exception-tests: New file.
43404         * modules/unictype/property-lowercase-tests: New file.
43405         * modules/unictype/property-math-tests: New file.
43406         * modules/unictype/property-non-break-tests: New file.
43407         * modules/unictype/property-not-a-character-tests: New file.
43408         * modules/unictype/property-numeric-tests: New file.
43409         * modules/unictype/property-other-alphabetic-tests: New file.
43410         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
43411         * modules/unictype/property-other-grapheme-extend-tests: New file.
43412         * modules/unictype/property-other-id-continue-tests: New file.
43413         * modules/unictype/property-other-id-start-tests: New file.
43414         * modules/unictype/property-other-lowercase-tests: New file.
43415         * modules/unictype/property-other-math-tests: New file.
43416         * modules/unictype/property-other-uppercase-tests: New file.
43417         * modules/unictype/property-paired-punctuation-tests: New file.
43418         * modules/unictype/property-paragraph-separator-tests: New file.
43419         * modules/unictype/property-pattern-syntax-tests: New file.
43420         * modules/unictype/property-pattern-white-space-tests: New file.
43421         * modules/unictype/property-private-use-tests: New file.
43422         * modules/unictype/property-punctuation-tests: New file.
43423         * modules/unictype/property-quotation-mark-tests: New file.
43424         * modules/unictype/property-radical-tests: New file.
43425         * modules/unictype/property-sentence-terminal-tests: New file.
43426         * modules/unictype/property-soft-dotted-tests: New file.
43427         * modules/unictype/property-space-tests: New file.
43428         * modules/unictype/property-terminal-punctuation-tests: New file.
43429         * modules/unictype/property-test-tests: New file.
43430         * modules/unictype/property-titlecase-tests: New file.
43431         * modules/unictype/property-unassigned-code-value-tests: New file.
43432         * modules/unictype/property-unified-ideograph-tests: New file.
43433         * modules/unictype/property-uppercase-tests: New file.
43434         * modules/unictype/property-variation-selector-tests: New file.
43435         * modules/unictype/property-white-space-tests: New file.
43436         * modules/unictype/property-xid-continue-tests: New file.
43437         * modules/unictype/property-xid-start-tests: New file.
43438         * modules/unictype/property-zero-width-tests: New file.
43439         * modules/unictype/scripts-tests: New file.
43440         * modules/unictype/syntax-c-ident-tests: New file.
43441         * modules/unictype/syntax-c-whitespace-tests: New file.
43442         * modules/unictype/syntax-java-ident-tests: New file.
43443         * modules/unictype/syntax-java-whitespace-tests: New file.
43444         * tests/unictype/test-bidi_byname.c: New file.
43445         * tests/unictype/test-bidi_name.c: New file.
43446         * tests/unictype/test-bidi_of.c: New file.
43447         * tests/unictype/test-bidi_test.c: New file.
43448         * tests/unictype/test-block_list.c: New file.
43449         * tests/unictype/test-block_of.c: New file.
43450         * tests/unictype/test-block_test.c: New file.
43451         * tests/unictype/test-categ_and.c: New file.
43452         * tests/unictype/test-categ_and_not.c: New file.
43453         * tests/unictype/test-categ_byname.c: New file.
43454         * tests/unictype/test-categ_name.c: New file.
43455         * tests/unictype/test-categ_none.c: New file.
43456         * tests/unictype/test-categ_of.c: New file.
43457         * tests/unictype/test-categ_or.c: New file.
43458         * tests/unictype/test-categ_test_withtable.c: New file.
43459         * tests/unictype/test-combining.c: New file.
43460         * tests/unictype/test-decdigit.c: New file.
43461         * tests/unictype/test-digit.c: New file.
43462         * tests/unictype/test-mirror.c: New file.
43463         * tests/unictype/test-numeric.c: New file.
43464         * tests/unictype/test-pr_byname.c: New file.
43465         * tests/unictype/test-pr_test.c: New file.
43466         * tests/unictype/test-predicate-part1.h: New file.
43467         * tests/unictype/test-predicate-part2.h: New file.
43468         * tests/unictype/test-scripts.c: New file.
43469         * tests/unictype/test-sy_c_ident.c: New file.
43470         * tests/unictype/test-sy_java_ident.c: New file.
43471
43472         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
43473         for Unicode 5.0.0.
43474         * tests/unictype/test-categ_Cc.c: Likewise.
43475         * tests/unictype/test-categ_Cf.c: Likewise.
43476         * tests/unictype/test-categ_Cn.c: Likewise.
43477         * tests/unictype/test-categ_Co.c: Likewise.
43478         * tests/unictype/test-categ_Cs.c: Likewise.
43479         * tests/unictype/test-categ_L.c: Likewise.
43480         * tests/unictype/test-categ_Ll.c: Likewise.
43481         * tests/unictype/test-categ_Lm.c: Likewise.
43482         * tests/unictype/test-categ_Lo.c: Likewise.
43483         * tests/unictype/test-categ_Lt.c: Likewise.
43484         * tests/unictype/test-categ_Lu.c: Likewise.
43485         * tests/unictype/test-categ_M.c: Likewise.
43486         * tests/unictype/test-categ_Mc.c: Likewise.
43487         * tests/unictype/test-categ_Me.c: Likewise.
43488         * tests/unictype/test-categ_Mn.c: Likewise.
43489         * tests/unictype/test-categ_N.c: Likewise.
43490         * tests/unictype/test-categ_Nd.c: Likewise.
43491         * tests/unictype/test-categ_Nl.c: Likewise.
43492         * tests/unictype/test-categ_No.c: Likewise.
43493         * tests/unictype/test-categ_P.c: Likewise.
43494         * tests/unictype/test-categ_Pc.c: Likewise.
43495         * tests/unictype/test-categ_Pd.c: Likewise.
43496         * tests/unictype/test-categ_Pe.c: Likewise.
43497         * tests/unictype/test-categ_Pf.c: Likewise.
43498         * tests/unictype/test-categ_Pi.c: Likewise.
43499         * tests/unictype/test-categ_Po.c: Likewise.
43500         * tests/unictype/test-categ_Ps.c: Likewise.
43501         * tests/unictype/test-categ_S.c: Likewise.
43502         * tests/unictype/test-categ_Sc.c: Likewise.
43503         * tests/unictype/test-categ_Sk.c: Likewise.
43504         * tests/unictype/test-categ_Sm.c: Likewise.
43505         * tests/unictype/test-categ_So.c: Likewise.
43506         * tests/unictype/test-categ_Z.c: Likewise.
43507         * tests/unictype/test-categ_Zl.c: Likewise.
43508         * tests/unictype/test-categ_Zp.c: Likewise.
43509         * tests/unictype/test-categ_Zs.c: Likewise.
43510         * tests/unictype/test-ctype_alnum.c: Likewise.
43511         * tests/unictype/test-ctype_alpha.c: Likewise.
43512         * tests/unictype/test-ctype_blank.c: Likewise.
43513         * tests/unictype/test-ctype_cntrl.c: Likewise.
43514         * tests/unictype/test-ctype_digit.c: Likewise.
43515         * tests/unictype/test-ctype_graph.c: Likewise.
43516         * tests/unictype/test-ctype_lower.c: Likewise.
43517         * tests/unictype/test-ctype_print.c: Likewise.
43518         * tests/unictype/test-ctype_punct.c: Likewise.
43519         * tests/unictype/test-ctype_space.c: Likewise.
43520         * tests/unictype/test-ctype_upper.c: Likewise.
43521         * tests/unictype/test-ctype_xdigit.c: Likewise.
43522         * tests/unictype/test-decdigit.h: Likewise.
43523         * tests/unictype/test-digit.h: Likewise.
43524         * tests/unictype/test-numeric.h: Likewise.
43525         * tests/unictype/test-pr_alphabetic.c: Likewise.
43526         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
43527         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
43528         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
43529         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
43530         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
43531         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
43532         * tests/unictype/test-pr_bidi_control.c: Likewise.
43533         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
43534         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
43535         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
43536         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
43537         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
43538         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
43539         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
43540         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
43541         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
43542         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
43543         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
43544         * tests/unictype/test-pr_combining.c: Likewise.
43545         * tests/unictype/test-pr_composite.c: Likewise.
43546         * tests/unictype/test-pr_currency_symbol.c: Likewise.
43547         * tests/unictype/test-pr_dash.c: Likewise.
43548         * tests/unictype/test-pr_decimal_digit.c: Likewise.
43549         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
43550         * tests/unictype/test-pr_deprecated.c: Likewise.
43551         * tests/unictype/test-pr_diacritic.c: Likewise.
43552         * tests/unictype/test-pr_extender.c: Likewise.
43553         * tests/unictype/test-pr_format_control.c: Likewise.
43554         * tests/unictype/test-pr_grapheme_base.c: Likewise.
43555         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
43556         * tests/unictype/test-pr_grapheme_link.c: Likewise.
43557         * tests/unictype/test-pr_hex_digit.c: Likewise.
43558         * tests/unictype/test-pr_hyphen.c: Likewise.
43559         * tests/unictype/test-pr_id_continue.c: Likewise.
43560         * tests/unictype/test-pr_id_start.c: Likewise.
43561         * tests/unictype/test-pr_ideographic.c: Likewise.
43562         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
43563         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
43564         * tests/unictype/test-pr_ignorable_control.c: Likewise.
43565         * tests/unictype/test-pr_iso_control.c: Likewise.
43566         * tests/unictype/test-pr_join_control.c: Likewise.
43567         * tests/unictype/test-pr_left_of_pair.c: Likewise.
43568         * tests/unictype/test-pr_line_separator.c: Likewise.
43569         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
43570         * tests/unictype/test-pr_lowercase.c: Likewise.
43571         * tests/unictype/test-pr_math.c: Likewise.
43572         * tests/unictype/test-pr_non_break.c: Likewise.
43573         * tests/unictype/test-pr_not_a_character.c: Likewise.
43574         * tests/unictype/test-pr_numeric.c: Likewise.
43575         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
43576         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
43577         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
43578         * tests/unictype/test-pr_other_id_continue.c: Likewise.
43579         * tests/unictype/test-pr_other_id_start.c: Likewise.
43580         * tests/unictype/test-pr_other_lowercase.c: Likewise.
43581         * tests/unictype/test-pr_other_math.c: Likewise.
43582         * tests/unictype/test-pr_other_uppercase.c: Likewise.
43583         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
43584         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
43585         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
43586         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
43587         * tests/unictype/test-pr_private_use.c: Likewise.
43588         * tests/unictype/test-pr_punctuation.c: Likewise.
43589         * tests/unictype/test-pr_quotation_mark.c: Likewise.
43590         * tests/unictype/test-pr_radical.c: Likewise.
43591         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
43592         * tests/unictype/test-pr_soft_dotted.c: Likewise.
43593         * tests/unictype/test-pr_space.c: Likewise.
43594         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
43595         * tests/unictype/test-pr_titlecase.c: Likewise.
43596         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
43597         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
43598         * tests/unictype/test-pr_uppercase.c: Likewise.
43599         * tests/unictype/test-pr_variation_selector.c: Likewise.
43600         * tests/unictype/test-pr_white_space.c: Likewise.
43601         * tests/unictype/test-pr_xid_continue.c: Likewise.
43602         * tests/unictype/test-pr_xid_start.c: Likewise.
43603         * tests/unictype/test-pr_zero_width.c: Likewise.
43604         * tests/unictype/test-sy_c_whitespace.c: Likewise.
43605         * tests/unictype/test-sy_java_whitespace.c: Likewise.
43606
43607 2007-11-12  Bruno Haible  <bruno@clisp.org>
43608
43609         Unicode character classification functions.
43610         * lib/unictype.h: New file.
43611         * modules/unictype/base: New file.
43612         * modules/unictype/category-L: New file.
43613         * modules/unictype/category-Lu: New file.
43614         * modules/unictype/category-Ll: New file.
43615         * modules/unictype/category-Lt: New file.
43616         * modules/unictype/category-Lm: New file.
43617         * modules/unictype/category-Lo: New file.
43618         * modules/unictype/category-M: New file.
43619         * modules/unictype/category-Mn: New file.
43620         * modules/unictype/category-Mc: New file.
43621         * modules/unictype/category-Me: New file.
43622         * modules/unictype/category-N: New file.
43623         * modules/unictype/category-Nd: New file.
43624         * modules/unictype/category-Nl: New file.
43625         * modules/unictype/category-No: New file.
43626         * modules/unictype/category-P: New file.
43627         * modules/unictype/category-Pc: New file.
43628         * modules/unictype/category-Pd: New file.
43629         * modules/unictype/category-Ps: New file.
43630         * modules/unictype/category-Pe: New file.
43631         * modules/unictype/category-Pi: New file.
43632         * modules/unictype/category-Pf: New file.
43633         * modules/unictype/category-Po: New file.
43634         * modules/unictype/category-S: New file.
43635         * modules/unictype/category-Sm: New file.
43636         * modules/unictype/category-Sc: New file.
43637         * modules/unictype/category-Sk: New file.
43638         * modules/unictype/category-So: New file.
43639         * modules/unictype/category-Z: New file.
43640         * modules/unictype/category-Zs: New file.
43641         * modules/unictype/category-Zl: New file.
43642         * modules/unictype/category-Zp: New file.
43643         * modules/unictype/category-C: New file.
43644         * modules/unictype/category-Cc: New file.
43645         * modules/unictype/category-Cf: New file.
43646         * modules/unictype/category-Cs: New file.
43647         * modules/unictype/category-Co: New file.
43648         * modules/unictype/category-Cn: New file.
43649         * modules/unictype/category-or: New file.
43650         * modules/unictype/category-of: New file.
43651         * modules/unictype/category-test: New file.
43652         * modules/unictype/category-test-withtable: New file.
43653         * modules/unictype/category-byname: New file.
43654         * modules/unictype/category-none: New file.
43655         * modules/unictype/category-and: New file.
43656         * modules/unictype/category-and-not: New file.
43657         * modules/unictype/category-name: New file.
43658         * modules/unictype/combining-class: New file.
43659         * modules/unictype/category-all: New file.
43660         * modules/unictype/bidicategory-all: New file.
43661         * modules/unictype/bidicategory-byname: New file.
43662         * modules/unictype/bidicategory-name: New file.
43663         * modules/unictype/bidicategory-of: New file.
43664         * modules/unictype/bidicategory-test: New file.
43665         * modules/unictype/decimal-digit: New file.
43666         * modules/unictype/digit: New file.
43667         * modules/unictype/numeric: New file.
43668         * modules/unictype/mirror: New file.
43669         * modules/unictype/property-white-space: New file.
43670         * modules/unictype/property-alphabetic: New file.
43671         * modules/unictype/property-other-alphabetic: New file.
43672         * modules/unictype/property-not-a-character: New file.
43673         * modules/unictype/property-default-ignorable-code-point: New file.
43674         * modules/unictype/property-other-default-ignorable-code-point: New
43675         file.
43676         * modules/unictype/property-deprecated: New file.
43677         * modules/unictype/property-logical-order-exception: New file.
43678         * modules/unictype/property-variation-selector: New file.
43679         * modules/unictype/property-private-use: New file.
43680         * modules/unictype/property-unassigned-code-value: New file.
43681         * modules/unictype/property-uppercase: New file.
43682         * modules/unictype/property-other-uppercase: New file.
43683         * modules/unictype/property-lowercase: New file.
43684         * modules/unictype/property-other-lowercase: New file.
43685         * modules/unictype/property-titlecase: New file.
43686         * modules/unictype/property-soft-dotted: New file.
43687         * modules/unictype/property-id-start: New file.
43688         * modules/unictype/property-other-id-start: New file.
43689         * modules/unictype/property-id-continue: New file.
43690         * modules/unictype/property-other-id-continue: New file.
43691         * modules/unictype/property-xid-start: New file.
43692         * modules/unictype/property-xid-continue: New file.
43693         * modules/unictype/property-pattern-white-space: New file.
43694         * modules/unictype/property-pattern-syntax: New file.
43695         * modules/unictype/property-join-control: New file.
43696         * modules/unictype/property-grapheme-base: New file.
43697         * modules/unictype/property-grapheme-extend: New file.
43698         * modules/unictype/property-other-grapheme-extend: New file.
43699         * modules/unictype/property-grapheme-link: New file.
43700         * modules/unictype/property-bidi-control: New file.
43701         * modules/unictype/property-bidi-left-to-right: New file.
43702         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
43703         * modules/unictype/property-bidi-arabic-right-to-left: New file.
43704         * modules/unictype/property-bidi-european-digit: New file.
43705         * modules/unictype/property-bidi-eur-num-separator: New file.
43706         * modules/unictype/property-bidi-eur-num-terminator: New file.
43707         * modules/unictype/property-bidi-arabic-digit: New file.
43708         * modules/unictype/property-bidi-common-separator: New file.
43709         * modules/unictype/property-bidi-block-separator: New file.
43710         * modules/unictype/property-bidi-segment-separator: New file.
43711         * modules/unictype/property-bidi-whitespace: New file.
43712         * modules/unictype/property-bidi-non-spacing-mark: New file.
43713         * modules/unictype/property-bidi-boundary-neutral: New file.
43714         * modules/unictype/property-bidi-pdf: New file.
43715         * modules/unictype/property-bidi-embedding-or-override: New file.
43716         * modules/unictype/property-bidi-other-neutral: New file.
43717         * modules/unictype/property-hex-digit: New file.
43718         * modules/unictype/property-ascii-hex-digit: New file.
43719         * modules/unictype/property-ideographic: New file.
43720         * modules/unictype/property-unified-ideograph: New file.
43721         * modules/unictype/property-radical: New file.
43722         * modules/unictype/property-ids-binary-operator: New file.
43723         * modules/unictype/property-ids-trinary-operator: New file.
43724         * modules/unictype/property-zero-width: New file.
43725         * modules/unictype/property-space: New file.
43726         * modules/unictype/property-non-break: New file.
43727         * modules/unictype/property-iso-control: New file.
43728         * modules/unictype/property-format-control: New file.
43729         * modules/unictype/property-dash: New file.
43730         * modules/unictype/property-hyphen: New file.
43731         * modules/unictype/property-punctuation: New file.
43732         * modules/unictype/property-line-separator: New file.
43733         * modules/unictype/property-paragraph-separator: New file.
43734         * modules/unictype/property-quotation-mark: New file.
43735         * modules/unictype/property-sentence-terminal: New file.
43736         * modules/unictype/property-terminal-punctuation: New file.
43737         * modules/unictype/property-currency-symbol: New file.
43738         * modules/unictype/property-math: New file.
43739         * modules/unictype/property-other-math: New file.
43740         * modules/unictype/property-paired-punctuation: New file.
43741         * modules/unictype/property-left-of-pair: New file.
43742         * modules/unictype/property-combining: New file.
43743         * modules/unictype/property-composite: New file.
43744         * modules/unictype/property-decimal-digit: New file.
43745         * modules/unictype/property-numeric: New file.
43746         * modules/unictype/property-diacritic: New file.
43747         * modules/unictype/property-extender: New file.
43748         * modules/unictype/property-ignorable-control: New file.
43749         * modules/unictype/property-test: New file.
43750         * modules/unictype/property-byname: New file.
43751         * modules/unictype/property-all: New file.
43752         * modules/unictype/scripts: New file.
43753         * modules/unictype/scripts-all: New file.
43754         * modules/unictype/block-of: New file.
43755         * modules/unictype/block-test: New file.
43756         * modules/unictype/block-list: New file.
43757         * modules/unictype/block-all: New file.
43758         * modules/unictype/syntax-c-whitespace: New file.
43759         * modules/unictype/syntax-java-whitespace: New file.
43760         * modules/unictype/syntax-c-ident: New file.
43761         * modules/unictype/syntax-java-ident: New file.
43762         * modules/unictype/ctype-alnum: New file.
43763         * modules/unictype/ctype-alpha: New file.
43764         * modules/unictype/ctype-cntrl: New file.
43765         * modules/unictype/ctype-digit: New file.
43766         * modules/unictype/ctype-graph: New file.
43767         * modules/unictype/ctype-lower: New file.
43768         * modules/unictype/ctype-print: New file.
43769         * modules/unictype/ctype-punct: New file.
43770         * modules/unictype/ctype-space: New file.
43771         * modules/unictype/ctype-upper: New file.
43772         * modules/unictype/ctype-xdigit: New file.
43773         * modules/unictype/ctype-blank: New file.
43774         * lib/unictype/bidi_byname.c: New file.
43775         * lib/unictype/bidi_name.c: New file.
43776         * lib/unictype/bidi_of.c: New file.
43777         * lib/unictype/bidi_test.c: New file.
43778         * lib/unictype/bitmap.h: New file.
43779         * lib/unictype/block_test.c: New file.
43780         * lib/unictype/blocks.c: New file.
43781         * lib/unictype/categ_C.c: New file.
43782         * lib/unictype/categ_Cc.c: New file.
43783         * lib/unictype/categ_Cf.c: New file.
43784         * lib/unictype/categ_Cn.c: New file.
43785         * lib/unictype/categ_Co.c: New file.
43786         * lib/unictype/categ_Cs.c: New file.
43787         * lib/unictype/categ_L.c: New file.
43788         * lib/unictype/categ_Ll.c: New file.
43789         * lib/unictype/categ_Lm.c: New file.
43790         * lib/unictype/categ_Lo.c: New file.
43791         * lib/unictype/categ_Lt.c: New file.
43792         * lib/unictype/categ_Lu.c: New file.
43793         * lib/unictype/categ_M.c: New file.
43794         * lib/unictype/categ_Mc.c: New file.
43795         * lib/unictype/categ_Me.c: New file.
43796         * lib/unictype/categ_Mn.c: New file.
43797         * lib/unictype/categ_N.c: New file.
43798         * lib/unictype/categ_Nd.c: New file.
43799         * lib/unictype/categ_Nl.c: New file.
43800         * lib/unictype/categ_No.c: New file.
43801         * lib/unictype/categ_P.c: New file.
43802         * lib/unictype/categ_Pc.c: New file.
43803         * lib/unictype/categ_Pd.c: New file.
43804         * lib/unictype/categ_Pe.c: New file.
43805         * lib/unictype/categ_Pf.c: New file.
43806         * lib/unictype/categ_Pi.c: New file.
43807         * lib/unictype/categ_Po.c: New file.
43808         * lib/unictype/categ_Ps.c: New file.
43809         * lib/unictype/categ_S.c: New file.
43810         * lib/unictype/categ_Sc.c: New file.
43811         * lib/unictype/categ_Sk.c: New file.
43812         * lib/unictype/categ_Sm.c: New file.
43813         * lib/unictype/categ_So.c: New file.
43814         * lib/unictype/categ_Z.c: New file.
43815         * lib/unictype/categ_Zl.c: New file.
43816         * lib/unictype/categ_Zp.c: New file.
43817         * lib/unictype/categ_Zs.c: New file.
43818         * lib/unictype/categ_and.c: New file.
43819         * lib/unictype/categ_and_not.c: New file.
43820         * lib/unictype/categ_byname.c: New file.
43821         * lib/unictype/categ_name.c: New file.
43822         * lib/unictype/categ_none.c: New file.
43823         * lib/unictype/categ_of.c: New file.
43824         * lib/unictype/categ_or.c: New file.
43825         * lib/unictype/categ_test.c: New file.
43826         * lib/unictype/combining.c: New file.
43827         * lib/unictype/ctype_alnum.c: New file.
43828         * lib/unictype/ctype_alpha.c: New file.
43829         * lib/unictype/ctype_blank.c: New file.
43830         * lib/unictype/ctype_cntrl.c: New file.
43831         * lib/unictype/ctype_digit.c: New file.
43832         * lib/unictype/ctype_graph.c: New file.
43833         * lib/unictype/ctype_lower.c: New file.
43834         * lib/unictype/ctype_print.c: New file.
43835         * lib/unictype/ctype_punct.c: New file.
43836         * lib/unictype/ctype_space.c: New file.
43837         * lib/unictype/ctype_upper.c: New file.
43838         * lib/unictype/ctype_xdigit.c: New file.
43839         * lib/unictype/decdigit.c: New file.
43840         * lib/unictype/digit.c: New file.
43841         * lib/unictype/identsyntaxmap.h: New file.
43842         * lib/unictype/mirror.c: New file.
43843         * lib/unictype/numeric.c: New file.
43844         * lib/unictype/pr_alphabetic.c: New file.
43845         * lib/unictype/pr_ascii_hex_digit.c: New file.
43846         * lib/unictype/pr_bidi_arabic_digit.c: New file.
43847         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
43848         * lib/unictype/pr_bidi_block_separator.c: New file.
43849         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
43850         * lib/unictype/pr_bidi_common_separator.c: New file.
43851         * lib/unictype/pr_bidi_control.c: New file.
43852         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
43853         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
43854         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
43855         * lib/unictype/pr_bidi_european_digit.c: New file.
43856         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
43857         * lib/unictype/pr_bidi_left_to_right.c: New file.
43858         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
43859         * lib/unictype/pr_bidi_other_neutral.c: New file.
43860         * lib/unictype/pr_bidi_pdf.c: New file.
43861         * lib/unictype/pr_bidi_segment_separator.c: New file.
43862         * lib/unictype/pr_bidi_whitespace.c: New file.
43863         * lib/unictype/pr_byname.c: New file.
43864         * lib/unictype/pr_byname.gperf: New file.
43865         * lib/unictype/pr_combining.c: New file.
43866         * lib/unictype/pr_composite.c: New file.
43867         * lib/unictype/pr_currency_symbol.c: New file.
43868         * lib/unictype/pr_dash.c: New file.
43869         * lib/unictype/pr_decimal_digit.c: New file.
43870         * lib/unictype/pr_default_ignorable_code_point.c: New file.
43871         * lib/unictype/pr_deprecated.c: New file.
43872         * lib/unictype/pr_diacritic.c: New file.
43873         * lib/unictype/pr_extender.c: New file.
43874         * lib/unictype/pr_format_control.c: New file.
43875         * lib/unictype/pr_grapheme_base.c: New file.
43876         * lib/unictype/pr_grapheme_extend.c: New file.
43877         * lib/unictype/pr_grapheme_link.c: New file.
43878         * lib/unictype/pr_hex_digit.c: New file.
43879         * lib/unictype/pr_hyphen.c: New file.
43880         * lib/unictype/pr_id_continue.c: New file.
43881         * lib/unictype/pr_id_start.c: New file.
43882         * lib/unictype/pr_ideographic.c: New file.
43883         * lib/unictype/pr_ids_binary_operator.c: New file.
43884         * lib/unictype/pr_ids_trinary_operator.c: New file.
43885         * lib/unictype/pr_ignorable_control.c: New file.
43886         * lib/unictype/pr_iso_control.c: New file.
43887         * lib/unictype/pr_join_control.c: New file.
43888         * lib/unictype/pr_left_of_pair.c: New file.
43889         * lib/unictype/pr_line_separator.c: New file.
43890         * lib/unictype/pr_logical_order_exception.c: New file.
43891         * lib/unictype/pr_lowercase.c: New file.
43892         * lib/unictype/pr_math.c: New file.
43893         * lib/unictype/pr_non_break.c: New file.
43894         * lib/unictype/pr_not_a_character.c: New file.
43895         * lib/unictype/pr_numeric.c: New file.
43896         * lib/unictype/pr_other_alphabetic.c: New file.
43897         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
43898         * lib/unictype/pr_other_grapheme_extend.c: New file.
43899         * lib/unictype/pr_other_id_continue.c: New file.
43900         * lib/unictype/pr_other_id_start.c: New file.
43901         * lib/unictype/pr_other_lowercase.c: New file.
43902         * lib/unictype/pr_other_math.c: New file.
43903         * lib/unictype/pr_other_uppercase.c: New file.
43904         * lib/unictype/pr_paired_punctuation.c: New file.
43905         * lib/unictype/pr_paragraph_separator.c: New file.
43906         * lib/unictype/pr_pattern_syntax.c: New file.
43907         * lib/unictype/pr_pattern_white_space.c: New file.
43908         * lib/unictype/pr_private_use.c: New file.
43909         * lib/unictype/pr_punctuation.c: New file.
43910         * lib/unictype/pr_quotation_mark.c: New file.
43911         * lib/unictype/pr_radical.c: New file.
43912         * lib/unictype/pr_sentence_terminal.c: New file.
43913         * lib/unictype/pr_soft_dotted.c: New file.
43914         * lib/unictype/pr_space.c: New file.
43915         * lib/unictype/pr_terminal_punctuation.c: New file.
43916         * lib/unictype/pr_test.c: New file.
43917         * lib/unictype/pr_titlecase.c: New file.
43918         * lib/unictype/pr_unassigned_code_value.c: New file.
43919         * lib/unictype/pr_unified_ideograph.c: New file.
43920         * lib/unictype/pr_uppercase.c: New file.
43921         * lib/unictype/pr_variation_selector.c: New file.
43922         * lib/unictype/pr_white_space.c: New file.
43923         * lib/unictype/pr_xid_continue.c: New file.
43924         * lib/unictype/pr_xid_start.c: New file.
43925         * lib/unictype/pr_zero_width.c: New file.
43926         * lib/unictype/scripts.c: New file.
43927         * lib/unictype/sy_c_ident.c: New file.
43928         * lib/unictype/sy_c_whitespace.c: New file.
43929         * lib/unictype/sy_java_ident.c: New file.
43930         * lib/unictype/sy_java_whitespace.c: New file.
43931
43932         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
43933         Unicode 5.0.0.
43934         * lib/unictype/blocks.h: Likewise.
43935         * lib/unictype/categ_C.h: Likewise.
43936         * lib/unictype/categ_Cc.h: Likewise.
43937         * lib/unictype/categ_Cf.h: Likewise.
43938         * lib/unictype/categ_Cn.h: Likewise.
43939         * lib/unictype/categ_Co.h: Likewise.
43940         * lib/unictype/categ_Cs.h: Likewise.
43941         * lib/unictype/categ_L.h: Likewise.
43942         * lib/unictype/categ_Ll.h: Likewise.
43943         * lib/unictype/categ_Lm.h: Likewise.
43944         * lib/unictype/categ_Lo.h: Likewise.
43945         * lib/unictype/categ_Lt.h: Likewise.
43946         * lib/unictype/categ_Lu.h: Likewise.
43947         * lib/unictype/categ_M.h: Likewise.
43948         * lib/unictype/categ_Mc.h: Likewise.
43949         * lib/unictype/categ_Me.h: Likewise.
43950         * lib/unictype/categ_Mn.h: Likewise.
43951         * lib/unictype/categ_N.h: Likewise.
43952         * lib/unictype/categ_Nd.h: Likewise.
43953         * lib/unictype/categ_Nl.h: Likewise.
43954         * lib/unictype/categ_No.h: Likewise.
43955         * lib/unictype/categ_P.h: Likewise.
43956         * lib/unictype/categ_Pc.h: Likewise.
43957         * lib/unictype/categ_Pd.h: Likewise.
43958         * lib/unictype/categ_Pe.h: Likewise.
43959         * lib/unictype/categ_Pf.h: Likewise.
43960         * lib/unictype/categ_Pi.h: Likewise.
43961         * lib/unictype/categ_Po.h: Likewise.
43962         * lib/unictype/categ_Ps.h: Likewise.
43963         * lib/unictype/categ_S.h: Likewise.
43964         * lib/unictype/categ_Sc.h: Likewise.
43965         * lib/unictype/categ_Sk.h: Likewise.
43966         * lib/unictype/categ_Sm.h: Likewise.
43967         * lib/unictype/categ_So.h: Likewise.
43968         * lib/unictype/categ_Z.h: Likewise.
43969         * lib/unictype/categ_Zl.h: Likewise.
43970         * lib/unictype/categ_Zp.h: Likewise.
43971         * lib/unictype/categ_Zs.h: Likewise.
43972         * lib/unictype/categ_of.h: Likewise.
43973         * lib/unictype/combining.h: Likewise.
43974         * lib/unictype/ctype_alnum.h: Likewise.
43975         * lib/unictype/ctype_alpha.h: Likewise.
43976         * lib/unictype/ctype_blank.h: Likewise.
43977         * lib/unictype/ctype_cntrl.h: Likewise.
43978         * lib/unictype/ctype_digit.h: Likewise.
43979         * lib/unictype/ctype_graph.h: Likewise.
43980         * lib/unictype/ctype_lower.h: Likewise.
43981         * lib/unictype/ctype_print.h: Likewise.
43982         * lib/unictype/ctype_punct.h: Likewise.
43983         * lib/unictype/ctype_space.h: Likewise.
43984         * lib/unictype/ctype_upper.h: Likewise.
43985         * lib/unictype/ctype_xdigit.h: Likewise.
43986         * lib/unictype/decdigit.h: Likewise.
43987         * lib/unictype/digit.h: Likewise.
43988         * lib/unictype/mirror.h: Likewise.
43989         * lib/unictype/numeric.h: Likewise.
43990         * lib/unictype/pr_alphabetic.h: Likewise.
43991         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43992         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43993         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43994         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43995         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43996         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43997         * lib/unictype/pr_bidi_control.h: Likewise.
43998         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43999         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44000         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44001         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44002         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44003         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44004         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44005         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44006         * lib/unictype/pr_bidi_pdf.h: Likewise.
44007         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44008         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44009         * lib/unictype/pr_combining.h: Likewise.
44010         * lib/unictype/pr_composite.h: Likewise.
44011         * lib/unictype/pr_currency_symbol.h: Likewise.
44012         * lib/unictype/pr_dash.h: Likewise.
44013         * lib/unictype/pr_decimal_digit.h: Likewise.
44014         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44015         * lib/unictype/pr_deprecated.h: Likewise.
44016         * lib/unictype/pr_diacritic.h: Likewise.
44017         * lib/unictype/pr_extender.h: Likewise.
44018         * lib/unictype/pr_format_control.h: Likewise.
44019         * lib/unictype/pr_grapheme_base.h: Likewise.
44020         * lib/unictype/pr_grapheme_extend.h: Likewise.
44021         * lib/unictype/pr_grapheme_link.h: Likewise.
44022         * lib/unictype/pr_hex_digit.h: Likewise.
44023         * lib/unictype/pr_hyphen.h: Likewise.
44024         * lib/unictype/pr_id_continue.h: Likewise.
44025         * lib/unictype/pr_id_start.h: Likewise.
44026         * lib/unictype/pr_ideographic.h: Likewise.
44027         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44028         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44029         * lib/unictype/pr_ignorable_control.h: Likewise.
44030         * lib/unictype/pr_iso_control.h: Likewise.
44031         * lib/unictype/pr_join_control.h: Likewise.
44032         * lib/unictype/pr_left_of_pair.h: Likewise.
44033         * lib/unictype/pr_line_separator.h: Likewise.
44034         * lib/unictype/pr_logical_order_exception.h: Likewise.
44035         * lib/unictype/pr_lowercase.h: Likewise.
44036         * lib/unictype/pr_math.h: Likewise.
44037         * lib/unictype/pr_non_break.h: Likewise.
44038         * lib/unictype/pr_not_a_character.h: Likewise.
44039         * lib/unictype/pr_numeric.h: Likewise.
44040         * lib/unictype/pr_other_alphabetic.h: Likewise.
44041         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44042         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44043         * lib/unictype/pr_other_id_continue.h: Likewise.
44044         * lib/unictype/pr_other_id_start.h: Likewise.
44045         * lib/unictype/pr_other_lowercase.h: Likewise.
44046         * lib/unictype/pr_other_math.h: Likewise.
44047         * lib/unictype/pr_other_uppercase.h: Likewise.
44048         * lib/unictype/pr_paired_punctuation.h: Likewise.
44049         * lib/unictype/pr_paragraph_separator.h: Likewise.
44050         * lib/unictype/pr_pattern_syntax.h: Likewise.
44051         * lib/unictype/pr_pattern_white_space.h: Likewise.
44052         * lib/unictype/pr_private_use.h: Likewise.
44053         * lib/unictype/pr_punctuation.h: Likewise.
44054         * lib/unictype/pr_quotation_mark.h: Likewise.
44055         * lib/unictype/pr_radical.h: Likewise.
44056         * lib/unictype/pr_sentence_terminal.h: Likewise.
44057         * lib/unictype/pr_soft_dotted.h: Likewise.
44058         * lib/unictype/pr_space.h: Likewise.
44059         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44060         * lib/unictype/pr_titlecase.h: Likewise.
44061         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44062         * lib/unictype/pr_unified_ideograph.h: Likewise.
44063         * lib/unictype/pr_uppercase.h: Likewise.
44064         * lib/unictype/pr_variation_selector.h: Likewise.
44065         * lib/unictype/pr_white_space.h: Likewise.
44066         * lib/unictype/pr_xid_continue.h: Likewise.
44067         * lib/unictype/pr_xid_start.h: Likewise.
44068         * lib/unictype/pr_zero_width.h: Likewise.
44069         * lib/unictype/scripts.h: Likewise.
44070         * lib/unictype/scripts_byname.gperf: Likewise.
44071         * lib/unictype/sy_c_ident.h: Likewise.
44072         * lib/unictype/sy_c_whitespace.h: Likewise.
44073         * lib/unictype/sy_java_ident.h: Likewise.
44074         * lib/unictype/sy_java_whitespace.h: Likewise.
44075
44076         * lib/unictype/Makefile: New file.
44077         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
44078         glibc.
44079         * lib/unictype/3level.h: New file, copied from glibc.
44080         * lib/unictype/3levelbit.h: New file.
44081
44082 2007-11-11  Bruno Haible  <bruno@clisp.org>
44083
44084         * modules/gperf: New file.
44085         * modules/iconv_open (Depends-on): Add it.
44086         (Makefile.am): Remove the GPERF definition.
44087
44088 2007-11-11  Bruno Haible  <bruno@clisp.org>
44089
44090         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
44091         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
44092
44093 2007-11-11  Bruno Haible  <bruno@clisp.org>
44094
44095         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
44096         (usage): Remove function.
44097
44098 2007-11-11  Bruno Haible  <bruno@clisp.org>
44099
44100         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
44101         gl_FUNC_CEILF_LIBS.
44102         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
44103         gl_FUNC_CEIL_LIBS.
44104         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
44105         gl_FUNC_CEILL_LIBS.
44106         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
44107         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
44108         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
44109
44110 2007-11-11  Bruno Haible  <bruno@clisp.org>
44111
44112         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
44113         roundf were declared but do not exist on functions.
44114         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
44115         roundl were declared but do not exist on functions.
44116         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
44117         HAVE_FLOORL_AND_CEILL, respectively.
44118         Needed for Sun C on Solaris 10.
44119
44120 2007-11-11  Bruno Haible  <bruno@clisp.org>
44121
44122         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
44123         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
44124         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
44125         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
44126         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
44127         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
44128         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
44129         HAVE_DECL_ROUNDF.
44130         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
44131         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
44132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
44133         of HAVE_DECL_ROUND*.
44134         * modules/math (Makefile.am): Update.
44135
44136 2007-11-10  Bruno Haible  <bruno@clisp.org>
44137
44138         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
44139         ptrdiff_t as m4/intl.m4.
44140
44141 2007-11-10  Jim Meyering  <meyering@redhat.com>
44142
44143         Avoid link failure for the argmatch test.
44144         * tests/test-argmatch.c (usage): Define function to avoid a link
44145         failure: argmatch_die requires a usage function.
44146
44147 2007-11-09  Bruno Haible  <bruno@clisp.org>
44148
44149         * doc/functions/snprintf.texi: Mention BeOS deficiency.
44150         * doc/functions/vsnprintf.texi: Likewise.
44151         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
44152         with a size argument < 2.
44153
44154 2007-11-09  Bruno Haible  <bruno@clisp.org>
44155
44156         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
44157         buffer. Fixes an inefficiency introduced on 2007-11-03.
44158
44159 2007-11-09  Bruno Haible  <bruno@clisp.org>
44160
44161         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
44162         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
44163
44164 2007-11-08  Jim Meyering  <meyering@redhat.com>
44165
44166         Change cache variable name prefix "jm_" to "gl_" everywhere.
44167         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
44168         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
44169         * m4/uptime.m4: s/gl_/jm_/
44170
44171 2007-11-07  Bruno Haible  <bruno@clisp.org>
44172
44173         Update to GNU gettext 0.17.
44174         * m4/intl.m4: Update to GNU gettext 0.17.
44175         * m4/po.m4: Likewise.
44176         * modules/gettext (Files): Remove m4/ulonglong.m4.
44177         (configure.ac): Require gettext infrastructure from version 0.17.
44178
44179 2007-11-06  Bruno Haible  <bruno@clisp.org>
44180
44181         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
44182         symbolic values are not defined in a public header.
44183         * lib/freadable.c (freadable) [QNX]: Likewise.
44184         * lib/freadahead.c (freadahead) [QNX]: Likewise.
44185         * lib/freading.c (freading) [QNX]: Likewise.
44186         * lib/fseterr.c (fseterr) [QNX]: Likewise.
44187         * lib/fwritable.c (fwritable) [QNX]: Likewise.
44188         * lib/fwriting.c (fwriting) [QNX]: Likewise.
44189         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
44190         Reported by Alain Magloire.
44191
44192         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
44193
44194 2007-11-05  Bruno Haible  <bruno@clisp.org>
44195
44196         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
44197         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
44198         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
44199         Reported by Eric Blake.
44200
44201 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44202             Bruno Haible  <bruno@clisp.org>
44203
44204         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
44205         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
44206         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
44207         (malloc): Undefine also before including <stdlib.h>.
44208         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
44209         Needed on OSF/1 4.0.
44210
44211 2007-11-05  Jim Meyering  <meyering@redhat.com>
44212
44213         git-version-gen: sync from coreutils.
44214         * build-aux/git-version-gen: Add comments.
44215         Change the first '-' to '.' in the snapshot version string,
44216         e.g., 6.9-377-08144 -> 6.9.377-08144
44217         Remove first parameter.
44218         Don't declare a version "-dirty" merely because a time
44219         stamp has changed.
44220
44221 2007-11-04  Bruno Haible  <bruno@clisp.org>
44222
44223         * lib/lock.h: Protect all macro definitions containing an 'if'
44224         statement through a "do { ... } while (0)".
44225         * lib/tls.h: Likewise.
44226
44227 2007-11-04  Bruno Haible  <bruno@clisp.org>
44228
44229         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
44230
44231 2007-11-04  Bruno Haible  <bruno@clisp.org>
44232
44233         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
44234         * modules/fprintf-posix (Depends-on): Add nocrash.
44235         * modules/snprintf-posix (Depends-on): Likewise.
44236         * modules/sprintf-posix (Depends-on): Likewise.
44237         * modules/vasnprintf-posix (Depends-on): Likewise.
44238         * modules/vasprintf-posix (Depends-on): Likewise.
44239         * modules/vfprintf-posix (Depends-on): Likewise.
44240         * modules/vsnprintf-posix (Depends-on): Likewise.
44241         * modules/vsprintf-posix (Depends-on): Likewise.
44242         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44243         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44244         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44245         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44246         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44247         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44248         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44249
44250 2007-11-04  Bruno Haible  <bruno@clisp.org>
44251
44252         * modules/nocrash: New file.
44253         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
44254         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
44255
44256 2007-11-04  Bruno Haible  <bruno@clisp.org>
44257
44258         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
44259         precision handling.
44260         * tests/test-vasprintf-posix.c (test_function): Likewise.
44261         * tests/test-snprintf-posix.h (test_function): Likewise.
44262         * tests/test-sprintf-posix.h (test_function): Likewise.
44263
44264         Fix *printf behaviour for large precisions on mingw and BeOS.
44265         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
44266         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
44267         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
44268         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44269         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44270         gl_PRINTF_PRECISION and test its result. Invoke
44271         gl_PREREQ_VASNPRINTF_PRECISION.
44272         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44273         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44274         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44275         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44276         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44277         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44278         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44279         * doc/functions/fprintf.texi: Update.
44280         * doc/functions/printf.texi: Update.
44281         * doc/functions/snprintf.texi: Update.
44282         * doc/functions/sprintf.texi: Update.
44283         * doc/functions/vfprintf.texi: Update.
44284         * doc/functions/vprintf.texi: Update.
44285         * doc/functions/vsnprintf.texi: Update.
44286         * doc/functions/vsprintf.texi: Update.
44287
44288 2007-11-04  Bruno Haible  <bruno@clisp.org>
44289
44290         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
44291
44292 2007-11-04  Bruno Haible  <bruno@clisp.org>
44293
44294         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
44295         Reported by Sylvain Beucler <beuc@gnu.org>.
44296
44297 2007-11-03  Bruno Haible  <bruno@clisp.org>
44298
44299         * tests/test-fprintf-posix2.sh: New file.
44300         * tests/test-fprintf-posix2.c: New file.
44301         * modules/fprintf-posix-tests (Files): Add them.
44302         (TESTS): Add test-fprintf-posix2.sh.
44303         (configure.ac): Check for getrlimit and setrlimit.
44304         (check_PROGRAMS): Add test-fprintf-posix2.
44305
44306         * tests/test-printf-posix2.sh: New file.
44307         * tests/test-printf-posix2.c: New file.
44308         * modules/printf-posix-tests (Files): Add them.
44309         (TESTS): Add test-printf-posix2.sh.
44310         (configure.ac): Check for getrlimit and setrlimit.
44311         (check_PROGRAMS): Add test-printf-posix2.
44312
44313         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
44314         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
44315         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
44316         (decode_double): New function, copied from decode_long_double.
44317         (scale10_round_decimal_decoded): New function, extracted from
44318         scale10_round_decimal_long_double.
44319         (scale10_round_decimal_long_double): Use it.
44320         (scale10_round_decimal_double): New function.
44321         (floorlog10): New function.
44322         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
44323         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
44324         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44325         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44326         gl_PRINTF_ENOMEM and test its result. Invoke
44327         gl_PREREQ_VASNPRINTF_ENOMEM.
44328         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44329         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44330         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44331         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44332         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44333         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44334         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44335         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
44336         * modules/snprintf-posix (Depends-on): Likewise.
44337         * modules/sprintf-posix (Depends-on): Likewise.
44338         * modules/vasnprintf-posix (Depends-on): Likewise.
44339         * modules/vasprintf-posix (Depends-on): Likewise.
44340         * modules/vfprintf-posix (Depends-on): Likewise.
44341         * modules/vsnprintf-posix (Depends-on): Likewise.
44342         * modules/vsprintf-posix (Depends-on): Likewise.
44343         * doc/functions/fprintf.texi: Update.
44344         * doc/functions/printf.texi: Update.
44345         * doc/functions/snprintf.texi: Update.
44346         * doc/functions/sprintf.texi: Update.
44347         * doc/functions/vfprintf.texi: Update.
44348         * doc/functions/vprintf.texi: Update.
44349         * doc/functions/vsnprintf.texi: Update.
44350         * doc/functions/vsprintf.texi: Update.
44351
44352 2007-11-03  Bruno Haible  <bruno@clisp.org>
44353
44354         * modules/frexp-nolibm-tests: New file.
44355
44356         * modules/frexp-nolibm: New file.
44357         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
44358
44359 2007-11-03  Bruno Haible  <bruno@clisp.org>
44360
44361         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
44362         value is C99 compliant.
44363         Needed for OSF/1 5.1.
44364
44365 2007-11-03  Bruno Haible  <bruno@clisp.org>
44366
44367         Fix out-of-memory handling of vasnprintf.
44368         * lib/printf-parse.c: Include <errno.h>.
44369         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
44370         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
44371         is already set.
44372
44373 2007-11-02  Eric Blake  <ebb9@byu.net>
44374
44375         Fix tests on cygwin.
44376         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
44377
44378 2007-11-01  Bruno Haible  <bruno@clisp.org>
44379
44380         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
44381         warning.
44382         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
44383         needed for POSIX compatibility.
44384
44385 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44386
44387         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
44388         for compatibility with GNU.
44389
44390 2007-11-01  Bruno Haible  <bruno@clisp.org>
44391
44392         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
44393         (putenv): Renamed from rpl_putenv. Change argument type from
44394         'const char *' to 'char *'.
44395         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
44396         of defining putenv in config.h, just set REPLACE_PUTENV.
44397         * modules/putenv (Depends-on): Add stdlib.
44398         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44399         (Include): Use <stdlib.h>.
44400         * lib/stdlib.in.h (putenv): New declaration.
44401         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
44402         REPLACE_PUTENV.
44403         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
44404         REPLACE_PUTENV.
44405         Needed for MacOS X 10.5.0.
44406         Reported by Peter O'Gorman <peter@pogma.com>.
44407
44408 2007-11-01  Jim Meyering  <meyering@redhat.com>
44409
44410         Treat an empty date string exactly like "0".
44411         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
44412         if the remaining date string (to be parsed) is empty, use "0".
44413         Reported by Mischa Molhoek and discussed in this thread:
44414         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
44415
44416 2007-10-31  Bruno Haible  <bruno@clisp.org>
44417
44418         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
44419         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
44420         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
44421         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
44422         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
44423         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
44424
44425 2007-10-31  Bruno Haible  <bruno@clisp.org>
44426
44427         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
44428         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
44429         (AC_TYPE_LONG_LONG_INT): Use it.
44430         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
44431         it as well.
44432         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
44433         to m4/longlong.m4.
44434         * modules/stdint (Files): Remove m4/ulonglong.m4.
44435         * modules/strtoull (Files): Use m4/longlong.m4 instead of
44436         m4/ulonglong.m4.
44437         * modules/strtoumax (Files): Likewise.
44438
44439 2007-10-30  Bruno Haible  <bruno@clisp.org>
44440
44441         * modules/xvasprintf-posix: New file.
44442         Suggested by Eric Blake.
44443
44444 2007-10-30  Bruno Haible  <bruno@clisp.org>
44445
44446         * modules/xprintf-posix-tests: New file.
44447         * tests/test-xprintf-posix.sh: New file.
44448         * tests/test-xprintf-posix.c: New file.
44449         * tests/test-xfprintf-posix.c: New file.
44450
44451         * modules/xprintf-posix: New file.
44452
44453 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44454
44455         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
44456         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
44457         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
44458
44459 2007-10-29  Bruno Haible  <bruno@clisp.org>
44460
44461         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
44462         contain the special marker '_cv_'.
44463         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44464         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44465         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44466         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
44467         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44468         Reported by Ralf Wildenhues.
44469
44470 2007-10-29  Bruno Haible  <bruno@clisp.org>
44471
44472         * gnulib-tool (func_import): When --lgpl is not specified, set
44473         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
44474         GPLv3.
44475         Reported by Simon Josefsson.
44476
44477 2007-10-28  Bruno Haible  <bruno@clisp.org>
44478
44479         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
44480         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
44481         HAVE_DECL_ISFINITE.
44482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44483         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
44484         HAVE_DECL_ISFINITE.
44485
44486 2007-10-28  Bruno Haible  <bruno@clisp.org>
44487
44488         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
44489         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
44490
44491 2007-10-28  Bruno Haible  <bruno@clisp.org>
44492
44493         Fix link errors with Sun C 5.0 on Solaris 10.
44494         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
44495         function is declared but not present in the compiler's libm.
44496         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44497         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44498         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
44499         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
44500         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
44501         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
44502         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
44503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44504         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
44505         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
44506         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
44507         HAVE_DECL_FLOORL.
44508
44509 2007-10-28  Bruno Haible  <bruno@clisp.org>
44510
44511         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
44512         gl_FUNC_FLOORL. Cache the result.
44513         (gl_FUNC_FLOORL): Use it.
44514         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
44515         gl_FUNC_CEILL. Cache the result.
44516         (gl_FUNC_CEILL): Use it.
44517
44518         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
44519         gl_FUNC_FLOOR. Cache the result.
44520         (gl_FUNC_FLOOR): Use it.
44521         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
44522         gl_FUNC_CEIL. Cache the result.
44523         (gl_FUNC_CEIL): Use it.
44524
44525         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
44526         gl_FUNC_FLOORF. Cache the result.
44527         (gl_FUNC_FLOORF): Use it.
44528         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
44529         gl_FUNC_CEILF. Cache the result.
44530         (gl_FUNC_CEILF): Use it.
44531
44532 2007-10-28  Bruno Haible  <bruno@clisp.org>
44533
44534         * gnulib-tool: Allow specifying the LGPL version number through
44535         --lgpl=2 or --lgpl=3.
44536         (func_usage): Document --lgpl with argument.
44537         Handle --lgpl=... arguments.
44538         (func_import): Recognize also gl_LGPL calls with an argument. When
44539         --lgpl=2 is used and the module's license is just LGPL, report an
44540         error. Set sed_transform_lib_file according to the lgpl variable. In
44541         the generated files, use --lgpl or gl_LGPL invocations with argument,
44542         if necessary.
44543         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
44544         an LGPv2+ license.
44545         * doc/gnulib-tool.texi (Modified imports): Update explanation of
44546         gl_LGPL macro.
44547
44548 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44549             Bruno Haible  <bruno@clisp.org>
44550
44551         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
44552         (u16_uctomb_aux): Likewise.
44553         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
44554         !HAVE_INLINE.
44555         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
44556
44557 2007-10-28  Bruno Haible  <bruno@clisp.org>
44558
44559         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
44560         Invoke AM_GETTEXT_OPTION if it exists.
44561         * modules/vasprintf: Likewise.
44562         * modules/verror: Likewise.
44563         * modules/xprintf: Likewise.
44564         * modules/xvasprintf: Likewise.
44565
44566 2007-10-27  Ben Pfaff  <blp@gnu.org>
44567
44568         * lib/math.in.h: Define isfinite macro and prototypes for
44569         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
44570         implementations.
44571         * m4/math_h.m4: New substitutions for isfinite module.
44572         * lib/isfinite.c: New file.
44573         * m4/isfinite.m4: New file.
44574         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
44575         * modules/isfinite: New file.
44576         * modules/isfinite-tests: New file.
44577         * tests/tests-isfinite.c: New file.
44578         * doc/functions/isfinite.texi: Mention isfinite module.
44579         * MODULES.html.sh: Mention new module.
44580
44581 2007-10-27  Ben Pfaff  <blp@gnu.org>
44582
44583         Ralf Wildenhues reported that Tru64 4.0D declares the round
44584         functions but does not have definitions.
44585         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
44586         cannot be found in any library, set the output variable to
44587         "missing" instead of "".
44588         * m4/round.m4: Also use our substitute if we cannot find round in
44589         any library, even if it is declared.
44590         * m4/roundf.m4: Likewise for roundf.
44591         * m4/roundl.m4: Likewise for roundl.
44592         * lib/math.in.h: Undefine roundf, round, roundl before defining
44593         their replacements, to allow for hypothetical systems where these
44594         may be defined as macros but not available in libraries.
44595
44596 2007-10-27  Bruno Haible  <bruno@clisp.org>
44597
44598         * doc/gnulib.texi: Invoke @firstparagraphindent.
44599         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
44600         changes in gnulib.
44601         (Source changes): New section.
44602
44603 2007-10-26  Bruno Haible  <bruno@clisp.org>
44604
44605         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
44606         borrowed from autoconf.
44607
44608 2007-10-26  Bruno Haible  <bruno@clisp.org>
44609
44610         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
44611         strerror returned the empty string. Needed on HP-UX 11.00.
44612
44613 2007-10-24  Micah Cowan  <micah@cowan.name>
44614
44615         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
44616         * build-aux/bootstrap: Remove support for now-unnecessary option,
44617         --cvs-user, and envvars CVS_USER, CVS_RSH.
44618
44619 2007-10-24  Jim Meyering  <meyering@redhat.com>
44620
44621         Avoid diagnostics from sha1sum when there is no cached checksum.
44622         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
44623         if the po.s1 file hasn't been created yet.
44624
44625         * build-aux/bootstrap: Sync from coreutils:
44626         2007-10-24  Jim Meyering  <meyering@redhat.com>
44627         Get gnulib from the git repository, not from an obsolete cvs one.
44628         * build-aux/bootstrap: Suggestion from Micah Cowan.
44629         2007-10-04  Jim Meyering  <jim@meyering.net>
44630         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
44631         (update_po_files): Work also when there are no .po files in po/.
44632
44633 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44634
44635         * README: Append ".git" to git and cg examples.
44636         Problem reported by Benoit Sigoure.
44637
44638 2007-10-23  Micah Cowan  <micah@cowan.name>
44639
44640         * users.txt: Add wget.
44641
44642 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44643
44644         Fix linking of some unistdio tests on FreeBSD.
44645         * modules/unistdio/u16-vsnprintf-tests
44646         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
44647         * modules/unistdio/u16-vsprintf-tests
44648         (test_u16_vsnprintf1_LDADD): Likewise.
44649         * modules/unistdio/u32-vsnprintf-tests
44650         (test_u32_vsnprintf1_LDADD): Likewise.
44651         * modules/unistdio/u32-vsprintf-tests
44652         (test_u32_vsprintf1_LDADD): Likewise.
44653         * modules/unistdio/u8-vsnprintf-tests
44654         (test_u8_vsnprintf1_LDADD): Likewise.
44655         * modules/unistdio/u8-vsprintf-tests
44656         (test_u8_vsprintf1_LDADD): Likewise.
44657         * modules/unistdio/ulc-vsnprintf-tests
44658         (test_ulc_vsnprintf1_LDADD): Likewise.
44659         * modules/unistdio/ulc-vsprintf-tests
44660         (test_ulc_vsprintf1_LDADD): Likewise.
44661
44662         Fix linking of some uniconv tests on FreeBSD.
44663         * modules/uniconv/u16-conv-from-enc-tests
44664         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
44665         * modules/uniconv/u16-conv-to-enc-tests
44666         (test_u16_conv_to_enc_LDADD): Likewise.
44667         * modules/uniconv/u16-strconv-from-enc-tests
44668         (test_u16_strconv_from_enc_LDADD): Likewise.
44669         * modules/uniconv/u16-strconv-to-enc-tests
44670         (test_u16_strconv_to_enc_LDADD): Likewise.
44671         * modules/uniconv/u32-conv-from-enc-tests
44672         (test_u32_conv_from_enc_LDADD): Likewise.
44673         * modules/uniconv/u32-conv-to-enc-tests
44674         (test_u32_conv_to_enc_LDADD): Likewise.
44675         * modules/uniconv/u32-strconv-from-enc-tests
44676         (test_u32_strconv_from_enc_LDADD): Likewise.
44677         * modules/uniconv/u32-strconv-to-enc-tests
44678         (test_u32_strconv_to_enc_LDADD): Likewise.
44679         * modules/uniconv/u8-conv-from-enc-tests
44680         (test_u8_conv_from_enc_LDADD): Likewise.
44681         * modules/uniconv/u8-conv-to-enc-tests
44682         (test_u8_conv_to_enc_LDADD): Likewise.
44683         * modules/uniconv/u8-strconv-from-enc-tests
44684         (test_u8_strconv_from_enc_LDADD): Likewise.
44685         * modules/uniconv/u8-strconv-to-enc-tests
44686         (test_u8_strconv_to_enc_LDADD): Likewise.
44687
44688 2007-10-22  Bruno Haible  <bruno@clisp.org>
44689
44690         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
44691         size.
44692
44693 2007-10-22  Eric Blake  <ebb9@byu.net>
44694
44695         Tweak x*printf documentation.
44696         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
44697         variable name and comments.
44698         Suggested by Bruno Haible.
44699
44700 2007-10-22  Bruno Haible  <bruno@clisp.org>
44701
44702         * lib/acl.c (copy_acl): Fix file name in comment.
44703
44704 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44705
44706         Fix Tru64 problem with stdbool.h.
44707         * lib/stdbool.in.h (false, true):
44708         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
44709         Don't declare as an enum in this situation; it runs afoul of Tru64.
44710         Problem reported by Steven M. Schweda in
44711         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
44712
44713 2007-10-22  Eric Blake  <ebb9@byu.net>
44714
44715         Also wrap vf?printf.
44716         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
44717         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
44718         (xvprintf, xvfprintf): New functions.
44719
44720 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44721
44722         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
44723         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
44724
44725         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
44726         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
44727
44728 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44729
44730         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
44731         by Bruno Haible.
44732
44733 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44734
44735         * lib/getloadavg.c
44736         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
44737         Undef `sys' after including sys/table.h, for Tru64 4.0D.
44738
44739         * tests/test-i-ring.c: Work for C89.
44740
44741 2007-10-22  Bruno Haible  <bruno@clisp.org>
44742
44743         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
44744         -1u, in preprocessor expression, so that we don't test for the bug
44745         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
44746         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
44747
44748 2007-10-22  Eric Blake  <ebb9@byu.net>
44749
44750         * tests/test-yesno.sh: Silence stderr during test.
44751
44752 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44753
44754         * modules/crypto/gc-camellia: New file.
44755
44756         * m4/gc-camellia.m4: New file.
44757
44758         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
44759
44760         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
44761
44762 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44763
44764         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
44765         --help to stdout.  Reported by sms@antinode.org (Steven
44766         M. Schweda).
44767
44768 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44769
44770         * users.txt: Fix link to libksba.
44771
44772 2007-10-21  Ben Pfaff  <blp@gnu.org>
44773
44774         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
44775         round.c roundf implementation that depends on floorf and ceilf to
44776         be tested unconditionally.
44777
44778 2007-10-21  Ben Pfaff  <blp@gnu.org>
44779
44780         * m4/check-libm-func.m4: Removed.
44781         * m4/check-math-lib.m4: New file.
44782         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
44783         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
44784         definition and lack of AC_LIBOBJ([roundf]).
44785         * m4/roundl.m4: Ditto, and similarly for roundl.
44786         * modules/round: Reference new m4 file.
44787         * modules/roundf: Ditto.
44788         * modules/roundl: Ditto.
44789         * tests/test-round2.c (main): Use ROUND instead of round.
44790         Bug report from Bruno Haible.
44791
44792 2007-10-21  Bruno Haible  <bruno@clisp.org>
44793
44794         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
44795         context.
44796
44797 2007-10-21  Bruno Haible  <bruno@clisp.org>
44798
44799         * tests/test-wcwidth.c (main): Allow negative result for some control
44800         characters.
44801
44802         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
44803         Needed on OSF/1 5.1.
44804
44805 2007-10-21  Bruno Haible  <bruno@clisp.org>
44806
44807         * tests/test-floorf1.c: Include isnanf.h.
44808         (main): Use isnanf() instead of isnan().
44809         * tests/test-ceilf1.c: Include isnanf.h.
44810         (main): Use isnanf() instead of isnan().
44811         * tests/test-truncf1.c: Include isnanf.h.
44812         (main): Use isnanf() instead of isnan().
44813         * tests/test-roundf1.c: Include isnanf.h.
44814         (main): Use isnanf() instead of isnan().
44815
44816 2007-10-21  Eric Blake  <ebb9@byu.net>
44817
44818         * users.txt: Update URL for m4.
44819
44820 2007-10-21  Bruno Haible  <bruno@clisp.org>
44821
44822         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
44823
44824 2007-10-21  Bruno Haible  <bruno@clisp.org>
44825
44826         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
44827         Git's management files if the CVS files are not present.
44828
44829 2007-10-20  Bruno Haible  <bruno@clisp.org>
44830
44831         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
44832         gcc-3.4.x.
44833
44834 2007-10-20  Ben Pfaff  <blp@gnu.org>
44835
44836         * lib/math.in.h: Declare round, roundf, roundl if we are providing
44837         implementations.
44838         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
44839         * lib/round.c: New file.
44840         * lib/roundf.c: New file.
44841         * lib/roundl.c: New file.
44842         * m4/round.m4: New file.
44843         * m4/roundf.m4: New file.
44844         * m4/roundl.m4: New file.
44845         * m4/check-libm-func-m4: New file.
44846         * modules/math: Replace round, roundf, roundl related @VARS@ in
44847         math.in.h.
44848         * modules/round: New file.
44849         * modules/round-tests: New file.
44850         * modules/roundf: New file.
44851         * modules/roundf-tests: New file.
44852         * modules/roundl: New file.
44853         * modules/roundl-tests: New file.
44854         * tests/test-round1.c: New file.
44855         * tests/test-round2.c: New file.
44856         * tests/test-roundf1.c: New file.
44857         * tests/test-roundf2.c: New file.
44858         * tests/test-roundl.c: New file.
44859         * doc/functions/round.texi: Mention round module.
44860         * doc/functions/roundf.texi: Mention roundf module.
44861         * doc/functions/roundl.texi: Mention roundl module.
44862         * MODULES.html.sh: Mention new modules.
44863         Thanks to Bruno Haible for suggestions.
44864
44865 2007-10-20  Jim Meyering  <meyering@redhat.com>
44866
44867         * lib/xprintf.c: Include <config.h> unconditionally.
44868
44869         Change xprintf's license to GPL.
44870         * modules/xprintf (License): s/LGPL/GPL/, since this module
44871         depends on modules (exit and exitfail) which are GPL.
44872         Suggestion from Bruno Haible.
44873
44874         xprintf fixes.
44875         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
44876         Use a clearer diagnostic.
44877         Patch from Bruno Haible.
44878
44879 2007-10-20  Bruno Haible  <bruno@clisp.org>
44880
44881         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
44882         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
44883         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44884
44885 2007-10-20  Bruno Haible  <bruno@clisp.org>
44886
44887         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
44888         precision in the comparison result > x - 1 or similar.
44889         * tests/test-ceilf2.c (correct_result_p): Likewise.
44890         * tests/test-truncf2.c (correct_result_p): Likewise.
44891         * tests/test-trunc2.c (correct_result_p): Likewise.
44892         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44893
44894 2007-10-20  Bruno Haible  <bruno@clisp.org>
44895
44896         * modules/ceil: New file.
44897         * m4/ceil.m4: New file.
44898         * doc/functions/ceil.texi: Mention the 'ceil' module.
44899
44900 2007-10-20  Bruno Haible  <bruno@clisp.org>
44901
44902         * modules/floor: New file.
44903         * m4/floor.m4: New file.
44904         * doc/functions/floor.texi: Mention the 'floor' module.
44905
44906 2007-10-20  Bruno Haible  <bruno@clisp.org>
44907
44908         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
44909         of %a.
44910         * modules/floorf-tests (Depends-on): Likewise.
44911         * modules/truncf-tests (Depends-on): Likewise.
44912         * modules/trunc-tests (Depends-on): Likewise.
44913         Reported by Ben Pfaff.
44914
44915 2007-10-19  Jim Meyering  <meyering@redhat.com>
44916
44917         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
44918         Don't bother testing specific errno values.  Just test ferror.
44919
44920         New module: xprintf
44921         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
44922
44923 2007-10-19  Bruno Haible  <bruno@clisp.org>
44924
44925         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
44926         syntax.
44927         * modules/javaexec (Makefile.am): Likewise.
44928         * modules/relocatable-prog (Makefile.am): Likewise.
44929         Suggested by Jim Meyering.
44930
44931 2007-10-18  Bruno Haible  <bruno@clisp.org>
44932
44933         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
44934         Reported by Jim Meyering.
44935
44936 2007-10-18  Eric Blake  <ebb9@byu.net>
44937
44938         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
44939
44940 2007-10-18  Bruno Haible  <bruno@clisp.org>
44941
44942         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
44943         the format string into writable memory. Needed in Fortify conditions.
44944
44945 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
44946             Bruno Haible  <bruno@clisp.org>
44947
44948         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
44949         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
44950         * modules/trim (Depends-on): Add mbchar.
44951         (configure.ac): Add gl_FUNC_MBRTOWC.
44952         (Makefile.am): Augment lib_SOURCES.
44953
44954 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44955
44956         Modify glob.c to use fstatat and dirfd, to simplify it.
44957         Suggested by Eric Blake.
44958         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
44959         Don't include <stdbool.h>; not used.
44960         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
44961         (link_exists_p): Simplify implementation, since we can now assume
44962         dirfd and fstatat.
44963         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
44964
44965 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44966
44967         * gnulib-tool (func_get_dependencies): Fix sed script to
44968         match only tests.
44969
44970 2007-10-17  Bruno Haible  <bruno@clisp.org>
44971
44972         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
44973         allow locale names without encoding suffix.
44974         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44975         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44976
44977 2007-10-16  Bruno Haible  <bruno@clisp.org>
44978
44979         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
44980         * lib/getgroups.c (getgroups): Likewise.
44981         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
44982
44983 2007-10-16  Bruno Haible  <bruno@clisp.org>
44984
44985         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
44986         * modules/malloc-posix (License): Likewise.
44987         * modules/realloc-posix (License): Likewise.
44988         * modules/calloc-posix (License): Likewise.
44989         * modules/intprops (License): Change from GPL to LGPL, with
44990         Paul Eggert's approval.
44991
44992 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44993
44994         Merge glibc changes into lib/glob.c.
44995
44996         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
44997         2007-10-15 04:59:03 UTC.  Here are the changes:
44998
44999         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
45000
45001         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
45002
45003         * lib/glob.c: Add some branch prediction throughout.
45004
45005         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
45006
45007         [BZ #5103]
45008         * lib/glob.c (glob): Recognize patterns starting \/.
45009
45010         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
45011
45012         [BZ #3996]
45013         * lib/glob.c (attribute_hidden): Define if not defined.
45014         (glob): Unescape dirname, filename or username when needed and not
45015         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
45016         is NULL.  Handle unescaped [ in pattern without closing ].
45017         Don't pass GLOB_CHECK down to recursive glob for directories.
45018         (__glob_pattern_type): New function.
45019         (__glob_pattern_p): Implement using __glob_pattern_type.
45020         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
45021         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
45022         Remove unreachable code.
45023
45024         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
45025
45026         * lib/glob.c (glob_in_dir): Add some comments and asserts to
45027         explain why there are no leaks.
45028
45029         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
45030
45031         [BZ #3253]
45032         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
45033         time, rather allocate increasingly bigger arrays of pointers, if
45034         possible with alloca, if too large with malloc.
45035
45036 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45037
45038         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
45039         Problem reported by H.Merijn Brand in
45040         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
45041         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
45042         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45043
45044 2007-10-15  Bruno Haible  <bruno@clisp.org>
45045
45046         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
45047         with explicit rpl_ prefix.
45048         * lib/fopen.c (fopen): Likewise.
45049         * lib/freopen.c (freopen): Likewise.
45050         * lib/iconv.c (iconv): Likewise.
45051         * lib/iconv_close.c (iconv_close): Likewise.
45052
45053 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45054
45055         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
45056
45057 2007-10-15  Bruno Haible  <bruno@clisp.org>
45058
45059         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
45060         <stddef.h> instead of <stdlib.h> since we only need NULL.
45061         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45062
45063 2007-10-15  Bruno Haible  <bruno@clisp.org>
45064
45065         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
45066         Replace paragraph talking about LIBOBJS.
45067         Reported by Colin Watson <cjwatson@debian.org>.
45068
45069 2007-10-15  Bruno Haible  <bruno@clisp.org>
45070
45071         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
45072         <stdlib.h> before using NULL.
45073
45074 2007-10-15  Simon Josefsson  <simon@josefsson.org>
45075
45076         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
45077         Reported by Albert Chin <china@thewrittenword.com>.
45078
45079 2007-10-14  Bruno Haible  <bruno@clisp.org>
45080
45081         * modules/iconv_open-utf-tests: New file.
45082         * tests/test-iconv-utf.c: New file.
45083
45084         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
45085         * modules/iconv_open-utf: New file.
45086         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
45087         (iconv, iconv_close): New declarations.
45088         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
45089         be defined.
45090         (iconv_open): Add special handling of conversion between UTF-8 and
45091         UTF-{16,32}{BE,LE}.
45092         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
45093         * lib/iconv_close.c: New file.
45094         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
45095         gl_FUNC_ICONV_OPEN.
45096         (gl_FUNC_ICONV_OPEN): Use it.
45097         (gl_FUNC_ICONV_OPEN_UTF): New macro.
45098         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
45099         and REPLACE_ICONV_UTF.
45100         * modules/iconv_open (Depends-on): Add c-strcase.
45101         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
45102         ICONV_CONST.
45103         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
45104
45105 2007-10-13  Albert Chin  <china@thewrittenword.com>
45106             Bruno Haible  <bruno@clisp.org>
45107
45108         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
45109         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
45110
45111 2007-10-13  Bruno Haible  <bruno@clisp.org>
45112
45113         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
45114         defined, use the ISO C99 inline semantics.
45115         * lib/argp.h (ARGP_EI): Likewise.
45116
45117 2007-10-13  Bruno Haible  <bruno@clisp.org>
45118
45119         Handle 'inline' change in gcc 4.3.0.
45120         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
45121         argp_fmtstream_write, argp_fmtstream_set_lmargin,
45122         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
45123         argp_fmtstream_point): Disable 'extern' declaration if the function
45124         definition is going to be provided inline.
45125         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
45126         semantics, not the ISO C99 inline semantics.
45127         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
45128         'extern' declaration if the function definition is going to be provided
45129         inline.
45130         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
45131         the GNU C inline semantics, not the ISO C99 inline semantics. With
45132         GCC 4.2, avoid a warning.
45133
45134 2007-10-13  Bruno Haible  <bruno@clisp.org>
45135
45136         * lib/freading.h (freading): Enable the use of __freading for
45137         glibc >= 2.7.
45138         * lib/freading.c (freading): Likewise.
45139
45140 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45141
45142         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
45143         "warning: C99 inline functions are not supported; using GNU89".
45144
45145 2007-10-12  Bruno Haible  <bruno@clisp.org>
45146
45147         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
45148         of 2.
45149         * tests/test-ceilf2.c: New file.
45150         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
45151
45152         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
45153         * modules/ceilf-tests: Update.
45154
45155 2007-10-12  Bruno Haible  <bruno@clisp.org>
45156
45157         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
45158         of 2.
45159         * tests/test-floorf2.c: New file.
45160         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
45161
45162         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
45163         * modules/floorf-tests: Update.
45164
45165 2007-10-12  Bruno Haible  <bruno@clisp.org>
45166
45167         * tests/test-trunc2.c: New file.
45168         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
45169
45170         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
45171         * modules/trunc-tests: Update.
45172
45173 2007-10-12  Bruno Haible  <bruno@clisp.org>
45174
45175         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
45176         of 2.
45177         * tests/test-truncf2.c: New file.
45178         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
45179
45180         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
45181         * modules/truncf-tests: Update.
45182
45183 2007-10-11  Eric Blake  <ebb9@byu.net>
45184
45185         Don't claim strerror is broken on Interix.
45186         * doc/functions/strerror.texi (strerror): Known broken systems are
45187         now Solaris 8, and not Interix.
45188         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
45189         Interix on cross-compile.
45190         Reported by Martin Koeppe in
45191         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
45192
45193 2007-10-11  Bruno Haible  <bruno@clisp.org>
45194
45195         * modules/i-ring-tests: New file.
45196         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
45197         instead of assert.
45198
45199 2007-10-11  Bruno Haible  <bruno@clisp.org>
45200
45201         * modules/filenamecat-tests: New file.
45202         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
45203         * lib/filenamecat.c: Remove test code.
45204
45205 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45206
45207         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
45208
45209         * lib/strerror.c: Include <string.h> always, to test interface,
45210         and to remove the need for the dummy.
45211         Include intprops.h to compute width instead of doing it ourselves
45212         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
45213         (strerror): Define it to return NULL if there's no system strerror.
45214         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
45215         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
45216         ancient pre-strerror Unix systems well any more.  Saying "unknown
45217         system error" is enough.
45218         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
45219         simpler strerror.c implementation.
45220         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
45221         Simplify the tests to reflect the simpler strerror implementation.
45222         * modules/strerror (Depends-on): Add intprops.
45223
45224 2007-10-09  Eric Blake  <ebb9@byu.net>
45225
45226         Silence test-fpending.
45227         * modules/fpending-tests (Files): Add wrapper script.
45228         * tests/test-fpending.sh: New file.
45229
45230 2007-10-09  Bruno Haible  <bruno@clisp.org>
45231
45232         * MODULES.html.sh (func_module): Don't create a hyperlink for
45233         function names like 'printf_frexp'.
45234         (Misc): Add crc, memxor.
45235         (Characteristics of floating types): New section.
45236         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
45237         isnanf-nolibm, signbit, trunc, truncf, truncl.
45238         (Enhancements for ISO C 99 functions): New subsection Input/output.
45239         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
45240         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
45241         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
45242         (Compatibility checks for POSIX:2001 functions): Add clock-time.
45243         (Enhancements for POSIX:2001 functions): Add chdir-long.
45244         (File system functions): Add areadlink, chdir-safer, read-file.
45245         Remove cycle-check.
45246         (File system as inode set): New section.
45247         (Date and time): Add gethrxtime.
45248         (Multithreading): Add openmp.
45249         (Internationalization functions): Add localename.
45250         (Unicode string functions): Add unistr/u*-mbsnlen.
45251         (Support for maintaining and releasing projects): Add git-version-gen.
45252         (Lone files): Remove directories.
45253
45254 2007-10-08  Ben Pfaff  <blp@gnu.org>
45255
45256         * lib/xmalloca.h: Fix typo in comment.
45257
45258 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45259
45260         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
45261         when avoiding problems with integer overflow.  Use a portable test
45262         instead.
45263
45264 2007-10-08  Simon Josefsson  <simon@josefsson.org>
45265
45266         * modules/dummy (License): Change to LGPLv2+.
45267         * modules/float (License): Likewise
45268         * modules/realloc (License): Likewise
45269         * modules/stdlib (License): Likewise
45270
45271 2007-10-07  Bruno Haible  <bruno@clisp.org>
45272
45273         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
45274         * floor.c (TWO_MANT_DIG): Likewise.
45275         * ceil.c (TWO_MANT_DIG): Likewise.
45276         Reported by Ben Pfaff.
45277
45278 2007-10-07  Bruno Haible  <bruno@clisp.org>
45279
45280         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
45281         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
45282         * lib/frexp.c (FUNC): Likewise.
45283         * lib/printf-frexp.h (printf_frexp): Likewise.
45284         * lib/printf-frexpl.h (printf_frexpl): Likewise.
45285         * lib/printf-frexp.c (FUNC): Likewise.
45286         Suggested by Jim Meyering.
45287
45288 2007-10-07  Jim Meyering  <meyering@redhat.com>
45289
45290         Make xnanosleep's integer overflow test more robust.
45291         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
45292         so that gcc-4.3.0 doesn't optimize away this test for overflow.
45293
45294 2007-10-07  Bruno Haible  <bruno@clisp.org>
45295
45296         * NEWS: Mention the license change.
45297
45298         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
45299         abbreviations in the modules files.
45300
45301         Change copyright notice from GPLv2+ to GPLv3+.
45302         * README: Change copyright notice.
45303         * MODULES.html.sh: Likewise.
45304         * build-aux/bootstrap.conf: Likewise.
45305         * build-aux/config.libpath: Likewise.
45306         * build-aux/csharpcomp.sh.in: Likewise.
45307         * build-aux/csharpexec.sh.in: Likewise.
45308         * build-aux/install-reloc: Likewise.
45309         * build-aux/javacomp.sh.in: Likewise.
45310         * build-aux/javaexec.sh.in: Likewise.
45311         * build-aux/ldd.sh.in: Likewise.
45312         * build-aux/reloc-ldflags: Likewise.
45313         * build-aux/relocatable.sh.in: Likewise.
45314         * build-aux/x-to-1.in: Likewise.
45315         * check-module: Likewise.
45316         * config/srclistvars.sh: Likewise.
45317         * gnulib-tool: Likewise.
45318         * lib/acl-internal.h: Likewise.
45319         * lib/acl.c: Likewise.
45320         * lib/acl.h: Likewise.
45321         * lib/acl_entries.c: Likewise.
45322         * lib/areadlink-with-size.c: Likewise.
45323         * lib/areadlink.c: Likewise.
45324         * lib/areadlink.h: Likewise.
45325         * lib/argmatch.c: Likewise.
45326         * lib/argmatch.h: Likewise.
45327         * lib/argp-ba.c: Likewise.
45328         * lib/argp-eexst.c: Likewise.
45329         * lib/argp-fmtstream.c: Likewise.
45330         * lib/argp-fmtstream.h: Likewise.
45331         * lib/argp-fs-xinl.c: Likewise.
45332         * lib/argp-help.c: Likewise.
45333         * lib/argp-namefrob.h: Likewise.
45334         * lib/argp-parse.c: Likewise.
45335         * lib/argp-pin.c: Likewise.
45336         * lib/argp-pv.c: Likewise.
45337         * lib/argp-pvh.c: Likewise.
45338         * lib/argp-xinl.c: Likewise.
45339         * lib/argp.h: Likewise.
45340         * lib/at-func.c: Likewise.
45341         * lib/atanl.c: Likewise.
45342         * lib/backupfile.c: Likewise.
45343         * lib/backupfile.h: Likewise.
45344         * lib/basename.c: Likewise.
45345         * lib/binary-io.h: Likewise.
45346         * lib/byteswap.in.h: Likewise.
45347         * lib/c-stack.c: Likewise.
45348         * lib/c-stack.h: Likewise.
45349         * lib/c-strcasestr.c: Likewise.
45350         * lib/c-strcasestr.h: Likewise.
45351         * lib/c-strstr.c: Likewise.
45352         * lib/c-strstr.h: Likewise.
45353         * lib/c-strtod.c: Likewise.
45354         * lib/calloc.c: Likewise.
45355         * lib/canon-host.c: Likewise.
45356         * lib/canon-host.h: Likewise.
45357         * lib/canonicalize-lgpl.c: Likewise.
45358         * lib/canonicalize.c: Likewise.
45359         * lib/canonicalize.h: Likewise.
45360         * lib/ceil.c: Likewise.
45361         * lib/ceilf.c: Likewise.
45362         * lib/ceill.c: Likewise.
45363         * lib/chdir-long.c: Likewise.
45364         * lib/chdir-long.h: Likewise.
45365         * lib/chdir-safer.c: Likewise.
45366         * lib/chdir-safer.h: Likewise.
45367         * lib/chown.c: Likewise.
45368         * lib/classpath.c: Likewise.
45369         * lib/classpath.h: Likewise.
45370         * lib/clean-temp.c: Likewise.
45371         * lib/clean-temp.h: Likewise.
45372         * lib/cloexec.c: Likewise.
45373         * lib/close-stream.c: Likewise.
45374         * lib/closein.c: Likewise.
45375         * lib/closein.h: Likewise.
45376         * lib/closeout.c: Likewise.
45377         * lib/closeout.h: Likewise.
45378         * lib/concat-filename.c: Likewise.
45379         * lib/copy-file.c: Likewise.
45380         * lib/copy-file.h: Likewise.
45381         * lib/count-one-bits.h: Likewise.
45382         * lib/crc.c: Likewise.
45383         * lib/crc.h: Likewise.
45384         * lib/creat-safer.c: Likewise.
45385         * lib/csharpcomp.c: Likewise.
45386         * lib/csharpcomp.h: Likewise.
45387         * lib/csharpexec.c: Likewise.
45388         * lib/csharpexec.h: Likewise.
45389         * lib/cycle-check.c: Likewise.
45390         * lib/cycle-check.h: Likewise.
45391         * lib/diacrit.c: Likewise.
45392         * lib/diacrit.h: Likewise.
45393         * lib/diffseq.h: Likewise.
45394         * lib/dirchownmod.c: Likewise.
45395         * lib/dirent.in.h: Likewise.
45396         * lib/dirfd.c: Likewise.
45397         * lib/dirfd.h: Likewise.
45398         * lib/dirname.c: Likewise.
45399         * lib/dirname.h: Likewise.
45400         * lib/dummy.c: Likewise.
45401         * lib/dup-safer.c: Likewise.
45402         * lib/dup2.c: Likewise.
45403         * lib/eealloc.h: Likewise.
45404         * lib/error.c: Likewise.
45405         * lib/error.h: Likewise.
45406         * lib/euidaccess.c: Likewise.
45407         * lib/exclude.c: Likewise.
45408         * lib/exclude.h: Likewise.
45409         * lib/execute.c: Likewise.
45410         * lib/execute.h: Likewise.
45411         * lib/exitfail.c: Likewise.
45412         * lib/exitfail.h: Likewise.
45413         * lib/expl.c: Likewise.
45414         * lib/fatal-signal.c: Likewise.
45415         * lib/fatal-signal.h: Likewise.
45416         * lib/fbufmode.c: Likewise.
45417         * lib/fbufmode.h: Likewise.
45418         * lib/fchdir.c: Likewise.
45419         * lib/fchmodat.c: Likewise.
45420         * lib/fchownat.c: Likewise.
45421         * lib/fcntl--.h: Likewise.
45422         * lib/fcntl-safer.h: Likewise.
45423         * lib/fcntl.in.h: Likewise.
45424         * lib/fd-safer.c: Likewise.
45425         * lib/fflush.c: Likewise.
45426         * lib/file-has-acl.c: Likewise.
45427         * lib/file-set.c: Likewise.
45428         * lib/file-type.c: Likewise.
45429         * lib/file-type.h: Likewise.
45430         * lib/fileblocks.c: Likewise.
45431         * lib/filemode.c: Likewise.
45432         * lib/filemode.h: Likewise.
45433         * lib/filename.h: Likewise.
45434         * lib/filenamecat.c: Likewise.
45435         * lib/filenamecat.h: Likewise.
45436         * lib/findprog.c: Likewise.
45437         * lib/findprog.h: Likewise.
45438         * lib/float.in.h: Likewise.
45439         * lib/floor.c: Likewise.
45440         * lib/floorf.c: Likewise.
45441         * lib/floorl.c: Likewise.
45442         * lib/fopen-safer.c: Likewise.
45443         * lib/fopen.c: Likewise.
45444         * lib/fpending.c: Likewise.
45445         * lib/fpending.h: Likewise.
45446         * lib/fprintf.c: Likewise.
45447         * lib/fprintftime.h: Likewise.
45448         * lib/fpucw.h: Likewise.
45449         * lib/fpurge.c: Likewise.
45450         * lib/fpurge.h: Likewise.
45451         * lib/freadable.c: Likewise.
45452         * lib/freadable.h: Likewise.
45453         * lib/freadahead.c: Likewise.
45454         * lib/freadahead.h: Likewise.
45455         * lib/freading.c: Likewise.
45456         * lib/freading.h: Likewise.
45457         * lib/free.c: Likewise.
45458         * lib/freopen.c: Likewise.
45459         * lib/frexp.c: Likewise.
45460         * lib/frexpl.c: Likewise.
45461         * lib/fseek.c: Likewise.
45462         * lib/fseterr.c: Likewise.
45463         * lib/fseterr.h: Likewise.
45464         * lib/fstatat.c: Likewise.
45465         * lib/fstrcmp.c: Likewise.
45466         * lib/fstrcmp.h: Likewise.
45467         * lib/fsusage.c: Likewise.
45468         * lib/fsusage.h: Likewise.
45469         * lib/ftell.c: Likewise.
45470         * lib/ftello.c: Likewise.
45471         * lib/fts-cycle.c: Likewise.
45472         * lib/fts.c: Likewise.
45473         * lib/fts_.h: Likewise.
45474         * lib/full-read.c: Likewise.
45475         * lib/full-read.h: Likewise.
45476         * lib/full-write.c: Likewise.
45477         * lib/full-write.h: Likewise.
45478         * lib/fwritable.c: Likewise.
45479         * lib/fwritable.h: Likewise.
45480         * lib/fwriteerror.c: Likewise.
45481         * lib/fwriteerror.h: Likewise.
45482         * lib/fwriting.c: Likewise.
45483         * lib/fwriting.h: Likewise.
45484         * lib/gcd.c: Likewise.
45485         * lib/gcd.h: Likewise.
45486         * lib/getcwd.c: Likewise.
45487         * lib/getdate.h: Likewise.
45488         * lib/getdate.y: Likewise.
45489         * lib/getdomainname.c: Likewise.
45490         * lib/getdomainname.h: Likewise.
45491         * lib/getgroups.c: Likewise.
45492         * lib/gethostname.c: Likewise.
45493         * lib/gethrxtime.c: Likewise.
45494         * lib/gethrxtime.h: Likewise.
45495         * lib/getloadavg.c: Likewise.
45496         * lib/getndelim2.c: Likewise.
45497         * lib/getndelim2.h: Likewise.
45498         * lib/getnline.c: Likewise.
45499         * lib/getnline.h: Likewise.
45500         * lib/getopt.c: Likewise.
45501         * lib/getopt.in.h: Likewise.
45502         * lib/getopt1.c: Likewise.
45503         * lib/getopt_int.h: Likewise.
45504         * lib/getpagesize.h: Likewise.
45505         * lib/getsubopt.c: Likewise.
45506         * lib/gettime.c: Likewise.
45507         * lib/getugroups.c: Likewise.
45508         * lib/getugroups.h: Likewise.
45509         * lib/getusershell.c: Likewise.
45510         * lib/gl_anyavltree_list1.h: Likewise.
45511         * lib/gl_anyavltree_list2.h: Likewise.
45512         * lib/gl_anyhash_list1.h: Likewise.
45513         * lib/gl_anyhash_list2.h: Likewise.
45514         * lib/gl_anylinked_list1.h: Likewise.
45515         * lib/gl_anylinked_list2.h: Likewise.
45516         * lib/gl_anyrbtree_list1.h: Likewise.
45517         * lib/gl_anyrbtree_list2.h: Likewise.
45518         * lib/gl_anytree_list1.h: Likewise.
45519         * lib/gl_anytree_list2.h: Likewise.
45520         * lib/gl_anytree_oset.h: Likewise.
45521         * lib/gl_anytreehash_list1.h: Likewise.
45522         * lib/gl_anytreehash_list2.h: Likewise.
45523         * lib/gl_array_list.c: Likewise.
45524         * lib/gl_array_list.h: Likewise.
45525         * lib/gl_array_oset.c: Likewise.
45526         * lib/gl_array_oset.h: Likewise.
45527         * lib/gl_avltree_list.c: Likewise.
45528         * lib/gl_avltree_list.h: Likewise.
45529         * lib/gl_avltree_oset.c: Likewise.
45530         * lib/gl_avltree_oset.h: Likewise.
45531         * lib/gl_avltreehash_list.c: Likewise.
45532         * lib/gl_avltreehash_list.h: Likewise.
45533         * lib/gl_carray_list.c: Likewise.
45534         * lib/gl_carray_list.h: Likewise.
45535         * lib/gl_linked_list.c: Likewise.
45536         * lib/gl_linked_list.h: Likewise.
45537         * lib/gl_linkedhash_list.c: Likewise.
45538         * lib/gl_linkedhash_list.h: Likewise.
45539         * lib/gl_list.c: Likewise.
45540         * lib/gl_list.h: Likewise.
45541         * lib/gl_oset.c: Likewise.
45542         * lib/gl_oset.h: Likewise.
45543         * lib/gl_rbtree_list.c: Likewise.
45544         * lib/gl_rbtree_list.h: Likewise.
45545         * lib/gl_rbtree_oset.c: Likewise.
45546         * lib/gl_rbtree_oset.h: Likewise.
45547         * lib/gl_rbtreehash_list.c: Likewise.
45548         * lib/gl_rbtreehash_list.h: Likewise.
45549         * lib/gl_sublist.c: Likewise.
45550         * lib/gl_sublist.h: Likewise.
45551         * lib/group-member.c: Likewise.
45552         * lib/group-member.h: Likewise.
45553         * lib/hard-locale.c: Likewise.
45554         * lib/hard-locale.h: Likewise.
45555         * lib/hash-pjw.c: Likewise.
45556         * lib/hash-pjw.h: Likewise.
45557         * lib/hash-triple.c: Likewise.
45558         * lib/hash.c: Likewise.
45559         * lib/hash.h: Likewise.
45560         * lib/human.c: Likewise.
45561         * lib/human.h: Likewise.
45562         * lib/i-ring.c: Likewise.
45563         * lib/i-ring.h: Likewise.
45564         * lib/idcache.c: Likewise.
45565         * lib/imaxabs.c: Likewise.
45566         * lib/imaxdiv.c: Likewise.
45567         * lib/inet_pton.c: Likewise.
45568         * lib/inet_pton.h: Likewise.
45569         * lib/intprops.h: Likewise.
45570         * lib/inttostr.c: Likewise.
45571         * lib/inttostr.h: Likewise.
45572         * lib/inttypes.in.h: Likewise.
45573         * lib/isapipe.c: Likewise.
45574         * lib/isdir.c: Likewise.
45575         * lib/isnan.c: Likewise.
45576         * lib/isnan.h: Likewise.
45577         * lib/isnanf.c: Likewise.
45578         * lib/isnanf.h: Likewise.
45579         * lib/isnanl-nolibm.h: Likewise.
45580         * lib/isnanl.c: Likewise.
45581         * lib/isnanl.h: Likewise.
45582         * lib/javacomp.c: Likewise.
45583         * lib/javacomp.h: Likewise.
45584         * lib/javaexec.c: Likewise.
45585         * lib/javaexec.h: Likewise.
45586         * lib/javaversion.c: Likewise.
45587         * lib/javaversion.h: Likewise.
45588         * lib/javaversion.java: Likewise.
45589         * lib/lbrkprop.h: Likewise.
45590         * lib/lchmod.h: Likewise.
45591         * lib/lchown.c: Likewise.
45592         * lib/ldexpl.c: Likewise.
45593         * lib/linebreak.c: Likewise.
45594         * lib/linebreak.h: Likewise.
45595         * lib/linebuffer.c: Likewise.
45596         * lib/linebuffer.h: Likewise.
45597         * lib/locale.in.h: Likewise.
45598         * lib/logl.c: Likewise.
45599         * lib/long-options.c: Likewise.
45600         * lib/long-options.h: Likewise.
45601         * lib/lstat.c: Likewise.
45602         * lib/lstat.h: Likewise.
45603         * lib/math.in.h: Likewise.
45604         * lib/mbchar.c: Likewise.
45605         * lib/mbchar.h: Likewise.
45606         * lib/mbfile.h: Likewise.
45607         * lib/mbiter.h: Likewise.
45608         * lib/mbscasecmp.c: Likewise.
45609         * lib/mbscasestr.c: Likewise.
45610         * lib/mbschr.c: Likewise.
45611         * lib/mbscspn.c: Likewise.
45612         * lib/mbslen.c: Likewise.
45613         * lib/mbsncasecmp.c: Likewise.
45614         * lib/mbsnlen.c: Likewise.
45615         * lib/mbspbrk.c: Likewise.
45616         * lib/mbspcasecmp.c: Likewise.
45617         * lib/mbsrchr.c: Likewise.
45618         * lib/mbssep.c: Likewise.
45619         * lib/mbsspn.c: Likewise.
45620         * lib/mbsstr.c: Likewise.
45621         * lib/mbstok_r.c: Likewise.
45622         * lib/mbswidth.c: Likewise.
45623         * lib/mbswidth.h: Likewise.
45624         * lib/mbuiter.h: Likewise.
45625         * lib/memcasecmp.c: Likewise.
45626         * lib/memcasecmp.h: Likewise.
45627         * lib/memchr.c: Likewise.
45628         * lib/memcmp.c: Likewise.
45629         * lib/memcoll.c: Likewise.
45630         * lib/memcoll.h: Likewise.
45631         * lib/memcpy.c: Likewise.
45632         * lib/memrchr.c: Likewise.
45633         * lib/mkancesdirs.c: Likewise.
45634         * lib/mkdir-p.c: Likewise.
45635         * lib/mkdir-p.h: Likewise.
45636         * lib/mkdir.c: Likewise.
45637         * lib/mkdirat.c: Likewise.
45638         * lib/mkdtemp.c: Likewise.
45639         * lib/mkstemp-safer.c: Likewise.
45640         * lib/mkstemp.c: Likewise.
45641         * lib/modechange.c: Likewise.
45642         * lib/modechange.h: Likewise.
45643         * lib/mountlist.c: Likewise.
45644         * lib/mountlist.h: Likewise.
45645         * lib/mpsort.c: Likewise.
45646         * lib/nanosleep.c: Likewise.
45647         * lib/obstack.c: Likewise.
45648         * lib/obstack.h: Likewise.
45649         * lib/open-safer.c: Likewise.
45650         * lib/open.c: Likewise.
45651         * lib/openat-die.c: Likewise.
45652         * lib/openat-priv.h: Likewise.
45653         * lib/openat-proc.c: Likewise.
45654         * lib/openat.c: Likewise.
45655         * lib/openat.h: Likewise.
45656         * lib/pagealign_alloc.c: Likewise.
45657         * lib/pagealign_alloc.h: Likewise.
45658         * lib/physmem.c: Likewise.
45659         * lib/physmem.h: Likewise.
45660         * lib/pipe-safer.c: Likewise.
45661         * lib/pipe.c: Likewise.
45662         * lib/pipe.h: Likewise.
45663         * lib/posixtm.c: Likewise.
45664         * lib/posixtm.h: Likewise.
45665         * lib/posixver.c: Likewise.
45666         * lib/printf-frexp.c: Likewise.
45667         * lib/printf-frexp.h: Likewise.
45668         * lib/printf-frexpl.c: Likewise.
45669         * lib/printf-frexpl.h: Likewise.
45670         * lib/printf.c: Likewise.
45671         * lib/progname.c: Likewise.
45672         * lib/progname.h: Likewise.
45673         * lib/progreloc.c: Likewise.
45674         * lib/putenv.c: Likewise.
45675         * lib/quote.c: Likewise.
45676         * lib/quote.h: Likewise.
45677         * lib/quotearg.c: Likewise.
45678         * lib/quotearg.h: Likewise.
45679         * lib/raise.c: Likewise.
45680         * lib/readline.c: Likewise.
45681         * lib/readline.h: Likewise.
45682         * lib/readlink.c: Likewise.
45683         * lib/readtokens.c: Likewise.
45684         * lib/readtokens.h: Likewise.
45685         * lib/readtokens0.c: Likewise.
45686         * lib/readtokens0.h: Likewise.
45687         * lib/readutmp.c: Likewise.
45688         * lib/readutmp.h: Likewise.
45689         * lib/realloc.c: Likewise.
45690         * lib/relocwrapper.c: Likewise.
45691         * lib/rename-dest-slash.c: Likewise.
45692         * lib/rename.c: Likewise.
45693         * lib/rmdir.c: Likewise.
45694         * lib/rpmatch.c: Likewise.
45695         * lib/safe-read.c: Likewise.
45696         * lib/safe-read.h: Likewise.
45697         * lib/safe-write.c: Likewise.
45698         * lib/safe-write.h: Likewise.
45699         * lib/same-inode.h: Likewise.
45700         * lib/same.c: Likewise.
45701         * lib/same.h: Likewise.
45702         * lib/save-cwd.c: Likewise.
45703         * lib/save-cwd.h: Likewise.
45704         * lib/savedir.c: Likewise.
45705         * lib/savedir.h: Likewise.
45706         * lib/savewd.c: Likewise.
45707         * lib/savewd.h: Likewise.
45708         * lib/search.in.h: Likewise.
45709         * lib/setenv.c: Likewise.
45710         * lib/setenv.h: Likewise.
45711         * lib/settime.c: Likewise.
45712         * lib/sh-quote.c: Likewise.
45713         * lib/sh-quote.h: Likewise.
45714         * lib/sig2str.c: Likewise.
45715         * lib/sig2str.h: Likewise.
45716         * lib/signal.in.h: Likewise.
45717         * lib/signbitd.c: Likewise.
45718         * lib/signbitf.c: Likewise.
45719         * lib/signbitl.c: Likewise.
45720         * lib/sigprocmask.c: Likewise.
45721         * lib/sincosl.c: Likewise.
45722         * lib/sleep.c: Likewise.
45723         * lib/sprintf.c: Likewise.
45724         * lib/sqrtl.c: Likewise.
45725         * lib/stat-time.h: Likewise.
45726         * lib/stdio--.h: Likewise.
45727         * lib/stdio-safer.h: Likewise.
45728         * lib/stdlib--.h: Likewise.
45729         * lib/stdlib-safer.h: Likewise.
45730         * lib/stdlib.in.h: Likewise.
45731         * lib/stpcpy.c: Likewise.
45732         * lib/stpncpy.c: Likewise.
45733         * lib/strchrnul.c: Likewise.
45734         * lib/strcspn.c: Likewise.
45735         * lib/strerror.c: Likewise.
45736         * lib/strftime.c: Likewise.
45737         * lib/strftime.h: Likewise.
45738         * lib/striconveh.c: Likewise.
45739         * lib/striconveh.h: Likewise.
45740         * lib/striconveha.c: Likewise.
45741         * lib/striconveha.h: Likewise.
45742         * lib/stripslash.c: Likewise.
45743         * lib/strnlen1.c: Likewise.
45744         * lib/strnlen1.h: Likewise.
45745         * lib/strtod.c: Likewise.
45746         * lib/strtoimax.c: Likewise.
45747         * lib/strtok_r.c: Likewise.
45748         * lib/strtol.c: Likewise.
45749         * lib/strtoll.c: Likewise.
45750         * lib/strtoul.c: Likewise.
45751         * lib/strtoull.c: Likewise.
45752         * lib/sysexits.in.h: Likewise.
45753         * lib/tempname.c: Likewise.
45754         * lib/tempname.h: Likewise.
45755         * lib/timespec.h: Likewise.
45756         * lib/tls.c: Likewise.
45757         * lib/tls.h: Likewise.
45758         * lib/tmpdir.c: Likewise.
45759         * lib/tmpdir.h: Likewise.
45760         * lib/tmpfile-safer.c: Likewise.
45761         * lib/tmpfile.c: Likewise.
45762         * lib/trigl.c: Likewise.
45763         * lib/trigl.h: Likewise.
45764         * lib/trim.c: Likewise.
45765         * lib/trim.h: Likewise.
45766         * lib/trunc.c: Likewise.
45767         * lib/truncf.c: Likewise.
45768         * lib/truncl.c: Likewise.
45769         * lib/tsearch.c: Likewise.
45770         * lib/unicodeio.c: Likewise.
45771         * lib/unicodeio.h: Likewise.
45772         * lib/unistd--.h: Likewise.
45773         * lib/unistd-safer.h: Likewise.
45774         * lib/unistdio/ulc-fprintf.c: Likewise.
45775         * lib/unistdio/ulc-vfprintf.c: Likewise.
45776         * lib/unlinkdir.c: Likewise.
45777         * lib/unlinkdir.h: Likewise.
45778         * lib/unlocked-io.h: Likewise.
45779         * lib/unsetenv.c: Likewise.
45780         * lib/userspec.c: Likewise.
45781         * lib/utime.c: Likewise.
45782         * lib/utimecmp.c: Likewise.
45783         * lib/utimecmp.h: Likewise.
45784         * lib/utimens.c: Likewise.
45785         * lib/verify.h: Likewise.
45786         * lib/verror.c: Likewise.
45787         * lib/verror.h: Likewise.
45788         * lib/version-etc-fsf.c: Likewise.
45789         * lib/version-etc.c: Likewise.
45790         * lib/version-etc.h: Likewise.
45791         * lib/vfprintf.c: Likewise.
45792         * lib/vprintf.c: Likewise.
45793         * lib/vsprintf.c: Likewise.
45794         * lib/w32spawn.h: Likewise.
45795         * lib/wait-process.c: Likewise.
45796         * lib/wait-process.h: Likewise.
45797         * lib/wcwidth.c: Likewise.
45798         * lib/write-any-file.c: Likewise.
45799         * lib/xalloc-die.c: Likewise.
45800         * lib/xalloc.h: Likewise.
45801         * lib/xasprintf.c: Likewise.
45802         * lib/xgetcwd.c: Likewise.
45803         * lib/xgetcwd.h: Likewise.
45804         * lib/xgetdomainname.c: Likewise.
45805         * lib/xgetdomainname.h: Likewise.
45806         * lib/xgethostname.c: Likewise.
45807         * lib/xmalloc.c: Likewise.
45808         * lib/xmalloca.c: Likewise.
45809         * lib/xmalloca.h: Likewise.
45810         * lib/xmemcoll.c: Likewise.
45811         * lib/xnanosleep.c: Likewise.
45812         * lib/xreadlink.c: Likewise.
45813         * lib/xreadlink.h: Likewise.
45814         * lib/xsetenv.c: Likewise.
45815         * lib/xsetenv.h: Likewise.
45816         * lib/xstriconv.c: Likewise.
45817         * lib/xstriconv.h: Likewise.
45818         * lib/xstrndup.c: Likewise.
45819         * lib/xstrndup.h: Likewise.
45820         * lib/xstrtod.c: Likewise.
45821         * lib/xstrtod.h: Likewise.
45822         * lib/xstrtol-error.c: Likewise.
45823         * lib/xstrtol.c: Likewise.
45824         * lib/xstrtol.h: Likewise.
45825         * lib/xtime.h: Likewise.
45826         * lib/xvasprintf.c: Likewise.
45827         * lib/xvasprintf.h: Likewise.
45828         * lib/yesno.c: Likewise.
45829         * lib/yesno.h: Likewise.
45830         * posix-modules: Likewise.
45831         * tests/test-alloca-opt.c: Likewise.
45832         * tests/test-arcfour.c: Likewise.
45833         * tests/test-arctwo.c: Likewise.
45834         * tests/test-argmatch.c: Likewise.
45835         * tests/test-argp-2.sh: Likewise.
45836         * tests/test-argp.c: Likewise.
45837         * tests/test-arpa_inet.c: Likewise.
45838         * tests/test-array_list.c: Likewise.
45839         * tests/test-array_oset.c: Likewise.
45840         * tests/test-atexit.c: Likewise.
45841         * tests/test-avltree_list.c: Likewise.
45842         * tests/test-avltree_oset.c: Likewise.
45843         * tests/test-avltreehash_list.c: Likewise.
45844         * tests/test-base64.c: Likewise.
45845         * tests/test-binary-io.c: Likewise.
45846         * tests/test-byteswap.c: Likewise.
45847         * tests/test-c-ctype.c: Likewise.
45848         * tests/test-c-strcasecmp.c: Likewise.
45849         * tests/test-c-strcasestr.c: Likewise.
45850         * tests/test-c-strncasecmp.c: Likewise.
45851         * tests/test-c-strstr.c: Likewise.
45852         * tests/test-canonicalize-lgpl.c: Likewise.
45853         * tests/test-canonicalize.c: Likewise.
45854         * tests/test-carray_list.c: Likewise.
45855         * tests/test-ceilf.c: Likewise.
45856         * tests/test-ceill.c: Likewise.
45857         * tests/test-count-one-bits.c: Likewise.
45858         * tests/test-crc.c: Likewise.
45859         * tests/test-dirname.c: Likewise.
45860         * tests/test-fbufmode.c: Likewise.
45861         * tests/test-fcntl.c: Likewise.
45862         * tests/test-fflush.c: Likewise.
45863         * tests/test-floorf.c: Likewise.
45864         * tests/test-floorl.c: Likewise.
45865         * tests/test-fopen.c: Likewise.
45866         * tests/test-fprintf-posix.c: Likewise.
45867         * tests/test-fprintf-posix.h: Likewise.
45868         * tests/test-fpurge.c: Likewise.
45869         * tests/test-freadable.c: Likewise.
45870         * tests/test-freadahead.c: Likewise.
45871         * tests/test-freading.c: Likewise.
45872         * tests/test-freopen.c: Likewise.
45873         * tests/test-frexp.c: Likewise.
45874         * tests/test-frexpl.c: Likewise.
45875         * tests/test-fseek.c: Likewise.
45876         * tests/test-fseeko.c: Likewise.
45877         * tests/test-fseterr.c: Likewise.
45878         * tests/test-fstrcmp.c: Likewise.
45879         * tests/test-ftell.c: Likewise.
45880         * tests/test-ftello.c: Likewise.
45881         * tests/test-fwritable.c: Likewise.
45882         * tests/test-fwriting.c: Likewise.
45883         * tests/test-getaddrinfo.c: Likewise.
45884         * tests/test-getpass.c: Likewise.
45885         * tests/test-gettimeofday.c: Likewise.
45886         * tests/test-hmac-md5.c: Likewise.
45887         * tests/test-hmac-sha1.c: Likewise.
45888         * tests/test-iconv.c: Likewise.
45889         * tests/test-iconvme.c: Likewise.
45890         * tests/test-inttypes.c: Likewise.
45891         * tests/test-isnan.c: Likewise.
45892         * tests/test-isnanf.c: Likewise.
45893         * tests/test-isnanl-nolibm.c: Likewise.
45894         * tests/test-isnanl.c: Likewise.
45895         * tests/test-isnanl.h: Likewise.
45896         * tests/test-ldexpl.c: Likewise.
45897         * tests/test-linked_list.c: Likewise.
45898         * tests/test-linkedhash_list.c: Likewise.
45899         * tests/test-locale.c: Likewise.
45900         * tests/test-localename.c: Likewise.
45901         * tests/test-lock.c: Likewise.
45902         * tests/test-lseek.c: Likewise.
45903         * tests/test-malloca.c: Likewise.
45904         * tests/test-math.c: Likewise.
45905         * tests/test-mbscasecmp.c: Likewise.
45906         * tests/test-mbscasestr1.c: Likewise.
45907         * tests/test-mbscasestr2.c: Likewise.
45908         * tests/test-mbscasestr3.c: Likewise.
45909         * tests/test-mbscasestr4.c: Likewise.
45910         * tests/test-mbschr.c: Likewise.
45911         * tests/test-mbscspn.c: Likewise.
45912         * tests/test-mbsncasecmp.c: Likewise.
45913         * tests/test-mbspbrk.c: Likewise.
45914         * tests/test-mbspcasecmp.c: Likewise.
45915         * tests/test-mbsrchr.c: Likewise.
45916         * tests/test-mbsspn.c: Likewise.
45917         * tests/test-mbsstr1.c: Likewise.
45918         * tests/test-mbsstr2.c: Likewise.
45919         * tests/test-mbsstr3.c: Likewise.
45920         * tests/test-md5.c: Likewise.
45921         * tests/test-memmem.c: Likewise.
45922         * tests/test-netinet_in.c: Likewise.
45923         * tests/test-open.c: Likewise.
45924         * tests/test-printf-frexp.c: Likewise.
45925         * tests/test-printf-frexpl.c: Likewise.
45926         * tests/test-printf-posix.c: Likewise.
45927         * tests/test-printf-posix.h: Likewise.
45928         * tests/test-rbtree_list.c: Likewise.
45929         * tests/test-rbtree_oset.c: Likewise.
45930         * tests/test-rbtreehash_list.c: Likewise.
45931         * tests/test-read-file.c: Likewise.
45932         * tests/test-rijndael.c: Likewise.
45933         * tests/test-search.c: Likewise.
45934         * tests/test-signbit.c: Likewise.
45935         * tests/test-sleep.c: Likewise.
45936         * tests/test-snprintf-posix.c: Likewise.
45937         * tests/test-snprintf-posix.h: Likewise.
45938         * tests/test-snprintf.c: Likewise.
45939         * tests/test-sprintf-posix.c: Likewise.
45940         * tests/test-sprintf-posix.h: Likewise.
45941         * tests/test-stat-time.c: Likewise.
45942         * tests/test-stdbool.c: Likewise.
45943         * tests/test-stdint.c: Likewise.
45944         * tests/test-stdio.c: Likewise.
45945         * tests/test-stdlib.c: Likewise.
45946         * tests/test-stpncpy.c: Likewise.
45947         * tests/test-strcasestr.c: Likewise.
45948         * tests/test-striconv.c: Likewise.
45949         * tests/test-striconveh.c: Likewise.
45950         * tests/test-striconveha.c: Likewise.
45951         * tests/test-string.c: Likewise.
45952         * tests/test-sys_select.c: Likewise.
45953         * tests/test-sys_socket.c: Likewise.
45954         * tests/test-sys_stat.c: Likewise.
45955         * tests/test-sys_time.c: Likewise.
45956         * tests/test-sysexits.c: Likewise.
45957         * tests/test-time.c: Likewise.
45958         * tests/test-tls.c: Likewise.
45959         * tests/test-trunc.c: Likewise.
45960         * tests/test-truncf.c: Likewise.
45961         * tests/test-truncl.c: Likewise.
45962         * tests/test-unistd.c: Likewise.
45963         * tests/test-vasnprintf-posix.c: Likewise.
45964         * tests/test-vasnprintf-posix2.c: Likewise.
45965         * tests/test-vasnprintf.c: Likewise.
45966         * tests/test-vasprintf-posix.c: Likewise.
45967         * tests/test-vasprintf.c: Likewise.
45968         * tests/test-verify.c: Likewise.
45969         * tests/test-vfprintf-posix.c: Likewise.
45970         * tests/test-vprintf-posix.c: Likewise.
45971         * tests/test-vsnprintf-posix.c: Likewise.
45972         * tests/test-vsnprintf.c: Likewise.
45973         * tests/test-vsprintf-posix.c: Likewise.
45974         * tests/test-wchar.c: Likewise.
45975         * tests/test-wctype.c: Likewise.
45976         * tests/test-wcwidth.c: Likewise.
45977         * tests/test-xstrtol.c: Likewise.
45978         * tests/test-xvasprintf.c: Likewise.
45979         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
45980         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
45981         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45982         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45983         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45984         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
45985         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45986         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45987         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45988         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
45989         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45990         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45991         * tests/uniname/test-uninames.c: Likewise.
45992         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
45993         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
45994         * tests/unistdio/test-u16-printf1.h: Likewise.
45995         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
45996         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
45997         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
45998         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
45999         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
46000         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
46001         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
46002         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
46003         * tests/unistdio/test-u32-printf1.h: Likewise.
46004         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
46005         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
46006         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
46007         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
46008         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
46009         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
46010         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
46011         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
46012         * tests/unistdio/test-u8-printf1.h: Likewise.
46013         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
46014         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
46015         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
46016         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
46017         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
46018         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
46019         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
46020         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
46021         * tests/unistdio/test-ulc-printf1.h: Likewise.
46022         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
46023         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
46024         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
46025         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
46026         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
46027         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
46028         * tests/uniwidth/test-u16-strwidth.c: Likewise.
46029         * tests/uniwidth/test-u16-width.c: Likewise.
46030         * tests/uniwidth/test-u32-strwidth.c: Likewise.
46031         * tests/uniwidth/test-u32-width.c: Likewise.
46032         * tests/uniwidth/test-u8-strwidth.c: Likewise.
46033         * tests/uniwidth/test-u8-width.c: Likewise.
46034         * tests/uniwidth/test-uc_width.c: Likewise.
46035         * config/srclist-update: Likewise.
46036         (fixlicense): Update to GPLv3+.
46037
46038         Change copyright notice from LGPLv2.1+ to LGPLv3+.
46039         * tests/test-tsearch.c: Change copyright notice.
46040
46041         Change copyright notice from LGPLv2.0+ to LGPLv3+.
46042         * lib/c-strcaseeq.h: Change copyright notice.
46043         * lib/streq.h: Likewise.
46044         * lib/uniconv.h: Likewise.
46045         * lib/uniconv/u-conv-from-enc.h: Likewise.
46046         * lib/uniconv/u-conv-to-enc.h: Likewise.
46047         * lib/uniconv/u-strconv-from-enc.h: Likewise.
46048         * lib/uniconv/u-strconv-to-enc.h: Likewise.
46049         * lib/uniconv/u16-conv-from-enc.c: Likewise.
46050         * lib/uniconv/u16-conv-to-enc.c: Likewise.
46051         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
46052         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
46053         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
46054         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
46055         * lib/uniconv/u32-conv-from-enc.c: Likewise.
46056         * lib/uniconv/u32-conv-to-enc.c: Likewise.
46057         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
46058         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
46059         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
46060         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
46061         * lib/uniconv/u8-conv-from-enc.c: Likewise.
46062         * lib/uniconv/u8-conv-to-enc.c: Likewise.
46063         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
46064         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
46065         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
46066         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
46067         * lib/uniname.h: Likewise.
46068         * lib/uniname/uniname.c: Likewise.
46069         * lib/unistdio.h: Likewise.
46070         * lib/unistdio/u-asnprintf.h: Likewise.
46071         * lib/unistdio/u-asprintf.h: Likewise.
46072         * lib/unistdio/u-printf-args.c: Likewise.
46073         * lib/unistdio/u-printf-args.h: Likewise.
46074         * lib/unistdio/u-printf-parse.h: Likewise.
46075         * lib/unistdio/u-snprintf.h: Likewise.
46076         * lib/unistdio/u-sprintf.h: Likewise.
46077         * lib/unistdio/u-vasprintf.h: Likewise.
46078         * lib/unistdio/u-vsnprintf.h: Likewise.
46079         * lib/unistdio/u-vsprintf.h: Likewise.
46080         * lib/unistdio/u16-asnprintf.c: Likewise.
46081         * lib/unistdio/u16-asprintf.c: Likewise.
46082         * lib/unistdio/u16-printf-parse.c: Likewise.
46083         * lib/unistdio/u16-snprintf.c: Likewise.
46084         * lib/unistdio/u16-sprintf.c: Likewise.
46085         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
46086         * lib/unistdio/u16-u16-asprintf.c: Likewise.
46087         * lib/unistdio/u16-u16-snprintf.c: Likewise.
46088         * lib/unistdio/u16-u16-sprintf.c: Likewise.
46089         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
46090         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
46091         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
46092         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
46093         * lib/unistdio/u16-vasnprintf.c: Likewise.
46094         * lib/unistdio/u16-vasprintf.c: Likewise.
46095         * lib/unistdio/u16-vsnprintf.c: Likewise.
46096         * lib/unistdio/u16-vsprintf.c: Likewise.
46097         * lib/unistdio/u32-asnprintf.c: Likewise.
46098         * lib/unistdio/u32-asprintf.c: Likewise.
46099         * lib/unistdio/u32-printf-parse.c: Likewise.
46100         * lib/unistdio/u32-snprintf.c: Likewise.
46101         * lib/unistdio/u32-sprintf.c: Likewise.
46102         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
46103         * lib/unistdio/u32-u32-asprintf.c: Likewise.
46104         * lib/unistdio/u32-u32-snprintf.c: Likewise.
46105         * lib/unistdio/u32-u32-sprintf.c: Likewise.
46106         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
46107         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
46108         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
46109         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
46110         * lib/unistdio/u32-vasnprintf.c: Likewise.
46111         * lib/unistdio/u32-vasprintf.c: Likewise.
46112         * lib/unistdio/u32-vsnprintf.c: Likewise.
46113         * lib/unistdio/u32-vsprintf.c: Likewise.
46114         * lib/unistdio/u8-asnprintf.c: Likewise.
46115         * lib/unistdio/u8-asprintf.c: Likewise.
46116         * lib/unistdio/u8-printf-parse.c: Likewise.
46117         * lib/unistdio/u8-snprintf.c: Likewise.
46118         * lib/unistdio/u8-sprintf.c: Likewise.
46119         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
46120         * lib/unistdio/u8-u8-asprintf.c: Likewise.
46121         * lib/unistdio/u8-u8-snprintf.c: Likewise.
46122         * lib/unistdio/u8-u8-sprintf.c: Likewise.
46123         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
46124         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
46125         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
46126         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
46127         * lib/unistdio/u8-vasnprintf.c: Likewise.
46128         * lib/unistdio/u8-vasprintf.c: Likewise.
46129         * lib/unistdio/u8-vsnprintf.c: Likewise.
46130         * lib/unistdio/u8-vsprintf.c: Likewise.
46131         * lib/unistdio/ulc-asnprintf.c: Likewise.
46132         * lib/unistdio/ulc-asprintf.c: Likewise.
46133         * lib/unistdio/ulc-printf-parse.c: Likewise.
46134         * lib/unistdio/ulc-snprintf.c: Likewise.
46135         * lib/unistdio/ulc-sprintf.c: Likewise.
46136         * lib/unistdio/ulc-vasnprintf.c: Likewise.
46137         * lib/unistdio/ulc-vasprintf.c: Likewise.
46138         * lib/unistdio/ulc-vsnprintf.c: Likewise.
46139         * lib/unistdio/ulc-vsprintf.c: Likewise.
46140         * lib/unistr.h: Likewise.
46141         * lib/unistr/u-cpy-alloc.h: Likewise.
46142         * lib/unistr/u-cpy.h: Likewise.
46143         * lib/unistr/u-endswith.h: Likewise.
46144         * lib/unistr/u-move.h: Likewise.
46145         * lib/unistr/u-set.h: Likewise.
46146         * lib/unistr/u-startswith.h: Likewise.
46147         * lib/unistr/u-stpcpy.h: Likewise.
46148         * lib/unistr/u-stpncpy.h: Likewise.
46149         * lib/unistr/u-strcat.h: Likewise.
46150         * lib/unistr/u-strcpy.h: Likewise.
46151         * lib/unistr/u-strcspn.h: Likewise.
46152         * lib/unistr/u-strdup.h: Likewise.
46153         * lib/unistr/u-strlen.h: Likewise.
46154         * lib/unistr/u-strncat.h: Likewise.
46155         * lib/unistr/u-strncpy.h: Likewise.
46156         * lib/unistr/u-strnlen.h: Likewise.
46157         * lib/unistr/u-strpbrk.h: Likewise.
46158         * lib/unistr/u-strspn.h: Likewise.
46159         * lib/unistr/u-strstr.h: Likewise.
46160         * lib/unistr/u-strtok.h: Likewise.
46161         * lib/unistr/u16-check.c: Likewise.
46162         * lib/unistr/u16-chr.c: Likewise.
46163         * lib/unistr/u16-cmp.c: Likewise.
46164         * lib/unistr/u16-cpy-alloc.c: Likewise.
46165         * lib/unistr/u16-cpy.c: Likewise.
46166         * lib/unistr/u16-endswith.c: Likewise.
46167         * lib/unistr/u16-mblen.c: Likewise.
46168         * lib/unistr/u16-mbsnlen.c: Likewise.
46169         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46170         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46171         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46172         * lib/unistr/u16-mbtouc.c: Likewise.
46173         * lib/unistr/u16-mbtoucr.c: Likewise.
46174         * lib/unistr/u16-move.c: Likewise.
46175         * lib/unistr/u16-next.c: Likewise.
46176         * lib/unistr/u16-prev.c: Likewise.
46177         * lib/unistr/u16-set.c: Likewise.
46178         * lib/unistr/u16-startswith.c: Likewise.
46179         * lib/unistr/u16-stpcpy.c: Likewise.
46180         * lib/unistr/u16-stpncpy.c: Likewise.
46181         * lib/unistr/u16-strcat.c: Likewise.
46182         * lib/unistr/u16-strchr.c: Likewise.
46183         * lib/unistr/u16-strcmp.c: Likewise.
46184         * lib/unistr/u16-strcpy.c: Likewise.
46185         * lib/unistr/u16-strcspn.c: Likewise.
46186         * lib/unistr/u16-strdup.c: Likewise.
46187         * lib/unistr/u16-strlen.c: Likewise.
46188         * lib/unistr/u16-strmblen.c: Likewise.
46189         * lib/unistr/u16-strmbtouc.c: Likewise.
46190         * lib/unistr/u16-strncat.c: Likewise.
46191         * lib/unistr/u16-strncmp.c: Likewise.
46192         * lib/unistr/u16-strncpy.c: Likewise.
46193         * lib/unistr/u16-strnlen.c: Likewise.
46194         * lib/unistr/u16-strpbrk.c: Likewise.
46195         * lib/unistr/u16-strrchr.c: Likewise.
46196         * lib/unistr/u16-strspn.c: Likewise.
46197         * lib/unistr/u16-strstr.c: Likewise.
46198         * lib/unistr/u16-strtok.c: Likewise.
46199         * lib/unistr/u16-to-u32.c: Likewise.
46200         * lib/unistr/u16-to-u8.c: Likewise.
46201         * lib/unistr/u16-uctomb-aux.c: Likewise.
46202         * lib/unistr/u16-uctomb.c: Likewise.
46203         * lib/unistr/u32-check.c: Likewise.
46204         * lib/unistr/u32-chr.c: Likewise.
46205         * lib/unistr/u32-cmp.c: Likewise.
46206         * lib/unistr/u32-cpy-alloc.c: Likewise.
46207         * lib/unistr/u32-cpy.c: Likewise.
46208         * lib/unistr/u32-endswith.c: Likewise.
46209         * lib/unistr/u32-mblen.c: Likewise.
46210         * lib/unistr/u32-mbsnlen.c: Likewise.
46211         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46212         * lib/unistr/u32-mbtouc.c: Likewise.
46213         * lib/unistr/u32-mbtoucr.c: Likewise.
46214         * lib/unistr/u32-move.c: Likewise.
46215         * lib/unistr/u32-next.c: Likewise.
46216         * lib/unistr/u32-prev.c: Likewise.
46217         * lib/unistr/u32-set.c: Likewise.
46218         * lib/unistr/u32-startswith.c: Likewise.
46219         * lib/unistr/u32-stpcpy.c: Likewise.
46220         * lib/unistr/u32-stpncpy.c: Likewise.
46221         * lib/unistr/u32-strcat.c: Likewise.
46222         * lib/unistr/u32-strchr.c: Likewise.
46223         * lib/unistr/u32-strcmp.c: Likewise.
46224         * lib/unistr/u32-strcpy.c: Likewise.
46225         * lib/unistr/u32-strcspn.c: Likewise.
46226         * lib/unistr/u32-strdup.c: Likewise.
46227         * lib/unistr/u32-strlen.c: Likewise.
46228         * lib/unistr/u32-strmblen.c: Likewise.
46229         * lib/unistr/u32-strmbtouc.c: Likewise.
46230         * lib/unistr/u32-strncat.c: Likewise.
46231         * lib/unistr/u32-strncmp.c: Likewise.
46232         * lib/unistr/u32-strncpy.c: Likewise.
46233         * lib/unistr/u32-strnlen.c: Likewise.
46234         * lib/unistr/u32-strpbrk.c: Likewise.
46235         * lib/unistr/u32-strrchr.c: Likewise.
46236         * lib/unistr/u32-strspn.c: Likewise.
46237         * lib/unistr/u32-strstr.c: Likewise.
46238         * lib/unistr/u32-strtok.c: Likewise.
46239         * lib/unistr/u32-to-u16.c: Likewise.
46240         * lib/unistr/u32-to-u8.c: Likewise.
46241         * lib/unistr/u32-uctomb.c: Likewise.
46242         * lib/unistr/u8-check.c: Likewise.
46243         * lib/unistr/u8-chr.c: Likewise.
46244         * lib/unistr/u8-cmp.c: Likewise.
46245         * lib/unistr/u8-cpy-alloc.c: Likewise.
46246         * lib/unistr/u8-cpy.c: Likewise.
46247         * lib/unistr/u8-endswith.c: Likewise.
46248         * lib/unistr/u8-mblen.c: Likewise.
46249         * lib/unistr/u8-mbsnlen.c: Likewise.
46250         * lib/unistr/u8-mbtouc-aux.c: Likewise.
46251         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46252         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46253         * lib/unistr/u8-mbtouc.c: Likewise.
46254         * lib/unistr/u8-mbtoucr.c: Likewise.
46255         * lib/unistr/u8-move.c: Likewise.
46256         * lib/unistr/u8-next.c: Likewise.
46257         * lib/unistr/u8-prev.c: Likewise.
46258         * lib/unistr/u8-set.c: Likewise.
46259         * lib/unistr/u8-startswith.c: Likewise.
46260         * lib/unistr/u8-stpcpy.c: Likewise.
46261         * lib/unistr/u8-stpncpy.c: Likewise.
46262         * lib/unistr/u8-strcat.c: Likewise.
46263         * lib/unistr/u8-strchr.c: Likewise.
46264         * lib/unistr/u8-strcmp.c: Likewise.
46265         * lib/unistr/u8-strcpy.c: Likewise.
46266         * lib/unistr/u8-strcspn.c: Likewise.
46267         * lib/unistr/u8-strdup.c: Likewise.
46268         * lib/unistr/u8-strlen.c: Likewise.
46269         * lib/unistr/u8-strmblen.c: Likewise.
46270         * lib/unistr/u8-strmbtouc.c: Likewise.
46271         * lib/unistr/u8-strncat.c: Likewise.
46272         * lib/unistr/u8-strncmp.c: Likewise.
46273         * lib/unistr/u8-strncpy.c: Likewise.
46274         * lib/unistr/u8-strnlen.c: Likewise.
46275         * lib/unistr/u8-strpbrk.c: Likewise.
46276         * lib/unistr/u8-strrchr.c: Likewise.
46277         * lib/unistr/u8-strspn.c: Likewise.
46278         * lib/unistr/u8-strstr.c: Likewise.
46279         * lib/unistr/u8-strtok.c: Likewise.
46280         * lib/unistr/u8-to-u16.c: Likewise.
46281         * lib/unistr/u8-to-u32.c: Likewise.
46282         * lib/unistr/u8-uctomb-aux.c: Likewise.
46283         * lib/unistr/u8-uctomb.c: Likewise.
46284         * lib/unitypes.h: Likewise.
46285         * lib/uniwidth.h: Likewise.
46286         * lib/uniwidth/cjk.h: Likewise.
46287         * lib/uniwidth/u16-strwidth.c: Likewise.
46288         * lib/uniwidth/u16-width.c: Likewise.
46289         * lib/uniwidth/u32-strwidth.c: Likewise.
46290         * lib/uniwidth/u32-width.c: Likewise.
46291         * lib/uniwidth/u8-strwidth.c: Likewise.
46292         * lib/uniwidth/u8-width.c: Likewise.
46293         * lib/uniwidth/width.c: Likewise.
46294
46295 2007-10-07  Bruno Haible  <bruno@clisp.org>
46296
46297         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
46298         The file is still under LGPL (see modules/inttypes).
46299
46300 2007-10-06  Bruno Haible  <bruno@clisp.org>
46301
46302         * modules/trunc (Dependencies): Add 'extensions'.
46303         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
46304         Reported by Ben Pfaff <blp@gnu.org>.
46305
46306 2007-10-06  Bruno Haible  <bruno@clisp.org>
46307
46308         * modules/freopen-tests: New file.
46309         * tests/test-freopen.c: New file.
46310
46311         * modules/fopen-tests: New file.
46312         * tests/test-fopen.c: New file.
46313
46314         * modules/fopen: New file.
46315         * lib/fopen.c: New file.
46316         * m4/fopen.m4: New file.
46317         * modules/freopen: New file.
46318         * lib/freopen.c: New file.
46319         * m4/freopen.m4: New file.
46320         * lib/stdio.in.h (fopen, freopen): New declarations.
46321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
46322         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46323         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
46324         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46325         * doc/functions/fopen.texi: Mention the 'fopen' module.
46326         * doc/functions/freopen.texi: Mention the 'freopen' module.
46327
46328 2007-10-06  Bruno Haible  <bruno@clisp.org>
46329
46330         * modules/open-tests: New file.
46331         * tests/test-open.c: New file.
46332
46333         * modules/open: New file.
46334         * lib/open.c: New file.
46335         * m4/open.m4: New file.
46336         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
46337         lib/open.c does.
46338         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
46339         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
46340         macros.
46341         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
46342         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
46343         REPLACE_OPEN.
46344         * doc/functions/open.texi: Mention the 'open' module.
46345
46346 2007-10-04  Bruno Haible  <bruno@clisp.org>
46347
46348         * modules/ceill-tests: New file.
46349         * tests/test-ceill.c: New file.
46350
46351         * modules/ceill: New file.
46352         * lib/ceill.c: Replace entire file.
46353         * m4/ceill.m4: New file.
46354         * lib/math.in.h (ceill): Replace declaration.
46355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
46356         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
46357         * doc/functions/ceill.texi: Mention the 'ceill' module.
46358         * modules/mathl (Files): Remove lib/ceill.c.
46359         (Depends-on): Add ceill.
46360
46361 2007-10-04  Bruno Haible  <bruno@clisp.org>
46362
46363         * modules/ceilf-tests: New file.
46364         * tests/test-ceilf.c: New file.
46365
46366         * modules/ceilf: New file.
46367         * lib/ceil.c: New file.
46368         * lib/ceilf.c: New file.
46369         * m4/ceilf.m4: New file.
46370         * lib/math.in.h (ceilf): New declaration.
46371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
46372         HAVE_DECL_CEILF.
46373         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
46374         HAVE_DECL_CEILF.
46375         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
46376
46377 2007-10-04  Bruno Haible  <bruno@clisp.org>
46378
46379         * modules/floorl-tests: New file.
46380         * tests/test-floorl.c: New file.
46381
46382         * modules/floorl: New file.
46383         * lib/floorl.c: Replace entire file.
46384         * m4/floorl.m4: New file.
46385         * lib/math.in.h (floorl): Replace declaration.
46386         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
46387         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
46388         * doc/functions/floorl.texi: Mention the 'floorl' module.
46389         * modules/mathl (Files): Remove lib/floorl.c.
46390         (Depends-on): Add floorl.
46391
46392 2007-10-04  Bruno Haible  <bruno@clisp.org>
46393
46394         * modules/floorf-tests: New file.
46395         * tests/test-floorf.c: New file.
46396
46397         * modules/floorf: New file.
46398         * lib/floor.c: New file.
46399         * lib/floorf.c: New file.
46400         * m4/floorf.m4: New file.
46401         * lib/math.in.h (floorf): New declaration.
46402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
46403         HAVE_DECL_FLOORF.
46404         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
46405         HAVE_DECL_FLOORF.
46406         * doc/functions/floorf.texi: Mention the 'floorf' module.
46407
46408 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
46409             Bruno Haible  <bruno@clisp.org>
46410
46411         Advertise for the Git server instead of the CVS server.
46412         * doc/gnulib-intro.texi (Steady Development): Mention the Git
46413         repository instead of the CVS one.
46414         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
46415         about all VCS systems generically.
46416         * doc/gnulib.texi (Introduction): Capitalize `Git'.
46417
46418 2007-10-04  Bruno Haible  <bruno@clisp.org>
46419
46420         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
46421         means.
46422         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
46423
46424 2007-10-04  Bruno Haible  <bruno@clisp.org>
46425
46426         * modules/truncl-tests: New file.
46427         * tests/test-truncl.c: New file.
46428
46429         * modules/truncl: New file.
46430         * lib/truncl.c: New file.
46431         * m4/truncl.m4: New file.
46432         * lib/math.in.h (truncl): New declaration.
46433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
46434         HAVE_DECL_TRUNCL.
46435         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
46436         HAVE_DECL_TRUNCL.
46437         * doc/functions/truncl.texi: Mention the 'truncl' module.
46438
46439 2007-10-04  Bruno Haible  <bruno@clisp.org>
46440
46441         * modules/truncf-tests: New file.
46442         * tests/test-truncf.c: New file.
46443
46444         * modules/truncf: New file.
46445         * lib/trunc.c: Make paramerizable through USE_* macros.
46446         * lib/truncf.c: New file.
46447         * m4/truncf.m4: New file.
46448         * lib/math.in.h (truncf): New declaration.
46449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
46450         HAVE_DECL_TRUNCF.
46451         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
46452         HAVE_DECL_TRUNCF.
46453         * doc/functions/truncf.texi: Mention the 'truncf' module.
46454
46455 2007-10-03  Bruno Haible  <bruno@clisp.org>
46456
46457         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46458         augmentation also for tests modules.
46459         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
46460         * modules/atexit-tests (Makefile.am): Likewise.
46461         * modules/binary-io-tests (Makefile.am): Likewise.
46462         * modules/c-strcase-tests (Makefile.am): Likewise.
46463         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
46464         * modules/canonicalize-tests (Makefile.am): Likewise.
46465         * modules/closein-tests (Makefile.am): Likewise.
46466         * modules/fprintf-posix-tests (Makefile.am): Likewise.
46467         * modules/freadahead-tests (Makefile.am): Likewise.
46468         * modules/fseek-tests (Makefile.am): Likewise.
46469         * modules/fseeko-tests (Makefile.am): Likewise.
46470         * modules/ftell-tests (Makefile.am): Likewise.
46471         * modules/ftello-tests (Makefile.am): Likewise.
46472         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
46473         * modules/isnanl-tests (Makefile.am): Likewise.
46474         * modules/lseek-tests (Makefile.am): Likewise.
46475         * modules/mbscasecmp-tests (Makefile.am): Likewise.
46476         * modules/mbscasestr-tests (Makefile.am): Likewise.
46477         * modules/mbschr-tests (Makefile.am): Likewise.
46478         * modules/mbscspn-tests (Makefile.am): Likewise.
46479         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
46480         * modules/mbspbrk-tests (Makefile.am): Likewise.
46481         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
46482         * modules/mbsrchr-tests (Makefile.am): Likewise.
46483         * modules/mbsspn-tests (Makefile.am): Likewise.
46484         * modules/mbsstr-tests (Makefile.am): Likewise.
46485         * modules/printf-posix-tests (Makefile.am): Likewise.
46486         * modules/snprintf-posix-tests (Makefile.am): Likewise.
46487         * modules/sprintf-posix-tests (Makefile.am): Likewise.
46488         * modules/tsearch-tests (Makefile.am): Likewise.
46489         * modules/uniname/uniname-tests (Makefile.am): Likewise.
46490         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
46491         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
46492         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
46493         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
46494         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
46495         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
46496         * modules/vprintf-posix-tests (Makefile.am): Likewise.
46497         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
46498         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
46499         * modules/xstrtoimax-tests (Makefile.am): Likewise.
46500         * modules/xstrtol-tests (Makefile.am): Likewise.
46501         * modules/xstrtoumax-tests (Makefile.am): Likewise.
46502         * modules/yesno-tests (Makefile.am): Likewise.
46503
46504 2007-10-03  Bruno Haible  <bruno@clisp.org>
46505
46506         * modules/trunc-tests: New file.
46507         * tests/test-trunc.c: New file.
46508
46509         * modules/trunc: New file.
46510         * lib/trunc.c: New file.
46511         * m4/trunc.m4: New file.
46512         * lib/math.in.h (trunc): New declaration.
46513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
46514         HAVE_DECL_TRUNC.
46515         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
46516         HAVE_DECL_TRUNC.
46517         * doc/functions/trunc.texi: Mention the 'trunc' module.
46518
46519 2007-10-03  Bruno Haible  <bruno@clisp.org>
46520
46521         * tests/test-fpending.c: New file, mostly copied
46522         from coreutils/lib/t-fpending.c.
46523         * modules/fpending-tests: New file.
46524
46525 2007-10-03  Bruno Haible  <bruno@clisp.org>
46526
46527         Port the stdio extensions to QNX (untested).
46528         * lib/fseterr.c (fseterr): Add support for QNX.
46529         * lib/fbufmode.c (fbufmode): Likewise.
46530         * lib/freadable.c (freadable): Likewise.
46531         * lib/fwritable.c (fwritable): Likewise.
46532         * lib/freading.c (freading): Likewise.
46533         * lib/fwriting.c (fwriting): Likewise.
46534         * lib/freadahead.c (freadahed): Likewise.
46535         * lib/fpurge.c (fpurge): Likewise.
46536         * lib/fseeko.c (rpl_fseeko): Likewise.
46537
46538 2007-10-03  Bruno Haible  <bruno@clisp.org>
46539             Jim Meyering  <jim@meyering.net>
46540             Eric Blake  <ebb9@byu.net>
46541
46542         * doc/relocatable.texi: Use @command instead of @program.
46543
46544 2007-10-02  Jim Meyering  <jim@meyering.net>
46545
46546         Perform one more "_.h" -> ".in.h" substitution.
46547         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
46548         instead of unistd_.h here, too.
46549
46550 2007-10-01  Bruno Haible  <bruno@clisp.org>
46551
46552         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
46553         Needed for the alloca-opt module.
46554
46555 2007-09-30  Bruno Haible  <bruno@clisp.org>
46556
46557         * lib/alloca.in.h: Renamed from lib/alloca_.h.
46558         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
46559         alloca_.h.
46560         * lib/argz.in.h: Renamed from lib/argz_.h.
46561         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
46562         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
46563         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
46564         byteswap_.h.
46565         * lib/dirent.in.h: Renamed from lib/dirent_.h.
46566         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
46567         dirent_.h.
46568         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
46569         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
46570         fcntl_.h.
46571         * lib/float.in.h: Renamed from lib/float_.h.
46572         * modules/float (Files, Makefile.am): Use float.in.h instead of
46573         float_.h.
46574         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
46575         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
46576         fnmatch_.h.
46577         * lib/getopt.in.h: Renamed from lib/getopt_.h.
46578         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
46579         getopt_.h.
46580         * lib/glob.in.h: Renamed from lib/glob_.h.
46581         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
46582         * lib/iconv.in.h: Renamed from lib/iconv_.h.
46583         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
46584         iconv_.h.
46585         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
46586         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
46587         inttypes_.h.
46588         * lib/locale.in.h: Renamed from lib/locale_.h.
46589         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
46590         locale_.h.
46591         * lib/math.in.h: Renamed from lib/math_.h.
46592         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
46593         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
46594         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
46595         of netinet_in_.h. Add dependency.
46596         * lib/poll.in.h: Renamed from lib/poll_.h.
46597         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
46598         * lib/search.in.h: Renamed from lib/search_.h.
46599         * modules/search (Files, Makefile.am): Use search.in.h instead of
46600         search_.h.
46601         * lib/signal.in.h: Renamed from lib/signal_.h.
46602         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
46603         _signal.h.
46604         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
46605         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
46606         stdbool_.h.
46607         * lib/stdint.in.h: Renamed from lib/stdint_.h.
46608         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
46609         stdint_.h.
46610         * lib/stdio.in.h: Renamed from lib/stdio_.h.
46611         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
46612         stdio_.h.
46613         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
46614         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
46615         stdlib_.h.
46616         * lib/string.in.h: Renamed from lib/string_.h.
46617         * modules/string (Files, Makefile.am): Use string.in.h instead of
46618         string_.h.
46619         * doc/gnulib-tool.texi (Initial import): Update.
46620         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
46621         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
46622         of sys_select_.h. Add dependency.
46623         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
46624         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
46625         of sys_socket_.h.
46626         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
46627         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
46628         sys_stat_.h.
46629         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
46630         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
46631         sys_time_.h.
46632         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
46633         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
46634         sysexits_.h.
46635         * lib/time.in.h: Renamed from lib/time_.h.
46636         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
46637         * lib/unistd.in.h: Renamed from lib/unistd_.h.
46638         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
46639         unistd_.h.
46640         * lib/wchar.in.h: Renamed from lib/wchar_.h.
46641         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
46642         wchar_.h.
46643         * lib/wctype.in.h: Renamed from lib/wctype_.h.
46644         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
46645         wctype_.h.
46646         * build-aux/bootstrap (slurp): Update.
46647         * lib/.cppi-disable: Update.
46648
46649 2007-09-30  Bruno Haible  <bruno@clisp.org>
46650
46651         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
46652         Needed on BeOS.
46653
46654 2007-09-30  Bruno Haible  <bruno@clisp.org>
46655
46656         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
46657
46658 2007-09-29  Bruno Haible  <bruno@clisp.org>
46659
46660         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
46661
46662 2007-09-29  Bruno Haible  <bruno@clisp.org>
46663
46664         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
46665         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
46666         * build-aux/install-reloc: Compile also areadlink.c.
46667         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
46668
46669 2007-09-29  Bruno Haible  <bruno@clisp.org>
46670
46671         * gnulib-tool (func_emit_initmacro_done): Indentation.
46672
46673 2007-09-29  Bruno Haible  <bruno@clisp.org>
46674
46675         * README: Add CVS checkout update instructions.
46676         Info from Bob Proulx <bob@proulx.com>.
46677
46678 2007-09-28  Eric Blake  <ebb9@byu.net>
46679
46680         Provide move-if-change.
46681         * build-aux/move-if-change: New file, based on best practice
46682         rather than any canonical upstream location.
46683
46684 2007-09-28  Jim Meyering  <jim@meyering.net>
46685
46686         Fix canonicalize loop-detection corner case.
46687         Do not attempt to stat the symlink values stored via seen_triple.
46688         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
46689         on linux-2.6.18, (but not 2.6.22).
46690         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
46691         triple_compare.  The former compares dev,ino,filename, while the latter
46692         would actually stat dirname(filename) when dev and ino were equal.
46693         * lib/hash-triple.c: Install <string.h>.
46694         (STREQ): Define.
46695         (triple_compare_ino_str): New function.
46696         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
46697
46698 2007-09-28  Eric Blake  <ebb9@byu.net>
46699
46700         Enforce that AC_REPLACE_FUNCS files exist.
46701         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
46702         override check for typos.
46703
46704         Fix test-closein on Solaris 10.
46705         * tests/test-closein.c (main): Don't assume stdin can be inherited
46706         closed on all systems.
46707         * tests/test-closein.sh: Likewise.
46708         Reported by Piotr Tarnowski.
46709
46710 2007-09-28  Jim Meyering  <jim@meyering.net>
46711
46712         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
46713
46714 2007-09-27  Jim Meyering  <jim@meyering.net>
46715
46716         canonicalize: Avoid a false-positive cycle failure.
46717         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
46718         Sort.  Remove cycle-check.
46719         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
46720         not cycle-check.h.
46721         (seen_triple): New function.
46722         (canonicalize_filename_mode): Use it instead of cycle-check.
46723         * tests/test-canonicalize.c: Add a test for this bug.
46724         * tests/test-canonicalize.sh: Set up and run the test.
46725
46726         New module, file-set, from coreutils.
46727         * modules/file-set: Define it.
46728         * lib/file-set.c, lib/file-set.h: Implement.
46729
46730         New module, hash-triple, from coreutils.
46731         * modules/hash-triple: Define it.
46732         * lib/hash-triple.c, lib/hash-triple.h: Implement.
46733
46734 2007-09-25  Eric Blake  <ebb9@byu.net>
46735
46736         Fix strerror on Interix.
46737         * lib/string_.h (strerror): Declare replacement.
46738         * doc/functions/strerror.texi (strerror): Document the Interix
46739         shortcoming.
46740         * modules/string (Makefile.am): Support new hooks.
46741         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
46742         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
46743         gl_FUNC_STRERROR_SEPARATE.
46744         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
46745         * lib/strerror.c (rpl_strerror): Provide replacement.
46746         * modules/strerror (Depends-on): Add string.
46747         (configure.ac): Detect use of module.
46748         * tests/test-strerror.c: New file.
46749         * modules/strerror-tests: New test module.
46750         * modules/argp (Depends-on): Add strerror.
46751         * modules/error (Depends-on): Likewise.
46752         Reported by Martin Koeppe.
46753
46754 2007-09-24  Bruno Haible  <bruno@clisp.org>
46755
46756         * README: Update git instructions.
46757
46758 2007-09-24  Eric Blake  <ebb9@byu.net>
46759
46760         Revert fpending breakage from 2007-09-08.
46761         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
46762         __fpending.c.
46763
46764 2007-09-24  Jim Meyering  <jim@meyering.net>
46765
46766         filenamecat.c: Add a test.
46767         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
46768         showing how the function works when DIR is the empty string.
46769
46770 2007-09-21  Simon Josefsson  <simon@josefsson.org>
46771
46772         * tests/test-canonicalize.sh: Turn on executable bit.
46773
46774 2007-09-19  Eric Blake  <ebb9@byu.net>
46775
46776         * README: Update CVS instructions.
46777
46778 2007-09-18  Bruno Haible  <bruno@clisp.org>
46779
46780         * modules/areadlink: New file.
46781         * lib/areadlink.h (areadlink): New declaration.
46782         * lib/areadlink.c: New file, based on lib/xreadlink.c.
46783
46784 2007-09-17  Jim Meyering  <jim@meyering.net>
46785
46786         * lib/savewd.c (ESTALE) [!defined]: Define.
46787         Reported to be required on Interix by Martin Koeppe.
46788
46789 2007-09-17  Bruno Haible  <bruno@clisp.org>
46790
46791         * gnulib-tool (func_version): Use $version.
46792
46793 2007-09-16  Bruno Haible  <bruno@clisp.org>
46794
46795         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
46796         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
46797         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
46798         Reported by Greg Schafer <gschafer@zip.com.au>.
46799
46800 2007-09-15  Bruno Haible  <bruno@clisp.org>
46801
46802         * gnulib-tool (sed): Try a little harder to make bash understand the
46803         alias.
46804         Reported by Bruce Korb <bruce.korb@gmail.com>.
46805
46806 2007-09-13  Eric Blake  <ebb9@byu.net>
46807
46808         * ChangeLog: Remove conflict markers.
46809
46810 2007-09-13  Simon Josefsson  <simon@josefsson.org>
46811
46812         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
46813         Reported by Bruno Haible <bruno@clisp.org>.
46814
46815 2007-09-12  Bruno Haible  <bruno@clisp.org>
46816
46817         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
46818         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
46819         is not defined.
46820
46821 2007-09-12  Eric Blake  <ebb9@byu.net>
46822
46823         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
46824         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
46825         Autoconf definition.
46826         * modules/euidaccess (Depends-on): Add extensions, for
46827         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
46828         * modules/fnmatch (Depends-on): Likewise.
46829         * modules/getaddrinfo (Depends-on): Likewise.
46830         * modules/getdelim (Depends-on): Likewise.
46831         * modules/getline (Depends-on): Likewise.
46832         * modules/getsubopt (Depends-on): Likewise.
46833         * modules/gettext (Depends-on): Likewise.
46834         * modules/group-member (Depends-on): Likewise.
46835         * modules/mbchar (Depends-on): Likewise.
46836         * modules/memmem (Depends-on): Likewise.
46837         * modules/mempcpy (Depends-on): Likewise.
46838         * modules/memrchr (Depends-on): Likewise.
46839         * modules/pagealign_alloc (Depends-on): Likewise.
46840         * modules/readutmp (Depends-on): Likewise.
46841         * modules/stpcpy (Depends-on): Likewise.
46842         * modules/stpncpy (Depends-on): Likewise.
46843         * modules/strchrnul (Depends-on): Likewise.
46844         * modules/strndup (Depends-on): Likewise.
46845         * modules/strsep (Depends-on): Likewise.
46846         * modules/strverscmp (Depends-on): Likewise.
46847         * modules/vasprintf (Depends-on): Likewise.
46848         * modules/wcwidth (Depends-on): Likewise.
46849         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
46850         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
46851         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
46852         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
46853         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46854         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46855         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
46856         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46857         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
46858         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
46859         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46860         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46861         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46862         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
46863         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
46864         * m4/readutmp.m4 (gl_READUTMP): Likewise.
46865         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46866         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46867         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46868         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46869         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46870         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46871         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46872         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
46873         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
46874         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46875         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
46876         so that lock.m4 can be used in gettext without extensions module.
46877
46878 2007-09-11  Bruno Haible  <bruno@clisp.org>
46879
46880         * m4/isc-posix.m4: Remove file.
46881         Suggested by Eric Blake.
46882
46883 2007-09-11  Eric Blake  <ebb9@byu.net>
46884
46885         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
46886
46887 2007-09-10  Bruno Haible  <bruno@clisp.org>
46888
46889         * posix-modules: Fix typo in error message.
46890         Reported by Matt <mkraai@beckman.com>.
46891
46892 2007-09-09  Bruno Haible  <bruno@clisp.org>
46893
46894         * doc/functions/getdelim.texi: Update list of platforms lacking the
46895         function.
46896         * doc/functions/getline.texi: Likewise.
46897
46898 2007-09-09  Jim Meyering  <jim@meyering.net>
46899
46900         * lib/hash.c (hash_initialize): Detect calloc failure.
46901         Reported by Bruno Haible.
46902
46903 2007-09-09  Bruno Haible  <bruno@clisp.org>
46904
46905         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
46906         malloc or realloc fails.
46907
46908 2007-09-09  Bruno Haible  <bruno@clisp.org>
46909
46910         * modules/getcwd (Depends-on): Add malloc-posix.
46911         * modules/glob (Depends-on): Likewise.
46912         * modules/putenv (Depends-on): Likewise.
46913         * modules/strdup (Depends-on): Likewise.
46914         * modules/getdelim (Depends-on): Add realloc-posix.
46915         * modules/read-file (Depends-on): Likewise.
46916
46917 2007-09-09  Bruno Haible  <bruno@clisp.org>
46918
46919         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
46920         (gl_FUNC_MALLOC_POSIX): Require it.
46921         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
46922         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
46923         * modules/realloc (Files): Add m4/malloc.m4.
46924         * modules/calloc (Files): Likewise.
46925
46926 2007-09-09  Bruno Haible  <bruno@clisp.org>
46927
46928         * modules/malloc-posix: New file.
46929         * modules/malloc (Depends-on): Add malloc-posix.
46930         * lib/malloc.c: Include errno.h.
46931         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
46932         and a POSIX-compatible malloc into a single function. Set ENOMEM
46933         when returning NULL.
46934         * m4/malloc.m4: New file.
46935         * doc/functions/malloc.texi: Mention the malloc-posix module.
46936         * lib/stdlib_.h (malloc): New declaration.
46937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46938         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
46939         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
46940         and HAVE_MALLOC_POSIX.
46941
46942 2007-09-09  Bruno Haible  <bruno@clisp.org>
46943
46944         * modules/realloc-posix: New file.
46945         * modules/realloc (Depends-on): Add realloc-posix.
46946         * lib/realloc.c: Include errno.h.
46947         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
46948         and a POSIX-compatible realloc into a single function. Set ENOMEM
46949         when returning NULL.
46950         * m4/realloc.m4: New file.
46951         * doc/functions/realloc.texi: Mention the realloc-posix module.
46952         * lib/stdlib_.h (realloc): New declaration.
46953         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46954         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
46955         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
46956         and HAVE_REALLOC_POSIX.
46957
46958 2007-09-09  Bruno Haible  <bruno@clisp.org>
46959
46960         * modules/calloc-posix: New file.
46961         * modules/calloc (Depends-on): Add calloc-posix.
46962         * lib/calloc.c: Include errno.h.
46963         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
46964         and a POSIX-compatible calloc into a single function. Set ENOMEM
46965         when returning NULL.
46966         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
46967         * doc/functions/calloc.texi: Mention the calloc-posix module.
46968         * lib/stdlib_.h (calloc): New declaration.
46969         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46970         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
46971         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
46972         and HAVE_CALLOC_POSIX.
46973
46974 2007-09-09  Bruno Haible  <bruno@clisp.org>
46975
46976         Allow for modules to show an arbitrary notice.
46977         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
46978         * gnulib-tool: New option --extract-notice.
46979         (func_usage): Document it.
46980         (sed_extract_prog): Update.
46981         (func_get_notice): New function.
46982         (func_modules_notice): New function.
46983         (func_import, func_create_testdir): Invoke it.
46984         Suggested by Jim Meyering.
46985
46986 2007-09-09  Bruno Haible  <bruno@clisp.org>
46987
46988         * gnulib-tool: New options --verbose, --quiet.
46989         (func_usage): Document them.
46990         (verbose): New variable.
46991         (func_execute_command): New function.
46992         (func_import): Don't show the module list and the file list if
46993         $verbose < 0.
46994         (func_create_testdir): Likewise. Use func_execute_command.
46995         (func_create_megatestdir): Use func_execute_command.
46996
46997 2007-09-08  Bruno Haible  <bruno@clisp.org>
46998
46999         * gnulib-tool (func_import): Prefer rsync over wget when available,
47000         for fetching the PO files.
47001
47002 2007-09-08  Bruno Haible  <bruno@clisp.org>
47003
47004         * posix-modules: New file. Portions copied from gnulib-tool.
47005         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
47006
47007 2007-09-08  Jim Meyering  <jim@meyering.net>
47008
47009         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
47010         * lib/fpending.h: Rename from __fpending.h.
47011         * lib/fpending.c: Rename from __fpending.c.
47012         Include "fpending.h", not "__fpending.h".
47013         * lib/__fpending.h, lib/__fpending.c: Remove files.
47014         * modules/fpending (Files): Reflect new file names.
47015         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
47016
47017 2007-09-08  Bruno Haible  <bruno@clisp.org>
47018
47019         * m4/inttypes-h.m4: Remove stub file.
47020
47021 2007-09-07  Simon Josefsson  <simon@josefsson.org>
47022
47023         * doc/headers/stdint.texi: Discuss #include_next issue.
47024
47025 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47026
47027         * build-aux/bootstrap: Remove obsolete comment about wget --help.
47028
47029 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47030
47031         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
47032         in variable name.
47033
47034 2007-09-03  Jim Meyering  <jim@meyering.net>
47035
47036         New module: git-version-gen.
47037         * modules/git-version-gen: New file.
47038
47039         Import changes from coreutils for bootstrap script.
47040
47041         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
47042
47043         bootstrap: uses rsync to download the .po files
47044         * build-aux/bootstrap (po_download_command_format): New global.
47045         (download_po_files): Use rsync.
47046         (update_po_files): Don't remove .po files after download,
47047         so future rsync runs can take advantage of the copies.
47048
47049         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
47050
47051         Solve the unnecessary-.po-file-regeneration problem once and for all.
47052         * build-aux/bootstrap (download_po_files): New function, renamed from
47053         get_translations.  Now, downloads, but doesn't update LINGUAS.
47054         (update_po_files): New function.
47055
47056         bootstrap: Ignore more.
47057         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
47058         uniwidth to e.g., lib/.gitignore.
47059         (slurp): Handle the sys_stat_.h -> sys mapping, too.
47060
47061         * build-aux/bootstrap: New setting: vc_ignore.
47062         (insert_sorted_if_absent): Create $file if absent.
47063         Adapt to new, possibly empty, list: $vc_ignore.
47064
47065         bootstrap: generate more ignorable names
47066         * build-aux/bootstrap (slurp): When generating ignorable names,
47067         also map .sin to .sed, .gperf to .c, and .y to .c.
47068
47069 2007-09-03  Jim Meyering  <jim@meyering.net>
47070
47071         * build-aux/git-version-gen: New file, from coreutils.  For details, see
47072         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
47073
47074 2007-09-02  Bruno Haible  <bruno@clisp.org>
47075
47076         Fix mis-recognition of 'mcs' on QNX 6.
47077         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
47078         output contains the string "Mono".
47079         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
47080         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
47081
47082 2007-09-01  Bruno Haible  <bruno@clisp.org>
47083
47084         Fix collision between uniwidth/* and linebreak modules.
47085         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
47086         u32_width): Remove declarations.
47087         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
47088         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
47089         streq3, streq2, streq1, streq0): Remove functions.
47090         (STREQ): Remove macro.
47091         (is_cjk_encoding): Remove function.
47092         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
47093         (uc_width, u8_width, u16_width, u32_width): Remove functions.
47094         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
47095         * NEWS: Document the change.
47096
47097 2007-09-01  Bruno Haible  <bruno@clisp.org>
47098
47099         * lib/streq.h: Add double-inclusion guard.
47100
47101 2007-09-01  Karl Berry  <karl@gnu.org>
47102
47103         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
47104
47105 2007-08-28  Jim Meyering  <jim@meyering.net>
47106
47107         Rename mreadlink_with_size to areadlink_with_size.
47108         * NEWS: Document the change.
47109         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
47110         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
47111         * lib/mreadlink.h: Rename this to...
47112         * lib/areadlink.h: ...this.
47113         * modules/mreadlink-with-size: Rename this to...
47114         * modules/areadlink-with-size: ...this.
47115         * lib/canonicalize.c: Reflect the renaming.
47116         * modules/canonicalize: Likewise.
47117
47118 2007-08-26  Bruno Haible  <bruno@clisp.org>
47119
47120         * gnulib-tool (func_import): When deciding which files to remove,
47121         consider also dangling symbolic links.
47122         Reported by Eric Blake.
47123
47124 2007-08-26  Bruno Haible  <bruno@clisp.org>
47125
47126         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
47127
47128 2007-08-23  Simon Josefsson  <simon@josefsson.org>
47129
47130         * lib/readline.c: Don't include getline.h, the prototype is now
47131         found in stdio.h.
47132
47133 2007-08-23  Jim Meyering  <jim@meyering.net>
47134
47135         Getdelim touchup.
47136         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
47137         around the funlockfile call, since funlockfile never sets errno.
47138         Don't set errno upon failed realloc.
47139
47140 2007-08-22  Eric Blake  <ebb9@byu.net>
47141
47142         Getline touchups.
47143         * lib/getdelim.c (getdelim): Revert regression that required *n to
47144         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
47145         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
47146         getdelim, rather than whether implementation is missing.
47147         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
47148         * lib/stdio_.h (getline): Also declare if replacement is
47149         required.
47150         * doc/functions/getdelim.texi: New file.
47151         * doc/functions/getline.texi: Likewise.
47152         * doc/gnulib.texi (Function Substitutes): Add new files.
47153         Reported by Bruno Haible.
47154
47155 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
47156
47157         * users.txt: Add Guile.
47158
47159 2007-08-22  Eric Blake  <ebb9@byu.net>
47160
47161         * tests/test-getdelim.c (main): Use remove, not unlink.
47162         * tests/test-getline.c (main): Likewise.
47163
47164         Move getline and getdelim into stdio.h, per POSIX 200x.
47165         * modules/getline (Files): Remove getline.h.
47166         (Depends-on): Add stdio.
47167         (configure.ac): Add module indicator.
47168         * modules/getdelim (Files): Remove getdelim.h.
47169         (Depends-on): Add stdio.
47170         (configure.ac): Add module indicator.
47171         * modules/stdio (Makefile.am): Work with new indicators.
47172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
47173         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
47174         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47175         * lib/getdelim.h: Delete.
47176         * lib/getline.h: Delete.
47177         * lib/stdio_.h (getdelim, getline): Declare.
47178         * modules/getdelim-tests: New module.
47179         * modules/getline-tests: Likewise.
47180         * tests/test-getdelim.c: New file.
47181         * tests/test-getline.c: Likewise.
47182         * NEWS: Document the change.
47183         * lib/getline.c: Update choice of header.
47184         * lib/csharpcomp.c: Likewise.
47185         * lib/getpass.c: Likewise.
47186         * lib/javacomp.c: Likewise.
47187         * lib/javaversion.c: Likewise.
47188         * lib/yesno.c: Likewise.
47189         * lib/getdelim.c: Likewise.
47190         (getdelim): Set errno on failure, and avoid memory leak.
47191
47192 2007-08-19  Bruno Haible  <bruno@clisp.org>
47193
47194         * modules/closein (Depends-on): Add freadahead.
47195         * lib/closein.c: Include freadahead.h.
47196         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
47197         is zero.
47198
47199 2007-08-19  Bruno Haible  <bruno@clisp.org>
47200
47201         * modules/freadahead-tests: New file.
47202         * tests/test-freadahead.sh: New file.
47203         * tests/test-freadahead.c: New file.
47204
47205         * modules/freadahead: New file.
47206         * lib/freadahead.h: New file.
47207         * lib/freadahead.c: New file.
47208         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
47209         fbufmode, fpurge, freadable, fwritable.
47210
47211 2007-08-19  Eric Blake  <ebb9@byu.net>
47212
47213         Test yesno in combination with closein.
47214         * lib/yesno.c (yesno): Document use of stdin.
47215         * modules/yesno-tests (Files): New module.
47216         * tests/test-yesno.c (main): New file.
47217         * tests/test-yesno.sh: Likewise.
47218
47219 2007-08-19  Bruno Haible  <bruno@clisp.org>
47220
47221         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
47222         * lib/fseeko.c (rpl_fseeko): Likewise.
47223         * lib/fseterr.c (fseterr): Likewise.
47224
47225 2007-08-19  Bruno Haible  <bruno@clisp.org>
47226
47227         * tests/test-lseek.c (main): Disable a test for BeOS.
47228         * doc/functions/lseek.texi: Document the BeOS bug.
47229
47230 2007-08-19  Bruno Haible  <bruno@clisp.org>
47231             Eric Blake  <ebb9@byu.net>
47232
47233         * lib/lseek.c: Include <sys/stat.h>.
47234         (rpl_lseek): Add workaround code also for Unix platforms.
47235         Needed for BeOS.
47236         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
47237         * doc/functions/lseek.texi: Document BeOS definiency.
47238
47239 2007-08-18  Bruno Haible  <bruno@clisp.org>
47240
47241         * modules/fstrcmp-tests: New file.
47242         * tests/test-fstrcmp.c: New file.
47243
47244 2007-08-18  Bruno Haible  <bruno@clisp.org>
47245
47246         * modules/fstrcmp: New file, from GNU gettext with modifications.
47247         * lib/fstrcmp.h: New file, from GNU gettext.
47248         * lib/fstrcmp.c: New file, from GNU gettext.
47249         * MODULES.html.sh (String handling): Add fstrcmp.
47250
47251 2007-08-18  Bruno Haible  <bruno@clisp.org>
47252
47253         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
47254         'bool'.
47255         (diag, compareseq): Remove const from the ctxt argument.
47256         (USE_HEURISTIC): Undefine at the end.
47257
47258 2007-08-18  Jim Meyering  <jim@meyering.net>
47259
47260         New file: lib/idcache.h
47261         * NEWS: Mention the addition.
47262         * modules/idcache (Files): Add lib/idcache.h
47263         * lib/idcache.c: Include "idcache.h".
47264         Don't include <sys/types.h>.
47265         Add a FIXME comment.
47266         Move file-scoped "static" declarations to the top.
47267         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
47268
47269 2007-08-17  Bruno Haible  <bruno@clisp.org>
47270         and Paul Eggert  <eggert@cs.ucla.edu>
47271
47272         * MODULES.html.sh: Add diffseq.
47273         * modules/diffseq: New file.
47274         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
47275         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
47276
47277 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47278
47279         Import changes from coreutils for bootstrap script.
47280
47281         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
47282
47283         * build-aux/bootstrap (slurp): Work even in environments where
47284         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
47285         current code does not slurp files whose names start with ".", and
47286         this looks like it might be a troublesome area.
47287
47288         2007-07-11  Jim Meyering  <jim@meyering.net>
47289
47290         If there's a GPL vN copyright comment, require that N == 3.
47291
47292         2007-07-08  Jim Meyering  <jim@meyering.net>
47293
47294         Run the coreutils-specific code only if tests/Makefile.am.in exists.
47295         * build-aux/bootstrap (mam_template): Move definition out of loop.
47296
47297         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
47298
47299         * build-aux/bootstrap (symlink_to_dir): Rename function from
47300         symlink_to_gnulib.  Add a directory parameter.  Update all
47301         callers.
47302         (cp_mark_as_generated): Also check for -- and link to -- files in
47303         gl/.
47304
47305         2007-07-08  Jim Meyering  <jim@meyering.net>
47306
47307         Adapt to deeper hierarchy in gnulib.
47308         * build-aux/bootstrap (symlink_to_dir): If the destination
47309         directory doesn't exist, create it. This is required at least for
47310         "lib/uniwidth/cjk.h".
47311
47312         2007-05-15  Jim Meyering  <jim@meyering.net>
47313
47314         * build-aux/bootstrap: Now that generated Makefile.am files
47315         are no longer under version control, they must be created at
47316         bootstrap time.
47317
47318 2007-08-14  Ben Pfaff  <blp@gnu.org>
47319
47320         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
47321
47322 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47323
47324         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
47325         given the changes below.
47326         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
47327         even on hosts that have padding bits beyond the supported 64.
47328
47329 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47330
47331         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
47332         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
47333         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
47334         depends on it.
47335         (xstrtol_error): Remove.
47336         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
47337         but with a different signature.
47338         (ATTRIBUTE_NORETURN, __attribute__): New macros.
47339         * lib/xstrtol-error.c: Include exitfail.h.
47340         (xstrtol_fatal): New function, with a different signature from the
47341         old xstrtol_error, so that the caller need not worry about passing
47342         in an exit status, or about storage management of the option argument.
47343         (xstrtol_error): Now a static function.  Redo signature to
47344         implement xstrtol_fatal.  Output the correct number of hyphens in
47345         front of the option so that the caller need not worry about
47346         storage management.
47347         (N_): New macro.
47348         (_): Remove; not used now.
47349         * modules/xstrtol: Depend on getopt.
47350         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
47351         of old STRTOL_FATAL_ERROR macro.
47352         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
47353         of test program.
47354         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
47355         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
47356
47357 2007-08-08  Eric Blake  <ebb9@byu.net>
47358
47359         * lib/xstrtol-error.c: Add missing include.
47360
47361         Move xstrtol messages into gnulib domain, when --pobase is used.
47362         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
47363         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
47364         * modules/xstrtol (Files): Distribute new file.
47365         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
47366         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
47367         * tests/test-xstrtol.c: ...into new file.
47368         * tests/test-xstrtoul.c: Also test xstrtoul.
47369         * tests/test-xstrtoimax.c: Also test xstrtoimax.
47370         * tests/test-xstrtoumax.c: Also test xstrtoumax.
47371         * tests/test-xstrtol.sh: Drive the tests.
47372         * tests/test-xstrtoimax.sh: Likewise.
47373         * tests/test-xstrtoumax.sh: Likewise.
47374         * modules/xstrtol-tests: New module.
47375         * modules/xstrtoimax-tests: Likewise.
47376         * modules/xstrtoumax-tests: Likewise.
47377
47378 2007-08-08  Jim Meyering  <jim@meyering.net>
47379
47380         New function: mfile_name_concat.
47381         * lib/filenamecat.c (mfile_name_concat): New function, just like
47382         file_name_concat, but return NULL upon failure rather than exiting
47383         with a diagnostic.
47384         * lib/filenamecat.h: Declare it.
47385
47386 2007-08-07  Bruno Haible  <bruno@clisp.org>
47387
47388         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
47389         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
47390         warning from gcc.
47391         Reported by Eric Blake.
47392
47393 2007-08-07  Simon Josefsson  <simon@josefsson.org>
47394
47395         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
47396         * modules/crypto/arcfour (License): Likewise.
47397         * modules/crypto/des-tests (License): Likewise.
47398         * modules/crypto/gc-arctwo-tests (License): Likewise.
47399         * modules/crypto/gc-des-tests (License): Likewise.
47400         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
47401         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
47402         * modules/crypto/gc-md2-tests (License): Likewise.
47403         * modules/crypto/gc-md4-tests (License): Likewise.
47404         * modules/crypto/gc-md5-tests (License): Likewise.
47405         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
47406         * modules/crypto/gc-rijndael-tests (License): Likewise.
47407         * modules/crypto/gc-sha1-tests (License): Likewise.
47408         * modules/crypto/gc-tests (License): Likewise.
47409         * modules/crypto/hmac-md5 (License): Likewise.
47410         * modules/crypto/hmac-sha1 (License): Likewise.
47411         * modules/crypto/md2-tests (License): Likewise.
47412         * modules/crypto/md4-tests (License): Likewise.
47413         * modules/crypto/md5 (License): Likewise.
47414         * modules/crypto/rijndael (License): Likewise.
47415         * modules/crypto/sha1 (License): Likewise.
47416         * modules/memxor (License): Likewise.
47417
47418 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
47419         and Bruno Haible  <bruno@clisp.org>
47420
47421         * NEWS: Describe interface changes to human, xstrtol.
47422         * lib/human.h: Include <xstrtol.h>.
47423         (human_options): Return enum strtol_error, not int.  Remove
47424         bool arg; take int * instead.
47425         * lib/human.c: Don't include "gettext.h".
47426         (_): Remove; no longer used.
47427         Don't include <xstrtol.h>, since human.h does it.
47428         (human_options): Adjust to abovementioned interface changes.
47429         Do not report error to stderr; that's now the caller's
47430         responsibility.
47431         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
47432         interface change.
47433         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
47434         Str, Argument_type_string.  All uses changed.  Put " argument"
47435         in diagnostics to make them clearer.  Change wording of suffix
47436         message for clarity.
47437         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
47438         Argument_type_string.
47439         (STRTOL_FATAL_WARN): Remove; no longer used.
47440         * modules/human (Depends-on): Remove gettext-h.
47441
47442 2007-08-06  Simon Josefsson  <simon@josefsson.org>
47443
47444         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
47445
47446 2007-07-31  Bruno Haible  <bruno@clisp.org>
47447
47448         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
47449         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
47450         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
47451
47452 2007-07-31  Bruno Haible  <bruno@clisp.org>
47453
47454         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
47455         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
47456
47457 2007-07-30  Bruno Haible  <bruno@clisp.org>
47458
47459         * modules/base64 (License): Use the synonymous term "LGPLv2+".
47460         * modules/c-ctype (License): Likewise.
47461         * modules/c-strcase (License): Likewise.
47462         * modules/check-version (License): Likewise.
47463         * modules/iconv (License): Likewise.
47464         * modules/iconv_open (License): Likewise.
47465         * modules/read-file (License): Likewise.
47466         * modules/striconv (License): Likewise.
47467         * modules/strverscmp (License): Likewise.
47468         * modules/vasprintf (License): Likewise.
47469         * modules/crypto/des (License): Likewise.
47470         * modules/crypto/gc (License): Likewise.
47471         * modules/crypto/gc-arcfour (License): Likewise.
47472         * modules/crypto/gc-arctwo (License): Likewise.
47473         * modules/crypto/gc-des (License): Likewise.
47474         * modules/crypto/gc-hmac-md5 (License): Likewise.
47475         * modules/crypto/gc-hmac-sha1 (License): Likewise.
47476         * modules/crypto/gc-md2 (License): Likewise.
47477         * modules/crypto/gc-md4 (License): Likewise.
47478         * modules/crypto/gc-md5 (License): Likewise.
47479         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
47480         * modules/crypto/gc-random (License): Likewise.
47481         * modules/crypto/gc-rijndael (License): Likewise.
47482         * modules/crypto/gc-sha1 (License): Likewise.
47483         * modules/crypto/md2 (License): Likewise.
47484         * modules/crypto/md4 (License): Likewise.
47485
47486 2007-07-30  Jim Meyering  <jim@meyering.net>
47487
47488         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
47489         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
47490         it has valid stat data.  This bug would cause du not to count the
47491         sizes of inaccessible directories.
47492         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
47493         in <http://bugzilla.redhat.com/250077>.
47494
47495 2007-07-25  Peter O'Gorman  <peter@pogma.com>
47496             Bruno Haible  <bruno@clisp.org>
47497
47498         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
47499         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
47500         #include_next, gives a diagnostic about it, but reports no error in
47501         the exit code.
47502         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47503
47504 2007-07-24  Ben Pfaff  <blp@gnu.org>
47505
47506         Improve name: "count-one-bits" is better than "popcount".
47507         * MODULES.html.sh: Update name.
47508         * lib/popcount.h: Renamed lib/count-one-bits.h.
47509         (popcount): Renamed count_one_bits.
47510         (popcountl): Renamed count_one_bits_l.
47511         (popcountll): Renamed count_one_bits_ll.
47512         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
47513         * modules/popcount: Renamed module/count-one-bits.
47514         * modules/popcount-tests: Renamed module/count-one-bits-tests.
47515         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
47516
47517 2007-07-23  Ben Pfaff  <blp@gnu.org>
47518
47519         * lib/popcount.h (popcount32): Reduce size of constants, to allow
47520         better code generation, and add U to large constants to avoid
47521         warnings, in non-GCC case.
47522         Suggested by Bruno Haible.
47523
47524 2007-07-23  Ben Pfaff  <blp@gnu.org>
47525
47526         * lib/popcount.h: Use verify_true instead of if...abort.
47527         * modules/popcount: Depend on verify module.
47528         Suggested by Jim Meyering.
47529
47530 2007-07-23  Bruno Haible  <bruno@clisp.org>
47531
47532         * gnulib-tool (func_import): Create a .cvsignore file also when the
47533         directory is not yet in CVS but the toplevel directory is. When
47534         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
47535         Reported by Karl Berry.
47536
47537 2007-07-22  Ben Pfaff  <blp@gnu.org>
47538
47539         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
47540         case.
47541         Suggested by Eric Blake.
47542
47543 2007-07-22  Ben Pfaff  <blp@gnu.org>
47544
47545         New module: popcount.
47546         * MODULES.html.sh: Add popcount.
47547         * modules/popcount: New file.
47548         * modules/popcount-tests: New file.
47549         * tests/test-popcount.c: New file.
47550         * lib/popcount.h: New file.
47551         * m4/popcount.m4: New file.
47552
47553 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47554
47555         * build-aux/announce-gen: Update to GPLv3.
47556
47557         * build-aux/config.guess: Update from config.
47558
47559 2007-07-21  Bruno Haible  <bruno@clisp.org>
47560
47561         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
47562         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
47563
47564 2007-07-20  Jim Meyering  <jim@meyering.net>
47565
47566         * check-module: Diagnose a self-dependency.
47567
47568 2007-07-19  Bruno Haible  <bruno@clisp.org>
47569
47570         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
47571         empty.
47572         Reported by Eric Blake.
47573
47574 2007-07-18  Bruno Haible  <bruno@clisp.org>
47575
47576         * gnulib-tool: New options --po-base, --po-domain.
47577         (func_usage): Document them.
47578         (pobase, po_domain): New variables.
47579         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
47580         DEFAULT_TEXT_DOMAIN.
47581         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
47582         (func_import): Consider pobase and po_domain. Create a po/ directory.
47583         (func_create_testdir): Set pobase and po_domain to empty.
47584         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
47585         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
47586
47587 2007-07-18  Bruno Haible  <bruno@clisp.org>
47588
47589         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47590         EXTRA_DIST augmentation for files in build-aux/.
47591
47592 2007-07-16  Bruno Haible  <bruno@clisp.org>
47593
47594         * modules/lseek (License): Use the synonymous term "LGPLv2+".
47595         * modules/getdelim (License): Likewise.
47596
47597 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47598
47599         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
47600         * modules/d-type (License): Likewise.
47601         * modules/extensions (License): Likewise.
47602         * modules/fnmatch (License): Likewise.
47603         * modules/fseeko (License): Likewise.
47604         * modules/getaddrinfo (License): Likewise.
47605         * modules/getline (License): Likewise.
47606         * modules/getlogin_r (License): Likewise.
47607         * modules/getpass (License): Likewise.
47608         * modules/gettimeofday (License): Likewise.
47609         * modules/glob (License): Likewise.
47610         * modules/inet_ntop (License): Likewise.
47611         * modules/malloc (License): Likewise.
47612         * modules/malloca (License): Likewise.
47613         * modules/memmem (License): Likewise.
47614         * modules/mempcpy (License): Likewise.
47615         * modules/memset (License): Likewise.
47616         * modules/minmax (License): Likewise.
47617         * modules/mktime (License): Likewise.
47618         * modules/netinet_in (License): Likewise.
47619         * modules/pathmax (License): Likewise.
47620         * modules/poll (License): Likewise.
47621         * modules/regex (License): Likewise.
47622         * modules/snprintf (License): Likewise.
47623         * modules/stdbool (License): Likewise.
47624         * modules/stdint (License): Likewise.
47625         * modules/stdio (License): Likewise.
47626         * modules/strcase (License): Likewise.
47627         * modules/strcasestr (License): Likewise.
47628         * modules/strdup (License): Likewise.
47629         * modules/string (License): Likewise.
47630         * modules/strndup (License): Likewise.
47631         * modules/strnlen (License): Likewise.
47632         * modules/strpbrk (License): Likewise.
47633         * modules/strptime (License): Likewise.
47634         * modules/strsep (License): Likewise.
47635         * modules/sys_select (License): Likewise.
47636         * modules/sys_socket (License): Likewise.
47637         * modules/sys_stat (License): Likewise.
47638         * modules/sys_time (License): Likewise.
47639         * modules/time (License): Likewise.
47640         * modules/time_r (License): Likewise.
47641         * modules/timegm (License): Likewise.
47642         * modules/unistd (License): Likewise.
47643         * modules/vsnprintf (License): Likewise.
47644         * modules/wctype (License): Likewise.
47645
47646 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47647
47648         * modules/argz (License): LGPLv2+.
47649
47650 2007-07-15  Karl Berry  <karl@gnu.org>
47651
47652         * doc/gnulib.texi: revise node structure per new fdl.texi.
47653
47654 2007-07-14  Bruno Haible  <bruno@clisp.org>
47655
47656         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
47657         the output file.
47658         * lib/uniname/uninames.h: Regenerated.
47659
47660 2007-07-14  Karl Berry  <karl@gnu.org>
47661
47662         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
47663         omitting sectioning and index commands.
47664
47665 2007-07-13  Bruno Haible  <bruno@clisp.org>
47666
47667         New gnulib-tool option --more-symlinks.
47668         * gnulib-tool (func_usage): Document --more-symlinks.
47669         (do_copyrights): New variable.
47670         Recognize option --more-symlinks.
47671         (func_import): Don't add a copyright notice transform to
47672         sed_transform_lib_file if do_copyrights is empty.
47673
47674 2007-07-13  Bruno Haible  <bruno@clisp.org>
47675
47676         * lib/vasnprintf.c (decimal_point_char): Define also if
47677         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
47678         && !NEED_PRINTF_DIRECTIVE_A.
47679         Reported by Clemens Koller <clemens.koller@anagramm.de> via
47680         Gary V. Vaughan <gary@gnu.org>.
47681
47682 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
47683
47684         * lib/inttypes_.h: Undo previous change, since it was fixed
47685         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
47686
47687 2007-07-13  Bruno Haible  <bruno@clisp.org>
47688
47689         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
47690         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
47691
47692 2007-07-13  Jim Meyering  <jim@meyering.net>
47693
47694         df: Don't fail for Tru64's "file-on-file mount".
47695         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
47696         so we fall through and use statfs instead.  Details here:
47697         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
47698         Reported by Albert Chin.
47699
47700 2007-07-13  Bruno Haible  <bruno@clisp.org>
47701
47702         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
47703         * modules/configmake (License): Likewise.
47704         * modules/gettext (License): Likewise.
47705         * modules/gettext-h (License): Likewise.
47706         * modules/include_next (License): Likewise.
47707         * modules/link-warning (License): Likewise.
47708         * modules/localcharset (License): Likewise.
47709         * modules/localename (License): Likewise.
47710         * modules/lock (License): Likewise.
47711         * modules/relocatable-lib-lgpl (License): Likewise.
47712         * modules/size_max (License): Likewise.
47713         * modules/vasnprintf (License): Likewise.
47714         * modules/wchar (License): Likewise.
47715         * modules/xsize (License): Likewise.
47716
47717 2007-07-13  Bruno Haible  <bruno@clisp.org>
47718
47719         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
47720         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
47721
47722 2007-07-12  Bruno Haible  <bruno@clisp.org>
47723
47724         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
47725         in the modules files.
47726
47727 2007-07-11  Karl Berry  <karl@gnu.org>
47728
47729         * MODULES.html.sh (func_module): use
47730          sed -e '\|^'"${includefile}"'$|d'
47731          instead of /.../d, to avoid errors on $includefile's containing /.
47732
47733 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47734
47735         * gnulib-tool (func_import): Avoid duplication of --avoid
47736         statements
47737         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
47738         names to `_' in variable names.
47739
47740 2007-07-10  Eric Blake  <ebb9@byu.net>
47741
47742         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
47743         * NEWS: Document this change.
47744
47745 2007-07-08  Bruno Haible  <bruno@clisp.org>
47746
47747         Update to Unicode 5.0.
47748         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
47749         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
47750         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
47751         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
47752         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
47753         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
47754         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
47755         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
47756         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
47757         U+10A3F, U+1D242..U+1D244.
47758         (nonspacing_table_ind): Update.
47759         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
47760         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
47761
47762 2007-07-08  Bruno Haible  <bruno@clisp.org>
47763
47764         Update to Unicode 5.0.
47765         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
47766         code transform. Extend the name index field of unicode_name_to_code and
47767         unicode_code_to_name from 16 to 24 bits.
47768         * lib/uniname/uniname.c (unicode_character_name,
47769         unicode_name_character): Add the range 0x12xxx to the code transform.
47770         * lib/uniname/uninames.h: Regenerated.
47771         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
47772
47773 2007-07-07  Bruno Haible  <bruno@clisp.org>
47774
47775         * modules/wcwidth-tests: New file.
47776         * tests/test-wcwidth.c: New file.
47777
47778         Work around MacOS X wcwidth() bug.
47779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
47780         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
47781         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
47782         original wcwidth in non-UTF-8 locales.
47783         * modules/wcwidth (Depends-on): Add localcharset, streq,
47784         uniwidth/width.
47785         * doc/functions/wcwidth.texi: Update.
47786
47787 2007-07-07  Bruno Haible  <bruno@clisp.org>
47788
47789         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
47790         (wcwidth): New declaration.
47791         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
47792         macros.
47793         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
47794         here. Prepare for creating <wchar.h> unconditionally.
47795         * modules/wchar (Depends-on): Add link-warning.
47796         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
47797         REPLACE_WCWIDTH, and GL_LINK_WARNING.
47798         * lib/wcwidth.h: Remove file.
47799         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
47800         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
47801         * modules/wcwidth (Files): Remove lib/wcwidth.h.
47802         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
47803         (Include): Replace wcwidth.h with <wchar.h>.
47804         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
47805         * lib/mbchar.h: Don't include wcwidth.h.
47806         * lib/mbswidth.c: Likewise.
47807         * NEWS: Mention the change.
47808
47809 2007-07-07  Bruno Haible  <bruno@clisp.org>
47810
47811         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
47812         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
47813         definition with an external declaration.
47814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
47815         defined as a function. Remove AC_C_INLINE requirement.
47816         * modules/wcwidth (Files): Add lib/wcwidth.c.
47817         (Makefile.am): Remove redundant statement.
47818
47819 2007-07-07  Bruno Haible  <bruno@clisp.org>
47820
47821         * MODULES.html.sh (Unicode string functions): Add the new modules.
47822
47823         * tests/uniwidth/test-u32-strwidth.c: New file.
47824         * modules/uniwidth/u32-strwidth-tests: New file.
47825
47826         * lib/uniwidth/u32-strwidth.c: New file.
47827         * modules/uniwidth/u32-strwidth: New file.
47828
47829         * tests/uniwidth/test-u16-strwidth.c: New file.
47830         * modules/uniwidth/u16-strwidth-tests: New file.
47831
47832         * lib/uniwidth/u16-strwidth.c: New file.
47833         * modules/uniwidth/u16-strwidth: New file.
47834
47835         * tests/uniwidth/test-u8-strwidth.c: New file.
47836         * modules/uniwidth/u8-strwidth-tests: New file.
47837
47838         * lib/uniwidth/u8-strwidth.c: New file.
47839         * modules/uniwidth/u8-strwidth: New file.
47840
47841         * tests/uniwidth/test-u32-width.c: New file.
47842         * modules/uniwidth/u32-width-tests: New file.
47843
47844         * lib/uniwidth/u32-width.c: New file.
47845         * modules/uniwidth/u32-width: New file.
47846
47847         * tests/uniwidth/test-u16-width.c: New file.
47848         * modules/uniwidth/u16-width-tests: New file.
47849
47850         * lib/uniwidth/u16-width.c: New file.
47851         * modules/uniwidth/u16-width: New file.
47852
47853         * tests/uniwidth/test-u8-width.c: New file.
47854         * modules/uniwidth/u8-width-tests: New file.
47855
47856         * lib/uniwidth/u8-width.c: New file.
47857         * modules/uniwidth/u8-width: New file.
47858
47859         * tests/uniwidth/test-uc_width.c: New file.
47860         * modules/uniwidth/width-tests: New file.
47861
47862         * lib/uniwidth/width.c: New file, from GNU libiconv.
47863         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
47864         * modules/uniwidth/width: New file.
47865
47866         * lib/uniwidth.h: New file, from GNU libiconv.
47867         * modules/uniwidth/base: New file.
47868
47869 2007-07-07  Bruno Haible  <bruno@clisp.org>
47870
47871         * lib/uniname.h: New file, from GNU gettext.
47872         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
47873         * lib/uniname/uninames.h: New file, from GNU gettext.
47874         * lib/uniname/uniname.c: New file, from GNU gettext.
47875         * tests/uniname/test-uninames.sh: New file.
47876         * tests/uniname/test-uninames.c: New file, from GNU gettext.
47877         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
47878         * modules/uniname/base: New file.
47879         * modules/uniname/uniname: New file.
47880         * modules/uniname/uniname-tests: New file.
47881         * MODULES.html.sh (Unicode string functions): Add the new modules.
47882
47883 2007-07-06  Bruno Haible  <bruno@clisp.org>
47884
47885         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
47886
47887 2007-07-06  Bruno Haible  <bruno@clisp.org>
47888
47889         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
47890         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
47891         includes <cygwin/sys_time.h> which includes <sys/select.h> which
47892         include <sys/time.h>.
47893         Reported by Eric Blake.
47894
47895 2007-07-06  Eric Blake  <ebb9@byu.net>
47896
47897         Fix testing canonicalize on cygwin.
47898         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47899         Revert patch from 2007-06-19.
47900         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
47901         canonicalize module is also in use.
47902         * tests/test-canonicalize.c: New file.
47903         * tests/test-canonicalize.sh: Likewise.
47904         * modules/canonicalize-tests: Likewise.
47905
47906 2007-07-06  Jim Meyering  <jim@meyering.net>
47907
47908         * lib/getugroups.c (getugroups): Detect getgrent failure.
47909         Adjust comment to reflect reality: this function may return -1.
47910
47911 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47912
47913         * build-aux/bootstrap (TP_URL,get_translations): Update to use
47914         the new TP address.
47915         (usage): Fix typo
47916         (gnulib_mk): New variable.
47917
47918 2007-07-05  Jim Meyering  <jim@meyering.net>
47919
47920         Don't let endgrent clobber errno, no matter how improbable.
47921         * lib/getugroups.c (getugroups): Save and restore errno around
47922         endgrent call.
47923
47924         Close the group DB even when failing with 2^31 or more members.
47925         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
47926
47927 2007-07-04  Jim Meyering  <jim@meyering.net>
47928
47929         * lib/getugroups.h: New file.
47930         * lib/getugroups.c: Include "getugroups.h".
47931         Remove uses of "register" keyword.
47932         Move local variable, "cp", down into scope where used.
47933         Give "username" parameter the "const" attribute.
47934         * modules/getugroups (Files): Add lib/getugroups.h
47935
47936 2007-07-04  Karl Berry  <karl@gnu.org>
47937
47938         * MODULES.html.sh (func_all_modules): Complete rename of
47939         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
47940
47941 2007-07-02  Bruno Haible  <bruno@clisp.org>
47942
47943         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
47944         mode, when inttypes.h comes from gnulib.
47945         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47946
47947 2007-07-02  Simon Josefsson  <simon@josefsson.org>
47948
47949         * NEWS: Mention lgpl module name change.
47950
47951         * modules/lgpl-2.1: Renamed from lgpl.
47952
47953         * NEWS: Mention gpl module name change.
47954
47955         * modules/gpl-3.0: New file, based on gpl-2.0.
47956
47957         * modules/gpl-2.0: Renamed from gpl.
47958
47959         * modules/gpl: Fix filename, doc/gpl.texi is now found at
47960         doc/gpl-2.0.texi.
47961
47962 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47963
47964         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
47965         #define __STDC_LIMIT_MACROS temporarily while including
47966         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
47967         Problem reported by Joel E. Denny in
47968         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
47969
47970 2007-07-01  Bruno Haible  <bruno@clisp.org>
47971
47972         * lib/unistdio.h: New file.
47973         * lib/unistdio/u-asnprintf.h: New file.
47974         * lib/unistdio/u-asprintf.h: New file.
47975         * lib/unistdio/u-printf-args.c: New file.
47976         * lib/unistdio/u-printf-args.h: New file.
47977         * lib/unistdio/u-printf-parse.h: New file.
47978         * lib/unistdio/u-snprintf.h: New file.
47979         * lib/unistdio/u-sprintf.h: New file.
47980         * lib/unistdio/u-vasprintf.h: New file.
47981         * lib/unistdio/u-vsnprintf.h: New file.
47982         * lib/unistdio/u-vsprintf.h: New file.
47983         * lib/unistdio/ulc-asnprintf.c: New file.
47984         * lib/unistdio/ulc-asprintf.c: New file.
47985         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
47986         * lib/unistdio/ulc-printf-parse.c: New file.
47987         * lib/unistdio/ulc-snprintf.c: New file.
47988         * lib/unistdio/ulc-sprintf.c: New file.
47989         * lib/unistdio/ulc-vasnprintf.c: New file.
47990         * lib/unistdio/ulc-vasprintf.c: New file.
47991         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
47992         * lib/unistdio/ulc-vsnprintf.c: New file.
47993         * lib/unistdio/ulc-vsprintf.c: New file.
47994         * lib/unistdio/u8-asnprintf.c: New file.
47995         * lib/unistdio/u8-asprintf.c: New file.
47996         * lib/unistdio/u8-printf-parse.c: New file.
47997         * lib/unistdio/u8-snprintf.c: New file.
47998         * lib/unistdio/u8-sprintf.c: New file.
47999         * lib/unistdio/u8-vasnprintf.c: New file.
48000         * lib/unistdio/u8-vasprintf.c: New file.
48001         * lib/unistdio/u8-vsnprintf.c: New file.
48002         * lib/unistdio/u8-vsprintf.c: New file.
48003         * lib/unistdio/u8-u8-asnprintf.c: New file.
48004         * lib/unistdio/u8-u8-asprintf.c: New file.
48005         * lib/unistdio/u8-u8-snprintf.c: New file.
48006         * lib/unistdio/u8-u8-sprintf.c: New file.
48007         * lib/unistdio/u8-u8-vasnprintf.c: New file.
48008         * lib/unistdio/u8-u8-vasprintf.c: New file.
48009         * lib/unistdio/u8-u8-vsnprintf.c: New file.
48010         * lib/unistdio/u8-u8-vsprintf.c: New file.
48011         * lib/unistdio/u16-asnprintf.c: New file.
48012         * lib/unistdio/u16-asprintf.c: New file.
48013         * lib/unistdio/u16-printf-parse.c: New file.
48014         * lib/unistdio/u16-snprintf.c: New file.
48015         * lib/unistdio/u16-sprintf.c: New file.
48016         * lib/unistdio/u16-vasnprintf.c: New file.
48017         * lib/unistdio/u16-vasprintf.c: New file.
48018         * lib/unistdio/u16-vsnprintf.c: New file.
48019         * lib/unistdio/u16-vsprintf.c: New file.
48020         * lib/unistdio/u16-u16-asnprintf.c: New file.
48021         * lib/unistdio/u16-u16-asprintf.c: New file.
48022         * lib/unistdio/u16-u16-snprintf.c: New file.
48023         * lib/unistdio/u16-u16-sprintf.c: New file.
48024         * lib/unistdio/u16-u16-vasnprintf.c: New file.
48025         * lib/unistdio/u16-u16-vasprintf.c: New file.
48026         * lib/unistdio/u16-u16-vsnprintf.c: New file.
48027         * lib/unistdio/u16-u16-vsprintf.c: New file.
48028         * lib/unistdio/u32-asnprintf.c: New file.
48029         * lib/unistdio/u32-asprintf.c: New file.
48030         * lib/unistdio/u32-printf-parse.c: New file.
48031         * lib/unistdio/u32-snprintf.c: New file.
48032         * lib/unistdio/u32-sprintf.c: New file.
48033         * lib/unistdio/u32-vasnprintf.c: New file.
48034         * lib/unistdio/u32-vasprintf.c: New file.
48035         * lib/unistdio/u32-vsnprintf.c: New file.
48036         * lib/unistdio/u32-vsprintf.c: New file.
48037         * lib/unistdio/u32-u32-asnprintf.c: New file.
48038         * lib/unistdio/u32-u32-asprintf.c: New file.
48039         * lib/unistdio/u32-u32-snprintf.c: New file.
48040         * lib/unistdio/u32-u32-sprintf.c: New file.
48041         * lib/unistdio/u32-u32-vasnprintf.c: New file.
48042         * lib/unistdio/u32-u32-vasprintf.c: New file.
48043         * lib/unistdio/u32-u32-vsnprintf.c: New file.
48044         * lib/unistdio/u32-u32-vsprintf.c: New file.
48045         * tests/unistdio/test-ulc-asnprintf1.c: New file.
48046         * tests/unistdio/test-ulc-asnprintf1.h: New file.
48047         * tests/unistdio/test-ulc-printf1.h: New file.
48048         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
48049         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
48050         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
48051         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
48052         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
48053         * tests/unistdio/test-ulc-vasprintf1.c: New file.
48054         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
48055         * tests/unistdio/test-ulc-vsprintf1.c: New file.
48056         * tests/unistdio/test-u8-asnprintf1.c: New file.
48057         * tests/unistdio/test-u8-asnprintf1.h: New file.
48058         * tests/unistdio/test-u8-printf1.h: New file.
48059         * tests/unistdio/test-u8-vasnprintf1.c: New file.
48060         * tests/unistdio/test-u8-vasnprintf2.c: New file.
48061         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
48062         * tests/unistdio/test-u8-vasnprintf3.c: New file.
48063         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
48064         * tests/unistdio/test-u8-vasprintf1.c: New file.
48065         * tests/unistdio/test-u8-vsnprintf1.c: New file.
48066         * tests/unistdio/test-u8-vsprintf1.c: New file.
48067         * tests/unistdio/test-u16-asnprintf1.c: New file.
48068         * tests/unistdio/test-u16-asnprintf1.h: New file.
48069         * tests/unistdio/test-u16-printf1.h: New file.
48070         * tests/unistdio/test-u16-vasnprintf1.c: New file.
48071         * tests/unistdio/test-u16-vasnprintf2.c: New file.
48072         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
48073         * tests/unistdio/test-u16-vasnprintf3.c: New file.
48074         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
48075         * tests/unistdio/test-u16-vasprintf1.c: New file.
48076         * tests/unistdio/test-u16-vsnprintf1.c: New file.
48077         * tests/unistdio/test-u16-vsprintf1.c: New file.
48078         * tests/unistdio/test-u32-asnprintf1.c: New file.
48079         * tests/unistdio/test-u32-asnprintf1.h: New file.
48080         * tests/unistdio/test-u32-printf1.h: New file.
48081         * tests/unistdio/test-u32-vasnprintf1.c: New file.
48082         * tests/unistdio/test-u32-vasnprintf2.c: New file.
48083         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
48084         * tests/unistdio/test-u32-vasnprintf3.c: New file.
48085         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
48086         * tests/unistdio/test-u32-vasprintf1.c: New file.
48087         * tests/unistdio/test-u32-vsnprintf1.c: New file.
48088         * tests/unistdio/test-u32-vsprintf1.c: New file.
48089         * modules/unistdio/base: New file.
48090         * modules/unistdio/u-printf-args: New file.
48091         * modules/unistdio/ulc-asnprintf: New file.
48092         * modules/unistdio/ulc-asprintf: New file.
48093         * modules/unistdio/ulc-fprintf: New file.
48094         * modules/unistdio/ulc-printf-parse: New file.
48095         * modules/unistdio/ulc-snprintf: New file.
48096         * modules/unistdio/ulc-sprintf: New file.
48097         * modules/unistdio/ulc-vasnprintf: New file.
48098         * modules/unistdio/ulc-vasprintf: New file.
48099         * modules/unistdio/ulc-vfprintf: New file.
48100         * modules/unistdio/ulc-vsnprintf: New file.
48101         * modules/unistdio/ulc-vsprintf: New file.
48102         * modules/unistdio/u8-asnprintf: New file.
48103         * modules/unistdio/u8-asprintf: New file.
48104         * modules/unistdio/u8-printf-parse: New file.
48105         * modules/unistdio/u8-snprintf: New file.
48106         * modules/unistdio/u8-sprintf: New file.
48107         * modules/unistdio/u8-vasnprintf: New file.
48108         * modules/unistdio/u8-vasprintf: New file.
48109         * modules/unistdio/u8-vsnprintf: New file.
48110         * modules/unistdio/u8-vsprintf: New file.
48111         * modules/unistdio/u8-u8-asnprintf: New file.
48112         * modules/unistdio/u8-u8-asprintf: New file.
48113         * modules/unistdio/u8-u8-snprintf: New file.
48114         * modules/unistdio/u8-u8-sprintf: New file.
48115         * modules/unistdio/u8-u8-vasnprintf: New file.
48116         * modules/unistdio/u8-u8-vasprintf: New file.
48117         * modules/unistdio/u8-u8-vsnprintf: New file.
48118         * modules/unistdio/u8-u8-vsprintf: New file.
48119         * modules/unistdio/u16-asnprintf: New file.
48120         * modules/unistdio/u16-asprintf: New file.
48121         * modules/unistdio/u16-printf-parse: New file.
48122         * modules/unistdio/u16-snprintf: New file.
48123         * modules/unistdio/u16-sprintf: New file.
48124         * modules/unistdio/u16-vasnprintf: New file.
48125         * modules/unistdio/u16-vasprintf: New file.
48126         * modules/unistdio/u16-vsnprintf: New file.
48127         * modules/unistdio/u16-vsprintf: New file.
48128         * modules/unistdio/u16-u16-asnprintf: New file.
48129         * modules/unistdio/u16-u16-asprintf: New file.
48130         * modules/unistdio/u16-u16-snprintf: New file.
48131         * modules/unistdio/u16-u16-sprintf: New file.
48132         * modules/unistdio/u16-u16-vasnprintf: New file.
48133         * modules/unistdio/u16-u16-vasprintf: New file.
48134         * modules/unistdio/u16-u16-vsnprintf: New file.
48135         * modules/unistdio/u16-u16-vsprintf: New file.
48136         * modules/unistdio/u32-asnprintf: New file.
48137         * modules/unistdio/u32-asprintf: New file.
48138         * modules/unistdio/u32-printf-parse: New file.
48139         * modules/unistdio/u32-snprintf: New file.
48140         * modules/unistdio/u32-sprintf: New file.
48141         * modules/unistdio/u32-vasnprintf: New file.
48142         * modules/unistdio/u32-vasprintf: New file.
48143         * modules/unistdio/u32-vsnprintf: New file.
48144         * modules/unistdio/u32-vsprintf: New file.
48145         * modules/unistdio/u32-u32-asnprintf: New file.
48146         * modules/unistdio/u32-u32-asprintf: New file.
48147         * modules/unistdio/u32-u32-snprintf: New file.
48148         * modules/unistdio/u32-u32-sprintf: New file.
48149         * modules/unistdio/u32-u32-vasnprintf: New file.
48150         * modules/unistdio/u32-u32-vasprintf: New file.
48151         * modules/unistdio/u32-u32-vsnprintf: New file.
48152         * modules/unistdio/u32-u32-vsprintf: New file.
48153         * modules/unistdio/ulc-asnprintf-tests: New file.
48154         * modules/unistdio/ulc-vasnprintf-tests: New file.
48155         * modules/unistdio/ulc-vasprintf-tests: New file.
48156         * modules/unistdio/ulc-vsnprintf-tests: New file.
48157         * modules/unistdio/ulc-vsprintf-tests: New file.
48158         * modules/unistdio/u8-asnprintf-tests: New file.
48159         * modules/unistdio/u8-vasnprintf-tests: New file.
48160         * modules/unistdio/u8-vasprintf-tests: New file.
48161         * modules/unistdio/u8-vsnprintf-tests: New file.
48162         * modules/unistdio/u8-vsprintf-tests: New file.
48163         * modules/unistdio/u16-asnprintf-tests: New file.
48164         * modules/unistdio/u16-vasnprintf-tests: New file.
48165         * modules/unistdio/u16-vasprintf-tests: New file.
48166         * modules/unistdio/u16-vsnprintf-tests: New file.
48167         * modules/unistdio/u16-vsprintf-tests: New file.
48168         * modules/unistdio/u32-asnprintf-tests: New file.
48169         * modules/unistdio/u32-vasnprintf-tests: New file.
48170         * modules/unistdio/u32-vasprintf-tests: New file.
48171         * modules/unistdio/u32-vsnprintf-tests: New file.
48172         * modules/unistdio/u32-vsprintf-tests: New file.
48173         * MODULES.html.sh (Unicode string functions): Add the new modules.
48174
48175 2007-07-01  Bruno Haible  <bruno@clisp.org>
48176
48177         * lib/sprintf.c (sprintf): Limit the available length estimation,
48178         to avoid address wraparound.
48179         * lib/vsprintf.c (vsprintf): Likewise.
48180         * modules/sprintf-posix (Dependencies): Add stdint.
48181         * modules/vsprintf-posix (Dependencies): Likewise.
48182
48183 2007-07-01  Bruno Haible  <bruno@clisp.org>
48184
48185         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
48186         Windows PATH as well. Conservative double-quoting. Comments.
48187
48188 2007-07-01  Bruno Haible  <bruno@clisp.org>
48189             Eric Blake  <ebb9@byu.net>
48190             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48191
48192         * gnulib-tool (self_abspathname): Fix algorithm to cope with
48193         empty components in $PATH, denoting '.'.
48194
48195 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48196
48197         * gnulib-tool: Fix indentation.
48198         (func_create_megatestdir): Likewise.
48199         Report by Bruno Haible.
48200
48201 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48202
48203         Sync from Automake.
48204         * build-aux/gnupload: Fix shell portability issues with for loops.
48205         Report by Karl Berry.
48206
48207 2007-06-29  Simon Josefsson  <simon@josefsson.org>
48208
48209         * build-aux/maint.mk (POURL): Use translationproject.org.
48210
48211 2007-06-27  Simon Josefsson  <simon@josefsson.org>
48212             Bruno Haible  <bruno@clisp.org>
48213
48214         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
48215         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
48216         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
48217         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
48218         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
48219
48220 2007-06-27  Bruno Haible  <bruno@clisp.org>
48221
48222         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
48223         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
48224
48225 2007-06-26  Karl Berry  <karl@gnu.org>
48226
48227         * MODULES.html.sh: remove xreadlink-with-size.
48228
48229 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48230
48231         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
48232         method that I hope also handles the double-include problem noted
48233         by Bruno Haible in
48234         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
48235
48236 2007-06-23  Bruno Haible  <bruno@clisp.org>
48237
48238         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48239         Don't let the 'mostlyclean' target fail if the last subdirectory could
48240         not be removed.
48241         Reported by Karl Berry.
48242
48243 2007-06-23  Bruno Haible  <bruno@clisp.org>
48244
48245         * gnulib-tool (echo): Add a speedier workaround for ksh.
48246         * tests/test-echo.sh: Likewise.
48247
48248 2007-06-23  Bruno Haible  <bruno@clisp.org>
48249
48250         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
48251         * tests/test-echo.sh: Likewise.
48252
48253 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48254
48255         * gnulib-tool (IFS): Initialize early, so we don't set it to
48256         empty later.
48257         (self_abspathname): Rewrite algorithm to set it, reindent.
48258         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
48259         (func_create_megatestdir): Merge some sed scripts.
48260
48261 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48262
48263         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
48264         exposed by Sun Studio 11 cc on Solaris 8.
48265
48266 2007-06-22  Bruno Haible  <bruno@clisp.org>
48267
48268         * gnulib-tool (echo): Ensure the echo primitive does not interpret
48269         backslashes.
48270         * tests/test-echo.sh: New file.
48271
48272 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48273
48274         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
48275         simplify `sed_replace_build_aux' scripts, they are portable but
48276         echoing them with `echo' is not.
48277         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
48278
48279 2007-06-21  Karl Berry  <karl@gnu.org>
48280
48281         * config/srclist.txt: guess we can't handle the licenses via
48282         srclist at the moment.
48283
48284 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
48285
48286         * MODULES.html.sh: Add include_next.
48287         * modules/include_next: New file.
48288
48289 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48290
48291         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
48292         INCLUDE_NEXT.
48293         (gl_CHECK_NEXT_HEADERS): New macro.
48294         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
48295         the obsolescent gl_ABSOLUTE_HEADER.
48296         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
48297         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
48298         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
48299         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48300         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
48301         * m4/math_h.m4 (gl_MATH_H): Likewise.
48302         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48303         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
48304         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48305         * m4/stdint.m4 (gl_STDINT_H): Likewise.
48306         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
48307         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
48308         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
48309         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48310         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48311         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48312         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
48313         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
48314         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48315         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48316         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48317         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48318         * m4/inttypes.m4 (gl_INTTYPES_H): Define
48319         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
48320         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
48321         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
48322         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
48323         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
48324         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
48325         * lib/float_.h: Likewise.
48326         * lib/inttypes_.h: Likewise.
48327         * lib/math_.h: Likewise.
48328         * lib/search_.h: Likewise.
48329         * lib/signal_.h: Likewise.
48330         * lib/stdint_.h: Likewise.
48331         * lib/stdio_.h: Likewise.
48332         * lib/stdlib_.h: Likewise.
48333         * lib/string_.h: Likewise.
48334         * lib/sys_stat_.h: Likewise.
48335         * lib/sys_time_.h: Likewise.
48336         * lib/time_.h: Likewise.
48337         * lib/unistd_.h: Likewise.
48338         * lib/wchar_.h: Likewise.
48339         * lib/wctype_.h: Likewise.
48340         * lib/dirent_.h: Likewise.
48341         * lib/iconv_.h: Likewise.
48342         * lib/locale_.h: Likewise.
48343         * lib/netinet_in_.h: Likewise.
48344         * lib/sys_select_.h: Likewise.
48345         * lib/sys_socket_.h: Likewise.
48346         * lib/sysexits_.h: Likewise.
48347         * modules/fcntl (Depends-on): Depend on include_next, not
48348         absolute_header.
48349         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
48350         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
48351         * modules/fchdir: Likewise.
48352         * modules/float: Likewise.
48353         * modules/iconv_open: Likewise.
48354         * modules/inttypes: Likewise.
48355         * modules/locale: Likewise.
48356         * modules/math: Likewise.
48357         * modules/netinet_in: Likewise.
48358         * modules/search: Likewise.
48359         * modules/signal: Likewise.
48360         * modules/stdint: Likewise.
48361         * modules/stdio: Likewise.
48362         * modules/stdlib: Likewise.
48363         * modules/string: Likewise.
48364         * modules/sys_select: Likewise.
48365         * modules/sys_socket: Likewise.
48366         * modules/sys_stat: Likewise.
48367         * modules/sys_time: Likewise.
48368         * modules/sysexits: Likewise.
48369         * modules/time: Likewise.
48370         * modules/unistd: Likewise.
48371         * modules/wchar: Likewise.
48372         * modules/wctype: Likewise.
48373         * modules/sys_stat: Change maintainer to "all".
48374         * modules/unistd: Likewise.
48375
48376 2007-06-20  Karl Berry  <karl@gnu.org>
48377
48378         * config/srclist.txt: track www changes in license files.
48379
48380 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
48381
48382         * build-aux/bootstrap: Remove stray dot.
48383         Make sure build_aux settings are honored when linking
48384         gnulib_extra_files.
48385
48386 2007-06-19  Eric Blake  <ebb9@byu.net>
48387
48388         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48389         Allow compilation on cygwin.
48390
48391 2007-06-19  Jim Meyering  <jim@meyering.net>
48392
48393         xreadlink-with-size: Remove module.  No longer used.
48394         Ex-callers now use xreadlink or mreadlink-with-size.
48395         * modules/xreadlink-with-size: Remove module.
48396         * lib/xreadlink-with-size.c: Remove file.
48397         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
48398         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
48399         just before the function definition *is* accurate.
48400
48401         Eliminate one way canonicalize_filename_mode could exit.
48402         * lib/canonicalize.c (canonicalize_filename_mode):
48403         Use mreadlink_with_size, not xreadlink_with_size.
48404
48405 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
48406
48407         Detect porting problems to FreeBSD/arm, which has time_t wider than
48408         long int.  Original problem reported for GNU diff by Xin Li in
48409         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
48410         * modules/getdate (Depends-on): Add intprops, verify.
48411         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
48412         is an integer type no wider than long int.
48413
48414 2007-06-18  Jim Meyering  <jim@meyering.net>
48415
48416         New module: mreadlink-with-size.
48417         * MODULES.html.sh: Add mreadlink-with-size.
48418         * modules/mreadlink-with-size: New module
48419         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
48420         not xreadlink-with-size.
48421         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
48422
48423 2007-06-16  Bruno Haible  <bruno@clisp.org>
48424
48425         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
48426         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
48427         Reported by Gary V. Vaughan <gary@gnu.org>.
48428
48429 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
48430
48431         Revamp lchown so that it lives in unistd.h where it belongs.
48432         * lib/lchown.h: Remove.
48433         * lib/dirchownmod.c: Don't include lib/lchown.h.
48434         * lib/fchownat.c: Likewise.
48435         * lib/openat.c: Likewise.
48436         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
48437         does not follow symlinks.
48438         (EOPNOTSUPP): Define if not defined.
48439         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
48440         is defined to 0.
48441         (lchown): New decl.
48442         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
48443         Do not check for lchown decl.
48444         Set REPLACE_LCHOWN.
48445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
48446         REPLACE_LCHOWN.
48447         * modules/chown: Make it clear it follows symlinks.
48448         * modules/lchown: Make it clear it doesn't follow symlinks.
48449         (Files): Remove lib/lchown.h
48450         (Depends-on): Add unistd.
48451         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
48452         (Include): Include <unistd.h>, not "lchown.h".
48453         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
48454         REPLACE_LCHOWN.
48455
48456 2007-06-15  Jim Meyering  <jim@meyering.net>
48457
48458         Change license (GPL to LGPL) of fsusage and dependents.
48459         * modules/fsusage (License): Change to LGPL.
48460         * modules/full-read (License): Likewise.
48461         * modules/full-write (License): Likewise.
48462         * modules/safe-read (License): Likewise.
48463         * modules/safe-write (License): Likewise.
48464
48465 2007-06-14  Ben Pfaff  <blp@gnu.org>
48466
48467         Missing part of allocsa -> malloca transition.
48468         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
48469         gl_MALLOCA.
48470
48471 2007-06-12  Bruno Haible  <bruno@clisp.org>
48472
48473         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
48474         to ia64, x86_64, i386.
48475         Reported by Eric Blake.
48476
48477 2007-06-12  Bruno Haible  <bruno@clisp.org>
48478
48479         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
48480         cross-compiling to x86_64.
48481
48482 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
48483
48484         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
48485         glitch reported by Ralf Wildenhues in
48486         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
48487
48488         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
48489         Vin Shelton.
48490
48491 2007-06-11  Bruno Haible  <bruno@clisp.org>
48492
48493         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
48494         replacement string.
48495         Reported by Eric Blake.
48496
48497 2007-06-10  Bruno Haible  <bruno@clisp.org>
48498
48499         Prepare vasnprintf code for use with Unicode strings.
48500         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
48501         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
48502         TYPE_U32_STRING.
48503         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
48504         a_u32_string variants.
48505         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48506         * lib/printf-args.c: Don't include config.h and the specification
48507         header if PRINTF_FETCHARGS is already defined.
48508         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48509         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
48510         TYPE_U16_STRING, TYPE_U32_STRING.
48511         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
48512         u16_directive, u16_directives, u32_directive, u32_directives): New
48513         types.
48514         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
48515         New declarations.
48516         * lib/printf-parse.c: Don't include config.h and the specification
48517         header if PRINTF_PARSE is already defined. Eliminate the set of
48518         parameters for WIDE_CHAR_VERSION; the user of this file must provide
48519         them now. Include c-ctype.h.
48520         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
48521         directive and CHAR_T_ONLY_ASCII.
48522         * lib/vasnprintf.c: Don't include config.h and the specification header
48523         if VASNPRINTF is already defined.
48524         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
48525         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
48526         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
48527         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
48528         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
48529         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
48530         code accordingly.
48531         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
48532         pad_ourselves also in this case, with the 'c' and 's' directives, and
48533         with a different notion of "width".
48534         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
48535
48536 2007-06-10  Bruno Haible  <bruno@clisp.org>
48537
48538         * modules/unistr/u32-mbsnlen: New file.
48539         * lib/unistr/u32-mbsnlen.c: New file.
48540
48541         * modules/unistr/u16-mbsnlen: New file.
48542         * lib/unistr/u16-mbsnlen.c: New file.
48543
48544         * modules/unistr/u8-mbsnlen: New file.
48545         * lib/unistr/u8-mbsnlen.c: New file.
48546
48547         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
48548         declarations.
48549
48550 2007-06-10  Bruno Haible  <bruno@clisp.org>
48551
48552         * lib/string_.h (mbsnlen): New declaration.
48553         * lib/mbsnlen.c: New file.
48554         * m4/mbsnlen.m4: New file.
48555         * modules/mbsnlen: New file.
48556         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
48557         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
48558         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
48559
48560 2007-06-10  Bruno Haible  <bruno@clisp.org>
48561
48562         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
48563
48564 2007-06-10  Bruno Haible  <bruno@clisp.org>
48565
48566         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
48567         * lib/mbuiter.h: Likewise.
48568
48569 2007-06-10  Bruno Haible  <bruno@clisp.org>
48570
48571         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
48572         declaration.
48573
48574 2007-06-10  Karl Berry  <karl@gnu.org>
48575
48576         * config/srclist.txt: remove gettext entries, Bruno prefers
48577         to update individually.
48578
48579 2007-06-10  Bruno Haible  <bruno@clisp.org>
48580
48581         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
48582         'maxlen'. Ensure only length + width bytes are allocated, not
48583         length + 1 + width.
48584
48585 2007-06-09  Bruno Haible  <bruno@clisp.org>
48586
48587         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
48588         (CHAR_T): Remove macro.
48589         (VASNPRINTF): Update.
48590
48591 2007-06-09  Bruno Haible  <bruno@clisp.org>
48592
48593         * MODULES.html.sh (Unicode string functions): Add the new modules.
48594
48595         * modules/uniconv/u32-conv-to-enc: New file.
48596         * lib/uniconv/u32-conv-to-enc.c: New file.
48597         * modules/uniconv/u32-conv-to-enc-tests: New file.
48598         * tests/uniconv/test-u32-conv-to-enc.c: New file.
48599
48600         * modules/uniconv/u16-conv-to-enc: New file.
48601         * lib/uniconv/u16-conv-to-enc.c: New file.
48602         * lib/uniconv/u-conv-to-enc.h: New file.
48603         * modules/uniconv/u16-conv-to-enc-tests: New file.
48604         * tests/uniconv/test-u16-conv-to-enc.c: New file.
48605
48606         * modules/uniconv/u8-conv-to-enc: New file.
48607         * lib/uniconv/u8-conv-to-enc.c: New file.
48608         * modules/uniconv/u8-conv-to-enc-tests: New file.
48609         * tests/uniconv/test-u8-conv-to-enc.c: New file.
48610
48611         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48612         u32_conv_to_encoding): New declarations.
48613
48614 2007-06-09  Bruno Haible  <bruno@clisp.org>
48615
48616         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
48617
48618 2007-06-09  Bruno Haible  <bruno@clisp.org>
48619
48620         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
48621         * modules/malloca: Renamed from modules/allocsa, updated.
48622         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
48623         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
48624         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
48625         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
48626         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
48627         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
48628         * modules/xmalloca: Renamed from modules/xallocsa, updated.
48629         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
48630         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
48631         * modules/c-strcasestr (Depends-on): Update.
48632         * lib/c-strcasestr.c: Update.
48633         * modules/c-strstr (Depends-on): Update.
48634         * lib/c-strstr.c: Update.
48635         * modules/canonicalize-lgpl (Depends-on): Update.
48636         * lib/canonicalize-lgpl.c: Update.
48637         * modules/clean-temp (Depends-on): Update.
48638         * lib/clean-temp.c: Update.
48639         * modules/csharpcomp (Depends-on): Update.
48640         * lib/csharpcomp.c: Update.
48641         * modules/csharpexec (Depends-on): Update.
48642         * lib/csharpexec.c: Update.
48643         * modules/javacomp (Depends-on): Update.
48644         * lib/javacomp.c: Update.
48645         * modules/javaexec (Depends-on): Update.
48646         * lib/javaexec.c: Update.
48647         * modules/mbscasestr (Depends-on): Update.
48648         * lib/mbscasestr.c: Update.
48649         * modules/mbsstr (Depends-on): Update.
48650         * lib/mbsstr.c: Update.
48651         * modules/setenv (Depends-on): Update.
48652         * lib/setenv.c: Update.
48653         * modules/strcasestr (Depends-on): Update.
48654         * lib/strcasestr.c: Update.
48655         * modules/striconveha (Depends-on): Update.
48656         * lib/striconveha.c: Update.
48657         * modules/relocatable-prog-wrapper (Files): Update.
48658         * lib/relocwrapper.c: Update.
48659         * build-aux/install-reloc: Update.
48660         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
48661
48662 2007-06-08  Bruno Haible  <bruno@clisp.org>
48663
48664         Port to uClibc.
48665         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
48666         * lib/fpurge.c (fpurge): Likewise.
48667         * lib/freading.c (freading): Likewise.
48668         * lib/fseeko.c (rpl_fseeko): Likewise.
48669         * lib/fseterr.c (fseterr): Likewise.
48670         * lib/fwriting.c (fwriting): Likewise.
48671         * tests/test-fflush.c (main): Avoid a failure on uClibc.
48672
48673 2007-06-08  Bruno Haible  <bruno@clisp.org>
48674
48675         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
48676         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
48677         * modules/gettext (Files): Add m4/intlmacosx.m4.
48678
48679 2007-06-07  Bruno Haible  <bruno@clisp.org>
48680
48681         * modules/localename-tests: New file.
48682         * tests/test-localename.c: New file.
48683
48684         New module 'localename'.
48685         * lib/localename.h: New file.
48686         * lib/localename.c: New file, from GNU gettext.
48687         * m4/localename.m4: New file.
48688         * modules/localename: New file.
48689
48690 2007-06-07  Bruno Haible  <bruno@clisp.org>
48691
48692         Work around the lack of <wchar.h> on some builds of uClibc.
48693         * doc/headers/wchar.texi: Update.
48694         * lib/wchar_.h: Include <wchar.h> only if it exists.
48695         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
48696         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
48697         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
48698         doesn't exist.
48699         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
48700         * modules/mbfile (Depends-on): Add wchar.
48701         * modules/mbiter (Depends-on): Likewise.
48702         * modules/mbuiter (Depends-on): Likewise.
48703         Reported by Simon Josefsson.
48704
48705 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
48706
48707         Work around problem reported by Steven M. Schweda in
48708         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
48709         Tru64 5.1B with the Compaq compiler environment installed declares
48710         an 'isblank' function but does not define it in the C library.
48711         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
48712         * lib/regex_internal.h (isblank): Likewise.
48713         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
48714         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48715
48716 2007-06-05  Bruno Haible  <bruno@clisp.org>
48717
48718         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
48719         ia64.
48720         * modules/printf-safe: New file.
48721         * modules/fprintf-posix (Depends-on): Add printf-safe.
48722         * modules/printf-posix (Depends-on): Likewise.
48723         * modules/snprintf-posix (Depends-on): Likewise.
48724         * modules/sprintf-posix (Depends-on): Likewise.
48725         * modules/vasnprintf-posix (Depends-on): Likewise.
48726         * modules/vasprintf-posix (Depends-on): Likewise.
48727         * modules/vfprintf-posix (Depends-on): Likewise.
48728         * modules/vprintf-posix (Depends-on): Likewise.
48729         * modules/vsnprintf-posix (Depends-on): Likewise.
48730         * modules/vsprintf-posix (Depends-on): Likewise.
48731         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
48732         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
48733         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
48734         "no" on i386, x86_64, ia64.
48735         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
48736         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48737         on i386, x86_64, ia64.
48738         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
48739         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48740         on i386, x86_64, ia64.
48741         * tests/test-vasnprintf-posix.c: Include float.h.
48742         (LDBL80_WORDS): New macro.
48743         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48744         on i386, x86_64, ia64.
48745         * tests/test-vasprintf-posix.c: Include float.h.
48746         (LDBL80_WORDS): New macro.
48747         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48748         on i386, x86_64, ia64.
48749         * tests/test-snprintf-posix.c: Include float.h.
48750         * tests/test-sprintf-posix.c: Likewise.
48751         * tests/test-vsnprintf-posix.c: Likewise.
48752         * tests/test-vsprintf-posix.c: Likewise.
48753
48754 2007-06-05  Bruno Haible  <bruno@clisp.org>
48755
48756         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
48757         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
48758         non-IEEE numbers on i386, x86_64, ia64.
48759         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
48760         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
48761         * tests/test-isnanl.h: Include float.h.
48762         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
48763
48764 2007-06-05  Bruno Haible  <bruno@clisp.org>
48765
48766         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
48767         also the %a / %A. Handle the %a / %A code before this extra handling.
48768
48769 2007-06-05  Bruno Haible  <bruno@clisp.org>
48770
48771         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
48772         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
48773
48774 2007-06-05  Bruno Haible  <bruno@clisp.org>
48775
48776         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
48777         typo in variable name.
48778
48779 2007-06-05  Eric Blake  <ebb9@byu.net>
48780
48781         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
48782         Reported by Simon Josefsson.
48783
48784 2007-06-04  Bruno Haible  <bruno@clisp.org>
48785
48786         Avoid test failures on some PowerPC platforms.
48787         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
48788         Define differently for PowerPC.
48789         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
48790         Reported by Gary V. Vaughan <gary@gnu.org>.
48791
48792 2007-06-02  Bruno Haible  <bruno@clisp.org>
48793
48794         Fix test-stdint failure on FreeBSD/ia64.
48795         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
48796         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
48797         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
48798         * doc/headers/stdint.texi: Update.
48799
48800 2007-06-01  Bruno Haible  <bruno@clisp.org>
48801
48802         * tests/test-binary-io.c (main): Pass a third argument to open().
48803         Reported by Gary V. Vaughan <gary@gnu.org>.
48804
48805 2007-06-01  Bruno Haible  <bruno@clisp.org>
48806
48807         * doc/functions/frexpl.texi: Update for mingw.
48808
48809 2007-06-01  Bruno Haible  <bruno@clisp.org>
48810
48811         * tests/test-lseek.c (main): Disable test of errno for invalid third
48812         argument.
48813         * doc/functions/lseek.texi: Update.
48814         Reported by Gary V. Vaughan <gary@gnu.org>.
48815
48816 2007-05-28  Bruno Haible  <bruno@clisp.org>
48817
48818         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
48819
48820 2007-05-31  Eric Blake  <ebb9@byu.net>
48821
48822         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
48823         cross compiling.
48824
48825 2007-05-30  Eric Blake  <ebb9@byu.net>
48826         and Bruno Haible  <bruno@clisp.org>
48827
48828         Work around mingw test failures exposed by m4-1.4.9b.
48829         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
48830         * tests/test-unistd.c: Disable uid_t and git_t tests for the
48831         moment.
48832
48833 2007-05-30  Bruno Haible  <bruno@clisp.org>
48834
48835         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
48836         assuming that they are closed. Needed on HP-UX 11.
48837
48838 2007-05-29  Bruno Haible  <bruno@clisp.org>
48839
48840         Fix a problem with #include_next.
48841         * lib/dirent_.h: Split the double-inclusion guard.
48842         * lib/fcntl_.h: Likewise.
48843         * lib/float_.h: Likewise.
48844         * lib/iconv_.h: Likewise.
48845         * lib/inttypes_.h: Likewise.
48846         * lib/locale_.h: Likewise.
48847         * lib/math_.h: Likewise.
48848         * lib/netinet_in_.h: Likewise.
48849         * lib/search_.h: Likewise.
48850         * lib/signal_.h: Likewise.
48851         * lib/stdint_.h: Likewise.
48852         * lib/stdio_.h: Likewise.
48853         * lib/stdlib_.h: Likewise.
48854         * lib/string_.h: Likewise.
48855         * lib/sys_select_.h: Likewise.
48856         * lib/sys_socket_.h: Likewise.
48857         * lib/sys_stat_.h: Likewise.
48858         * lib/sys_time_.h: Likewise.
48859         * lib/sysexits_.h: Likewise.
48860         * lib/time_.h: Likewise.
48861         * lib/unistd_.h: Likewise.
48862         * lib/wchar_.h: Likewise.
48863         * lib/wctype_.h: Likewise.
48864
48865 2007-05-29  Bruno Haible  <bruno@clisp.org>
48866
48867         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
48868         for the moment.
48869
48870 2007-05-29  Bruno Haible  <bruno@clisp.org>
48871
48872         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
48873         invocation.
48874         Reported by Eric Blake.
48875
48876 2007-05-29  Bruno Haible  <bruno@clisp.org>
48877
48878         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
48879         compiling case.
48880
48881 2007-05-29  Eric Blake  <ebb9@byu.net>
48882             Bruno Haible  <bruno@clisp.org>
48883
48884         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
48885         cross compiles.
48886
48887 2007-05-28  Eric Blake  <ebb9@byu.net>
48888
48889         * modules/closein-tests (test_closein_LDADD): Support test on
48890         cygwin with libtool.
48891
48892 2007-05-28  Bruno Haible  <bruno@clisp.org>
48893
48894         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
48895         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48896         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48897         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48898         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48899         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48900         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48901         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48902         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48903
48904 2007-05-28  Eric Blake  <ebb9@byu.net>
48905
48906         Unconditionally include <config.h> in unit tests.
48907         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
48908         * tests/test-allocsa.c, tests/test-arcfour.c,
48909         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
48910         tests/test-array_list.c, tests/test-array_oset.c,
48911         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
48912         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
48913         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
48914         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
48915         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
48916         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
48917         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
48918         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
48919         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
48920         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
48921         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
48922         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
48923         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
48924         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
48925         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
48926         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
48927         test-md5.c, test-memmem.c, test-printf-posix.c,
48928         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
48929         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
48930         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
48931         test-strcasestr.c, test-striconv.c, test-striconveh.c,
48932         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
48933         test-vasnprintf-posix2.c, test-vasnprintf.c,
48934         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
48935         test-vfprintf-posix.c, test-vprintf-posix.c,
48936         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
48937         test-xvasprintf.c: Likewise.
48938
48939 2007-05-28  Bruno Haible  <bruno@clisp.org>
48940
48941         * gnulib-tool (func_import): Remember the --with-tests command-line
48942         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
48943         Reported by Eric Blake.
48944
48945 2007-05-28  Bruno Haible  <bruno@clisp.org>
48946
48947         * modules/ftell-tests: New file.
48948         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
48949         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
48950
48951         * lib/ftell.c: New file.
48952         * modules/ftell: New file.
48953         * m4/ftell.m4: New file.
48954         * doc/functions/ftell.texi: Update.
48955         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
48956         REPLACE_FTELL.
48957         * lib/stdio_.h (rpl_ftell): New declaration.
48958         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
48959         REPLACE_FTELL.
48960
48961 2007-05-28  Eric Blake  <ebb9@byu.net>
48962
48963         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
48964
48965 2007-05-28  Bruno Haible  <bruno@clisp.org>
48966
48967         * modules/fseek-tests: New file.
48968         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
48969         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
48970
48971         * lib/fseek.c: New file.
48972         * modules/fseek: New file.
48973         * m4/fseek.m4: New file.
48974         * doc/functions/fseek.texi: Update.
48975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
48976         REPLACE_FSEEK.
48977         * lib/stdio_.h (rpl_fseek): New declaration.
48978         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
48979         REPLACE_FSEEK.
48980
48981 2007-05-28  Bruno Haible  <bruno@clisp.org>
48982
48983         * lib/stdio_.h (fflush): More comments.
48984
48985 2007-05-28  Bruno Haible  <bruno@clisp.org>
48986
48987         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
48988         runtime test.
48989
48990 2007-05-28  Eric Blake  <ebb9@byu.net>
48991
48992         Improve lseek module.
48993         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
48994         * lib/unistd_.h (lseek): Scale back link warning message.
48995         * tests/test-lseek.c: Beef up test.
48996         * tests/test-lseek.sh: Exercise more facets of lseek.
48997         Reported by Bruno Haible.
48998
48999 2007-05-28  Bruno Haible  <bruno@clisp.org>
49000
49001         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
49002         to define.
49003
49004 2007-05-27  Bruno Haible  <bruno@clisp.org>
49005
49006         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
49007
49008 2007-05-27  Bruno Haible  <bruno@clisp.org>
49009
49010         * modules/openmp: New file.
49011         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
49012         Noah Misch.
49013
49014 2007-05-26  Bruno Haible  <bruno@clisp.org>
49015
49016         * modules/chdir-long (Depends-on): Add fchdir.
49017         * modules/chdir-safer (Depends-on): Likewise.
49018         * modules/fts (Depends-on): Likewise.
49019         * modules/fts-lgpl (Depends-on): Likewise.
49020         * modules/openat (Depends-on): Likewise.
49021         * modules/savewd (Depends-on): Likewise.
49022
49023 2007-05-24  Eric Blake  <ebb9@byu.net>
49024
49025         Fix lseek on mingw.
49026         * modules/lseek: New module.
49027         * m4/lseek.m4: New file.
49028         * lib/lseek.c: New file.
49029         * modules/lseek-tests: New file.
49030         * tests/test-lseek.c: New file.
49031         * tests/test-lseek.sh: New file.
49032         * MODULES.html.sh: Document lseek module.
49033         * modules/fflush (Depends-on): Add lseek, fseeko.
49034         * modules/fseeko (Depends-on): Likewise.
49035         * modules/ftello (Depends-on): Likewise.
49036         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
49037         broken.
49038         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
49039         broken.
49040         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
49041         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
49042         * lib/ftello.c (rpl_ftello): Likewise.
49043         * tests/test-fseeko.c (main): Test this.
49044         * tests/test-fseeko.sh: Likewise.
49045         * tests/test-ftello.c (main): Likewise.
49046         * tests/test-ftello.sh: Likewise.
49047         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
49048         implies replacing fseek.
49049         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
49050         HAVE_FTELLO.
49051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
49052         * modules/unistd (Makefile.am): Likewise.
49053         * lib/unistd_.h (lseek): Declare a replacement.
49054         * doc/functions/lseek.texi (lseek): Document this fix.
49055         * doc/functions/fseek.texi (fseek): Likewise.
49056         * doc/functions/ftell.texi (ftell): Likewise.
49057
49058 2007-05-24  Bruno Haible  <bruno@clisp.org>
49059
49060         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
49061         in the printed representation of a NaN.
49062         * tests/test-vasprintf-posix.c (test_function): Likewise.
49063         * tests/test-snprintf-posix.h (test_function): Likewise.
49064         * tests/test-sprintf-posix.h (test_function): Likewise.
49065         Reported by Eric Blake.
49066
49067 2007-05-23  Eric Blake  <ebb9@byu.net>
49068
49069         Fix fseeko/ftello on cygwin 1.5.24.
49070         * doc/functions/fseeko.texi (fseeko): Document the fix.
49071         * doc/functions/ftello.texi (ftello): Document the fix.
49072         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
49073         * doc/functions/stdout.text (stdout): New file.
49074         * doc/functions/stderr.text (stderr): New file.
49075         * doc/gnulib.texi (Function Substitutes): Use new files.
49076         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
49077         prior to 1.7.0.
49078         * tests/test-ftello.c (main): Likewise for ftello.
49079         * tests/test-fseeko.sh: New file.
49080         * tests/test-ftello.sh: New file.
49081         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
49082         with seekable stdin.
49083         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
49084         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
49085         (gl_REPLACE_FSEEKO): New macro.
49086         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
49087         * modules/fseeko (Files): Distribute fseeko.c.
49088         * modules/ftello (Files): Distribute ftello.c.
49089         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
49090         mode.
49091         * lib/ftello.c (rpl_ftello): New file.
49092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
49093         fseeko, ftello.
49094         (gl_STDIN_LARGE_OFFSET): New macro.
49095         * modules/stdio (Makefile.am): Perform the replacement.
49096         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
49097
49098 2007-05-23  Bruno Haible  <bruno@clisp.org>
49099
49100         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
49101         GNULIB_POSIXCHECK is defined.
49102
49103 2007-05-21  Bruno Haible  <bruno@clisp.org>
49104
49105         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
49106         Check also the output for NaN arguments. When cross-compiling, guess
49107         no on IRIX.
49108         * lib/vasnprintf.c: Update comments.
49109         * tests/test-vasnprintf-posix.c (strisnan): New function.
49110         (test_function): Use it.
49111         * tests/test-vasprintf-posix.c (strisnan): New function.
49112         (test_function): Use it.
49113         * tests/test-snprintf-posix.h (strisnan): New function.
49114         (test_function): Use it.
49115         * tests/test-sprintf-posix.h (strisnan): New function.
49116         (test_function): Use it.
49117         Reported by Eric Blake.
49118
49119 2007-05-20  Bruno Haible  <bruno@clisp.org>
49120
49121         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
49122         numbers that fails on BeOS.
49123         * doc/functions/frexpl.texi: Update.
49124
49125 2007-05-20  Jim Meyering  <jim@meyering.net>
49126
49127         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
49128         forced upon us by glibc-2.6.
49129
49130 2007-05-20  Bruno Haible  <bruno@clisp.org>
49131
49132         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
49133         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
49134         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
49135         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
49136         NEED_PRINTF_INFINITE.
49137         (is_infinitel): New function.
49138         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
49139         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
49140         gl_PREREQ_VASNPRINTF_INFINITE.
49141         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
49142         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49143         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
49144         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
49145         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
49146         gl_PREREQ_VASNPRINTF_INFINITE.
49147         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49148         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49149         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49150         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49151         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49152         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49153         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49154         * doc/functions/fprintf.texi: Update.
49155         * doc/functions/printf.texi: Update.
49156         * doc/functions/snprintf.texi: Update.
49157         * doc/functions/sprintf.texi: Update.
49158         * doc/functions/vfprintf.texi: Update.
49159         * doc/functions/vprintf.texi: Update.
49160         * doc/functions/vsnprintf.texi: Update.
49161         * doc/functions/vsprintf.texi: Update.
49162
49163 2007-05-20  Bruno Haible  <bruno@clisp.org>
49164
49165         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
49166         was not found in libc.
49167         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49168
49169 2007-05-20  Bruno Haible  <bruno@clisp.org>
49170
49171         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49172         printed as "-nan" instead of "nan".
49173         * tests/test-vasprintf-posix.c (test_function): Likewise.
49174         * tests/test-snprintf-posix.h (test_function): Likewise.
49175         * tests/test-sprintf-posix.h (test_function): Likewise.
49176         Needed for HP-UX 11.
49177
49178 2007-05-20  Jim Meyering  <jim@meyering.net>
49179
49180         Fix buggy test for the fchownat-deref bug.
49181         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
49182         symlink required for the run-test.  Without it, this test would
49183         always declare that fchownat doesn't work, and client code would
49184         unnecessarily use the replacement function with fixed libc.
49185         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
49186         Reported by Greg Schafer.
49187
49188 2007-05-19  Bruno Haible  <bruno@clisp.org>
49189
49190         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
49191         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
49192         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
49193         Needed for IRIX 6.5 and Solaris 2.5.1.
49194
49195 2007-05-19  Bruno Haible  <bruno@clisp.org>
49196
49197         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
49198         (test_function): Skip tests involving -0.0 on platforms where
49199         -0.0 = 0.0.
49200         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
49201         (test_function): Skip tests involving -0.0 on platforms where
49202         -0.0 = 0.0.
49203         * tests/test-snprintf-posix.h (have_minus_zero): New function.
49204         (test_function): Skip tests involving -0.0 on platforms where
49205         -0.0 = 0.0.
49206         * tests/test-sprintf-posix.h (have_minus_zero): New function.
49207         (test_function): Skip tests involving -0.0 on platforms where
49208         -0.0 = 0.0.
49209         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
49210         tests.
49211         * tests/test-printf-posix.h (test_function): Likewise.
49212         * tests/test-printf-posix.output: Remove all -0.0 related results.
49213         Needed for IRIX 6.5.
49214
49215 2007-05-19  Bruno Haible  <bruno@clisp.org>
49216
49217         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49218         printed as "nan0x7fffffff" instead of "nan".
49219         * tests/test-vasprintf-posix.c (test_function): Likewise.
49220         * tests/test-snprintf-posix.h (test_function): Likewise.
49221         * tests/test-sprintf-posix.h (test_function): Likewise.
49222         * tests/test-fprintf-posix.h (NaN): Remove macro.
49223         (test_function): Remove all NaN related tests.
49224         * tests/test-printf-posix.h (NaN): Remove macro.
49225         (test_function): Remove all NaN related tests.
49226         * tests/test-printf-posix.output: Remove all NaN related results.
49227         Needed for IRIX 6.5.
49228
49229 2007-05-19  Bruno Haible  <bruno@clisp.org>
49230
49231         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
49232         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49233
49234 2007-05-19  Bruno Haible  <bruno@clisp.org>
49235
49236         * lib/float_.h: New file.
49237         * m4/float_h.m4: New file.
49238         * modules/float: New file.
49239         * modules/isnanl (Dependencies): Add float.
49240         * modules/isnanl-nolibm (Dependencies): Likewise.
49241         * modules/mathl (Dependencies): Likewise.
49242         * modules/printf-frexpl (Dependencies): Likewise.
49243         * modules/signbit (Dependencies): Likewise.
49244         * modules/vasnprintf (Dependencies): Likewise.
49245         * doc/headers/float.texi: Update.
49246
49247 2007-05-19  Jim Meyering  <jim@meyering.net>
49248
49249         * lib/utimens.c (gl_futimens): Rename from futimens,
49250         now that glibc-2.6 declares futimens.
49251         * lib/utimens.h: Likewise.
49252
49253 2007-05-19  Bruno Haible  <bruno@clisp.org>
49254
49255         Avoid test failures on mingw.
49256         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
49257         * tests/test-printf-posix.sh: Likewise.
49258         * tests/test-vfprintf-posix.sh: Likewise.
49259         * tests/test-vprintf-posix.sh: Likewise.
49260
49261 2007-05-19  Bruno Haible  <bruno@clisp.org>
49262
49263         Fix *printf result for NaN, Inf, -0.0 on mingw.
49264         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
49265         * lib/vasnprintf.c: Include math.h and isnan.h.
49266         (is_infinite_or_zero): New function.
49267         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
49268         values in the %f, %F, %e, %E, %g, %G directives.
49269         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
49270         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49271         gl_PRINTF_INFINITE and test its result. Invoke
49272         gl_PREREQ_VASNPRINTF_INFINITE.
49273         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49274         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49275         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49276         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49277         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49278         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49279         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49280         * doc/functions/fprintf.texi: Update.
49281         * doc/functions/printf.texi: Update.
49282         * doc/functions/snprintf.texi: Update.
49283         * doc/functions/sprintf.texi: Update.
49284         * doc/functions/vfprintf.texi: Update.
49285         * doc/functions/vprintf.texi: Update.
49286         * doc/functions/vsnprintf.texi: Update.
49287         * doc/functions/vsprintf.texi: Update.
49288
49289 2007-05-19  Bruno Haible  <bruno@clisp.org>
49290
49291         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
49292         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
49293         Instead of multiplying with 10^k, set extra_zeroes to k.
49294         (scale10_round_long_double): Remove function.
49295
49296 2007-05-18  Bruno Haible  <bruno@clisp.org>
49297
49298         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
49299         introduced on 2007-05-06.
49300
49301 2007-05-18  Bruno Haible  <bruno@clisp.org>
49302
49303         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
49304         %g directives.
49305         * tests/test-vasprintf-posix.c (test_function): Likewise.
49306         * tests/test-snprintf-posix.h (test_function): Likewise.
49307         * tests/test-sprintf-posix.h (test_function): Likewise.
49308
49309 2007-05-18  Bruno Haible  <bruno@clisp.org>
49310
49311         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
49312         (strmatch): New function.
49313         (test_function): Test the %f directive on numbers of various exponents.
49314         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
49315         (strmatch): New function.
49316         (test_function): Test the %f directive on numbers of various exponents.
49317         * tests/test-snprintf-posix.h (strmatch): New function.
49318         (test_function): Test the %f directive on numbers of various exponents.
49319         * tests/test-sprintf-posix.h (strmatch): New function.
49320         (test_function): Test the %f directive on numbers of various exponents.
49321         * tests/test-snprintf-posix.c (SIZEOF): New macro.
49322         * tests/test-sprintf-posix.c (SIZEOF): New macro.
49323         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
49324         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
49325
49326 2007-05-18  Bruno Haible  <bruno@clisp.org>
49327
49328         Add support for 'long double' number output.
49329         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
49330         * lib/vasnprintf.c: Include math.h and float+.h.
49331         (mp_limb_t): New type.
49332         (GMP_LIMB_BITS): New macro.
49333         (mp_twolimb_t): New type.
49334         (GMP_TWOLIMB_BITS): New macro.
49335         (mpn_t): New type.
49336         (multiply, divide, convert_to_decimal, decode_long_double,
49337         scale10_round_long_double, scale10_round_decimal_long_double,
49338         floorlog10l): New functions.
49339         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
49340         for the %f, %F, %e, %E, %g, %G directives.
49341         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
49342         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49343         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
49344         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
49345         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49346         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49347         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49348         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49349         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49350         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49351         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49352         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
49353         * modules/snprintf-posix (Depends-on): Likewise.
49354         * modules/sprintf-posix (Depends-on): Likewise.
49355         * modules/vasnprintf-posix (Depends-on): Likewise.
49356         * modules/vasprintf-posix (Depends-on): Likewise.
49357         * modules/vfprintf-posix (Depends-on): Likewise.
49358         * modules/vsnprintf-posix (Depends-on): Likewise.
49359         * modules/vsprintf-posix (Depends-on): Likewise.
49360         * modules/vasnprintf (Files): Add lib/float+.h.
49361         * doc/functions/fprintf.texi: Update.
49362         * doc/functions/printf.texi: Update.
49363         * doc/functions/snprintf.texi: Update.
49364         * doc/functions/sprintf.texi: Update.
49365         * doc/functions/vfprintf.texi: Update.
49366         * doc/functions/vprintf.texi: Update.
49367         * doc/functions/vsnprintf.texi: Update.
49368         * doc/functions/vsprintf.texi: Update.
49369
49370 2007-05-18  Bruno Haible  <bruno@clisp.org>
49371
49372         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
49373
49374 2007-05-18  Bruno Haible  <bruno@clisp.org>
49375
49376         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
49377         for printing 64-bit integers. Needed for mingw.
49378
49379 2007-05-18  Bruno Haible  <bruno@clisp.org>
49380
49381         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49382         gl_FUNC_FREXPL_WORKS.
49383         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
49384
49385 2007-05-18  Bruno Haible  <bruno@clisp.org>
49386
49387         * modules/frexpl-nolibm-tests: New file.
49388
49389         * modules/frexpl-nolibm: New file.
49390         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
49391
49392 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
49393
49394         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
49395         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49396         GCC 4.2, which otherwise issues a lot of warnings.
49397         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
49398         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
49399         Likewise.
49400         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
49401         * modules/iconv_open (iconv.h): Likewise.
49402         * modules/locale (locale.h): Likewise.
49403         * modules/netinet_in (netinet/in.h): Likewise.
49404         * modules/sys_select (sys_select.h): Likewise.
49405         * modules/sys_socket (sys/socket.h): Likewise.
49406         * modules/sys_stat (sys/stat.h): Likewise.
49407         * modules/sysexits (sysexits.h): Likewise.
49408         * modules/unistd (unistd.h): Likewise.
49409
49410 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49411
49412         * modules/closein-tests (Makefile.am): Distribute
49413         `test-closein.sh'.
49414
49415 2007-05-17  Bruno Haible  <bruno@clisp.org>
49416
49417         * tests/test-printf-posix.output: Renamed from
49418         tests/test-fprintf-posix.out.
49419         * modules/fprintf-posix-tests: Update.
49420         * modules/printf-posix-tests: Update.
49421         * modules/vfprintf-posix-tests: Update.
49422         * modules/vprintf-posix-tests: Update.
49423         * tests/test-fprintf-posix.sh: Update.
49424         * tests/test-printf-posix.sh: Update.
49425         * tests/test-vfprintf-posix.sh: Update.
49426         * tests/test-vprintf-posix.sh: Update.
49427         Reported by Ralf Wildenhues.
49428
49429 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49430
49431         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
49432         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49433         GCC 4.2, which otherwise issues a lot of warnings.
49434         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
49435         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
49436         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
49437         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
49438         it should no longer be needed.
49439         * lib/string_.h: Likewise.
49440         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
49441         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
49442         * modules/inttypes (inttypes.h): Likewise.
49443         * modules/math (math.h): Likewise.
49444         * modules/search (search.h): Likewise.
49445         * modules/signal (signal.h): Likewise.
49446         * modules/stdint (stdint.h): Likewise.
49447         * modules/stdio (stdio.h): Likewise.
49448         * modules/stdlib (stdlib.h): Likewise.
49449         * modules/string (string.h): Likewise.
49450         * modules/sys_time (sys/time.h): Likewise.
49451         * modules/time (time.h): Likewise.
49452         * modules/wchar (wchar.h): Likewise.
49453         * modules/wctype (wtype.h): Likewise.
49454
49455 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49456
49457         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
49458
49459 2007-05-13  Bruno Haible  <bruno@clisp.org>
49460
49461         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
49462         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49463         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
49464         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49465         (gl_PREREQ_STRTOK_R): Don't require it here.
49466
49467 2007-05-13  Bruno Haible  <bruno@clisp.org>
49468
49469         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
49470         when used in C++ mode.
49471
49472 2007-05-12  Bruno Haible  <bruno@clisp.org>
49473
49474         * lib/linebuffer.h: Tweak doc.
49475         * lib/linebuffer.c: Likewise.
49476
49477 2007-05-12  James Youngman  <jay@gnu.org>
49478
49479         * lib/linebuffer.c (readlinebuffer_delim): New function,
49480         like readlinebuffer, but use a caller-specified delimiter.
49481         (readlinebuffer): Just call readlinebuffer_delim with '\n'
49482         as the delimiter.
49483         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
49484
49485 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49486
49487         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
49488         * modules/openat (Files): Remove openat-die.c.
49489         (Depends-on): Add openat-die.
49490         * modules/openat-die: New module.
49491
49492 2007-05-06  Bruno Haible  <bruno@clisp.org>
49493
49494         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
49495         Update with info about Cygwin.
49496         * doc/functions/fprintf.texi: Update.
49497         * doc/functions/printf.texi: Update.
49498         * doc/functions/snprintf.texi: Update.
49499         * doc/functions/sprintf.texi: Update.
49500         * doc/functions/vfprintf.texi: Update.
49501         * doc/functions/vprintf.texi: Update.
49502         * doc/functions/vsnprintf.texi: Update.
49503         * doc/functions/vsprintf.texi: Update.
49504         Reported by Eric Blake.
49505
49506 2007-05-06  Bruno Haible  <bruno@clisp.org>
49507
49508         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
49509         padding ourselves for the floating-point directives.
49510         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
49511         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
49512         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49513         gl_PRINTF_FLAG_ZERO and test its result. Invoke
49514         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
49515         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49516         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49517         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49518         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49519         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49520         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49521         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49522         * tests/test-snprintf-posix.h (test_function): Also check the width
49523         and some flags in the %f directive.
49524         * tests/test-sprintf-posix.h (test_function): Likewise.
49525         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49526         * tests/test-vasprintf-posix.c (test_function): Likewise.
49527         * doc/functions/fprintf.texi: Update.
49528         * doc/functions/printf.texi: Update.
49529         * doc/functions/snprintf.texi: Update.
49530         * doc/functions/sprintf.texi: Update.
49531         * doc/functions/vfprintf.texi: Update.
49532         * doc/functions/vprintf.texi: Update.
49533         * doc/functions/vsnprintf.texi: Update.
49534         * doc/functions/vsprintf.texi: Update.
49535
49536 2007-05-06  Bruno Haible  <bruno@clisp.org>
49537
49538         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
49539         pass the ' flag character to sprintf or snprintf.
49540         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
49541         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
49542         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49543         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
49544         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
49545         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49546         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49547         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49548         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49549         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49550         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49551         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49552         * tests/test-snprintf-posix.h (test_function): Also check the grouping
49553         flag.
49554         * tests/test-sprintf-posix.h (test_function): Likewise.
49555         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49556         * tests/test-vasprintf-posix.c (test_function): Likewise.
49557         * doc/functions/fprintf.texi: Update.
49558         * doc/functions/printf.texi: Update.
49559         * doc/functions/snprintf.texi: Update.
49560         * doc/functions/sprintf.texi: Update.
49561         * doc/functions/vfprintf.texi: Update.
49562         * doc/functions/vprintf.texi: Update.
49563         * doc/functions/vsnprintf.texi: Update.
49564         * doc/functions/vsprintf.texi: Update.
49565
49566 2007-05-01  Bruno Haible  <bruno@clisp.org>
49567
49568         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
49569
49570 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
49571
49572         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
49573         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
49574
49575 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
49576
49577         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
49578         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
49579         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
49580
49581 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
49582
49583         * lib/argp-help.c (struct hol_entry): New member `ord'.
49584         (HOL_ENTRY_PTRCMP): Use ord for comparison
49585         (hol_sort): Initialize ord.
49586
49587 2007-05-01  Bruno Haible  <bruno@clisp.org>
49588
49589         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
49590         Reported by Eric Blake.
49591         * doc/gnulib.texi (Function Substitutes): Update.
49592
49593 2007-05-01  Bruno Haible  <bruno@clisp.org>
49594
49595         * doc/functions.texi: Remove file, now redundant through
49596         doc/functions/*.texi.
49597
49598 2007-05-01  Bruno Haible  <bruno@clisp.org>
49599
49600         * modules/argp (Depends-on): Add sleep.
49601
49602 2007-05-01  Bruno Haible  <bruno@clisp.org>
49603
49604         * modules/sleep-tests: New file.
49605         * tests/test-sleep.c: New file.
49606
49607         * modules/sleep: New file.
49608         * lib/sleep.c: New file.
49609         * m4/sleep.m4: New file.
49610         * lib/unistd_.h (sleep): New declaration.
49611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
49612         HAVE_SLEEP.
49613         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
49614         * doc/functions/sleep.texi: Document the sleep module.
49615
49616 2007-05-01  Bruno Haible  <bruno@clisp.org>
49617
49618         * lib/sigprocmask.h: Remove file.
49619         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
49620         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
49621         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
49622         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
49623         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
49624         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
49625         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
49626         HAVE_SIGSET_T as a shell variable.
49627         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
49628         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
49629         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
49630         (Depends-on): Add signal. Remove verify.
49631         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
49632         (Include): Mention <signal.h> instead of sigprocmask.h.
49633         * NEWS: Mention the change.
49634         * lib/fatal-signal.c: Don't include sigprocmask.h.
49635
49636 2007-05-01  Bruno Haible  <bruno@clisp.org>
49637
49638         * modules/signal: New file.
49639         * lib/signal_.h: New file.
49640         * m4/signal_h.m4: New file.
49641
49642 2007-05-01  Bruno Haible  <bruno@clisp.org>
49643
49644         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
49645         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
49646         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
49647         HAVE_WCTYPE_CTMP_BUG into wctype.h.
49648
49649 2007-05-01  Bruno Haible  <bruno@clisp.org>
49650
49651         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
49652         configure time.
49653         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
49654         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
49655         * modules/sys_stat (Makefile.am): Substitute their values into
49656         sys/stat.h.
49657
49658 2007-05-01  Bruno Haible  <bruno@clisp.org>
49659
49660         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
49661         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
49662         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
49663
49664 2007-05-01  Bruno Haible  <bruno@clisp.org>
49665
49666         * doc/header/assert.texi: Undo last change: don't mention the gnulib
49667         'assert' module here.
49668
49669 2007-05-01  Bruno Haible  <bruno@clisp.org>
49670
49671         * doc/functions/*.texi: New files.
49672         * doc/functions/google-ranking.txt: New file.
49673         * doc/gnulib.texi (Function Substitutes): New chapter.
49674         (ctime, inet_ntoa): Remove sections.
49675         * doc/ctime.texi: Remove file.
49676         * doc/inet_ntoa.texi: Remove file.
49677         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
49678         dependencies.
49679         (%.info): New rule, specifying a --reference-limit.
49680
49681 2007-05-01  Bruno Haible  <bruno@clisp.org>
49682
49683         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
49684
49685 2007-05-01  Bruno Haible  <bruno@clisp.org>
49686
49687         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
49688         the portability of 'mkdir' to mingw systems.
49689
49690 2007-05-01  Bruno Haible  <bruno@clisp.org>
49691
49692         * doc/headers/google-ranking.txt: New file.
49693
49694 2007-04-30  Eric Blake  <ebb9@byu.net>
49695
49696         Prefer fseeko to fseek.
49697         * modules/getpass (Depends-on): Add fseeko.
49698         * lib/getpass.c (getpass): Use fseeko, not fseek.
49699
49700 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
49701
49702         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
49703         assumes the sorting is stable, while most qsort implementations
49704         are not.  Use argument addresses to ensure they never compare as
49705         equal.
49706
49707         * tests/test-argp-2.sh (usage-indent test): Fix output
49708         (func_compare): Restore diff options
49709         * tests/test-argp.c: Restore #include "progname.h"
49710
49711 2007-04-29  Bruno Haible  <bruno@clisp.org>
49712
49713         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
49714         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49715         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
49716         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49717         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
49718         (configure.ac): Define CHECK_SNPRINTF_POSIX.
49719         (TESTS, check_PROGRAMS): Add test-snprintf.
49720         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
49721         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
49722         (TESTS, check_PROGRAMS): Add test-vsnprintf.
49723         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
49724         assertions that fail on HP-UX, OSF/1, or IRIX.
49725         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
49726
49727 2007-04-29  Bruno Haible  <bruno@clisp.org>
49728
49729         * MODULES.html.sh (posix_functions): Remove 'contents'.
49730
49731 2007-04-29  Karl Berry  <karl@gnu.org>
49732
49733         * config/srclist.txt (gendocs_template_min): new entry.
49734
49735 2007-04-29  Bruno Haible  <bruno@clisp.org>
49736
49737         Work around fpurge bug on BSD systems.
49738         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
49739         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
49740         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
49741         fpurge to rpl_fpurge if the system already has this function.
49742         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
49743         the case where the system already has this function. Correct invariants
49744         on BSD systems.
49745         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
49746         BSD systems.
49747
49748 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49749
49750         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
49751         proposed by Sven Verdoolaege.
49752
49753         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
49754         options.
49755         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
49756         (usage and help tests): Update
49757
49758 2007-04-29  Bruno Haible  <bruno@clisp.org>
49759
49760         * tests/test-fflush.c (main): Use a file of size 17, not 10.
49761         Print more information in case of failure. Disable a test on BeOS.
49762
49763 2007-04-29  Bruno Haible  <bruno@clisp.org>
49764
49765         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
49766         This helps debugging on systems on which no gdb is available.
49767
49768 2007-04-29  Bruno Haible  <bruno@clisp.org>
49769
49770         * lib/freading.h: Improve comments.
49771         * lib/fwriting.h: Likewise.
49772         * tests/test-freading.c (main): Don't check freading immediately after
49773         repositioning. Needed for glibc.
49774
49775 2007-04-29  Bruno Haible  <bruno@clisp.org>
49776
49777         * lib/freading.c (freading): Trivial simplification.
49778
49779 2007-04-28  Bruno Haible  <bruno@clisp.org>
49780
49781         * tests/test-fwriting.c (main): Also test the interaction between
49782         fflush and fwriting.
49783         * modules/fwriting-tests (Depends-on): Add fflush.
49784
49785         * tests/test-freading.c (main): Also test the interaction between
49786         fflush and freading.
49787         * modules/freading-tests (Depends-on): Add fflush.
49788
49789 2007-04-28  Bruno Haible  <bruno@clisp.org>
49790
49791         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
49792         fseeko and ftello.
49793         Suggested by Eric Blake.
49794
49795 2007-04-28  Jim Meyering  <jim@meyering.net>
49796
49797         Avoid false-negative in gl_STDINT_H's C99 conformance test.
49798         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
49799         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
49800
49801 2007-04-27  Eric Blake  <ebb9@byu.net>
49802
49803         * doc/headers/assert.texi (assert.h): Document assert module use.
49804
49805 2007-04-27  Bruno Haible  <bruno@clisp.org>
49806
49807         * doc/headers/*.texi: New files.
49808         * doc/gnulib.texi (Header File Substitutes): New chapter.
49809         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
49810         dependencies.
49811         (standards.info ,standards.html, standards.dvi): Update dependencies.
49812         (mostlyclean, clean): New targets.
49813
49814 2007-04-27  Bruno Haible  <bruno@clisp.org>
49815
49816         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
49817         * modules/sysexits (Files, Makefile.am): Update.
49818
49819         * lib/sys_socket_.h: Renamed from lib/socket_.h.
49820         * modules/sys_socket (Files, Makefile.am): Update.
49821
49822         * lib/sys_stat_.h: Renamed from lib/stat_.h.
49823         * modules/sys_stat (Files, Makefile.am): Update.
49824
49825 2007-04-27  Eric Blake  <ebb9@byu.net>
49826
49827         * lib/freading.h: Improve comments.
49828         * lib/fwriting.h: Likewise.
49829         * lib/fflush.c: Likewise.
49830
49831         Fix closein for mingw.
49832         * modules/closein-tests: Add tests for closein.
49833         * tests/test-closein.c: New file.
49834         * tests/test-closein.sh: Likewise.
49835         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
49836         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
49837
49838 2007-04-27  Bruno Haible  <bruno@clisp.org>
49839
49840         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
49841         version is < 6.
49842         * lib/math_.h [__DECC]: Likewise.
49843         * lib/stdio_.h [__DECC]: Likewise.
49844         * lib/stdlib_.h [__DECC]: Likewise.
49845         * lib/string_.h [__DECC]: Likewise.
49846         * lib/time_.h [__DECC]: Likewise.
49847         * lib/wchar_.h [__DECC]: Likewise.
49848         * lib/wctype_.h [__DECC]: Likewise.
49849
49850 2007-04-27  Bruno Haible  <bruno@clisp.org>
49851
49852         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
49853
49854 2007-04-27  Bruno Haible  <bruno@clisp.org>
49855
49856         * lib/fflush.c: Add comments.
49857         * modules/fpurge-tests (Depends-on): Add fflush.
49858         * modules/freadable-tests (Depends-on): Likewise.
49859         * modules/fwritable-tests (Depends-on): Likewise.
49860
49861 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
49862
49863         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
49864         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
49865         Report by Bruno Haible <bruno@clisp.org>.
49866
49867 2007-04-26  Eric Blake  <ebb9@byu.net>
49868
49869         Fix fflush on mingw.
49870         * modules/fflush (Depends-on): Add freading.
49871         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
49872         but unread data.
49873
49874 2007-04-26  Eric Blake  <ebb9@byu.net>
49875         and Bruno Haible  <bruno@clisp.org>
49876
49877         Implement freading and fwriting.
49878         * lib/freading.c: New file.
49879         * lib/freading.h: Likewise.
49880         * m4/freading.m4: Likewise.
49881         * modules/freading: Likewise.
49882         * modules/freading-tests: Likewise.
49883         * tests/test-freading.c: Likewise.
49884         * lib/fwriting.c: New file.
49885         * lib/fwriting.h: Likewise.
49886         * m4/fwriting.m4: Likewise.
49887         * modules/fwriting: Likewise.
49888         * modules/fwriting-tests: Likewise.
49889         * tests/test-fwriting.c: Likewise.
49890         * MODULES.html.sh (File stream based Input/Output): Mention them.
49891
49892 2007-04-26  Bruno Haible  <bruno@clisp.org>
49893
49894         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
49895         'long' when we assume it.
49896         Suggested by Eric Blake.
49897
49898 2007-04-26  Bruno Haible  <bruno@clisp.org>
49899
49900         Ensure fseeko, ftello are declared on glibc systems.
49901         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
49902         * modules/fseeko (configure.ac-early): Likewise.
49903         * modules/ftello (configure.ac-early): Likewise.
49904         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
49905         AC_FUNC_FSEEKO for this.
49906         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
49907         (gl_CHECK_FSEEKO): Remove macro.
49908
49909 2007-04-26  Bruno Haible  <bruno@clisp.org>
49910
49911         * tests/test-fflush.c (main): Also check the ftell result after
49912         fflush and fseek/fseeko.
49913         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
49914         file descriptor position cache in the stream.
49915         * lib/fseeko.c (rpl_fseeko): Likewise.
49916
49917 2007-04-26  Bruno Haible  <bruno@clisp.org>
49918
49919         * modules/fflush-tests (Depends-on): Add fseeko.
49920
49921 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
49922             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49923
49924         * lib/argz_.h: ensure error_t definition is obtained in same
49925         mechanism system argz.h would have.
49926         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
49927         argz facilities are known bad.  Err on the side of caution if
49928         cross-compiling.
49929
49930 2007-04-25  Eric Blake  <ebb9@byu.net>
49931
49932         * lib/fpurge.c (includes): Use stdlib.h for free.
49933         * tests/test-fflush.c (main): Also test fflush-fseeko.
49934
49935 2007-04-25  Bruno Haible  <bruno@clisp.org>
49936
49937         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
49938         * lib/fseeko.c: New file.
49939         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
49940         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
49941         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
49942         gl_FUNC_FSEEKO.
49943         (gl_FUNC_FSEEKO): Invoke it.
49944         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
49945         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
49946         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
49947
49948 2007-04-25  Bruno Haible  <bruno@clisp.org>
49949
49950         * modules/fflush (Depends-on): Add ftello.
49951
49952 2007-04-25  Bruno Haible  <bruno@clisp.org>
49953
49954         * modules/ftello-tests: New file.
49955         * tests/test-ftello.c: New file.
49956
49957         * modules/ftello: New file.
49958         * m4/ftello.m4: New file.
49959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
49960         HAVE_FTELLO.
49961         * lib/stdio_.h (ftello): New declaration.
49962         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
49963         HAVE_FTELLO.
49964
49965 2007-04-25  Bruno Haible  <bruno@clisp.org>
49966
49967         * modules/fseeko-tests: New file.
49968         * tests/test-fseeko.c: New file.
49969
49970         * modules/fseeko: New file.
49971         * m4/fseeko.m4: New file.
49972         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
49973         HAVE_FSEEKO.
49974         * lib/stdio_.h (fseeko): New declaration.
49975         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
49976         HAVE_FSEEKO.
49977
49978 2007-04-25  Bruno Haible  <bruno@clisp.org>
49979
49980         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
49981
49982 2007-04-25  Bruno Haible  <bruno@clisp.org>
49983
49984         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
49985         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
49986         * tests/test-unistd.c: Likewise.
49987         * tests/test-fcntl.c: Likewise.
49988
49989 2007-04-23  Eric Blake  <ebb9@byu.net>
49990
49991         * lib/fflush.c: Fix missing include.
49992         Reported by Bruno Haible.
49993
49994 2007-04-23  Bruno Haible  <bruno@clisp.org>
49995
49996         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
49997         Reported by Eric Blake.
49998
49999 2007-04-23  Bruno Haible  <bruno@clisp.org>
50000
50001         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
50002
50003 2007-04-23  Bruno Haible  <bruno@clisp.org>
50004
50005         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
50006
50007 2007-04-23  Bruno Haible  <bruno@clisp.org>
50008
50009         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
50010         Needed on HP-UX 11.
50011
50012 2007-04-16  Eric Blake  <ebb9@byu.net>
50013
50014         Make fflush rely on fpurge.
50015         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
50016         open coding all variants.
50017         * modules/fflush (Depends-on): Add fpurge and unistd.
50018         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
50019         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
50020
50021         Fix --with-tests compilation on cygwin.
50022         * modules/argmatch-tests (Makefile.am): List gnulib library first
50023         in LDADD.
50024         * modules/argp-tests (Makefile.am): Likewise.
50025         * modules/array-list-tests (Makefile.am): Likewise.
50026         * modules/array-oset-tests (Makefile.am): Likewise.
50027         * modules/avltree-list-tests (Makefile.am): Likewise.
50028         * modules/avltree-oset-tests (Makefile.am): Likewise.
50029         * modules/avltreehash-list-tests (Makefile.am): Likewise.
50030         * modules/carray-list-tests (Makefile.am): Likewise.
50031         * modules/dirname-tests (Makefile.am): Likewise.
50032         * modules/frexp-tests (Makefile.am): Likewise.
50033         * modules/isnanl-tests (Makefile.am): Likewise.
50034         * modules/linked-list-tests (Makefile.am): Likewise.
50035         * modules/linkedhash-list-tests (Makefile.am): Likewise.
50036         * modules/lock-tests (Makefile.am): Likewise.
50037         * modules/rbtree-list-tests (Makefile.am): Likewise.
50038         * modules/rbtree-oset-tests (Makefile.am): Likewise.
50039         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
50040         * modules/tls-tests (Makefile.am): Likewise.
50041         * modules/tsearch-tests (Makefile.am): Likewise.
50042         * modules/xvasprintf-tests (Makefile.am): Likewise.
50043
50044         Fix fpurge for cygwin.
50045         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
50046         value.
50047         * modules/fpurge-tests (Depends-on): Clean up trash.
50048
50049 2007-04-16  Simon Josefsson  <simon@josefsson.org>
50050
50051         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
50052
50053         * m4/autobuild.m4: Re-indent.
50054
50055 2007-04-13  Bruno Haible  <bruno@clisp.org>
50056
50057         * modules/fpurge-tests: New file.
50058         * tests/test-fpurge.c: New file.
50059
50060         * modules/fpurge: New file.
50061         * lib/fpurge.h: New file.
50062         * lib/fpurge.c: New file.
50063         * m4/fpurge.m4: New file.
50064
50065 2007-04-13  Bruno Haible  <bruno@clisp.org>
50066
50067         * modules/fbufmode-tests: New file.
50068         * tests/test-fbufmode.c: New file.
50069
50070         * modules/fbufmode: New file.
50071         * lib/fbufmode.h: New file.
50072         * lib/fbufmode.c: New file.
50073         * m4/fbufmode.m4: New file.
50074
50075 2007-04-13  Bruno Haible  <bruno@clisp.org>
50076
50077         * modules/fwritable-tests: New file.
50078         * tests/test-fwritable.c: New file.
50079
50080         * modules/fwritable: New file.
50081         * lib/fwritable.h: New file.
50082         * lib/fwritable.c: New file.
50083         * m4/fwritable.m4: New file.
50084
50085 2007-04-13  Bruno Haible  <bruno@clisp.org>
50086
50087         * modules/freadable-tests: New file.
50088         * tests/test-freadable.c: New file.
50089
50090         * modules/freadable: New file.
50091         * lib/freadable.h: New file.
50092         * lib/freadable.c: New file.
50093         * m4/freadable.m4: New file.
50094
50095 2007-04-13  Bruno Haible  <bruno@clisp.org>
50096
50097         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
50098         MOSTLYCLEANFILES.
50099
50100 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50101
50102         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
50103         gzip bootstrap.conf to avoid dragging in i18n machinery.
50104         (gnulib_tool_option): Use it.
50105
50106 2007-04-13  Bruno Haible  <bruno@clisp.org>
50107
50108         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
50109         %F directives.
50110         * tests/test-vasprintf-posix.c (test_function): Likewise.
50111         * tests/test-snprintf-posix.h (test_function): Likewise.
50112         * tests/test-sprintf-posix.h (test_function): Likewise.
50113         * tests/test-fprintf-posix.h (test_function): Likewise.
50114         * tests/test-printf-posix.h (test_function): Likewise.
50115         * tests/test-fprintf-posix.out: Likewise.
50116
50117 2007-04-13  Bruno Haible  <bruno@clisp.org>
50118
50119         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
50120         * modules/tls-tests (configure.ac): Likewise.
50121         Reported by Arto C. Nirkko <anirkko@insel.ch>.
50122
50123 2007-04-13  Bruno Haible  <bruno@clisp.org>
50124
50125         * lib/tls.c (glthread_tls_get): Fix return type.
50126         Patch by Arto C. Nirkko <anirkko@insel.ch>.
50127
50128 2007-04-12  Eric Blake  <ebb9@byu.net>
50129
50130         * modules/gettime (Depends-on): Remove gettime.
50131         Reported by Dmitry V. Levin.
50132
50133 2007-04-12  Bruno Haible  <bruno@clisp.org>
50134
50135         * modules/fflush (Include): Mention <stdio.h>.
50136         * modules/strtoimax (Include): Mention <inttypes.h>.
50137         * modules/strtoumax (Include): Likewise.
50138
50139 2007-04-12  Eric Blake  <ebb9@byu.net>
50140
50141         * .cvsignore: New file.
50142         * .gitignore: Likewise.
50143
50144 2007-04-12  Bruno Haible  <bruno@clisp.org>
50145
50146         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
50147         not before, since $(LDADD) often contains libgnu.a.
50148         * modules/striconv-tests (test_striconv_LDADD): Likewise.
50149         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
50150         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
50151         Needed on Cygwin.
50152
50153 2007-04-12  Eric Blake  <ebb9@byu.net>
50154
50155         Work around glibc's failure to flush stdin on fclose.
50156         * lib/closein.c (close_stdin): Flush stdin before closing.
50157
50158         Work around glibc's failure to reset seekable stdin on exit.
50159         * modules/closein: New module.
50160         * lib/closein.c: New file.
50161         * lib/closein.h: Likewise.
50162         * m4/closein.m4: Likewise.
50163         * MODULES.html.sh (File stream based Input/Output): Document it.
50164
50165 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50166
50167         * gnulib-tool: Rename generated 'autobuild' script to
50168         'do-autobuild' in --create-megatestdir output.
50169
50170         * doc/gnulib.texi (Build robot for gnulib): Fix.
50171
50172 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50173
50174         * modules/sysexits (Depends-on): Add absolute-header.
50175
50176 2007-04-12  Eric Blake  <ebb9@byu.net>
50177
50178         No need to preserve errno on success.
50179         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
50180         Reported by Bruno Haible.
50181
50182 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50183
50184         * MODULES.html.sh (Support for maintaining and releasing
50185         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
50186
50187 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50188
50189         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
50190
50191 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50192
50193         * modules/autobuild: New module.
50194
50195         * m4/autobuild.m4: New file.
50196
50197 2007-04-11  Bruno Haible  <bruno@clisp.org>
50198
50199         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
50200         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
50201         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
50202         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
50203         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50204         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50205         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50206         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50207         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50208         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50209         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
50210         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50211         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50212         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
50213         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50214         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50215         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
50216         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50217         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50218         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
50219         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50220         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50221         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
50222         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50223         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50224         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
50225         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50226         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50227         Reported by Eric Blake.
50228
50229 2007-04-11  Bruno Haible  <bruno@clisp.org>
50230
50231         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
50232
50233 2007-04-10  Bruno Haible  <bruno@clisp.org>
50234
50235         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
50236         for NaN and Infinity. Needed on FreeBSD 6.1.
50237         * tests/test-vasnprintf-posix.c (test_function): Undo last change
50238         regarding results for "%010a" of Infinity and NaN.
50239         * tests/test-vasprintf-posix.c (test_function): Likewise.
50240         * tests/test-snprintf-posix.h (test_function): Likewise.
50241         * tests/test-sprintf-posix.h (test_function): Likewise.
50242         * tests/test-fprintf-posix.h (test_function): Likewise.
50243         * tests/test-printf-posix.h (test_function): Likewise.
50244         * tests/test-fprintf-posix.out: Likewise.
50245
50246 2007-04-10  Bruno Haible  <bruno@clisp.org>
50247
50248         * modules/locale-tests: New file.
50249         * tests/test-locale.c: New file.
50250
50251         * modules/locale: New file.
50252         * lib/locale_.h: New file.
50253         * m4/locale_h.m4: New file.
50254
50255 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
50256             Bruno Haible  <bruno@clisp.org>
50257
50258         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
50259         be determined, test for availability of the copysignf, copysign,
50260         copysignl functions.
50261         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
50262         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
50263         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
50264
50265 2007-04-09  Eric Blake  <ebb9@byu.net>
50266
50267         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
50268         * modules/stdio (Makefile.am): Support fflush.
50269         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50270         * modules/fflush: New file.
50271         * lib/fflush.c: Likewise.
50272         * m4/fflush.m4: Likewise.
50273         * modules/fflush-tests: New test.
50274         * tests/test-fflush.c: Likewise.
50275         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
50276
50277 2007-04-06  Bruno Haible  <bruno@clisp.org>
50278
50279         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
50280         (VASNPRINTF): Use signbit for faster determination whether to print a
50281         minus sign.
50282         * modules/vasnprintf (Files): Remove lib/float+.h.
50283         * modules/fprintf-posix (Depends-on): Add signbit.
50284         * modules/snprintf-posix (Depends-on): Likewise.
50285         * modules/sprintf-posix (Depends-on): Likewise.
50286         * modules/vasnprintf-posix (Depends-on): Likewise.
50287         * modules/vasprintf-posix (Depends-on): Likewise.
50288         * modules/vfprintf-posix (Depends-on): Likewise.
50289         * modules/vsnprintf-posix (Depends-on): Likewise.
50290         * modules/vsprintf-posix (Depends-on): Likewise.
50291
50292 2007-04-06  Bruno Haible  <bruno@clisp.org>
50293
50294         * tests/test-frexp.c (main): Test also the sign bit of zero results.
50295         * tests/test-frexpl.c (main): Likewise.
50296         * tests/test-ldexpl.c (main): Likewise.
50297         * modules/frexp-tests (Depends-on): Add signbit.
50298         * modules/frexpl-tests (Depdends-on): Likewise.
50299         * modules/ldexpl-tests (Depdends-on): Likewise.
50300
50301 2007-04-06  Bruno Haible  <bruno@clisp.org>
50302
50303         * modules/signbit-tests: New file.
50304         * tests/test-signbit.c: New file.
50305
50306         * modules/signbit: New file.
50307         * lib/signbitf.c: New file.
50308         * lib/signbitd.c: New file.
50309         * lib/signbitl.c: New file.
50310         * m4/signbit.m4: New file.
50311         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
50312         (signbit): New macro.
50313         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
50314         REPLACE_SIGNBIT.
50315         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
50316         REPLACE_FREXPL into math.h.
50317
50318 2007-04-06  Bruno Haible  <bruno@clisp.org>
50319
50320         * modules/isnanf-nolibm-tests: New file.
50321         * tests/test-isnanf.c: New file.
50322
50323         * modules/isnanf-nolibm: New file.
50324         * lib/isnanf.h: New file.
50325         * lib/isnanf.c: New file.
50326         * lib/isnan.c: Consider the USE_FLOAT macro.
50327         * m4/isnanf.m4: New file.
50328
50329 2007-04-06  Bruno Haible  <bruno@clisp.org>
50330
50331         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
50332         (Link): New section.
50333
50334         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
50335
50336 2007-04-06  Bruno Haible  <bruno@clisp.org>
50337
50338         Assume the 'long double' type.
50339         * m4/longdouble.m4: Remove file.
50340         * config/srclist.txt: Don't mention longdouble.m4.
50341         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
50342         * lib/float+.h: Likewise.
50343         * lib/frexp.c: Likewise.
50344         * lib/printf-args.h: Likewise.
50345         * lib/printf-args.c: Likewise.
50346         * lib/printf-frexp.c: Likewise.
50347         * lib/printf-parse.c: Likewise.
50348         * lib/vasnprintf.c: Likewise.
50349         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
50350         * m4/intl.m4: Likewise.
50351         * m4/isnanl.m4: Likewise.
50352         * m4/printf.m4: Likewise.
50353         * m4/printf-frexpl.m4: Likewise.
50354         * m4/vasnprintf.m4: Likewise.
50355         * modules/allocsa (Files): Remove m4/longdouble.m4.
50356         * modules/gettext (Files): Likewise.
50357         * modules/relocatable-prog-wrapper (Files): Likewise.
50358         * modules/vasnprintf (Files): Likewise.
50359         * modules/isnanl (Files): Likewise.
50360         (Include): Simplify.
50361         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
50362         (Include): Simplify.
50363         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
50364         (Include): Simplify.
50365         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
50366         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50367         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
50368         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50369         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50370         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50371         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
50372         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50373         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50374         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50375         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
50376         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50377         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
50378         * tests/test-isnanl.c: Likewise.
50379         * tests/test-snprintf-posix.h: Likewise.
50380         * tests/test-sprintf-posix.h: Likewise.
50381         * tests/test-vasnprintf-posix.c: Likewise.
50382         * tests/test-vasnprintf-posix2.c: Likewise.
50383         * tests/test-vasprintf-posix.c: Likewise.
50384
50385 2007-04-06  Bruno Haible  <bruno@clisp.org>
50386
50387         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
50388         * lib/math_.h [__DECC]: Include the overridden include file through
50389         #include_next, outside the double-inclusion guard.
50390         * lib/stdio_.h [__DECC]: Likewise.
50391         * lib/stdlib_.h [__DECC]: Likewise.
50392         * lib/string_.h [__DECC]: Likewise.
50393         * lib/time_.h [__DECC]: Likewise.
50394         * lib/wchar_.h [__DECC]: Likewise.
50395         * lib/wctype_.h [__DECC]: Likewise.
50396         * lib/inttypes_.h [__DECC]: Likewise.
50397         Reported by Albert Chin <china@thewrittenword.com> in
50398         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
50399
50400 2007-04-04  Eric Blake  <ebb9@byu.net>
50401
50402         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
50403         1.5.x.
50404
50405 2007-04-04  Bruno Haible  <bruno@clisp.org>
50406
50407         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
50408         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
50409
50410 2007-04-04  Bruno Haible  <bruno@clisp.org>
50411
50412         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
50413         results for "%010a" of Infinity and NaN.
50414         * tests/test-vasprintf-posix.c (test_function): Likewise.
50415         * tests/test-snprintf-posix.h (test_function): Likewise.
50416         * tests/test-sprintf-posix.h (test_function): Likewise.
50417         * tests/test-fprintf-posix.h (test_function): Remove these tests.
50418         * tests/test-printf-posix.h (test_function): Likewise.
50419         * tests/test-fprintf-posix.out: Update.
50420         Needed for FreeBSD 6.1.
50421
50422 2007-04-04  Bruno Haible  <bruno@clisp.org>
50423
50424         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
50425         directly used by the gnulib modules nor by gnulib-tool.
50426
50427 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50428
50429         * DEPENDENCIES: Give overall description of version dependency
50430         desirability.  Use more-typical names for apps.
50431         Add shell, coreutils, diffutils, grep, tar, gzip.
50432
50433 2007-04-04  Simon Josefsson  <simon@josefsson.org>
50434
50435         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
50436
50437 2007-04-04  Karl Berry  <karl@gnu.org>
50438
50439         * MODULES.html.sh (func_module): missing '.
50440
50441 2007-04-03  Bruno Haible  <bruno@clisp.org>
50442
50443         * modules/argmatch-tests (Makefile.am): New variable
50444         test_argmatch_LDADD.
50445         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
50446         * modules/array-list-tests (Makefile.am): New variable
50447         test_array_list_LDADD.
50448         * modules/array-oset-tests (Makefile.am): New variable
50449         test_array_oset_LDADD.
50450         * modules/avltree-list-tests (Makefile.am): New variable
50451         test_avltree_list_LDADD.
50452         * modules/avltree-oset-tests (Makefile.am): New variable
50453         test_avltree_oset_LDADD.
50454         * modules/avltreehash-list-tests (Makefile.am): New variable
50455         test_avltreehash_list_LDADD.
50456         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
50457         test_canonicalize_lgpl_LDADD.
50458         * modules/carray-list-tests (Makefile.am): New variable
50459         test_carray_list_LDADD.
50460         * modules/dirname-tests (Makefile.am): New variable
50461         test_dirname_LDADD.
50462         * modules/linked-list-tests (Makefile.am): New variable
50463         test_linked_list_LDADD.
50464         * modules/linkedhash-list-tests (Makefile.am): New variable
50465         test_linkedhash_list_LDADD.
50466         * modules/rbtree-list-tests (Makefile.am): New variable
50467         test_rbtree_list_LDADD.
50468         * modules/rbtree-oset-tests (Makefile.am): New variable
50469         test_rbtree_oset_LDADD.
50470         * modules/rbtreehash-list-tests (Makefile.am): New variable
50471         test_rbtreehash_list_LDADD.
50472         * modules/xvasprintf-tests (Makefile.am): New variable
50473         test_xvasprintf_LDADD.
50474         Reported by Eric Blake.
50475
50476 2007-04-03  Eric Blake  <ebb9@byu.net>
50477
50478         * DEPENDENCIES: Weaken m4 requirements.
50479
50480 2007-04-03  Bruno Haible  <bruno@clisp.org>
50481
50482         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
50483         * modules/isnanl-tests (configure.ac): Likewise.
50484
50485 2007-04-03  Ben Pfaff  <blp@gnu.org>
50486
50487         * modules/iconv_open: Add $(srcdir)/ to source directory
50488         references in Makefile fragments that call gperf, to fix VPATH
50489         builds.
50490
50491 2007-04-03  Bruno Haible  <bruno@clisp.org>
50492
50493         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
50494         * lib/ldexpl.c: Undo last change.
50495
50496 2007-04-03  Bruno Haible  <bruno@clisp.org>
50497
50498         * modules/printf-frexpl (Depends-on): Undo last change.
50499         (Files): Add m4/ldexpl.m4.
50500
50501 2007-04-03  Bruno Haible  <bruno@clisp.org>
50502
50503         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
50504         * modules/isnanl (Link): New section.
50505
50506         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
50507         * modules/frexp (Link): New section.
50508
50509         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
50510         * modules/frexpl (Link): New section.
50511
50512         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
50513         * modules/ldexpl (Link): New section.
50514
50515 2007-04-03  Bruno Haible  <bruno@clisp.org>
50516
50517         * modules/TEMPLATE-EXTENDED: New file.
50518         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
50519
50520 2007-04-03  Bruno Haible  <bruno@clisp.org>
50521
50522         * DEPENDENCIES: New file.
50523         Suggested by Simon Josefsson.
50524
50525 2007-04-03  Bruno Haible  <bruno@clisp.org>
50526
50527         * doc/gnulib.texi: Escape @.
50528
50529 2007-04-03  James Youngman  <jay@gnu.org>
50530         and Paul Eggert  <eggert@cs.ucla.edu>
50531
50532         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
50533         birthtime on all systems that have birthtime, not just those which
50534         use st_birthtimensec rather than st_birthtim.  Putting zero in
50535         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
50536         that the birth time is not available for files on an NFS mount.
50537
50538 2007-04-03  Simon Josefsson  <simon@josefsson.org>
50539
50540         * modules/memxor: Move back from crypto/, suggested by Bruno.
50541         * modules/crypto/hmac-sha1: Fix memxor dependency.
50542
50543         * modules/crypto/gc: Moved from ../.
50544
50545 2007-04-02  Eric Blake  <ebb9@byu.net>
50546
50547         * lib/ldexpl.c (includes): Avoid libm.
50548
50549         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
50550
50551 2007-04-02  Bruno Haible  <bruno@clisp.org>
50552
50553         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
50554         on IRIX.
50555
50556 2007-04-02  Bruno Haible  <bruno@clisp.org>
50557
50558         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
50559         x86 or x86_64 platforms running MacOS X.
50560         Reported by Ryan Schmidt <@ryandesign.com>.
50561
50562 2007-04-02  Bruno Haible  <bruno@clisp.org>
50563
50564         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
50565         i386.
50566
50567 2007-04-01  Simon Josefsson  <simon@josefsson.org>
50568
50569         * modules/crypto/arcfour: Moved from ../.
50570         * modules/crypto/arcfour-tests: Moved from ../.
50571         * modules/crypto/arctwo: Moved from ../.
50572         * modules/crypto/arctwo-tests: Moved from ../.
50573         * modules/crypto/des: Moved from ../.
50574         * modules/crypto/des-tests: Moved from ../.
50575         * modules/crypto/gc-arcfour: Moved from ../.
50576         * modules/crypto/gc-arcfour-tests: Moved from ../.
50577         * modules/crypto/gc-arctwo: Moved from ../.
50578         * modules/crypto/gc-arctwo-tests: Moved from ../.
50579         * modules/crypto/gc-des: Moved from ../.
50580         * modules/crypto/gc-des-tests: Moved from ../.
50581         * modules/crypto/gc-hmac-md5: Moved from ../.
50582         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
50583         * modules/crypto/gc-hmac-sha1: Moved from ../.
50584         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
50585         * modules/crypto/gc-md2: Moved from ../.
50586         * modules/crypto/gc-md2-tests: Moved from ../.
50587         * modules/crypto/gc-md4: Moved from ../.
50588         * modules/crypto/gc-md4-tests: Moved from ../.
50589         * modules/crypto/gc-md5: Moved from ../.
50590         * modules/crypto/gc-md5-tests: Moved from ../.
50591         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
50592         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
50593         * modules/crypto/gc-random: Moved from ../.
50594         * modules/crypto/gc-rijndael: Moved from ../.
50595         * modules/crypto/gc-rijndael-tests: Moved from ../.
50596         * modules/crypto/gc-sha1: Moved from ../.
50597         * modules/crypto/gc-sha1-tests: Moved from ../.
50598         * modules/crypto/gc-tests: Moved from ../.
50599         * modules/crypto/hmac-md5: Moved from ../.
50600         * modules/crypto/hmac-md5-tests: Moved from ../.
50601         * modules/crypto/hmac-sha1: Moved from ../.
50602         * modules/crypto/hmac-sha1-tests: Moved from ../.
50603         * modules/crypto/md2: Moved from ../.
50604         * modules/crypto/md2-tests: Moved from ../.
50605         * modules/crypto/md4: Moved from ../.
50606         * modules/crypto/md4-tests: Moved from ../.
50607         * modules/crypto/md5: Moved from ../.
50608         * modules/crypto/md5-tests: Moved from ../.
50609         * modules/crypto/memxor: Moved from ../.
50610         * modules/crypto/rijndael: Moved from ../.
50611         * modules/crypto/rijndael-tests: Moved from ../.
50612         * modules/crypto/sha1: Moved from ../.
50613
50614 2007-03-30  James Youngman  <jay@gnu.org>
50615
50616         * tests/test-stat-time.c (prepare_test): use chmod() rather than
50617         rename() to change the ctime of a file (because ctime is unaffected
50618         by rename on jfs2 on AIX 5.1).
50619         (main): Start by doing cleanup, in case a previous run failed leaving
50620         test files behind.
50621
50622 2007-03-31  Bruno Haible  <bruno@clisp.org>
50623
50624         Support old proprietary implementations of iconv.
50625         * modules/iconv_open: New file.
50626         * lib/iconv_.h: New file.
50627         * m4/iconv_h.m4: New file.
50628         * lib/iconv_open.c: New file.
50629         * lib/iconv_open-aix.gperf: New file.
50630         * lib/iconv_open-hpux.gperf: New file.
50631         * lib/iconv_open-irix.gperf: New file.
50632         * lib/iconv_open-osf.gperf: New file.
50633         * m4/iconv_open.m4: New file.
50634         * modules/linebreak (Depends-on): Add iconv_open.
50635         * modules/striconv (Depends-on): Likewise.
50636         * modules/striconveh (Depends-on): Likewise.
50637         * modules/unicodeio (Depends-on): Likewise.
50638         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
50639         (iconv_t)(-1).
50640         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
50641         conversion if cd is (iconv_t)(-1).
50642         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
50643         is not possible.
50644
50645 2007-03-31  Bruno Haible  <bruno@clisp.org>
50646
50647         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50648         work on Solaris either. Protect also second use of "autodetect_jp".
50649
50650 2007-03-31  Bruno Haible  <bruno@clisp.org>
50651
50652         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
50653         the function is not present.
50654
50655 2007-03-31  Bruno Haible  <bruno@clisp.org>
50656
50657         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
50658         the function is not present.
50659
50660 2007-03-31  Bruno Haible  <bruno@clisp.org>
50661
50662         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
50663         a bug in HP-UX iconv_open().
50664
50665 2007-03-31  Bruno Haible  <bruno@clisp.org>
50666
50667         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
50668         (Mathematics <math.h>): New section, add fpieee.
50669         (Input/output <stdio.h>): Add fseterr.
50670         (Mathematics <math.h>): New section, add printf-frexp.
50671         (Container data structures): Add sublist.
50672         (Core language properties): Add fpucw, inline.
50673         (Functions for greatest-width integer types <inttypes.h>): Add
50674         imaxabs, imaxdiv, inttypes.
50675         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
50676         isnanl-nolibm, ldexp.
50677         (Mathematics <math.h>): New section, add printf-frexpl.
50678         (Support for systems lacking POSIX:2001): Add fprintf-posix,
50679         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
50680         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
50681         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
50682         (Unicode string functions): Add unistr/u*-mbtoucr.
50683         (Java): Add javacomp-script, javaexec-script.
50684         (C#): Add csharpcomp-script, csharpexec-script.
50685         (Support for building libraries and executables): Add havelib,
50686         relocatable-*.
50687         (Support for maintaining and releasing projects): Renamed from
50688         'Support for maintaining and release projects'. Add announce-gen.
50689
50690 2007-03-31  Bruno Haible  <bruno@clisp.org>
50691
50692         * README: Talk primarily about git.
50693         (git and CVS): Renamed from CVS.
50694         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
50695         gnulib is available through git.
50696         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
50697
50698 2007-03-30  Bruno Haible  <bruno@clisp.org>
50699
50700         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
50701         * lib/poll_.h: Likewise.
50702         * lib/stat_.h: Likewise.
50703         * lib/sys_time_.h: Likewise.
50704         * lib/sysexit_.h: Likewise.
50705         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
50706         * lib/stdbool_.h: Likewise.
50707         * lib/byteswap_.h: Add double-inclusion guard.
50708
50709 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
50710
50711         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
50712
50713 2007-03-30  Karl Berry  <karl@gnu.org>
50714
50715         * config/srclist-update: double space after USA in the license
50716         substitution, since that's how it's usually (?) written.
50717
50718 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50719
50720         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
50721         reported by Bruno Haible.
50722
50723 2007-03-29  Bruno Haible  <bruno@clisp.org>
50724
50725         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
50726         a bug in AIX iconv().
50727
50728 2007-03-29  Bruno Haible  <bruno@clisp.org>
50729
50730         * modules/ldexpl-tests: New file.
50731         * tests/test-ldexpl.c: New file.
50732
50733 2007-03-29  Bruno Haible  <bruno@clisp.org>
50734
50735         * lib/ldexpl.c: Include fpucw.h.
50736         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
50737         multiplication.
50738         * modules/ldexpl (Depends-on): Add fpucw.
50739
50740 2007-03-29  Bruno Haible  <bruno@clisp.org>
50741
50742         * modules/ldexpl: New file.
50743         * m4/ldexpl.m4: New file.
50744         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
50745         set.
50746         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
50747         REPLACE_LDEXPL.
50748         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
50749         REPLACE_LDEXPL.
50750         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50751         gl_FUNC_LDEXPL_WORKS.
50752         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
50753         * modules/mathl (Files): Remove lib/ldexpl.c.
50754         (Depends-on): Add ldexpl.
50755
50756 2007-03-29  Bruno Haible  <bruno@clisp.org>
50757
50758         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
50759
50760 2007-03-29  Bruno Haible  <bruno@clisp.org>
50761
50762         * tests/test-striconveh.c (main): Don't assume that a direct conversion
50763         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
50764         and possibly also HP-UX.
50765         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50766         work on AIX, IRIX, HP-UX, OSF/1.
50767         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
50768         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
50769         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
50770         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
50771         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
50772         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
50773
50774 2007-03-29  Bruno Haible  <bruno@clisp.org>
50775
50776         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
50777
50778 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50779
50780         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
50781         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
50782
50783 2007-03-29  Eric Blake  <ebb9@byu.net>
50784
50785         * lib/acl-internal.h: Remove redundant include.
50786         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
50787         Cygwin when a file is locked.
50788
50789 2007-03-29  Bruno Haible  <bruno@clisp.org>
50790
50791         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
50792         file.
50793         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
50794
50795 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50796
50797         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
50798         try to remove a parent directory if the child couldn't be removed
50799         (except for the first rmdir, which could fail because the child
50800         doesn't exist).  Problem reported by Jeff Blaine in
50801         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
50802
50803 2007-03-28  Bruno Haible  <bruno@clisp.org>
50804
50805         * lib/striconveh.c (utf8conv_carefully): New function.
50806         (mem_cd_iconveh_internal): Invoke it.
50807
50808 2007-03-28  Bruno Haible  <bruno@clisp.org>
50809
50810         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
50811         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
50812         input.
50813         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
50814         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
50815         unistr/u8-uctomb.
50816
50817 2007-03-28  Bruno Haible  <bruno@clisp.org>
50818
50819         * modules/unistr/u8-mbtoucr: New file.
50820         * lib/unistr/u8-mbtoucr.c: New file.
50821         * modules/unistr/u16-mbtoucr: New file.
50822         * lib/unistr/u16-mbtoucr.c: New file.
50823         * modules/unistr/u16-mbtoucr: New file.
50824         * lib/unistr/u16-mbtoucr.c: New file.
50825         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
50826
50827 2007-03-27  Simon Josefsson  <simon@josefsson.org>
50828             Bruno Haible  <bruno@clisp.org>
50829
50830         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
50831         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
50832         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
50833
50834         * m4/stdio_h.m4: Add stubs for vasprintf too.
50835
50836         * modules/stdio: Support vasprintf in sed command.
50837
50838         * modules/vasprintf: Depend on stdio for prototypes.  Remove
50839         vasprintf.h.  Add stdio module indicator.
50840
50841         * lib/stdio_.h: Declare asprintf and vasprintf, based on
50842         vasprintf.h.
50843
50844         * lib/vasprintf.h: File removed.
50845
50846         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
50847         * lib/vasprintf.c: Ditto.
50848         * lib/xvasprintf.c: Ditto.
50849         * tests/test-vasprintf-posix.c: Ditto.
50850         * tests/test-vasprintf.c: Ditto.
50851
50852 2007-03-27  Bruno Haible  <bruno@clisp.org>
50853
50854         Make vasnprintf multithread-safe.
50855         * lib/vasnprintf.c (decimal_point_char): New function.
50856         (VASNPRINTF): Use it.
50857         Suggested by Simon Josefsson.
50858
50859 2007-03-27  Eric Blake  <ebb9@byu.net>
50860
50861         Support sub-second birthtime on cygwin.
50862         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
50863         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
50864         (get_stat_birthtime): Also work with st_birthtim.
50865
50866 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
50867
50868         * lib/stat-time.h (USE_BIRTHTIME): Remove.
50869         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
50870         (get_stat_birthtime_ns): Do not try to use "spare" fields.
50871         (get_stat_birthtime_ns): Simplify compile-time tests.
50872         (get_stat_birthtime): Change the API to look like
50873         get_stat_mtime etc., except return a negative tv_nsec on error.
50874         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
50875         Don't check for "spare" fields.
50876         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
50877         or for struct stat.st_birthtime, as these tests aren't used.
50878         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
50879
50880 2007-03-27  Bruno Haible  <bruno@clisp.org>
50881
50882         * lib/stat-time.h: Include <sys/stat.h>.
50883
50884 2007-03-27  James Youngman  <jay@gnu.org>
50885
50886         * lib/stat-time.h (get_stat_birthtime): New function for
50887           retrieving st_birthtime as provided by UFS2 (hence *BSD).
50888         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
50889           and its variants.
50890         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
50891         * modules/stat-time-test: New file.
50892         * tests/test-stat-time.c: New test, devised by Bruno Haible.
50893
50894 2007-03-26  Bruno Haible  <bruno@clisp.org>
50895
50896         Better support of signalling NaNs.
50897         * lib/atanl.c: Include isnanl.h.
50898         (atanl): Perform test for NaN at the beginning of the function and
50899         through a call to isnanl.
50900         * lib/cosl.c: Include isnanl.h.
50901         (cosl): Perform test for NaN at the beginning of the function and
50902         through a call to isnanl.
50903         * lib/ldexpl.c: Include isnanl.h.
50904         (ldexpl): Perform test for NaN through a call to isnanl.
50905         * lib/logl.c: Include isnanl.h.
50906         (logl): Perform test for NaN at the beginning of the function and
50907         through a call to isnanl.
50908         * lib/sinl.c: Include isnanl.h.
50909         (sinl): Perform test for NaN at the beginning of the function and
50910         through a call to isnanl.
50911         * lib/sqrtl.c: Include isnanl.h.
50912         (sqrtl): Perform test for NaN at the beginning of the function and
50913         through a call to isnanl.
50914         * lib/tanl.c: Include isnanl.h.
50915         (tanl): Perform test for NaN at the beginning of the function and
50916         through a call to isnanl.
50917         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
50918         * modules/mathl (Depends-on): Add isnanl.
50919
50920 2007-03-26  Eric Blake  <ebb9@byu.net>
50921
50922         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
50923         regression in logic sense of previous patch.
50924
50925 2007-03-26  Bruno Haible  <bruno@clisp.org>
50926
50927         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
50928         unportable shell command "if ! ...".
50929         Reported by Ralf Wildenhues.
50930
50931 2007-03-25  Bruno Haible  <bruno@clisp.org>
50932
50933         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
50934         <sysexits.h> file, and only add EX_CONFIG.
50935         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
50936         absolute file name and whether it is sufficient. Substitute also
50937         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
50938         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
50939         ABSOLUTE_SYSEXITS_H into sysexits.h.
50940
50941 2007-03-25  Bruno Haible  <bruno@clisp.org>
50942
50943         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
50944         hints is NULL.
50945
50946 2007-03-25  Bruno Haible  <bruno@clisp.org>
50947
50948         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
50949         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
50950
50951 2007-03-25  Bruno Haible  <bruno@clisp.org>
50952
50953         * lib/vasnprintf.c: Include langinfo.h.
50954         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
50955         multithread-safe.
50956         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
50957         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
50958         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50959         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50960         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50961         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50962         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50963         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
50964         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50965         Reported by Simon Josefsson.
50966
50967 2007-03-25  Bruno Haible  <bruno@clisp.org>
50968
50969         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
50970         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
50971         * modules/vasnprintf (Depends-on): Add stdint.
50972
50973 2007-03-25  Bruno Haible  <bruno@clisp.org>
50974
50975         * modules/fpieee: New file.
50976         * m4/fpieee.m4: New file.
50977         * modules/isnan-nolibm (Depends-on): Add fpieee.
50978         * modules/isnanl-nolibm (Depends-on): Add fpieee.
50979         * modules/isnanl (Depends-on): Add fpieee.
50980
50981 2007-03-25  Bruno Haible  <bruno@clisp.org>
50982
50983         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
50984
50985 2007-03-25  Bruno Haible  <bruno@clisp.org>
50986
50987         Avoid test failures on IRIX 6.5.
50988         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
50989         (main): Use it.
50990         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
50991         macros.
50992         (main): Use them.
50993
50994 2007-03-25  Bruno Haible  <bruno@clisp.org>
50995
50996         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
50997         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
50998         exists but doesn't work.
50999         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
51000         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
51001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
51002         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
51003         math.h.
51004
51005 2007-03-25  Bruno Haible  <bruno@clisp.org>
51006
51007         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
51008         returns inf. Needed on IRIX 6.5.
51009
51010 2007-03-25  Bruno Haible  <bruno@clisp.org>
51011
51012         * tests/test-frexpl.c: Include isnanl-nolibm.h.
51013         (main): Use isnanl instead of x != x idiom.
51014         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
51015
51016         * tests/test-frexp.c: Include isnan.h.
51017         (main): Use isnan instead of x != x idiom.
51018         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
51019
51020 2007-03-25  Bruno Haible  <bruno@clisp.org>
51021
51022         * tests/test-frexp.c (NaN): New function/macro.
51023         (main): Use it instead of 0.0 / 0.0.
51024         * tests/test-isnan.c (NaN): New function/macro.
51025         (main): Use it instead of 0.0 / 0.0.
51026         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
51027         (test_function): Use it instead of 0.0 / 0.0.
51028         * tests/test-vasprintf-posix.c (NaN): New function/macro.
51029         (test_function): Use it instead of 0.0 / 0.0.
51030         * tests/test-snprintf-posix.h (NaN): New function/macro.
51031         (test_function): Use it instead of 0.0 / 0.0.
51032         * tests/test-sprintf-posix.h (NaN): New function/macro.
51033         (test_function): Use it instead of 0.0 / 0.0.
51034         * tests/test-fprintf-posix.h (NaN): New function/macro.
51035         (test_function): Use it instead of 0.0 / 0.0.
51036         * tests/test-printf-posix.h (NaN): New function/macro.
51037         (test_function): Use it instead of 0.0 / 0.0.
51038
51039         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
51040
51041 2007-03-25  Bruno Haible  <bruno@clisp.org>
51042
51043         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
51044
51045 2007-03-25  Bruno Haible  <bruno@clisp.org>
51046
51047         * lib/regexec.c (merge_state_with_log): Make static.
51048
51049 2007-03-25  Bruno Haible  <bruno@clisp.org>
51050
51051         * lib/trigl.c (kernel_rem_pio2): Make static.
51052
51053 2007-03-25  Bruno Haible  <bruno@clisp.org>
51054
51055         * lib/sincosl.c (sincosl_table): Make static.
51056
51057 2007-03-25  Bruno Haible  <bruno@clisp.org>
51058
51059         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
51060         if the compiler does not support C99.
51061
51062 2007-03-25  Bruno Haible  <bruno@clisp.org>
51063
51064         * modules/time (Makefile.am): Ensure all rule action lines start with a
51065         tab.
51066
51067 2007-03-24  Bruno Haible  <bruno@clisp.org>
51068
51069         * modules/tsearch-tests: New file.
51070         * tests/test-tsearch.sh: New file.
51071         * tests/test-tsearch.c: New file, mostly copied from glibc.
51072
51073         * modules/search-tests: New file.
51074         * tests/test-search.c: New file.
51075
51076         * modules/search: New file.
51077         * lib/search_.h: New file, incorporating lib/tsearch.h.
51078         * m4/search_h.m4: New file.
51079         * lib/tsearch.h: Remove file.
51080         * lib/tsearch.c: Include search.h instead of tsearch.h.
51081         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
51082         HAVE_TSEARCH.
51083         * modules/tsearch (Files): Remove lib/tsearch.h.
51084         (Depends-on): Add search.
51085         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
51086         (Include): Change tsearch.h into search.h.
51087
51088 2007-03-24  Bruno Haible  <bruno@clisp.org>
51089
51090         * modules/fpucw: New file.
51091         * lib/fpucw.h: New file.
51092         * lib/frexp.c: Include fpucw.h.
51093         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51094         (FUNC): Use them.
51095         * lib/printf-frexp.c: Include fpucw.h.
51096         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51097         (FUNC): Use them.
51098         * lib/vasnprintf.c: Include fpucw.h.
51099         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
51100         'long double' calculations.
51101         * tests/test-frexpl.c: Include fpucw.h.
51102         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51103         * tests/test-printf-frexpl.c: Include fpucw.h.
51104         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51105         * modules/frexpl (Depends-on): Add fpucw.
51106         * modules/printf-frexpl (Depends-on): Likewise.
51107         * modules/fprintf-posix (Depends-on): Likewise.
51108         * modules/snprintf-posix (Depends-on): Likewise.
51109         * modules/sprintf-posix (Depends-on): Likewise.
51110         * modules/vasnprintf-posix (Depends-on): Likewise.
51111         * modules/vasprintf-posix (Depends-on): Likewise.
51112         * modules/vfprintf-posix (Depends-on): Likewise.
51113         * modules/vsnprintf-posix (Depends-on): Likewise.
51114         * modules/vsprintf-posix (Depends-on): Likewise.
51115         * modules/frexpl-tests (Depends-on): Likewise.
51116         * modules/printf-frexpl-tests (Depends-on): Likewise.
51117
51118 2007-03-24  Bruno Haible  <bruno@clisp.org>
51119
51120         * lib/float+.h: New file.
51121         * lib/isnan.c: Include float+.h.
51122         (SIZE): New macro.
51123         (FUNC): Compare only SIZE bytes of the value.
51124         * lib/vasnprintf.c: Include float+.h.
51125         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
51126         SIZEOF_LDBL or SIZEOF_DBL bytes.
51127         * modules/isnan-nolibm (Files): Add lib/float+.h.
51128         * modules/isnanl-nolibm (Files): Add lib/float+.h.
51129         * modules/isnanl (Files): Add lib/float+.h.
51130         * modules/vasnprintf (Files): Add lib/float+.h.
51131
51132 2007-03-24  Bruno Haible  <bruno@clisp.org>
51133
51134         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
51135         include isnanl-nolibm.h.
51136
51137 2007-03-24  Bruno Haible  <bruno@clisp.org>
51138
51139         * tests/test-read-file.c (main): Don't produce spurious output for
51140         expected situations. Make the test fail if it encountered unexpected
51141         results.
51142
51143 2007-03-24  Bruno Haible  <bruno@clisp.org>
51144
51145         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
51146         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
51147
51148 2007-03-24  Bruno Haible  <bruno@clisp.org>
51149
51150         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
51151
51152 2007-03-24  Bruno Haible  <bruno@clisp.org>
51153
51154         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
51155         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
51156
51157         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
51158         * modules/utf8-ucs4: Turn into a symbolic link to module
51159         unistr/u8-mbtouc.
51160
51161         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
51162         utf8-ucs4-unsafe.
51163         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
51164         unistr/u8-mbtouc-unsafe.
51165
51166         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
51167         * modules/utf16-ucs4: Turn into a symbolic link to module
51168         unistr/u16-mbtouc.
51169
51170         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
51171         utf16-ucs4-unsafe.
51172         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
51173         unistr/u16-mbtouc-unsafe.
51174
51175         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
51176         * modules/ucs4-utf8: Turn into a symbolic link to module
51177         unistr/u8-ubtomb.
51178
51179         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
51180         * modules/ucs4-utf16: Turn into a symbolic link to module
51181         unistr/u16-ubtomb.
51182
51183 2007-03-24  Bruno Haible  <bruno@clisp.org>
51184
51185         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
51186         Enable the function only if HAVE_INLINE.
51187         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
51188         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51189         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
51190         Enable the function only if HAVE_INLINE.
51191         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
51192         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51193         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
51194         Enable the function only if HAVE_INLINE.
51195         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
51196         Enable the function only if HAVE_INLINE.
51197         * modules/utf8-ucs4: Update.
51198         * modules/utf8-ucs4-unsafe: Update.
51199         * modules/utf16-ucs4: Update.
51200         * modules/utf16-ucs4-unsafe: Update.
51201         * modules/ucs4-utf8: Update.
51202         * modules/ucs4-utf16: Update.
51203
51204 2007-03-24  Bruno Haible  <bruno@clisp.org>
51205
51206         * lib/utf8-ucs4.h: Remove file.
51207         * lib/utf8-ucs4-unsafe.h: Remove file.
51208         * lib/utf16-ucs4.h: Remove file.
51209         * lib/utf16-ucs4-unsafe.h: Remove file.
51210         * lib/ucs4-utf8.h: Remove file.
51211         * lib/ucs4-utf16.h: Remove file.
51212         * lib/unistr.h: Include their previous contents.
51213         * m4/utf-ucs4.m4: Remove file.
51214         * m4/ucs4-utf.m4: Remove file.
51215         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
51216         (Depends-on): Add unistr/base.
51217         (configure.ac): Remove gl_UTF_UCS4.
51218         (Makefile.am): Update.
51219         (Include): Change to unistr.h.
51220         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
51221         (Depends-on): Add unistr/base.
51222         (configure.ac): Remove gl_UTF_UCS4.
51223         (Makefile.am): Update.
51224         (Include): Change to unistr.h.
51225         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
51226         (Depends-on): Add unistr/base.
51227         (configure.ac): Remove gl_UTF_UCS4.
51228         (Makefile.am): Update.
51229         (Include): Change to unistr.h.
51230         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
51231         (Depends-on): Add unistr/base.
51232         (configure.ac): Remove gl_UTF_UCS4.
51233         (Makefile.am): Update.
51234         (Include): Change to unistr.h.
51235         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
51236         (Depends-on): Add unistr/base.
51237         (configure.ac): Remove gl_UCS4_UTF.
51238         (Makefile.am): Update.
51239         (Include): Change to unistr.h.
51240         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
51241         (Depends-on): Add unistr/base.
51242         (configure.ac): Remove gl_UCS4_UTF.
51243         (Makefile.am): Update.
51244         (Include): Change to unistr.h.
51245         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
51246         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
51247         utf8-ucs4-unsafe.h.
51248         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
51249         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
51250         utf16-ucs4-unsafe.h.
51251         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
51252         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
51253         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
51254         * lib/unistr/u8-strchr.c: Likewise.
51255         * lib/unistr/u8-strrchr.c: Likewise.
51256         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
51257         * lib/unistr/u16-strchr.c: Likewise.
51258         * lib/unistr/u16-strrchr.c: Likewise.
51259         * lib/striconveh.c: Update.
51260         * lib/linebreak.c: Update.
51261
51262 2007-03-24  Bruno Haible  <bruno@clisp.org>
51263
51264         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
51265         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
51266
51267 2007-03-22  Bruno Haible  <bruno@clisp.org>
51268
51269         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
51270
51271 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51272
51273         * MODULES.html.sh (File system functions): New module write-any-file.
51274         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
51275         * m4/write-any-file.m4: New files.
51276
51277 2007-03-23  Eric Blake  <ebb9@byu.net>
51278
51279         * gnulib-tool: Rearrange space-tab sequences, since some editors
51280         like to eat them.
51281
51282 2007-03-23  Eric Blake  <ebb9@byu.net>
51283
51284         * lib/version-etc.c (version_etc_va): Update license wording to
51285         be more concise.  Recommended by Richard Stallman.
51286
51287 2007-03-22  Bruno Haible  <bruno@clisp.org>
51288
51289         * lib/poll.c (MSG_PEEK): New fallback definition.
51290
51291 2007-03-22  Bruno Haible  <bruno@clisp.org>
51292
51293         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
51294         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
51295         (main): Update.
51296         Fixes a compilation error on BeOS.
51297
51298 2007-03-22  Bruno Haible  <bruno@clisp.org>
51299
51300         * modules/frexpl-tests: New file.
51301         * tests/test-frexpl.c: New file.
51302
51303         * modules/frexpl: New file.
51304         * m4/frexpl.m4: New file.
51305         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
51306         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
51307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
51308         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
51309         (Depends-on): Add frexpl. Remove isnanl-nolibm.
51310         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
51311
51312 2007-03-22  Bruno Haible  <bruno@clisp.org>
51313
51314         * lib/frexpl.c: Share code with lib/frexp.c.
51315         * modules/mathl (Files): Add lib/frexp.c.
51316         (Depends-on): Add isnanl-nolibm.
51317
51318 2007-03-22  Bruno Haible  <bruno@clisp.org>
51319
51320         * modules/printf-frexp (Files): Add m4/frexp.m4.
51321         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
51322         only if the found frexp function actually works.
51323
51324 2007-03-22  Bruno Haible  <bruno@clisp.org>
51325
51326         * lib/frexp.c: Remove older implementation that uses divisions.
51327
51328 2007-03-21  Bruno Haible  <bruno@clisp.org>
51329
51330         * modules/frexp-tests: New file.
51331         * tests/test-frexp.c: New file.
51332
51333         * modules/frexp: New file.
51334         * lib/frexp.c: New file.
51335         * m4/frexp.m4: New file.
51336         * lib/math_.h (frexp): New declaration.
51337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
51338         REPLACE_FREXP.
51339         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
51340
51341 2007-03-21  Bruno Haible  <bruno@clisp.org>
51342
51343         * modules/isnanl-tests: New file.
51344         * tests/test-isnanl.c: New file.
51345
51346         * modules/isnanl: New file.
51347         * lib/isnanl.h: New file.
51348         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
51349         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
51350         gl_FUNC_ISNANL_WORKS.
51351         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
51352         New macros.
51353
51354 2007-03-21  Bruno Haible  <bruno@clisp.org>
51355
51356         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
51357         lib/isnanl.h.
51358         (Include): Update.
51359         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
51360         * lib/vasnprintf.c: Update.
51361         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
51362         tests/test-isnanl.h, remove tests/test-isnanl.c.
51363         (Makefile.am): Update.
51364         * tests/test-isnanl-nolibm.c: New file.
51365         * tests/test-isnanl.h: New file.
51366         * tests/test-isnanl.c: Remove file.
51367
51368 2007-03-21  Jim Meyering  <jim@meyering.net>
51369
51370         When trying to open ".", treat ESTALE like EACCES.
51371         * lib/savewd.c (savewd_save): Resort to forking not just upon
51372         failure with EACCES, but also when errno is ESTALE.
51373
51374 2007-03-20  Bruno Haible  <bruno@clisp.org>
51375
51376         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
51377         Needed on AIX 5.1. Reported by Matthew Woehlke.
51378
51379 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51380
51381         Suggestions by Bruno Haible:
51382         * lib/acl-internal.h: Include "gettext.h" rather than rolling
51383         our own.
51384         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
51385         * modules/acl (Depends-on): Add gettext.
51386
51387 2007-03-19  Bruno Haible  <bruno@clisp.org>
51388
51389         * modules/iconvme: Remove file.
51390         * lib/iconvme.h: Remove file.
51391         * lib/iconvme.c: Remove file.
51392         * m4/iconvme.m4: Remove file.
51393
51394 2007-03-19  Bruno Haible  <bruno@clisp.org>
51395
51396         * doc/relocatable-maint.texi: Break long shell script line.
51397         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51398
51399 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51400
51401         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
51402         handle file_has_acl.
51403         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
51404         * lib/acl.c: Move header inclusions and related macro defns into
51405         lib/acl-internal.h.
51406         (S_ISLNK): Remove defn, since that's now done for us.
51407         (file_has_acl): Move to lib/file-has-acl.c.
51408         Call acl_trivial if available.  This is the crucial part of the fix.
51409         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
51410         shared within the library.  Rewrite a bit, partly to make it compatible
51411         with the GNU coding style.
51412         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
51413         Remove unnecessary double-quotes.
51414         Don't test for acl_to_text; the build will catch that.
51415         Replace acl_entries if it doesn't exist and it is needed.
51416         Check for -lsec and acl_trivial (as used on Solaris 10).
51417         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
51418         lib/file-has-acl.c.
51419         (Depends-on): Add sys_stat, for S_ISLNK.
51420
51421 2007-03-19  Ben Pfaff  <blp@gnu.org>
51422
51423         * doc/gnulib.texi: Fix typos.
51424         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51425
51426 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51427
51428         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
51429         If size is zero here, buf must be zero.
51430
51431 2007-03-19  Simon Josefsson  <simon@josefsson.org>
51432
51433         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
51434         <bruno@clisp.org>.
51435
51436 2007-03-18  Bruno Haible  <bruno@clisp.org>
51437
51438         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
51439         Suggested by Eric Blake.
51440
51441 2007-03-18  Ben Pfaff  <blp@gnu.org>
51442
51443         * doc/relocatable.texi: Recommend using as prefix a directory
51444         that does not exist and will never be created.  Based on
51445         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
51446         and others.
51447
51448 2007-03-17  Bruno Haible  <bruno@clisp.org>
51449
51450         * lib/fchownat.c: Include lchown.h.
51451
51452 2007-03-17  Bruno Haible  <bruno@clisp.org>
51453
51454         Fix endless loop when the given allocated size was > INT_MAX.
51455         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
51456         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
51457         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
51458         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
51459         * lib/sprintf.c (sprintf): Likewise.
51460
51461 2007-03-17  Bruno Haible  <bruno@clisp.org>
51462
51463         * tests/test-argp-2.sh (func_compare): Output a context diff.
51464
51465 2007-03-17  Bruno Haible  <bruno@clisp.org>
51466
51467         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
51468         locale's decimal-point character.
51469
51470 2007-03-17  Bruno Haible  <bruno@clisp.org>
51471
51472         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
51473         before comparing it. Needed because on some platforms (e.g. x86) a
51474         'long double' occupies less bytes than sizeof (long double).
51475
51476 2007-03-17  Bruno Haible  <bruno@clisp.org>
51477
51478         * tests/test-crc.c (main): Make printf statements 64-bit clean.
51479         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
51480         * tests/test-getaddrinfo.c (simple): Likewise.
51481         * tests/test-read-file.c (main): Likewise.
51482
51483 2007-03-17  Bruno Haible  <bruno@clisp.org>
51484
51485         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
51486
51487 2007-03-17  Bruno Haible  <bruno@clisp.org>
51488
51489         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
51490         unused variable.
51491
51492 2007-03-17  Bruno Haible  <bruno@clisp.org>
51493
51494         * tests/test-c-strcasecmp.c: Include c-strcase.h.
51495         * tests/test-c-strncasecmp.c: Likewise.
51496
51497 2007-03-17  Bruno Haible  <bruno@clisp.org>
51498
51499         * modules/stdlib (Depends-on): Add unistd.
51500         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
51501         Needed for MacOS X 10.3.
51502
51503 2007-03-17  Bruno Haible  <bruno@clisp.org>
51504
51505         * lib/unistr/u-strdup.h: Include <stdlib.h>.
51506
51507 2007-03-17  Bruno Haible  <bruno@clisp.org>
51508
51509         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
51510
51511 2007-03-17  Bruno Haible  <bruno@clisp.org>
51512
51513         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
51514         to reflect files copied from gnulib (with or without modifications).
51515         Suggested by Jim Meyering.
51516
51517 2007-03-17  Eric Blake  <ebb9@byu.net>
51518
51519         * NEWS: Document stdlib change from 2007-02-18.
51520
51521 2007-03-17  Jim Meyering  <jim@meyering.net>
51522
51523         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
51524         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
51525         someone uses a name containing shell meta-characters.
51526         Reported by Alfred M. Szmidt.
51527
51528         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
51529
51530 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51531
51532         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
51533         and copy gettext configuration files only if configure.ac contains
51534         a use of AM_GNU_GETTEXT_VERSION.
51535
51536 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51537
51538         * build-aux/bootstrap (gnulib_name): New variable.
51539         (gnulib_tool_options): Use it.
51540
51541 2007-03-13  Simon Josefsson  <simon@josefsson.org>
51542
51543         * tests/test-des.c: Use new namespace.
51544
51545 2007-03-15  Bruno Haible  <bruno@clisp.org>
51546
51547         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
51548         Reported by James Youngman <jay@gnu.org>.
51549
51550 2007-03-15  Bruno Haible  <bruno@clisp.org>
51551
51552         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
51553         declared prototype. Needed with cc on OSF/1 5.1.
51554
51555 2007-03-15  Bruno Haible  <bruno@clisp.org>
51556
51557         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
51558         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
51559         (struct gl_list_implementation): Add dispose_fn argument to the
51560         'create_empty', 'create' methods.
51561         (struct gl_list_impl_base): Add field 'dispose_fn'.
51562         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
51563         argument.
51564         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
51565         dispose_fn argument.
51566         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
51567         dispose_fn on the dropped values.
51568         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
51569         dispose_fn argument.
51570         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
51571         dropped values.
51572         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
51573         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51574         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
51575         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51576         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
51577         argument.
51578         (gl_tree_list_free): Call dispose_fn on the dropped values.
51579         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
51580         the dropped values.
51581         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51582         Add dispose_fn argument.
51583         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
51584         Call dispose_fn on the dropped values.
51585         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
51586         Add dispose_fn argument.
51587         (gl_sublist_create): Initialize the 'dispose_fn' field.
51588         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
51589         * tests/test-array_list.c (main): Update.
51590         * tests/test-carray_list.c (main): Update.
51591         * tests/test-avltree_list.c (main): Update.
51592         * tests/test-rbtree_list.c (main): Update.
51593         * tests/test-avltreehash_list.c (main): Update.
51594         * tests/test-rbtreehash_list.c (main): Update.
51595         * tests/test-linked_list.c (main): Update.
51596         * tests/test-linkedhash_list.c (main): Update.
51597         * tests/test-array_oset.c (main): Update.
51598
51599 2007-03-15  Bruno Haible  <bruno@clisp.org>
51600
51601         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
51602         (gl_oset_create_empty): Add dispose_fn argument.
51603         (struct gl_oset_implementation): Add dispose_fn argument to
51604         'create_empty' method.
51605         (struct gl_oset_impl_base): Add dispose_fn field.
51606         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
51607         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
51608         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
51609         values.
51610         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
51611         (gl_tree_oset_free): Call dispose_fn on the dropped values.
51612         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51613         dropped value.
51614         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51615         dropped value.
51616         * tests/test-array_oset.c (main): Update.
51617         * tests/test-avltree_oset.c (main): Update.
51618         * tests/test-rbtree_oset.c (main): Update.
51619         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
51620
51621 2007-03-13  Bruno Haible  <bruno@clisp.org>
51622
51623         * tests/test-stdbool.c (i): Update after last patch.
51624
51625 2007-03-12  Bruno Haible  <bruno@clisp.org>
51626
51627         * lib/quotearg.c: Include <wctype.h> early, before the definition of
51628         the iswprint macro. Needed on Solaris 2.5.1.
51629
51630 2007-03-12  Bruno Haible  <bruno@clisp.org>
51631
51632         * tests/test-printf-frexp.c (main): Declare x as volatile.
51633
51634 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51635
51636         * doc/gnulib.texi (Build robot for gnulib): New section.
51637
51638 2007-03-12  Jim Meyering  <jim@meyering.net>
51639
51640         * build-aux/bootstrap: New file.
51641         * build-aux/bootstrap.conf: New file, from coreutils.
51642
51643 2007-03-11  Bruno Haible  <bruno@clisp.org>
51644
51645         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
51646
51647 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51648
51649         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
51650         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
51651         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
51652
51653 2007-03-11  Bruno Haible  <bruno@clisp.org>
51654
51655         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
51656         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
51657
51658 2007-03-11  Bruno Haible  <bruno@clisp.org>
51659
51660         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
51661         formula. Needed for SunPRO C 5.0.
51662
51663 2007-03-11  Bruno Haible  <bruno@clisp.org>
51664
51665         * modules/long-options (Depends-on): Add getopt.
51666
51667 2007-03-11  Bruno Haible  <bruno@clisp.org>
51668
51669         * modules/modechange (Depends-on): Add stdbool.
51670
51671 2007-03-11  Bruno Haible  <bruno@clisp.org>
51672
51673         * modules/i-ring (Depends-on): Add stdbool.
51674
51675 2007-03-11  Bruno Haible  <bruno@clisp.org>
51676
51677         * modules/gc-des (Depends-on): Add stdbool.
51678
51679 2007-03-11  Bruno Haible  <bruno@clisp.org>
51680
51681         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
51682
51683 2007-03-11  Bruno Haible  <bruno@clisp.org>
51684
51685         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
51686
51687 2007-03-11  Bruno Haible  <bruno@clisp.org>
51688
51689         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
51690
51691 2007-03-11  Bruno Haible  <bruno@clisp.org>
51692
51693         * lib/vasnprintf.c (sprintf): Undefine.
51694
51695 2007-03-11  Bruno Haible  <bruno@clisp.org>
51696
51697         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
51698         initializers in SunPRO C and Compaq C compilers.
51699
51700 2007-03-11  Bruno Haible  <bruno@clisp.org>
51701
51702         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
51703         decrementing code ANSI C compliant.
51704
51705 2007-03-11  Bruno Haible  <bruno@clisp.org>
51706
51707         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
51708         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
51709
51710 2007-03-11  Bruno Haible  <bruno@clisp.org>
51711
51712         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
51713         <stdbool.h> substitute doesn't pass.
51714
51715 2007-03-11  Bruno Haible  <bruno@clisp.org>
51716
51717         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
51718
51719 2007-03-11  Bruno Haible  <bruno@clisp.org>
51720
51721         * gnulib-tool (func_create_megatestdir): Create also an autobuild
51722         script, for submission to autobuild.josefsson.org.
51723
51724 2007-03-10  Bruno Haible  <bruno@clisp.org>
51725
51726         * modules/canonicalize-lgpl-tests: New file.
51727         * tests/test-canonicalize-lgpl.sh: New file.
51728         * tests/test-canonicalize-lgpl.c: New file.
51729
51730         * modules/c-strcase-tests: New file.
51731         * tests/test-c-strcase.sh: New file.
51732         * tests/test-c-strcasecmp.c: New file.
51733         * tests/test-c-strncasecmp.c: New file.
51734
51735         * modules/atexit-tests: New file.
51736         * tests/test-atexit.sh: New file.
51737         * tests/test-atexit.c: New file.
51738
51739 2007-03-10  Bruno Haible  <bruno@clisp.org>
51740
51741         * tests/test-binary-io.sh: Use temporary filenames that are not so
51742         likely to clash with those of other tests (in a parallel make).
51743         * tests/test-binary-io.c: Likewise.
51744
51745 2007-03-10  Bruno Haible  <bruno@clisp.org>
51746
51747         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
51748         fallback; use #error instead.
51749         Suggested by Simon Josefsson.
51750
51751 2007-03-10  Bruno Haible  <bruno@clisp.org>
51752
51753         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
51754         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
51755         first and the last.
51756
51757 2007-03-10  Bruno Haible  <bruno@clisp.org>
51758
51759         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
51760
51761 2007-03-10  Bruno Haible  <bruno@clisp.org>
51762
51763         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
51764         "make distcheck".
51765         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
51766         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
51767         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
51768
51769 2007-03-10  Bruno Haible  <bruno@clisp.org>
51770
51771         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
51772         variable.
51773         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
51774         variable.
51775
51776 2007-03-09  Eric Blake  <ebb9@byu.net>
51777         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
51778
51779         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
51780         types are not being provided by gnulib.
51781         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
51782         types are supported.
51783
51784 2007-03-10  Bruno Haible  <bruno@clisp.org>
51785
51786         * lib/stdio_.h (__attribute__): New macro.
51787         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
51788         vsprintf): Specify __attribute__ __format__ for GCC.
51789         Suggested by Eric Blake.
51790
51791 2007-03-09  Bruno Haible  <bruno@clisp.org>
51792
51793         * modules/printf-posix-tests: New file.
51794         * tests/test-printf-posix.sh: New file.
51795         * tests/test-printf-posix.c: New file.
51796
51797         * modules/printf-posix: New file.
51798         * lib/printf.c: New file.
51799         * m4/printf-posix-rpl.m4: New file.
51800         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
51801         REPLACE_PRINTF.
51802         * lib/stdio_.h (printf): New declaration.
51803         (format, __format__, ____printf____, ____scanf____, ____strftime____,
51804         ____strfmon____): New macros.
51805         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
51806         REPLACE_PRINTF.
51807
51808 2007-03-09  Bruno Haible  <bruno@clisp.org>
51809
51810         * tests/test-vasnprintf-posix2.sh: New file.
51811         * tests/test-vasnprintf-posix2.c: New file.
51812         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
51813         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51814         (Makefile.am): Activate test-vasnprintf-posix2.sh.
51815
51816         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
51817         a locale dependent decimal point, rather than always '.'.
51818
51819 2007-03-09  Eric Blake  <ebb9@byu.net>
51820
51821         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
51822         spite of platforms like Tandem/NSK that define it to -1.
51823
51824 2007-03-08  Bruno Haible  <bruno@clisp.org>
51825
51826         * modules/vprintf-posix-tests: New file.
51827         * tests/test-vprintf-posix.sh: New file.
51828         * tests/test-vprintf-posix.c: New file.
51829         * tests/test-printf-posix.h: New file.
51830
51831         * modules/vprintf-posix: New file.
51832         * lib/vprintf.c: New file.
51833         * m4/vprintf-posix.m4: New file.
51834         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
51835         REPLACE_VPRINTF.
51836         * lib/stdio_.h (vprintf): New declaration.
51837         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
51838         REPLACE_VPRINTF.
51839
51840 2007-03-08  Bruno Haible  <bruno@clisp.org>
51841
51842         * modules/fprintf-posix-tests: New file.
51843         * tests/test-fprintf-posix.sh: New file.
51844         * tests/test-fprintf-posix.c: New file.
51845
51846         * modules/fprintf-posix: New file.
51847         * lib/fprintf.c: New file.
51848         * m4/fprintf-posix.m4: New file.
51849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
51850         REPLACE_FPRINTF.
51851         * lib/stdio_.h (fprintf): New declaration.
51852         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
51853         REPLACE_FPRINTF.
51854
51855 2007-03-08  Bruno Haible  <bruno@clisp.org>
51856
51857         * modules/vfprintf-posix-tests: New file.
51858         * tests/test-vfprintf-posix.sh: New file.
51859         * tests/test-vfprintf-posix.c: New file.
51860         * tests/test-fprintf-posix.h: New file.
51861         * tests/test-fprintf-posix.out: New file.
51862
51863         * modules/vfprintf-posix: New file.
51864         * lib/vfprintf.c: New file.
51865         * m4/vfprintf-posix.m4: New file.
51866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
51867         REPLACE_VFPRINTF.
51868         * lib/stdio_.h (vfprintf): New declaration.
51869         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
51870         REPLACE_VFPRINTF.
51871
51872 2007-03-08  Bruno Haible  <bruno@clisp.org>
51873
51874         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
51875
51876 2007-03-08  Bruno Haible  <bruno@clisp.org>
51877
51878         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
51879         instead of 'expr' invocations.
51880         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51881         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51882         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51883         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51884         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51885         Suggested by Paul Eggert.
51886
51887 2007-03-08  Bruno Haible  <bruno@clisp.org>
51888
51889         * modules/fseterr-tests: New file.
51890         * tests/test-fseterr.c: New file.
51891
51892         * modules/fseterr: New file.
51893         * lib/fseterr.h: New file.
51894         * lib/fseterr.c: New file.
51895
51896 2007-03-08  Bruno Haible  <bruno@clisp.org>
51897
51898         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
51899         * lib/getopt_.h: Likewise.
51900         * lib/mbswidth.h: Likewise.
51901         * lib/setenv.h: Likewise.
51902         * lib/vasnprintf.h: Likewise.
51903         * lib/vasprintf.h: Likewise.
51904         * lib/verror.h: Likewise.
51905         * lib/xsetenv.h: Likewise.
51906         * lib/xvasprintf.h: Likewise.
51907
51908 2007-03-08  Jim Meyering  <jim@meyering.net>
51909
51910         * users.txt: Add parted.
51911
51912         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
51913
51914 2007-03-07  Bruno Haible  <bruno@clisp.org>
51915
51916         * m4/printf.m4: Make the shell script snippets copy&pastable.
51917
51918 2007-03-02  Bruno Haible  <bruno@clisp.org>
51919
51920         * lib/netinet_in_.h: New file.
51921         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
51922         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
51923         * modules/netinet_in (Files): Add lib/netinet_in_.h.
51924         (Depends-on): Add absolute-header.
51925         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
51926         into netinet/in.h.
51927
51928 2007-03-03  Bruno Haible  <bruno@clisp.org>
51929
51930         * lib/sys_select_.h: New file.
51931         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
51932         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
51933         * modules/sys_select (Files): Add lib/sys_select_.h.
51934         (Depends-on): Add absolute-header.
51935         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
51936         into sys/select.h.
51937
51938 2007-03-02  Bruno Haible  <bruno@clisp.org>
51939
51940         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
51941         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
51942         values.
51943         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
51944         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
51945         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
51946         * modules/sys_socket (Depends-on): Add absolute-header.
51947         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
51948         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
51949         (Include): Remove requirement of inclusion of <sys/types.h>.
51950
51951 2007-03-02  Bruno Haible  <bruno@clisp.org>
51952
51953         * lib/byteswap_.h (bswap_32): Fix formula.
51954
51955 2007-03-06  Bruno Haible  <bruno@clisp.org>
51956
51957         * modules/sprintf-posix-tests: New file.
51958         * tests/test-sprintf-posix.c: New file.
51959
51960         * modules/sprintf-posix: New file.
51961         * lib/sprintf.c: New file.
51962         * m4/sprintf-posix.m4: New file.
51963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
51964         REPLACE_SPRINTF.
51965         * lib/stdio_.h (sprintf): New declaration.
51966         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
51967         REPLACE_SPRINTF.
51968
51969 2007-03-06  Bruno Haible  <bruno@clisp.org>
51970
51971         * modules/vsprintf-posix-tests: New file.
51972         * tests/test-vsprintf-posix.c: New file.
51973         * tests/test-sprintf-posix.h: New file.
51974
51975         * modules/vsprintf-posix: New file.
51976         * lib/vsprintf.c: New file.
51977         * m4/vsprintf-posix.m4: New file.
51978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
51979         REPLACE_VSPRINTF.
51980         * lib/stdio_.h (vsprintf): New declaration.
51981         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
51982         REPLACE_VSPRINTF.
51983
51984 2007-03-06  Bruno Haible  <bruno@clisp.org>
51985
51986         * modules/vsnprintf (Depend-on): Remove minmax.
51987
51988 2007-03-06  Bruno Haible  <bruno@clisp.org>
51989
51990         * modules/snprintf-posix-tests: New file.
51991         * tests/test-snprintf-posix.c: New file.
51992
51993         * modules/snprintf-posix: New file.
51994         * m4/snprintf-posix.m4: New file.
51995         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
51996         gl_FUNC_SNPRINTF.
51997         (gl_FUNC_SNPRINTF): Invoke it.
51998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
51999         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
52000         is set.
52001         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
52002
52003 2007-03-06  Bruno Haible  <bruno@clisp.org>
52004
52005         * modules/vsnprintf-posix-tests: New file.
52006         * tests/test-vsnprintf-posix.c: New file.
52007         * tests/test-snprintf-posix.h: New file.
52008
52009         * modules/vsnprintf-posix: New file.
52010         * m4/vsnprintf-posix.m4: New file.
52011         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
52012         gl_FUNC_VSNPRINTF.
52013         (gl_FUNC_VSNPRINTF): Invoke it.
52014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
52015         * lib/stdio_.h (vsnprintf): Define as a replacement if
52016         REPLACE_VSNPRINTF is set.
52017         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
52018
52019 2007-03-06  Bruno Haible  <bruno@clisp.org>
52020
52021         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
52022         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
52023
52024 2007-03-06  Bruno Haible  <bruno@clisp.org>
52025
52026         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
52027         (asinl): Declare also if HAVE_DECL_ASINL is set.
52028         (atanl): Declare also if HAVE_DECL_ATANL is set.
52029         (ceill): Declare also if HAVE_DECL_CEILL is set.
52030         (cosl): Declare also if HAVE_DECL_COSL is set.
52031         (expl): Declare also if HAVE_DECL_EXPL is set.
52032         (floorl): Declare also if HAVE_DECL_FLOORL is set.
52033         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
52034         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
52035         (logl): Declare also if HAVE_DECL_LOGL is set.
52036         (sinl): Declare also if HAVE_DECL_SINL is set.
52037         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
52038         (tanl): Declare also if HAVE_DECL_TANL is set.
52039         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
52040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
52041         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
52042         declaration of frexpl, ldexpl.
52043         * modules/printf-frexpl (Depends-on): Add math.
52044         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
52045
52046 2007-03-05  Bruno Haible  <bruno@clisp.org>
52047
52048         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
52049         frexpl and ldexpl are declared.
52050         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
52051
52052 2007-03-05  Bruno Haible  <bruno@clisp.org>
52053
52054         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
52055         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
52056
52057 2007-03-05  Bruno Haible  <bruno@clisp.org>
52058
52059         * lib/stdio_.h: Include <stddef.h>.
52060
52061 2007-03-05  Bruno Haible  <bruno@clisp.org>
52062
52063         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
52064
52065 2007-03-05  Bruno Haible  <bruno@clisp.org>
52066
52067         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
52068         NetBSD 4, from Ralf Wildenhues.
52069
52070 2007-03-04  Bruno Haible  <bruno@clisp.org>
52071
52072         * lib/vasprintf.h: Update #if logic for the case when the functions
52073         exist but are overridden.
52074
52075 2007-03-04  Bruno Haible  <bruno@clisp.org>
52076
52077         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
52078         implementations: glibc-2.4 and MacOS X 10.3.
52079         * tests/test-vasnprintf-posix.c (test_function): Test also the case
52080         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
52081         * tests/test-vasprintf-posix.c (test_function): Likewise.
52082
52083 2007-03-04  Bruno Haible  <bruno@clisp.org>
52084
52085         * modules/vasprintf-posix-tests: New file.
52086         * tests/test-vasprintf-posix.c: New file.
52087
52088         * modules/vasprintf-posix: New file.
52089         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
52090         defined.
52091         * m4/vasprintf-posix.m4: New file.
52092         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
52093         gl_FUNC_VASPRINTF.
52094         (gl_FUNC_VASPRINTF): Invoke it.
52095         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
52096         here.
52097         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
52098
52099 2007-03-04  Bruno Haible  <bruno@clisp.org>
52100
52101         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
52102         REPLACE_GETTIMEOFDAY.
52103         * modules/sys_time (Makefile.am): Likewise.
52104         * m4/sys_time_h.m4: Likewise.
52105         * m4/gettimeofday.m4: Likewise.
52106
52107 2007-03-04  Bruno Haible  <bruno@clisp.org>
52108
52109         * modules/vasnprintf-posix-tests: New file.
52110         * tests/test-vasnprintf-posix.c: New file.
52111
52112         * modules/vasnprintf-posix: New file.
52113         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
52114         printf-frexpl.h.
52115         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
52116         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
52117         REPLACE_VASNPRINTF is defined.
52118         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
52119         gl_FUNC_VASNPRINTF.
52120         (gl_FUNC_VASNPRINTF): Invoke it.
52121         * m4/vasnprintf-posix.m4: New file.
52122         * m4/printf.m4: New file.
52123
52124 2007-03-04  Bruno Haible  <bruno@clisp.org>
52125
52126         Compile progreloc.c only if --enable-relocatable is specified.
52127         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
52128         if --enable-relocatable was specified.
52129         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
52130         lib_SOURCES.
52131
52132 2007-03-04  Jim Meyering  <jim@meyering.net>
52133
52134         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
52135         Use it consistently, rather than enumerating errno constants.
52136
52137 2007-03-04  Bruno Haible  <bruno@clisp.org>
52138
52139         * modules/xvasprintf-tests: New file.
52140         * tests/test-xvasprintf.c: New file.
52141
52142         * modules/vasprintf-tests: New file.
52143         * tests/test-vasprintf.c: New file.
52144
52145         * modules/vasnprintf-tests: New file.
52146         * tests/test-vasnprintf.c: New file.
52147
52148         * modules/vsnprintf-tests: New file.
52149         * tests/test-vsnprintf.c: New file.
52150
52151         * modules/snprintf-tests: New file.
52152         * tests/test-snprintf.c: New file.
52153
52154 2007-03-04  Bruno Haible  <bruno@clisp.org>
52155
52156         Compile relocatable.c only if --enable-relocatable is specified.
52157         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
52158         gl_RELOCATABLE_LIBRARY.
52159         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
52160         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
52161         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
52162         gl_RELOCATABLE_LIBRARY.
52163         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
52164         (Makefile.am): Remove lib_SOURCES.
52165         * modules/relocatable-lib-lgpl (configure.ac): Invoke
52166         gl_RELOCATABLE_LIBRARY.
52167         (Makefile.am): Remove lib_SOURCES.
52168         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
52169         always.
52170         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52171         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
52172
52173 2007-03-04  Bruno Haible  <bruno@clisp.org>
52174
52175         * modules/argmatch-tests: New file.
52176         * tests/test-argmatch.c: New file.
52177
52178         * tests/test-allocsa.c (main): Halve the number of loop runs.
52179
52180         * modules/alloca-opt-tests: New file.
52181         * tests/test-alloca-opt.c: New file.
52182
52183 2007-03-04  Jim Meyering  <jim@meyering.net>
52184
52185         Work around difference between Linux ACLs and Solaris 10 ZFS.
52186         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
52187         for EINVAL.
52188
52189 2007-03-03  Bruno Haible  <bruno@clisp.org>
52190
52191         * modules/relocatable-prog (Depends-on): Add back progreloc's
52192         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
52193
52194 2007-03-03  Bruno Haible  <bruno@clisp.org>
52195
52196         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
52197         * modules/relocatable-lib: New file.
52198
52199 2007-03-03  Bruno Haible  <bruno@clisp.org>
52200
52201         * modules/relocatable-prog: Renamed from modules/relocatable.
52202         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
52203
52204 2007-03-03  Bruno Haible  <bruno@clisp.org>
52205
52206         * modules/relocatable-script (Files): Add doc/relocatable.texi,
52207         m4/relocatable-lib.m4.
52208         (Depends-on): Remove 'relocatable'.
52209         (configure.ac): Add gl_RELOCATABLE_NOP.
52210
52211 2007-03-03  Bruno Haible  <bruno@clisp.org>
52212
52213         * modules/relocatable-prog-wrapper: New file.
52214         * modules/relocatable (Depends-on): Add it. Remove all other
52215         dependencies except progname.
52216         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
52217
52218         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
52219         (gl_FUNC_STRERROR): Nop.
52220         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
52221
52222         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
52223         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
52224
52225         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
52226         (gl_FUNC_READLINK): Update.
52227
52228         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
52229
52230 2007-03-03  Bruno Haible  <bruno@clisp.org>
52231
52232         * lib/xreadlink.c: Include <unistd.h> unconditionally.
52233         * modules/xreadlink (Depends-on): Add unistd.
52234         * modules/xreadlink-with-size (Depends-on): Likewise.
52235
52236 2007-03-03  Bruno Haible  <bruno@clisp.org>
52237
52238         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
52239         extracted from gt_FUNC_SETENV.
52240         (gt_FUNC_SETENV): Remove macro.
52241         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
52242         remove gt_FUNC_SETENV.
52243
52244 2007-03-03  Bruno Haible  <bruno@clisp.org>
52245
52246         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
52247         ENABLE_RELOCATABLE here.
52248         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
52249
52250 2007-03-03  Bruno Haible  <bruno@clisp.org>
52251
52252         * modules/rbtreehash-list-tests (Depends-on): Add progname.
52253         * tests/test-rbtreehash_list.c: Include progname.h.
52254         (main): Call set_program_name.
52255
52256         * modules/rbtree-oset-tests (Depends-on): Add progname.
52257         * tests/test-rbtree_oset.c: Include progname.h.
52258         (main): Call set_program_name.
52259
52260         * modules/rbtree-list-tests (Depends-on): Add progname.
52261         * tests/test-rbtree_list.c: Include progname.h.
52262         (main): Call set_program_name.
52263
52264         * modules/linked-list-tests (Depends-on): Add progname.
52265         * tests/test-linked_list.c: Include progname.h.
52266         (main): Call set_program_name.
52267
52268 2007-03-03  Bruno Haible  <bruno@clisp.org>
52269
52270         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
52271         All uses of __restrict changed to _Restrict_.
52272         * lib/glob_.h (__restrict): Remove macro.
52273
52274 2007-03-02  Bruno Haible  <bruno@clisp.org>
52275
52276         * modules/gettext (configure.ac): Require gettext infrastructure
52277         from version 0.16.1.
52278
52279 2007-03-02  Bruno Haible  <bruno@clisp.org>
52280
52281         * modules/linkedhash-list-tests (Depends-on): Add progname.
52282         * tests/test-linkedhash_list.c: Include progname.h.
52283         (main): Call set_program_name.
52284
52285         * modules/carray-list-tests (Depends-on): Add progname.
52286         * tests/test-carray_list.c: Include progname.h.
52287         (main): Call set_program_name.
52288
52289         * modules/avltreehash-list-tests (Depends-on): Add progname.
52290         * tests/test-avltreehash_list.c: Include progname.h.
52291         (main): Call set_program_name.
52292
52293         * modules/avltree-oset-tests (Depends-on): Add progname.
52294         * tests/test-avltree_oset.c: Include progname.h.
52295         (main): Call set_program_name.
52296
52297         * modules/avltree-list-tests (Depends-on): Add progname.
52298         * tests/test-avltree_list.c: Include progname.h.
52299         (main): Call set_program_name.
52300
52301         * modules/array-oset-tests (Depends-on): Add progname.
52302         * tests/test-array_oset.c: Include progname.h.
52303         (main): Call set_program_name.
52304
52305         * modules/array-list-tests (Depends-on): Add progname.
52306         * tests/test-array_list.c: Include progname.h.
52307         (main): Call set_program_name.
52308
52309         * modules/argp-tests (Depends-on): Add progname.
52310         * tests/test-argp.c: Include argp.h first. Include progname.h.
52311         (main): Call set_program_name.
52312
52313 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
52314
52315         * doc/gnulib-tool.texi (Initial import): Reword description of
52316         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
52317         limited effect even if defined after the first system include.
52318
52319 2007-03-01  Bruno Haible  <bruno@clisp.org>
52320
52321         * build-aux/config.libpath: Update to libtool-1.5.22.
52322         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52323
52324 2007-03-01  Bruno Haible  <bruno@clisp.org>
52325
52326         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
52327         foo_CFLAGS.
52328         Reported by Ralf Wildenhues.
52329
52330 2007-03-01  Bruno Haible  <bruno@clisp.org>
52331
52332         * build-aux/install-reloc: Remove object files left over by some
52333         compilers.
52334         Reported by Ralf Wildenhues.
52335
52336 2007-03-01  Bruno Haible  <bruno@clisp.org>
52337
52338         * build-aux/install-reloc: Break long lines.
52339
52340 2007-03-01  Bruno Haible  <bruno@clisp.org>
52341
52342         * doc/relocatable.texi: Document that it may not work on OpenBSD.
52343         Reported by Ralf Wildenhues.
52344
52345 2007-03-01  Bruno Haible  <bruno@clisp.org>
52346
52347         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
52348         include ordering constraints.
52349
52350 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52351
52352         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
52353         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
52354         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
52355         as another example.
52356         * lib/time_.h: Fix misspelling.
52357         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52358         Require gl_HEADER_TIME_H_DEFAULTS.
52359         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
52360         * m4/time_r.m4 (gl_TIME_R): Likewise.
52361         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
52362
52363 2007-03-01  Bruno Haible  <bruno@clisp.org>
52364
52365         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
52366         * m4/utimens.m4 (gl_UTIMENS): Likewise.
52367
52368 2007-03-01  Jim Meyering  <jim@meyering.net>
52369
52370         * modules/xreadlink (Maintainer): Add my name.
52371         * modules/xreadlink-with-size (Depends-on): Alphabetize.
52372
52373 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
52374             Bruno Haible  <bruno@clisp.org>
52375
52376         * build-aux/install-reloc: Compile also c-ctype.c.
52377         * build-aux/relocatable.sh.in: New file.
52378         * doc/relocatable.texi: New file.
52379         * doc/relocatable-maint.texi: New file.
52380         * doc/gnulib.texi: Include relocatable-maint.texi.
52381         * lib/progreloc.c: Include unistd.h unconditionally.
52382         * lib/relocwrapper.c: Include unistd.h unconditionally.
52383         Include c-ctype.h.
52384         (add_dotbin): Use c_tolower.
52385         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
52386         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
52387         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
52388         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
52389         to m4/relocatable-lib.m4.
52390         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
52391         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
52392         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
52393         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
52394         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
52395         * modules/relocatable: New file.
52396         * modules/relocatable-lib: New file.
52397         * modules/relocatable-script: New file.
52398
52399 2007-02-28  Bruno Haible  <bruno@clisp.org>
52400
52401         Import --enable-relocatable infrastructure.
52402         * build-aux/config.libpath: New file, from GNU gettext.
52403         * build-aux/install-reloc: New file, from GNU gettext.
52404         * build-aux/reloc-ldflags: New file, from GNU gettext.
52405         * lib/relocatable.h: New file, from GNU gettext.
52406         * lib/relocatable.c: New file, from GNU gettext.
52407         * lib/relocwrapper.c: New file, from GNU gettext.
52408         * m4/relocatable.m4: New file, from GNU gettext.
52409
52410 2007-02-28  Bruno Haible  <bruno@clisp.org>
52411
52412         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
52413
52414         * modules/xreadlink: New file, from GNU gettext with modifications.
52415         * lib/xreadlink.c: New file, from GNU gettext.
52416         * lib/xreadlink.h: Add comments.
52417         (xreadlink): New declaration.
52418
52419         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
52420         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
52421         lib/xreadlink-with-size.c.
52422         (configure.ac): Remove gl_XREADLINK invocation.
52423         (Makefile.am): Augment lib_SOURCES.
52424         * m4/xreadlink.m4: Remove file.
52425         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
52426         (xreadlink_with_size): Renamed from xreadink.
52427         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
52428         * modules/canonicalize (Depends-on): Replace xreadlink with
52429         xreadlink-with-size.
52430         * lib/canonicalize.c (canonicalize_filename_mode): Update.
52431
52432 2007-02-25  Jim Meyering  <jim@meyering.net>
52433
52434         * build-aux/announce-gen: When complaining about excess arguments,
52435         list them.
52436
52437 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52438
52439         * README: Document signed integer overflow situation more
52440         accurately.
52441
52442 2007-02-25  Bruno Haible  <bruno@clisp.org>
52443
52444         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
52445         'a' or 'A' conversion.
52446
52447 2007-02-25  Bruno Haible  <bruno@clisp.org>
52448
52449         * modules/filename: Renamed from modules/pathname.
52450         (Files): Replace lib/pathname.h with lib/filename.h. Replace
52451         lib/concatpath.c with lib/concat-filename.c.
52452         (Makefile.am): Update.
52453         (Include): Replace pathname.h with filename.h.
52454         * lib/filename.h: Renamed from lib/pathname.h.
52455         (concatenated_filename): Renamed from concatenated_pathname.
52456         * lib/concat-filename.c: Renamed from lib/concatpath.c.
52457         (concatenated_filename): Renamed from concatenated_pathname.
52458         * lib/findprog.c: Include filename.h instead of pathname.h.
52459         (find_in_path): Update.
52460         * lib/javacomp.c: Include filename.h instead of pathname.h.
52461         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52462         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52463         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52464         is_oldgcj_14_13_usable, is_javac_usable): Update.
52465         * lib/javaexec.c: Include filename.h instead of pathname.h.
52466         (execute_java_class): Update.
52467         * modules/findprog: Update.
52468         * modules/javacomp: Update.
52469         * modules/javaexec: Update.
52470         * MODULES.html.sh (File system functions): Add 'filename', remove
52471         'pathname'.
52472
52473 2007-02-25  Bruno Haible  <bruno@clisp.org>
52474
52475         * modules/printf-frexpl-tests: New file.
52476         * tests/test-printf-frexpl.c: New file.
52477
52478         * modules/printf-frexpl: New file.
52479         * lib/printf-frexpl.h: New file.
52480         * lib/printf-frexpl.c: New file.
52481         * m4/printf-frexpl.m4: New file.
52482
52483 2007-02-25  Bruno Haible  <bruno@clisp.org>
52484
52485         * modules/printf-frexp-tests: New file.
52486         * tests/test-printf-frexp.c: New file.
52487
52488         * modules/printf-frexp: New file.
52489         * lib/printf-frexp.h: New file.
52490         * lib/printf-frexp.c: New file.
52491         * m4/printf-frexp.m4: New file.
52492
52493 2007-02-25  Bruno Haible  <bruno@clisp.org>
52494
52495         Assume automake >= 1.10 for the tests.
52496         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
52497         * modules/arctwo-tests: Likewise.
52498         * modules/argp-tests: Likewise.
52499         * modules/avltree-list-tests: Likewise.
52500         * modules/avltree-oset-tests: Likewise.
52501         * modules/avltreehash-list-tests: Likewise.
52502         * modules/carray-list-tests: Likewise.
52503         * modules/crc-tests: Likewise.
52504         * modules/des-tests: Likewise.
52505         * modules/gc-arcfour-tests: Likewise.
52506         * modules/gc-arctwo-tests: Likewise.
52507         * modules/gc-des-tests: Likewise.
52508         * modules/gc-hmac-md5-tests: Likewise.
52509         * modules/gc-hmac-sha1-tests: Likewise.
52510         * modules/gc-md2-tests: Likewise.
52511         * modules/gc-md4-tests: Likewise.
52512         * modules/gc-md5-tests: Likewise.
52513         * modules/gc-pbkdf2-sha1-tests: Likewise.
52514         * modules/gc-rijndael-tests: Likewise.
52515         * modules/gc-sha1-tests: Likewise.
52516         * modules/gc-tests: Likewise.
52517         * modules/getaddrinfo-tests: Likewise.
52518         * modules/hmac-md5-tests: Likewise.
52519         * modules/hmac-sha1-tests: Likewise.
52520         * modules/linked-list-tests: Likewise.
52521         * modules/linkedhash-list-tests: Likewise.
52522         * modules/lock-tests: Likewise.
52523         * modules/md2-tests: Likewise.
52524         * modules/md4-tests: Likewise.
52525         * modules/md5-tests: Likewise.
52526         * modules/rbtree-list-tests: Likewise.
52527         * modules/rbtree-oset-tests: Likewise.
52528         * modules/rbtreehash-list-tests: Likewise.
52529         * modules/read-file-tests: Likewise.
52530         * modules/rijndael-tests: Likewise.
52531         * modules/stdint-tests: Likewise.
52532         * modules/tls-tests: Likewise.
52533
52534 2007-02-24  Bruno Haible  <bruno@clisp.org>
52535
52536         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
52537         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
52538         function; instead check whether isnan with a double argument links.
52539         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
52540         function; instead check whether isnan with a 'long double' argument
52541         links.
52542         Reported by Eric Blake <ebb9@byu.net>.
52543
52544 2007-02-24  Bruno Haible  <bruno@clisp.org>
52545
52546         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
52547         defined.
52548         * lib/isnanl.c: Remove all code. Just include isnan.c.
52549         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
52550
52551 2007-02-25  Jim Meyering  <jim@meyering.net>
52552
52553         Avoid conflicting types for 'unsetenv' on FreeBSD.
52554         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
52555         conflicting with FreeBSD's (5.0 and 6.1) function declaration
52556         in stdlib.h.
52557
52558 2007-02-24  Bruno Haible  <bruno@clisp.org>
52559
52560         * modules/isnanl-nolibm-tests: New file.
52561         * tests/test-isnanl.c: New file.
52562
52563         * modules/isnanl-nolibm: New file.
52564         * lib/isnanl.h: New file.
52565         * lib/isnanl.c: New file.
52566         * m4/isnanl.m4: New file.
52567
52568 2007-02-24  Bruno Haible  <bruno@clisp.org>
52569
52570         * modules/isnan-nolibm-tests: New file.
52571         * tests/test-isnan.c: New file.
52572
52573         * modules/isnan-nolibm: New file.
52574         * lib/isnan.h: New file.
52575         * lib/isnan.c: New file.
52576         * m4/isnan.m4: New file.
52577
52578 2007-02-24  Bruno Haible  <bruno@clisp.org>
52579
52580         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
52581         assume that an exponent fits in 20 bits.
52582
52583 2007-02-24  Jim Meyering  <jim@meyering.net>
52584
52585         * m4/regex.m4: Update the description of the configure-time option,
52586         --without-included-regex, to state accurately what the defaults are,
52587         and perhaps to give people an idea why using this option is risky.
52588
52589 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52590
52591         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
52592         loops on small arguments.  This attempts to avoid the problem
52593         Bruno Haible reported for AIX 4.3.2 in
52594         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
52595
52596 2007-02-23  Bruno Haible  <bruno@clisp.org>
52597
52598         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
52599         Needed for help2man.
52600
52601 2007-02-23  Karl Berry  <karl@gnu.org>
52602
52603         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
52604         exists, foo.h should be cvs-ignored, not committed.
52605
52606 2007-02-23  Eric Blake  <ebb9@byu.net>
52607
52608         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
52609         * lib/stat-time.h (includes): Likewise.
52610         * lib/utimecmp.c (includes): Likewise.
52611         * lib/utimens.h (includes): Likewise.
52612         * lib/getdate.y (includes): Also include "timespec.h" for use
52613         internal to the module.
52614         * modules/utimens (Depends-on): Revert yesterday's patch.
52615         * modules/nanosleep (Depends-on): Add missing dependency.
52616
52617 2007-02-22  Bruno Haible  <bruno@clisp.org>
52618
52619         * lib/glob.c: Don't include getlogin_r.h.
52620
52621 2007-02-22  Jim Meyering  <jim@meyering.net>
52622
52623         * modules/utimens (Depends-on): Add timespec, required for
52624         utimens.h's inclusion of timespec.h.
52625
52626 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
52627
52628         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
52629         long unreadable paths in GNU/Linux.  Problem reported by Andreas
52630         Schwab in
52631         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
52632         I'll try to think of a better way to fix the Solaris problem.
52633
52634         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
52635         like glibc; on Solaris 10, it fails with errno == EINVAL.
52636         POSIX says the behavior is unspecified if the first argument is NULL,
52637         so play it safe and never pass NULL to the system getcwd.
52638
52639 2007-02-21  Jim Meyering  <jim@meyering.net>
52640
52641         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
52642         of gettimeofday.  It would conflict with the one now always
52643         provided via sys_time_.h.  Reported by Matthew Woehlke, as
52644         an IRIX 6.5 build failure.
52645
52646 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52647
52648         Minor fixups to port to Solaris 10 with Sun C 5.8.
52649         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
52650         * modules/getcwd (Depends-on): Add dirfd.
52651         * lib/putenv.c (putenv): #undef it.
52652         (rpl_putenv): New decl.
52653         (malloc, free): Include <stdlib.h> rather than prototyping separately.
52654
52655 2007-02-20  Bruno Haible  <bruno@clisp.org>
52656
52657         * modules/stdio-tests: New file.
52658         * tests/test-stdio.c: New file.
52659
52660         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
52661         (Depends-on): Add stdio.
52662         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52663         (Include): Use <stdio.h> instead of vsnprintf.h.
52664         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52665         HAVE_DECL_VSNPRINTF.
52666         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
52667
52668         * modules/snprintf (Files): Remove lib/snprintf.h.
52669         (Depends-on): Add stdio.
52670         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52671         (Include): Use <stdio.h> instead of snprintf.h.
52672         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52673         HAVE_DECL_SNPRINTF.
52674         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
52675         * lib/getaddrinfo.c: Likewise.
52676
52677         * modules/stdio: New file.
52678         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
52679         * lib/snprintf.h: Remove file.
52680         * lib/vsnprintf.h: Remove file.
52681         * lib/.cppi-disable: Remove snprintf.h.
52682         * m4/stdio_h.m4: New file.
52683         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
52684
52685 2007-02-20  Jim Meyering  <jim@meyering.net>
52686
52687         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
52688         used by e.g., mingw.  From Bruno Haible.
52689
52690 2007-02-19  Bruno Haible  <bruno@clisp.org>
52691
52692         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
52693         warnings.
52694         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52695
52696 2007-02-19  Bruno Haible  <bruno@clisp.org>
52697
52698         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
52699         from mingw users.
52700
52701 2007-02-19  Bruno Haible  <bruno@clisp.org>
52702
52703         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
52704         warnings.
52705         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
52706
52707 2007-02-19  Jim Meyering  <jim@meyering.net>
52708
52709         Don't use FD after a successful "fdopendir (fd)".
52710         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
52711         Reset it by calling dirfd on the just-obtained DIR*.
52712
52713         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
52714         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
52715
52716 2007-02-18  Bruno Haible  <bruno@clisp.org>
52717
52718         * lib/readlink.c: Include <unistd.h>.
52719         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
52720         HAVE_READLINK.
52721         * modules/readlink (Depends-on): Add unistd.
52722         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52723         (Include): Add <unistd.h>.
52724
52725         * lib/getlogin_r.h: Remove file.
52726         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
52727         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
52728         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
52729         HAVE_DECL_GETLOGIN_R.
52730         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
52731         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52732         (Include): Use <unistd.h> instead of getlogin_r.h.
52733
52734         * lib/getcwd.h: Remove file.
52735         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
52736         * lib/xgetcwd.c: Likewise.
52737         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
52738         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
52739         * modules/getcwd (Files): Remove lib/getcwd.h.
52740         (Depends-on): Add unistd.
52741         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52742         (Include): Use <unistd.h> instad of getcwd.h.
52743
52744         * lib/ftruncate.c: Include <unistd.h> first.
52745         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
52746         Set HAVE_FTRUNCATE.
52747         * modules/ftruncate (Depends-on): Add unistd.
52748         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52749
52750         * lib/fchdir.c: Include <unistd.h> first.
52751         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
52752         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
52753         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
52754         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52755         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
52756
52757         * lib/dup2.c: Include <unistd.h> first.
52758         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
52759         HAVE_DUP2.
52760         * modules/dup2 (Depends-on): Add unistd.
52761         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52762
52763         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
52764         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
52765         REPLACE_CHOWN. Don't define chown as a macro here.
52766         * modules/chown (Depends-on): Add unistd.
52767         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52768
52769         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
52770         Add definition for GL_LINK_WARNING.
52771         (chown, dup2): New declarations.
52772         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
52773         link warning.
52774         (ftruncate): New declaration.
52775         (getcwd): New declaration, taken from old getcwd.h.
52776         (getlogin_r): New declaration, taken from old getlogin_r.h.
52777         (readlink): New declaration.
52778         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
52779         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
52780         (gl_PREREQ_UNISTD): Remove macro.
52781         (gl_UNISTD_MODULE_INDICATOR): New macro.
52782         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
52783         many new variables. Don't set UNISTD_H.
52784         * modules/unistd (Description): Change.
52785         (Depends-on): Add link-warning.
52786         (configure.ac): Update.
52787         (Makefile.am): Create unistd.h always. Substitute many new variables
52788         into it.
52789
52790 2007-02-18  Bruno Haible  <bruno@clisp.org>
52791
52792         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
52793         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
52794         HAVE_GETSUBOPT.
52795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
52796         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
52797         * lib/getsubopt.h: Remove file.
52798         * modules/getsubopt (Files): Remove lib/getsubopt.h.
52799         (Depends-on): Add stdlib.
52800         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52801         (Includes): Use <stdlib.h> instead of getsubopt.h.
52802         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
52803         Set HAVE_GETSUBOPT.
52804         * lib/getsubopt.c: Don't include getsubopt.h.
52805
52806 2007-02-18  Bruno Haible  <bruno@clisp.org>
52807
52808         * modules/fchdir (Depends-on): Add dup2.
52809
52810 2007-02-18  Bruno Haible  <bruno@clisp.org>
52811
52812         * lib/stdlib_.h: Handle glibc's special invocation convention
52813         specially.
52814
52815 2007-02-18  Bruno Haible  <bruno@clisp.org>
52816
52817         * modules/stdlib-tests: New file.
52818         * tests/test-stdlib.c: New file.
52819
52820         * modules/mkstemp (Files): Remove lib/mkstemp.h.
52821         (Depends-on): Add stdlib.
52822         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52823         (Includes): Use <stdlib.h> instead of mkstemp.h.
52824         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52825         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
52826         * lib/mkstemp.c: Don't include mkstemp.h.
52827         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
52828         * lib/stdlib--.h: Don't include mkstemp.h.
52829
52830         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
52831         (Depends-on): Add stdlib.
52832         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52833         (Includes): Use <stdlib.h> instead of mkdtemp.h.
52834         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52835         HAVE_MKDTEMP.
52836         * lib/mkdtemp.c: Don't include mkdtemp.h.
52837         * lib/clean-temp.c: Don't include mkdtemp.h.
52838
52839         * modules/exit (Files): Remove lib/exit.h.
52840         (Depends-on): Add stdlib.
52841         (Makefile.am): Remove lib_SOURCES.
52842         (Include): Use <stdlib.h> instead of exit.h.
52843         * lib/argmatch.c: Don't include exit.h.
52844         * lib/execute.c: Likewise.
52845         * lib/pagealign_alloc.c: Likewise.
52846         * lib/pipe.c: Likewise.
52847         * lib/wait-process.c: Likewise.
52848         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
52849         * lib/exitfail.c: Likewise.
52850         * lib/savewd.c: Likewise.
52851         * lib/xsetenv.c: Likewise.
52852
52853         * modules/stdlib: New file.
52854         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
52855         and extra comments about mkstemp().
52856         * lib/exit.h: Remove file.
52857         * lib/mkdtemp.h: Remove file.
52858         * lib/mkstemp.h: Remove file.
52859         * m4/stdlib_h.m4: New file.
52860         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
52861
52862 2007-02-18  Bruno Haible  <bruno@clisp.org>
52863
52864         * modules/math-tests: New file.
52865         * tests/test-math.c: New file.
52866
52867         * modules/math: New file.
52868         * modules/mathl (Files): Remove lib/mathl.h.
52869         (Depends-on): Add math.
52870         (Makefile.am): Don't mention mathl.h.
52871         (Include): Use <math.h> instead of mathl.h.
52872         * lib/math_.h: New file.
52873         * lib/mathl.h: Remove file.
52874         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
52875         mathl.h.
52876         * lib/asinl.c: Likewise.
52877         * lib/atanl.c: Likewise.
52878         * lib/ceill.c: Likewise.
52879         * lib/cosl.c: Likewise.
52880         * lib/expl.c: Likewise.
52881         * lib/floorl.c: Likewise.
52882         * lib/frexpl.c: Likewise.
52883         * lib/ldexpl.c: Likewise.
52884         * lib/logl.c: Likewise.
52885         * lib/sincosl.c: Likewise.
52886         * lib/sinl.c: Likewise.
52887         * lib/sqrtl.c: Likewise.
52888         * lib/tanl.c: Likewise.
52889         * lib/trigl.c: Likewise.
52890         * m4/math_h.m4: New file.
52891         * MODULES.html.sh (Mathematics): Add math.
52892
52893 2007-02-17  Bruno Haible  <bruno@clisp.org>
52894
52895         * modules/wctype-tests: New file.
52896         * tests/test-wctype.c: New file.
52897
52898         * modules/wchar-tests: New file.
52899         * tests/test-wchar.c: New file.
52900
52901         * modules/unistd-tests: New file.
52902         * tests/test-unistd.c: New file.
52903
52904         * modules/time-tests: New file.
52905         * tests/test-time.c: New file.
52906
52907         * modules/sysexits-tests: New file.
52908         * tests/test-sysexits.c: New file.
52909
52910         * modules/sys_time-tests: New file.
52911         * tests/test-sys_time.c: New file.
52912
52913         * modules/sys_stat-tests: New file.
52914         * tests/test-sys_stat.c: New file.
52915
52916         * modules/sys_socket-tests: New file.
52917         * tests/test-sys_socket.c: New file.
52918
52919         * modules/sys_select-tests: New file.
52920         * tests/test-sys_select.c: New file.
52921
52922         * modules/string-tests: New file.
52923         * tests/test-string.c: New file.
52924
52925         * modules/stdbool-tests: New file.
52926         * tests/test-stdbool.c: New file.
52927
52928         * modules/netinet_in-tests: New file.
52929         * tests/test-netinet_in.c: New file.
52930
52931         * modules/inttypes-tests: New file.
52932         * tests/test-inttypes.c: New file.
52933
52934         * modules/fcntl-tests: New file.
52935         * tests/test-fcntl.c: New file.
52936
52937         * modules/byteswap-tests: New file.
52938         * tests/test-byteswap.c: New file.
52939
52940         * modules/arpa_inet-tests: New file.
52941         * tests/test-arpa_inet.c: New file.
52942
52943 2007-02-17  Bruno Haible  <bruno@clisp.org>
52944
52945         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
52946         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
52947         if the corresponding module is not enabled. Emit link warnings if
52948         the function is used nevertheless.
52949         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
52950         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
52951         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
52952         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
52953         * modules/inttypes (Depends-on): Add link-warning.
52954         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52955         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
52956         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
52957         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
52958         * modules/imaxdiv (configure.ac): Likewise.
52959         * modules/strtoimax (configure.ac): Likewise.
52960         * modules/strtoumax (configure.ac): Likewise.
52961
52962 2007-02-17  Bruno Haible  <bruno@clisp.org>
52963
52964         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
52965         gl_STRING_MODULE_INDICATOR_DEFAULTS.
52966         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
52967         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
52968
52969 2007-02-17  Bruno Haible  <bruno@clisp.org>
52970
52971         * modules/link-warning: New file.
52972         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
52973         * lib/string_.h (GL_LINK_WARNING): Remove definition.
52974         * modules/string (Depends-on): Add link-warning.
52975         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52976         string.h.
52977         * MODULES.html.sh (Support for building libraries and executables): Add
52978         link-warning.
52979
52980 2007-02-17  Bruno Haible  <bruno@clisp.org>
52981
52982         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
52983         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
52984         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
52985         long lines.
52986
52987 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
52988             Bruno Haible  <bruno@clisp.org>
52989
52990         * modules/tmpfile: New file.
52991         * lib/tmpfile.c: New file.
52992         * m4/tmpfile.m4: New file.
52993         * MODULES.html.sh (func_all_modules): New section "Input/output".
52994
52995 2007-02-15  Bruno Haible  <bruno@clisp.org>
52996
52997         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
52998         (supports_delete_on_close): New function.
52999         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
53000
53001 2007-02-14  Bruno Haible  <bruno@clisp.org>
53002
53003         * modules/mbspcasecmp-tests: New file.
53004         * tests/test-mbspcasecmp.sh: New file.
53005         * tests/test-mbspcasecmp.c: New file.
53006
53007         New module mbspcasecmp.
53008         * modules/mbspcasecmp: New file.
53009         * lib/mbspcasecmp.c: New file.
53010         * lib/string_.h (strncasecmp): Change warning message.
53011         (mbspcasecmp): New declaration.
53012         * m4/mbspcasecmp.m4: New file.
53013         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53014         GNULIB_MBSPCASECMP.
53015         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
53016         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
53017
53018 2007-02-14  Bruno Haible  <bruno@clisp.org>
53019
53020         * modules/mbsncasecmp-tests: New file.
53021         * tests/test-mbsncasecmp.sh: New file.
53022         * tests/test-mbsncasecmp.c: New file.
53023
53024         New module mbsncasecmp.
53025         * modules/mbsncasecmp: New file.
53026         * lib/mbsncasecmp.c: New file.
53027         * lib/string_.h (mbsncasecmp): New declaration.
53028         * m4/mbsncasecmp.m4: New file.
53029         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53030         GNULIB_MBSNCASECMP.
53031         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
53032         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
53033
53034 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
53035
53036         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
53037         Verify that it doesn't overlap with our flags.
53038         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
53039         do not have the desired effect in multibyte locales; instead, use
53040         mbscasecmp.
53041         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
53042         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
53043         we don't require GNU fnmatch ourselves (if our users require it, they
53044         should do so explicitly).
53045
53046         Fix regex code so it doesn't rely on strcasecmp.
53047         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
53048         Otherwise, include gnulib's langinfo.h.
53049         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
53050         undesirable behavior in non-C locales.  Instead, rely on localecharset.
53051         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
53052         * modules/regex (FILES): Remove m4/codeset.m4.
53053         (Depends-on): Add localcharset.  Remove strcase.
53054
53055 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53056
53057         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
53058         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
53059
53060 2007-02-13  Bruno Haible  <bruno@clisp.org>
53061
53062         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
53063         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53064
53065 2007-02-12  Bruno Haible  <bruno@clisp.org>
53066
53067         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53068         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
53069         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
53070         time warning rather than a link error.
53071
53072 2007-02-12  Bruno Haible  <bruno@clisp.org>
53073
53074         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
53075         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53076         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53077
53078 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53079
53080         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
53081         args, not 2.
53082
53083 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53084
53085         New module 'time', so that apps can include <time.h> as per
53086         POSIX and GNU instead of separate include files like time_r.h
53087         and timegm.h.  This implementation tries out a simpler approach
53088         for replacing decls in standard include files (as compared to
53089         the string module), somewhat as an experiment.
53090
53091         * config/srclist.txt: Comment out mktime.c for now.
53092         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
53093         since it doesn't apply any more.  Use generic wording instead.
53094         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
53095         'time'.
53096         * lib/time_.h, m4/time_h.m4, modules/time: New files.
53097         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
53098         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
53099         Don't include <sys/types.h>; no longer needed since we assume C89.
53100         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
53101         * lib/strftime.c: Likewise.
53102         * lib/time_r.c: Likewise.
53103         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
53104         * lib/nanosleep.c: Include <time.h> first, to check interface.
53105         * lib/strptime.c: Likewise.
53106         * lib/time_r.c: Likewise.
53107         * lib/timegm.c: Likewise.
53108         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
53109         needed.
53110         * lib/timegm.c: Don't include timegm.h; no longer needed.
53111         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
53112         time.h now handles any problems in that area.
53113         (struct timespec, nanosleep): Remove; time.h now arranges for these.
53114         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
53115         that time.h defines struct timespec.
53116         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
53117         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
53118         handles that.
53119         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
53120         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
53121         needed.  Set REPLACE_LOCALTIME.
53122         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
53123         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
53124         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
53125         nanosleep; time_h.m4 now does that.  Don't require
53126         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
53127         module handles this now.
53128         * modules/getdate (Depends-on): Remove timespec.  Add time.
53129         * modules/nanosleep (Depends-on): Likewise.
53130         * modules/stat-time (Depends-on): Likewise.
53131         * modules/nanosleep (Include): Include time.h, not timespec.h.
53132         * modules/strptime (Files): Remove lib/strptime.h.
53133         (Depends-on): Add extensions, time.
53134         (Include): Include time.h, not strptime.h.
53135         * modules/time_r (Files): Remove lib/time_r.h.
53136         (Depends-on): Add time.
53137         (Include): Include time.h, not time_r.h.
53138         * modules/timegm: Likewise.
53139         * modules/timespec (Description): Now does timespec-related decls
53140         of our own, instead of struct timespec itself.
53141         (Depends-on): Add time; remove extensions.
53142         (Maintainer): Add self.
53143         * modules/utimecmp (Depends-on): Add time; remove timespec.
53144         * modules/utimens (Depends-on): Likewise.
53145         * modules/xnanosleep (Depends-on): Likewise.
53146
53147 2007-02-11  Bruno Haible  <bruno@clisp.org>
53148
53149         * lib/c-strstr.c: Include allocsa.h.
53150         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53151         * lib/c-strcasestr.c: Include allocsa.h.
53152         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53153         * lib/strcasestr.c: Include allocsa.h.
53154         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53155         * lib/mbsstr.c: Include allocsa.h.
53156         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53157         allocsa/freesa instead of malloc/free.
53158         * lib/mbscasestr.c: Include allocsa.h.
53159         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53160         allocsa/freesa instead of malloc/free.
53161         * modules/c-strstr (Depends-on): Add allocsa.
53162         * modules/c-strcasestr (Depends-on): Likewise.
53163         * modules/strcasestr (Depends-on): Likewise.
53164         * modules/mbsstr (Depends-on): Likewise.
53165         * modules/mbscasestr (Depends-on): Likewise.
53166
53167 2007-02-11  Bruno Haible  <bruno@clisp.org>
53168
53169         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
53170
53171         * modules/mbsspn-tests: New file.
53172         * tests/test-mbsspn.sh: New file.
53173         * tests/test-mbsspn.c: New file.
53174
53175 2007-02-11  Bruno Haible  <bruno@clisp.org>
53176
53177         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
53178
53179         * modules/mbspbrk-tests: New file.
53180         * tests/test-mbspbrk.sh: New file.
53181         * tests/test-mbspbrk.c: New file.
53182
53183 2007-02-11  Bruno Haible  <bruno@clisp.org>
53184
53185         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
53186         unneeded cast.
53187
53188         * modules/mbscspn-tests: New file.
53189         * tests/test-mbscspn.sh: New file.
53190         * tests/test-mbscspn.c: New file.
53191
53192 2007-02-11  Bruno Haible  <bruno@clisp.org>
53193
53194         * modules/mbscasecmp-tests: New file.
53195         * tests/test-mbscasecmp.sh: New file.
53196         * tests/test-mbscasecmp.c: New file.
53197
53198 2007-02-11  Bruno Haible  <bruno@clisp.org>
53199
53200         Ensure O(n) worst-case complexity of mbscasestr.
53201         * lib/mbscasestr.c: Include stdbool.h.
53202         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53203         functions.
53204         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
53205         the bookkeeping indicates that it's worth it.
53206         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
53207
53208         * modules/mbscasestr-tests: New file.
53209         * tests/test-mbscasestr1.c: New file.
53210         * tests/test-mbscasestr2.sh: New file.
53211         * tests/test-mbscasestr2.c: New file.
53212         * tests/test-mbscasestr3.sh: New file.
53213         * tests/test-mbscasestr3.c: New file.
53214         * tests/test-mbscasestr4.sh: New file.
53215         * tests/test-mbscasestr4.c: New file.
53216         * m4/locale-tr.m4: New file.
53217
53218 2007-02-11  Bruno Haible  <bruno@clisp.org>
53219
53220         Ensure O(n) worst-case complexity of mbsstr.
53221         * lib/mbsstr.c: Include stdbool.h.
53222         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53223         functions.
53224         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
53225         bookkeeping indicates that it's worth it.
53226         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
53227
53228         * modules/mbsstr-tests: New file.
53229         * tests/test-mbsstr1.c: New file.
53230         * tests/test-mbsstr2.sh: New file.
53231         * tests/test-mbsstr2.c: New file.
53232         * tests/test-mbsstr3.sh: New file.
53233         * tests/test-mbsstr3.c: New file.
53234         * m4/locale-fr.m4: New file.
53235
53236 2007-02-11  Bruno Haible  <bruno@clisp.org>
53237
53238         * lib/mbsrchr.c (mbsrchr): Fix bug.
53239
53240         * modules/mbsrchr-tests: New file.
53241         * tests/test-mbsrchr.sh: New file.
53242         * tests/test-mbsrchr.c: New file.
53243
53244 2007-02-11  Bruno Haible  <bruno@clisp.org>
53245
53246         * lib/mbschr.c (mbschr): Fix bug.
53247
53248         * modules/mbschr-tests: New file.
53249         * tests/test-mbschr.sh: New file.
53250         * tests/test-mbschr.c: New file.
53251         * m4/locale-zh.m4: New file.
53252
53253 2007-02-11  Bruno Haible  <bruno@clisp.org>
53254
53255         Support for copying multibyte string iterators.
53256         * lib/mbiter.h: Include <string.h>.
53257         (mbiter_multi_copy): New function.
53258         (mbi_copy): New macro.
53259         * lib/mbuiter.h: Include <string.h>.
53260         (mbuiter_multi_copy): New function.
53261         (mbui_copy): New macro.
53262
53263 2007-02-11  Bruno Haible  <bruno@clisp.org>
53264
53265         New module mbslen.
53266         * modules/mbslen: New file.
53267         * lib/mbslen.c: New file.
53268         * lib/string_.h (mbslen): New declaration.
53269         * m4/mbslen.m4: New file.
53270         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53271         GNULIB_MBSLEN.
53272         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
53273         * MODULES.html.sh (Internationalization functions): Add mbslen.
53274
53275 2007-02-11  Bruno Haible  <bruno@clisp.org>
53276
53277         Ensure O(n) worst-case complexity of strcasestr substitute.
53278         * lib/strcasestr.c: Include stdbool.h.
53279         (knuth_morris_pratt): New function.
53280         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53281         bookkeeping indicates that it's worth it.
53282         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
53283
53284         * modules/strcasestr-tests: New file.
53285         * tests/test-strcasestr.c: New file.
53286
53287 2007-02-11  Bruno Haible  <bruno@clisp.org>
53288
53289         Ensure O(n) worst-case complexity of c_strcasestr.
53290         * lib/c-strcasestr.c: Include stdbool.h, string.h.
53291         (knuth_morris_pratt): New function.
53292         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
53293         the bookkeeping indicates that it's worth it.
53294         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
53295
53296         * modules/c-strcasestr-tests: New file.
53297         * tests/test-c-strcasestr.c: New file.
53298
53299 2007-02-11  Bruno Haible  <bruno@clisp.org>
53300
53301         Ensure O(n) worst-case complexity of c_strstr.
53302         * lib/c-strstr.c: Include stdbool.h, string.h.
53303         (knuth_morris_pratt): New function.
53304         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53305         bookkeeping indicates that it's worth it.
53306         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
53307
53308         * lib/c-strstr.c: Complete rewrite for maintainability.
53309
53310         * modules/c-strstr-tests: New file.
53311         * tests/test-c-strstr.c: New file.
53312
53313 2007-02-11  Bruno Haible  <bruno@clisp.org>
53314
53315         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
53316         5.2.1 and earlier, whereby \055 was treated just like the range
53317         delimiter '-'.
53318         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53319
53320 2007-02-08  Bruno Haible  <bruno@clisp.org>
53321
53322         * modules/regex (Depends-on): Add stdbool.
53323         Reported by Dalibor Topic <robilad@kaffe.org>.
53324
53325 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
53326
53327         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
53328         Prefer returning from main to exiting from it.
53329         Remove unnecessary parens after sizeof.
53330
53331 2007-02-05  Bruno Haible  <bruno@clisp.org>
53332
53333         New module mbssep.
53334         * modules/mbssep: New file.
53335         * lib/mbssep.c: New file.
53336         * lib/string_.h (strsep): Add a conditional link warning.
53337         (mbssep): New declaration.
53338         * m4/mbssep.m4: New file.
53339         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53340         GNULIB_MBSSEP.
53341         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
53342         * MODULES.html.sh (Internationalization functions): Add mbssep.
53343
53344 2007-02-05  Bruno Haible  <bruno@clisp.org>
53345
53346         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
53347         Optimize search in case of 1 delimiter.
53348
53349 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53350
53351         * lib/acl.h: Include sys/types.h before sys/acl.h.
53352
53353 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53354
53355         Merge upstream fix for glibc bugzilla #3957:
53356
53357         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
53358
53359         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
53360         bit for RE_HAT_LISTS_NOT_NEWLINE.
53361         (build_charclass_op): Remove bogus comment.
53362
53363 2007-02-05  Simon Josefsson  <simon@josefsson.org>
53364
53365         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
53366
53367 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53368
53369         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
53370         * lib/memmem.c [!defined _LIBC]: Include config.h.
53371
53372 2007-02-04  Bruno Haible  <bruno@clisp.org>
53373
53374         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
53375         warning message.
53376
53377 2007-02-04  Bruno Haible  <bruno@clisp.org>
53378
53379         New module mbstok_r.
53380         * modules/mbstok_r: New file.
53381         * lib/mbstok_r.c: New file.
53382         * lib/string_.h (strtok_r): Change argument names to match the
53383         comments. Add a conditional link warning.
53384         (mbstok_r): New declaration.
53385         * m4/mbstok_r.m4: New file.
53386         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53387         GNULIB_MBSTOK_R.
53388         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
53389         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
53390
53391 2007-02-04  Bruno Haible  <bruno@clisp.org>
53392
53393         New module mbsspn.
53394         * modules/mbsspn: New file.
53395         * lib/mbsspn.c: New file.
53396         * lib/string_.h (strspn): Add a conditional link warning.
53397         (mbsspn): New declaration.
53398         * m4/mbsspn.m4: New file.
53399         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53400         GNULIB_MBSSPN.
53401         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
53402         * MODULES.html.sh (Internationalization functions): Add mbsspn.
53403
53404 2007-02-04  Bruno Haible  <bruno@clisp.org>
53405
53406         New module mbspbrk.
53407         * modules/mbspbrk: New file.
53408         * lib/mbspbrk.c: New file.
53409         * lib/string_.h (strpbrk): Add a conditional link warning.
53410         (mbspbrk): New declaration.
53411         * m4/mbspbrk.m4: New file.
53412         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53413         GNULIB_MBSPBRK.
53414         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
53415         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
53416
53417 2007-02-04  Bruno Haible  <bruno@clisp.org>
53418
53419         New module mbscspn.
53420         * modules/mbscspn: New file.
53421         * lib/mbscspn.c: New file.
53422         * lib/string_.h (strcspn): Add a conditional link warning.
53423         (mbscspn): New declaration.
53424         * m4/mbscspn.m4: New file.
53425         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53426         GNULIB_MBSCSPN.
53427         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
53428         * MODULES.html.sh (Internationalization functions): Add mbscspn.
53429
53430 2007-02-04  Bruno Haible  <bruno@clisp.org>
53431
53432         New module mbscasestr, reduced goal of strcasestr.
53433         * modules/mbscasestr: New file.
53434         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
53435         (mbscasestr): Renamed from strcasestr.
53436         * lib/strcasestr.c: Don't include mbuiter.h.
53437         (strcasestr): Remove support for multibyte locales.
53438         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
53439         Change the conditional link warning.
53440         (mbscasestr): New declaration.
53441         * m4/mbscasestr.m4: New file.
53442         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
53443         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
53444         REPLACE_STRCASESTR.
53445         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
53446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53447         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53448         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
53449         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
53450         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53451         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
53452         (Depends-on): Remove mbuiter.
53453         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
53454
53455 2007-02-04  Bruno Haible  <bruno@clisp.org>
53456
53457         Simplify handling of strncasecmp.
53458         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
53459         the conditional link warning.
53460         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53461         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
53462         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
53463         * modules/strcase (configure.ac): Don't invoke
53464         gl_STRING_MODULE_INDICATOR.
53465         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
53466
53467 2007-02-04  Bruno Haible  <bruno@clisp.org>
53468
53469         New module mbscasecmp, reduced goal of strcasecmp.
53470         * modules/mbscasecmp: New file.
53471         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
53472         (mbscasecmp): Renamed from strcasecmp.
53473         * lib/strcasecmp.c: Don't include mbuiter.h.
53474         (strcasecmp): Remove support for multibyte locales.
53475         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
53476         Change the conditional link warning.
53477         (mbscasecmp): New declaration.
53478         * m4/mbscasecmp.m4: New file.
53479         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
53480         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
53481         REPLACE_STRCASECMP.
53482         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
53483         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53484         GNULIB_MBSCASECMP.
53485         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
53486         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
53487         * modules/strcase (Files): Remove m4/mbrtowc.m4.
53488         (Depends-on): Remove mbuiter.
53489         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
53490
53491 2007-02-04  Bruno Haible  <bruno@clisp.org>
53492
53493         New module mbsstr. Remove module strstr.
53494         * modules/mbsstr: New file.
53495         * modules/strstr: Remove file.
53496         * lib/mbsstr.c: Renamed from lib/strstr.c.
53497         (mbsstr): Renamed from strstr.
53498         * lib/string_.h (strstr): Remove declaration. Change the conditional
53499         link warning.
53500         (mbsstr): New declaration.
53501         * m4/mbsstr.m4: New file.
53502         * m4/strstr.m4: Remove file.
53503         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53504         REPLACE_STRSTR.
53505         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
53506         Don't initialize GNULIB_STRSTR.
53507         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
53508         substitute GNULIB_STRSTR and REPLACE_STRSTR.
53509         * MODULES.html.sh (Internationalization functions): Add mbsstr.
53510         (Support for systems lacking ANSI C 89): Remove strstr.
53511
53512 2007-02-04  Bruno Haible  <bruno@clisp.org>
53513
53514         New module mbsrchr.
53515         * modules/mbsrchr: New file.
53516         * lib/mbsrchr.c: New file.
53517         * lib/string_.h (strrchr): Add a conditional link warning.
53518         (mbsrchr): New declaration.
53519         * m4/mbsrchr.m4: New file.
53520         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53521         GNULIB_MBSRCHR.
53522         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
53523         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
53524
53525 2007-02-04  Bruno Haible  <bruno@clisp.org>
53526
53527         New module mbschr.
53528         * modules/mbschr: New file.
53529         * lib/mbschr.c: New file.
53530         * lib/string_.h (strchr): Add a conditional link warning.
53531         (mbschr): New declaration.
53532         * m4/mbschr.m4: New file.
53533         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53534         GNULIB_MBSCHR.
53535         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
53536         * MODULES.html.sh (Internationalization functions): Add mbschr.
53537
53538 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53539
53540         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
53541
53542         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
53543
53544 2007-02-04  Bruno Haible  <bruno@clisp.org>
53545
53546         New module description section 'configure.ac-early'.
53547         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
53548         (func_get_autoconf_early_snippet): New function.
53549         (func_import, func_create_testdir): Use it. Remove special cases for
53550         modules 'extensions' and 'lock'.
53551         * modules/extensions (configure.ac-early): Require
53552         gl_USE_SYSTEM_EXTENSIONS.
53553         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
53554
53555 2007-02-04  Bruno Haible  <bruno@clisp.org>
53556
53557         Make use of gcj-4.3's -fsource and -ftarget option.
53558         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
53559         and if so try the options -fsource and -ftarget.
53560         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
53561         source_version, ftarget_option, target_version arguments.
53562         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
53563         (is_envjavac_oldgcj_14_14_usable): Renamed from
53564         is_envjavac_gcj_14_14_usable.
53565         (is_envjavac_oldgcj_14_13_usable): Renamed from
53566         is_envjavac_gcj_14_13_usable.
53567         (is_gcj_present): Update.
53568         (is_gcj_43, is_gcj43_usable): New functions.
53569         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
53570         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
53571         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
53572         try the options -fsource and -ftarget.
53573
53574 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53575
53576         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
53577         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
53578         larger value.
53579
53580 2007-02-03  Jim Meyering  <jim@meyering.net>
53581
53582         Give tools a better chance to allocate space for very large buffers.
53583         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
53584
53585         Make pwd and readlink work also when run with an unreadable parent dir
53586         on systems with openat support.
53587         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
53588         provided getcwd function, even when we have openat support.
53589         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
53590
53591 2007-02-02  Bruno Haible  <bruno@clisp.org>
53592
53593         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53594         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
53595         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
53596         portability problems if one of these functions is only used on specific
53597         platforms.
53598         Reported by Paul Eggert.
53599
53600 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
53601
53602         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
53603         is causing more trouble than it's curing.
53604         * lib/regex_internal.h (__mempcpy): Remove.
53605         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
53606         (and make the code a tad smaller to boot).
53607         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
53608
53609 2007-02-02  Jim Meyering  <jim@meyering.net>
53610
53611         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
53612         section, not in the Makefile.am: one.
53613
53614 2007-02-02  Eric Blake  <ebb9@byu.net>
53615
53616         * lib/strchrnul.c: Always include config.h first.
53617
53618         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
53619         gnulib strstr is not necessary here.
53620
53621 2007-02-02  Simon Josefsson  <simon@josefsson.org>
53622
53623         * m4/socklen.m4: Fix typo.
53624
53625 2007-02-02  Eric Blake  <ebb9@byu.net>
53626
53627         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
53628         * modules/netinet_in (Makefile.am): Likewise.
53629
53630 2007-02-01  Bruno Haible  <bruno@clisp.org>
53631
53632         * lib/string_.h (GL_LINK_WARNING): New macro.
53633         (strcasecmp, strstr, strcasestr): If provided by the system,
53634         conditionally define as a macro that leads to a warning instead of to
53635         an error.
53636         (strncasecmp): Conditionally define as a macro that leads to a warning.
53637
53638 2007-02-01  Karl Berry  <karl@gnu.org>
53639
53640         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
53641
53642 2007-02-01  Bruno Haible  <bruno@clisp.org>
53643
53644         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
53645         renamings.
53646
53647 2007-02-01  Eric Blake  <ebb9@byu.net>
53648
53649         * modules/regex (Depends-on): Revert dependence on mempcpy.
53650         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
53651         module's definition of mempcpy.
53652         Reported by Paul Eggert.
53653
53654 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53655
53656         * lib/string_.h: If the gnulib module XYZ is not present, undefine
53657         the symbol XYZ before redefining it.  This fixes a problem with
53658         programs that don't use XYZ, when compiled on systems that define
53659         XYZ to something else.
53660
53661 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
53662
53663         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
53664         occurs when "mkdir -m foo" creates a setgid directory that is (1)
53665         writeable to group or other and (2) is intended to have a special
53666         mode bit that is set or cleared.  In such a case, the directory
53667         should be neither group- nor other-writeable until the special
53668         mode bits are right.
53669
53670 2007-01-31  Eric Blake  <ebb9@byu.net>
53671
53672         * modules/mountlist (Depends-on): Add strstr.
53673
53674         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
53675         bug.
53676         * modules/string (Makefile.am): Remove redundant replacement.
53677         * modules/regex (Depends-on): Add mempcpy.
53678
53679 2007-01-31  Bruno Haible  <bruno@clisp.org>
53680
53681         New module description field 'Link'.
53682         * gnulib-tool (func_usage): Document --extract-link-directive.
53683         (sed_extract_prog): Recognize 'Link' directive.
53684         (func_get_link_directive): New function.
53685         (func_import): Show summary of link directives.
53686         Handle --extract-link-directive option.
53687         * modules/acl (Link): New section.
53688         * modules/clock-time (Link): New section.
53689         * modules/euidaccess (Link): New section.
53690         * modules/gettext (Link): New section.
53691         * modules/iconv (Link): New section.
53692         * modules/lock (Link): New section.
53693         * modules/nanosleep (Link): New section.
53694         * modules/readline (Link): New section.
53695
53696 2007-01-27  Bruno Haible  <bruno@clisp.org>
53697
53698         Enforce the use of gnulib modules for unportable <string.h> functions.
53699         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
53700         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
53701         (gl_HEADER_STRING_H_BODY): Require it.
53702         * lib/string_.h: If the gnulib module XYZ is not present, redefine
53703         the symbol XYZ to one that gives a link error.
53704         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
53705         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
53706         * modules/mempcpy (configure.ac): Likewise.
53707         * modules/memrchr (configure.ac): Likewise.
53708         * modules/stpcpy (configure.ac): Likewise.
53709         * modules/stpncpy (configure.ac): Likewise.
53710         * modules/strcase (configure.ac): Likewise.
53711         * modules/strcasestr (configure.ac): Likewise.
53712         * modules/strchrnul (configure.ac): Likewise.
53713         * modules/strdup (configure.ac): Likewise.
53714         * modules/strndup (configure.ac): Likewise.
53715         * modules/strnlen (configure.ac): Likewise.
53716         * modules/strpbrk (configure.ac): Likewise.
53717         * modules/strsep (configure.ac): Likewise.
53718         * modules/strstr (configure.ac): Likewise.
53719         * modules/strtok_r (configure.ac): Likewise.
53720
53721 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
53722
53723         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
53724
53725 2007-01-30  Jim Meyering  <jim@meyering.net>
53726
53727         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
53728
53729 2007-01-29  Bruno Haible  <bruno@clisp.org>
53730
53731         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
53732         * lib/execute.c: Likewise.
53733         * lib/pipe.c: Likewise.
53734         * lib/printf-args.h: Likewise.
53735         * lib/printf-args.c: Likewise.
53736         * lib/printf-parse.c: Likewise.
53737         * lib/vasnprintf.c: Likewise.
53738
53739 2007-01-29  Eric Blake  <ebb9@byu.net>
53740
53741         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
53742         declaration.
53743
53744 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
53745
53746         * lib/strptime.h (strptime): Use 'restrict' for args where
53747         POSIX requires this.
53748         * lib/strptime.c (strptime): Likewise.
53749         Change license notice from LGPL to GPL, since gnulib-tool will
53750         change this as needed.
53751         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
53752         defined.
53753         Include "strptime.h" first, to check interface.
53754         Do not #undef _LIBC and _NL_CURRENT.
53755         Do not include <stdlib.h>; no longer needed.
53756         Include "time_r.h" and declare ptime_locale_status
53757         only if _LIBC is not defined.
53758         (__P): Remove unused macro.
53759         (match_string): Bring back glibc version, but use it only if _LIBC
53760         is defined.
53761         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
53762         Remove unnecessary assertion and abort() call.
53763         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
53764         * m4/strptime.m4: Fix serial number comment.
53765         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
53766         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
53767         (Depends-on): Add time_r.
53768
53769 2007-01-29  Bruno Haible  <bruno@clisp.org>
53770
53771         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53772         strptime.
53773         * modules/strptime (Depends-on): Add stdbool.
53774         * lib/strptime.h: Include <time.h> always. Add comments.
53775
53776 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53777
53778         * modules/strptime: New file.
53779         * lib/strptime.h: New file.
53780         * lib/strptime.c: New file.
53781         * m4/strptime.m4: New file.
53782
53783 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53784
53785         * MODULES.html.sh: New module mpsort.
53786         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
53787
53788         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
53789         a circularity problem with HP-UX ia64 reported by Bob Proulx in
53790         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
53791         All uses changed.
53792         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
53793         All uses changed.
53794         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
53795         to _Restrict_.
53796         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
53797         the parameter matches the prototype.
53798
53799 2007-01-28  Jim Meyering  <jim@meyering.net>
53800
53801         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
53802         sys/time.h here, reverting that part of the previous patch:
53803         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
53804
53805 2007-01-28  Bruno Haible  <bruno@clisp.org>
53806
53807         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
53808         value of $(SYS_TIME_H).
53809         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
53810         remove it conditionally, too. [added by Jim Meyering]
53811         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
53812         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53813         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
53814         GETTIMEOFDAY_REPLACEMENT to 1.
53815
53816 2007-01-28  Bruno Haible  <bruno@clisp.org>
53817
53818         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
53819         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
53820         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
53821         Set UNISTD_H instead of UNISTD_H2.
53822         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
53823
53824 2007-01-28  Bruno Haible  <bruno@clisp.org>
53825
53826         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
53827         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
53828
53829 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53830
53831         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
53832         (func_create_testdir): Ensure C locale for `grep' and `tr'
53833         character ranges.
53834         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
53835         ACLOCAL_AMFLAGS parsing state machine.
53836
53837 2007-01-27  Bruno Haible  <bruno@clisp.org>
53838
53839         * modules/unistr/base: Update.
53840
53841 2007-01-27  Bruno Haible  <bruno@clisp.org>
53842
53843         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
53844         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
53845         * modules/unistr/u32-mbtouc-unsafe: Renamed from
53846         modules/unistr/u32-mbtouc.
53847         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
53848         * lib/unistr.h: Update.
53849         * lib/linebreak.c: Update.
53850         * modules/unistr/u32-mbtouc: Renamed from
53851         modules/unistr/u32-mbtouc-safe.
53852         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
53853         * lib/unistr.h: Update.
53854         * lib/unistr/u32-to-u8.c: Update.
53855         * lib/unistr/u32-to-u16.c: Update.
53856
53857 2007-01-27  Bruno Haible  <bruno@clisp.org>
53858
53859         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
53860         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
53861         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
53862         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
53863         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
53864         * modules/unistr/u16-mbtouc-unsafe: Renamed from
53865         modules/unistr/u16-mbtouc.
53866         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
53867         * lib/unistr.h: Update.
53868         * lib/linebreak.c: Update.
53869         * modules/linebreak: Update.
53870         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
53871         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
53872         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
53873         * modules/unistr/u16-mbtouc: Renamed from
53874         modules/unistr/u16-mbtouc-safe.
53875         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
53876         * lib/unistr.h: Update.
53877         * lib/unistr/u16-to-u8.c: Update.
53878         * modules/unistr/u16-to-u8: Update.
53879         * lib/unistr/u16-to-u32.c: Update.
53880         * modules/unistr/u16-to-u32: Update.
53881
53882 2007-01-27  Bruno Haible  <bruno@clisp.org>
53883
53884         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
53885         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
53886         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
53887         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
53888         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
53889         * modules/unistr/u8-mbtouc-unsafe: Renamed from
53890         modules/unistr/u8-mbtouc.
53891         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
53892         * lib/unistr.h: Update.
53893         * lib/striconveh.c: Update.
53894         * modules/striconveh: Update.
53895         * lib/linebreak.c: Update.
53896         * modules/linebreak: Update.
53897         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
53898         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
53899         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
53900         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
53901         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
53902         * lib/unistr.h: Update.
53903         * lib/striconveh.c: Update.
53904         * modules/striconveh: Update.
53905         * lib/unistr/u8-to-u16.c: Update.
53906         * modules/unistr/u8-to-u16: Update.
53907         * lib/unistr/u8-to-u32.c: Update.
53908         * modules/unistr/u8-to-u32: Update.
53909
53910 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53911
53912         Sync from Libtool.
53913         * lib/argz.c: Do not include strings.h nor memory.h, include
53914         string.h unconditionally.  Patch by Simon Josefsson.
53915
53916 2007-01-27  Bruno Haible  <bruno@clisp.org>
53917
53918         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
53919         from gl_HEADER_STRING_H_BODY.
53920         (gl_HEADER_STRING_H_BODY): Require it.
53921         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
53922         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53923         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53924         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53925         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53926         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
53927         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53928         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53929         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
53930         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53931         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53932         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
53933         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53934         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53935         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53936
53937 2007-01-27  Bruno Haible  <bruno@clisp.org>
53938
53939         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
53940         check_PROGRAMS into noinst_PROGRAMS.
53941         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
53942         check_PROGRAMS in this case.
53943         (func_import): Set for_test to false.
53944         (func_create_testdir): Set for_test to true.
53945
53946 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53947             Bruno Haible  <bruno@clisp.org>
53948
53949         * modules/strcasestr (Files): Remove lib/strcasestr.h.
53950         (Depends-on): Add string.
53951         (Includes): Use <string.h> instead of strcasestr.h.
53952         * modules/string (Makefile.am): Also substitute the value of
53953         REPLACE_STRCASESTR.
53954         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
53955         assume strcasestr is declared in <string.h> not <strings.h>. Also
53956         set REPLACE_STRCASESTR.
53957         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
53958         REPLACE_STRCASESTR.
53959         * lib/strcasestr.h: Remove file.
53960         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
53961         * lib/string_.h (strcasestr): New declaration.
53962
53963 2007-01-27  Bruno Haible  <bruno@clisp.org>
53964
53965         * lib/string_.h: Use 'extern'.
53966
53967 2007-01-27  Jim Meyering  <jim@meyering.net>
53968
53969         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
53970         of set-but-not-used local, "q".
53971
53972         * lib/mempcpy.c: Include <config.h> before <string.h>.
53973         This fixes a compilation error on HP-UX, due to the system's
53974         "restrict"-using mempcpy prototype.
53975
53976 2007-01-26  Bruno Haible  <bruno@clisp.org>
53977
53978         Small optimization.
53979         * lib/javacomp.c: Include c-strstr.h.
53980          (is_envjavac_gcj): Use c_strstr instead of strstr.
53981         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
53982
53983 2007-01-26  Bruno Haible  <bruno@clisp.org>
53984
53985         * MODULES.html.sh (Unicode string functions): Add the new modules.
53986
53987         * modules/uniconv/u32-strconv-to-locale: New file.
53988         * lib/uniconv/u32-strconv-to-locale.c: New file.
53989
53990         * modules/uniconv/u16-strconv-to-locale: New file.
53991         * lib/uniconv/u16-strconv-to-locale.c: New file.
53992
53993         * modules/uniconv/u8-strconv-to-locale: New file.
53994         * lib/uniconv/u8-strconv-to-locale.c: New file.
53995
53996         * modules/uniconv/u32-strconv-from-locale: New file.
53997         * lib/uniconv/u32-strconv-from-locale.c: New file.
53998
53999         * modules/uniconv/u16-strconv-from-locale: New file.
54000         * lib/uniconv/u16-strconv-from-locale.c: New file.
54001
54002         * modules/uniconv/u8-strconv-from-locale: New file.
54003         * lib/uniconv/u8-strconv-from-locale.c: New file.
54004
54005         * modules/uniconv/u32-strconv-to-enc: New file.
54006         * lib/uniconv/u32-strconv-to-enc.c: New file.
54007         * modules/uniconv/u32-strconv-to-enc-tests: New file.
54008         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
54009
54010         * modules/uniconv/u16-strconv-to-enc: New file.
54011         * lib/uniconv/u16-strconv-to-enc.c: New file.
54012         * lib/uniconv/u-strconv-to-enc.h: New file.
54013         * modules/uniconv/u16-strconv-to-enc-tests: New file.
54014         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
54015
54016         * modules/uniconv/u8-strconv-to-enc: New file.
54017         * lib/uniconv/u8-strconv-to-enc.c: New file.
54018         * modules/uniconv/u8-strconv-to-enc-tests: New file.
54019         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
54020
54021         * modules/uniconv/u32-strconv-from-enc: New file.
54022         * lib/uniconv/u32-strconv-from-enc.c: New file.
54023         * modules/uniconv/u32-strconv-from-enc-tests: New file.
54024         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
54025
54026         * modules/uniconv/u16-strconv-from-enc: New file.
54027         * lib/uniconv/u16-strconv-from-enc.c: New file.
54028         * modules/uniconv/u16-strconv-from-enc-tests: New file.
54029         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
54030
54031         * modules/uniconv/u8-strconv-from-enc: New file.
54032         * lib/uniconv/u8-strconv-from-enc.c: New file.
54033         * lib/uniconv/u-strconv-from-enc.h: New file.
54034         * modules/uniconv/u8-strconv-from-enc-tests: New file.
54035         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
54036
54037         * modules/uniconv/u32-conv-from-enc: New file.
54038         * lib/uniconv/u32-conv-from-enc.c: New file.
54039         * modules/uniconv/u32-conv-from-enc-tests: New file.
54040         * tests/uniconv/test-u32-conv-from-enc.c: New file.
54041
54042         * modules/uniconv/u16-conv-from-enc: New file.
54043         * lib/uniconv/u16-conv-from-enc.c: New file.
54044         * lib/uniconv/u-conv-from-enc.h: New file.
54045         * modules/uniconv/u16-conv-from-enc-tests: New file.
54046         * tests/uniconv/test-u16-conv-from-enc.c: New file.
54047
54048         * modules/uniconv/u8-conv-from-enc: New file.
54049         * lib/uniconv/u8-conv-from-enc.c: New file.
54050         * modules/uniconv/u8-conv-from-enc-tests: New file.
54051         * tests/uniconv/test-u8-conv-from-enc.c: New file.
54052
54053         * modules/uniconv/base: New file.
54054         * lib/uniconv.h: New file.
54055
54056 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54057
54058         * doc/gnulib-tool.texi (Initial import): Update to match current
54059         behavior with strdup module.
54060         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
54061         * lib/memmem.h: Remove; all uses removed.  This is now done
54062         by <string.h>.
54063         * lib/mempcpy.h: Likewise.
54064         * lib/memrchr.h: Likewise.
54065         * lib/stpcpy.h: Likewise.
54066         * lib/stpncpy.h: Likewise.
54067         * lib/strcase.h: Likewise.
54068         * lib/strchrnul.h: Likewise.
54069         * lib/strdup.h: Likewise.
54070         * lib/strndup.h: Likewise.
54071         * lib/strnlen.h: Likewise.
54072         * lib/strpbrk.h: Likewise.
54073         * lib/strsep.h: Likewise.
54074         * lib/strstr.h: Likewise.
54075         * lib/strtok_r.h: Likewise.
54076         * lib/string_.h: New file.
54077         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
54078         Rely on <string.h> instead.
54079         * lib/canon-host.c: Likewise.
54080         * lib/chdir-long.c: Likewise.
54081         * lib/concatpath.c: Likewise.
54082         * lib/exclude.c: Likewise.
54083         * lib/fchdir.c: Likewise.
54084         * lib/getaddrinfo.c: Likewise.
54085         * lib/getcwd.c: Likewise.
54086         * lib/getsubopt.c: Likewise.
54087         * lib/glob.c: Likewise.
54088         * lib/hard-locale.c: Likewise.
54089         * lib/iconvme.c: Likewise.
54090         * lib/javacomp.c: Likewise.
54091         * lib/mempcpy.c: Likewise.
54092         * lib/memrchr.c: Likewise.
54093         * lib/regex_internal.h: Likewise.
54094         * lib/stpncpy.c: Likewise.
54095         * lib/strcasecmp.c: Likewise.
54096         * lib/strchrnul.c: Likewise.
54097         * lib/strdup.c: Likewise.
54098         * lib/striconv.c: Likewise.
54099         * lib/striconveh.c: Likewise.
54100         * lib/striconveha.c: Likewise.
54101         * lib/strncasecmp.c: Likewise.
54102         * lib/strndup.c: Likewise.
54103         * lib/strnlen.c: Likewise.
54104         * lib/strsep.c: Likewise.
54105         * lib/strstr.c: Likewise.
54106         * lib/strtok_r.c: Likewise.
54107         * lib/userspec.c: Likewise.
54108         * lib/w32spawn.h: Likewise.
54109         * lib/xstrndup.c: Likewise.
54110         * lib/mountlist.c (strstr): Remove decl.
54111         * m4/string_h.m4: New file.
54112         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
54113         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
54114         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
54115         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
54116         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
54117         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
54118         Set REPLACE_STRCASECMP if necessary.
54119         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
54120         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
54121         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
54122         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
54123         HAVE_DECL_STRDUP if necessary.
54124         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
54125         since gl_FUNC_STRNDUP does that now.
54126         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
54127         Check for decl here...
54128         (gl_PREREQ_STRNLEN): ... not here.
54129         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
54130         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
54131         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
54132         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
54133         necessary.
54134         * modules/string: New file.
54135         * modules/memmem (Files): Remove special-purpose include file.
54136         (Depends-on): Add string.
54137         (Include): Include <string.h>, not the removed file.
54138         * modules/mempcpy: Likewise.
54139         * modules/memrchr: Likewise.
54140         * modules/stpcpy: Likewise.
54141         * modules/stpncpy: Likewise.
54142         * modules/strcase: Likewise.
54143         * modules/strchrnul: Likewise.
54144         * modules/strdup: Likewise.
54145         * modules/strndup: Likewise.
54146         * modules/strnlen: Likewise.
54147         * modules/strpbrk: Likewise.
54148         * modules/strsep: Likewise.
54149         * modules/strstr: Likewise.
54150         * modules/strtok_r: Likewise.
54151         * tests/test-dirname.c: Don't include "strdup.h", since
54152         <string.h> now suffices.
54153         * tests/test-memmem.c: Don't include "memmem.h", since
54154         <string.h> now suffices.
54155
54156 2007-01-25  Bruno Haible  <bruno@clisp.org>
54157
54158         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
54159         *resultp is 0.
54160
54161         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
54162         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
54163         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
54164         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
54165
54166         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
54167         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
54168         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
54169         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
54170         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
54171         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
54172
54173 2007-01-24  Bruno Haible  <bruno@clisp.org>
54174
54175         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
54176         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
54177         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
54178         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
54179         gl_FUNC_FTS_CORE.
54180         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
54181         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
54182         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54183         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
54184         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
54185         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
54186         gl_FUNC_FCHOWNAT.
54187         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
54188         gl_FUNC_STRFTIME.
54189         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
54190         Reported by Ralf Wildenhues.
54191
54192 2007-01-24  Bruno Haible  <bruno@clisp.org>
54193
54194         Drop AC_REQUIRE calls that are redundant with the module dependencies.
54195         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
54196         gl_GETADDRINFO.
54197         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
54198         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
54199         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
54200
54201 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
54202
54203         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
54204         Don't use 'exit'; just return from 'main'.
54205         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
54206
54207         * lib/fnmatch_.h: Readjust white space and comments to match
54208         glibc, to avoid spurious diffs.
54209
54210 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54211
54212         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
54213         2004-12-01 change by Jakub Jelinek, since this code won't compile
54214         if !LIBC.  Problem reported by Bob Proulx.
54215
54216 2007-01-23  Bruno Haible  <bruno@clisp.org>
54217
54218         * lib/striconveh.c: Include c-strcaseeq.h.
54219         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
54220         * modules/striconveh (Depends-on): Add c-strcaseeq.
54221
54222 2007-01-23  Bruno Haible  <bruno@clisp.org>
54223
54224         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
54225
54226         * modules/c-strcaseeq: New file.
54227         * lib/c-strcaseeq.h: New file.
54228
54229         * modules/streq: New file.
54230         * lib/streq.h: New file.
54231
54232 2007-01-23  Bruno Haible  <bruno@clisp.org>
54233
54234         * modules/striconveha-tests: New file.
54235         * tests/test-striconveha.c: New file.
54236
54237         * lib/striconveha.h: Include <stdbool.h>.
54238         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
54239         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
54240         (mem_iconveha_notranslit): Renamed from mem_iconveha.
54241         (mem_iconveha): New function.
54242         (str_iconveha_notranslit): Renamed from str_iconveha.
54243         (str_iconveha): New function.
54244         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
54245         c-strcase.
54246
54247 2007-01-23  Bruno Haible  <bruno@clisp.org>
54248
54249         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
54250         encodings without forgiving before trying any encoding with handler.
54251         (str_iconveha): Try all encodings without forgiving before trying any
54252         encoding with handler.
54253
54254 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54255
54256         Import the following changes from libc.
54257
54258         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54259
54260         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
54261
54262         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54263
54264         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
54265         normal_bracket label.
54266
54267         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
54268
54269         [BZ #361]
54270         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
54271         to normal_bracket after fetching the next character.
54272
54273 2007-01-22  Bruno Haible  <bruno@clisp.org>
54274
54275         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
54276         argument.
54277         * lib/striconveh.c (iconv_carefully_1): New function.
54278         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
54279         argument.
54280         (str_cd_iconveh): Update.
54281         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
54282         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
54283         * tests/test-striconveh.c (MAGIC): New macro.
54284         (new_offsets): New function.
54285         (main): Test call with and without offsets.
54286
54287 2007-01-22  Bruno Haible  <bruno@clisp.org>
54288
54289         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
54290         * modules/sys_select (Makefile.am): Likewise.
54291         * modules/sys_socket (Makefile.am): Likewise.
54292         * modules/sys_time (Makefile.am): Likewise.
54293
54294 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54295
54296         * modules/gettimeofday (License): Change from GPL to LGPL, since
54297         gettimeofday is a library function.
54298
54299 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54300
54301         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
54302
54303 2007-01-21  Bruno Haible  <bruno@clisp.org>
54304
54305         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
54306
54307 2007-01-21  Bruno Haible  <bruno@clisp.org>
54308
54309         * modules/striconveha: New file.
54310         * lib/striconveha.h: New file.
54311         * lib/striconveha.c: New file.
54312         * MODULES.html.sh (Internationalization functions): Add striconveha.
54313         * lib/striconv.c (str_iconv): Optimize the case of an empty input
54314         string.
54315         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
54316
54317 2007-01-21  Bruno Haible  <bruno@clisp.org>
54318
54319         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
54320         * lib/striconveh.c (str_iconveh): Likewise.
54321
54322 2007-01-21  Bruno Haible  <bruno@clisp.org>
54323
54324         * lib/striconveh.h (mem_iconveh): New declaration.
54325         * lib/striconveh.c (mem_iconveh): New function.
54326         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
54327
54328 2007-01-21  Bruno Haible  <bruno@clisp.org>
54329
54330         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
54331
54332         * lib/striconveh.h (mem_cd_iconveh): Change specification.
54333         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
54334         original result buffer.
54335         (str_cd_iconveh): Update.
54336         * tests/test-striconveh.c (main): Update.
54337
54338         * lib/striconv.h (mem_cd_iconv): Change specification.
54339         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
54340         result buffer.
54341         (str_cd_iconv): Update.
54342         * tests/test-striconv.c (main): Update.
54343
54344 2007-01-21  Bruno Haible  <bruno@clisp.org>
54345
54346         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
54347
54348 2007-01-20  Jim Meyering  <jim@meyering.net>
54349
54350         * lib/userspec.c (parse_with_separator): If a user or group string
54351         starts with "+", skip the corresponding name-to-ID look-up, since
54352         such a look-up must fail: user and group names may not include "+".
54353
54354 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54355
54356         * lib/poll.c: Include sys/time.h and time.h unconditionally,
54357         since we now assume the sys_time module.
54358         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
54359         check for sys/time.h; no longer needed.
54360         * modules/poll (Depends-on): Depend on sys_time.
54361
54362 2007-01-18  Bruno Haible  <bruno@clisp.org>
54363
54364         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
54365         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54366
54367         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
54368         gettimeofday.
54369
54370         * tests/test-gettimeofday.c: Include <time.h>.
54371         (dummy): Remove variable.
54372
54373         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
54374         gl_HEADER_SYS_TIME_H.
54375         (gl_HEADER_SYS_TIME_H): New macro.
54376
54377         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
54378         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54379         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54380         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
54381         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54382         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
54383         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
54384         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54385         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
54386         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
54387         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54388
54389         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
54390         last change; it caused a compilation error when cross-compiling to
54391         Cygwin.
54392
54393 2007-01-18  Jim Meyering  <jim@meyering.net>
54394
54395         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
54396         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
54397         than the race-prone "test -d sys || mkdir sys".
54398         (configure.ac): Use AC_PROG_MKDIR_P.
54399         * modules/sys_select: Likewise.
54400         * modules/sys_socket: Likewise.
54401         * modules/sys_time: Likewise.
54402
54403 2007-01-18  Eric Blake  <ebb9@byu.net>
54404
54405         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
54406         replace gettimeofday.
54407         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
54408         name, to avoid infinite recursion.
54409
54410 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
54411
54412         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
54413         module sys_time.
54414         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
54415         assume timespec.h defines struct timeval.
54416         * lib/settime.c: Likewise.
54417         * lib/utimens.c: Likewise.
54418         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
54419         since we now assume the gettimeofday module.
54420         * lib/tempname.c (__gen_tempname): Likewise.
54421         * lib/gettimeofday.h: Remove.
54422         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
54423         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
54424         Include <time.h>, for 'time()'.
54425         (localtime_buffer_addr): Also use this workaround if
54426         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
54427         to simplify the uses.  All uses changed.
54428         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
54429         that #undef is inside {}, and 'const' follows type name consistently.
54430         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
54431         (gettimeofday): Do not use the maximum possible value for
54432         tv->tv_usec, since that might break usages other than ls.c.
54433         Instead, we'll leave ls.c alone.  This undoes today's patch
54434         by Bruno.  Add a compile-time warning for 1s-clock resolution;
54435         we've never observed the problem but might as well keep the
54436         canary.
54437         * lib/nanosleep.c: Include timespec.h first, for interface check.
54438         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
54439         now assume the sys_time module.
54440         * lib/tempname.c: Likewise.
54441         * lib/timespec.h: Likewise.
54442         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
54443         needed.
54444         * lib/strftime.c: Likewise.
54445         * lib/timespec.h: Likewise.
54446         * lib/posixtm.c: Include posixtm.h first, for interface check.
54447         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
54448         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
54449         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
54450         * lib/sys_time_.h: New file.
54451         * lib/timespec.h (struct timespec): Use long int, not long.
54452         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54453         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
54454         Remove obsolescent call to AC_HEADER_TIME.
54455         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
54456         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54457         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54458         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
54459         Likewise.
54460         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
54461         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
54462         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
54463         into the sys_time module.  Check for gettimeofday just once.
54464         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
54465         for gettimeofday signature to just check the signature.  Merely
54466         compile it, since linking doesn't test signature.  Improve test for
54467         whether gettimeofday.o is actually needed.
54468         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
54469         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
54470         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
54471         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54472         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
54473         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
54474         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
54475         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
54476         than worrying about sys/time.h.
54477         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54478         Don't bother worrying about TIME_WITH_SYS_TIME.
54479         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
54480         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
54481         * m4/sys_time_h.m4: New file.
54482         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
54483         Don't include sys/time.h.  Return from main rather than exiting.
54484         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
54485         all uses changed.
54486         * modules/gethrxtime (Depends-on): Add sys_time.
54487         * modules/gettime (Depends-on): Likewise.
54488         * modules/gettimeofday (Depends-on): Likewise.
54489         * modules/nanosleep (Depends-on): Likewise.
54490         * modules/settime (Depends-on): Likewise.
54491         * modules/tempname (Depends-on): Likewise.
54492         * modules/utimens (Depends-on): Likewise.
54493         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
54494         (Include): Change back to <sys/time.h>.
54495         (Maintainer): Add self.
54496         * modules/sys_time: New file.
54497         * modules/tempname (Depends-on): Add gettimeofday.
54498         * tests/test-gettimeofday.c: Include <sys/time.h>
54499         rather than gettimeofday.h.
54500
54501 2007-01-17  Bruno Haible  <bruno@clisp.org>
54502
54503         * gnulib-tool (func_get_license): Revert last patch. Instead, let
54504         the license default to GPL.
54505         (func_create_testdir): Don't complain if a module is LGPL and its
54506         tests module depends on GPLed modules.
54507
54508 2007-01-17  Bruno Haible  <bruno@clisp.org>
54509
54510         * lib/gettimeofday.c (gettimeofday): Add code for the case
54511         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
54512         maximum possible value for tv->tv_usec, rather than the minimum one.
54513
54514 2005-10-08  Martin Lambers  <marlam@marlam.de>
54515 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54516 2007-01-16  Bruno Haible  <bruno@clisp.org>
54517
54518         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
54519         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
54520         gl_FUNC_GETTIMEOFDAY.
54521         (Include): Add gettimeofday.h.
54522         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
54523         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
54524         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
54525         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
54526         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
54527         * lib/gettimeofday.h: New file.
54528         * lib/gettimeofday.c: Include <sys/timeb.h>.
54529         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
54530         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54531         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
54532         fall back on time().
54533
54534         * tests/test-gettimeofday.c: New file.
54535         * modules/gettimeofday-tests: New file.
54536
54537 2007-01-16  Eric Blake  <ebb9@byu.net>
54538
54539         * modules/fnmatch (Depends-on): Depend on wchar.
54540         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
54541         * m4/fnmatch.m4: Likewise.
54542         * modules/mbchar (Makefile.am): Assume <wchar.h>.
54543         * m4/mbchar.m4: Likewise.
54544         * modules/mbswidth (Depends-on): Depend on wchar.
54545         * lib/mbswidth.c: Assume <wchar.h>.
54546         * m4/mbswidth.m4: Likewise.
54547         * modules/quotearg (Depends-on): Depend on wchar.
54548         * lib/quotearg.c: Assume <wchar.h>.
54549         * m4/quotearg.m4: Likewise.
54550         * modules/regex (Depends-on): Depend on wchar.
54551         * lib/regex_internal.h: Assume <wchar.h>.
54552         * m4/regex.m4: Likewise.
54553         * modules/stdint (Depends-on): Depend on wchar.
54554         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
54555         * m4/stdint.m4: Likewise.
54556         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
54557         * modules/strftime (Depends-on): Depend on wchar.
54558         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
54559         * modules/strtol (Depends-on): Depend on wchar.
54560         * lib/strtol.c: Assume <wchar.h>.
54561         * modules/wcwidth (Depends-on): Depend on wchar.
54562         * lib/wcwidth.h: Assume <wchar.h>.
54563         * m4/wcwidth.m4: Likewise.
54564
54565 2007-01-16  Bruno Haible  <bruno@clisp.org>
54566
54567         * modules/csharpexec-script: New, created from...
54568         * modules/csharpexec: ... this.
54569
54570 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54571
54572         * modules/javaexec-script: New, created from...
54573         * modules/javaexec: ... this.
54574
54575 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54576
54577         * modules/poll (Dependencies): Add sys_select.
54578
54579 2007-01-15  Jim Meyering  <jim@meyering.net>
54580
54581         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
54582         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
54583         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
54584         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
54585
54586 2007-01-15  Bruno Haible  <bruno@clisp.org>
54587
54588         * modules/striconveh: New file.
54589         * lib/striconveh.h: New file.
54590         * lib/striconveh.c: New file.
54591         * MODULES.html.sh (Internationalization functions): Add striconveh.
54592
54593         * modules/striconveh-tests: New file.
54594         * tests/test-striconveh.c: New file.
54595
54596 2007-01-15  Bruno Haible  <bruno@clisp.org>
54597
54598         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
54599         not from GNU libiconv or GNU libc.
54600
54601 2007-01-15  Bruno Haible  <bruno@clisp.org>
54602
54603         * doc/gnulib-intro.texi (Copyright): Explain the different license
54604         terms for module descriptions, autoconf macros, tests, documentation.
54605
54606 2007-01-14  Bruno Haible  <bruno@clisp.org>
54607
54608         * modules/striconv-tests: New file.
54609         * tests/test-striconv.c: New file.
54610
54611 2007-01-14  Bruno Haible  <bruno@clisp.org>
54612
54613         * modules/iconv-tests: New file.
54614         * tests/test-iconv.c: New file.
54615
54616 2007-01-14  Bruno Haible  <bruno@clisp.org>
54617
54618         * gnulib-tool (func_get_license): For test modules, use the license of
54619         the main module.
54620
54621 2007-01-14  Bruno Haible  <bruno@clisp.org>
54622
54623         * modules/iconv (Include): Clarify that <iconv.h> can only be included
54624         if iconv is found to exist.
54625
54626 2007-01-14  Bruno Haible  <bruno@clisp.org>
54627
54628         * modules/c-ctype-tests: New file.
54629         * tests/test-c-ctype.c: New file.
54630
54631 2007-01-14  Bruno Haible  <bruno@clisp.org>
54632
54633         * modules/binary-io-tests: New file.
54634         * tests/test-binary-io.sh: New file.
54635         * tests/test-binary-io.c: New file.
54636
54637 2007-01-14  Bruno Haible  <bruno@clisp.org>
54638
54639         * modules/array-oset-tests: New file.
54640         * tests/test-array_oset.c: New file.
54641
54642 2007-01-14  Bruno Haible  <bruno@clisp.org>
54643
54644         * modules/array-list-tests: New file.
54645         * tests/test-array_list.c: New file.
54646
54647 2007-01-14  Bruno Haible  <bruno@clisp.org>
54648
54649         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
54650         and make.
54651         Reported by Simon Josefsson in
54652         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
54653
54654 2007-01-14  Bruno Haible  <bruno@clisp.org>
54655
54656         * modules/allocsa-tests: New file.
54657         * tests/test-allocsa.c: New file.
54658
54659 2007-01-14  Bruno Haible  <bruno@clisp.org>
54660
54661         * modules/fchdir (Depends-on): Add absolute-header.
54662         * modules/unistd (Depends-on): Likewise.
54663
54664 2006-12-30  Bruno Haible  <bruno@clisp.org>
54665
54666         * modules/fchdir: New file.
54667         * modules/unistd (Files): Add lib/unistd_.h.
54668         (Makefile.am): Generate unistd.h from unistd_.h.
54669         * lib/fchdir.c: New file.
54670         * lib/dirent_.h: New file.
54671         * lib/unistd_.h: New file.
54672         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
54673         * m4/fchdir.m4: New file.
54674         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
54675         (gl_HEADER_UNISTD): Invoke it.
54676         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
54677         function.
54678         * lib/backupfile.c (opendir, closedir): Undefine.
54679         * lib/chown.c (open, close): Undefine.
54680         * lib/clean-temp.c (open, close): Undefine.
54681         * lib/copy-file.c (open, close): Undefine.
54682         * lib/execute.c (open, close): Undefine.
54683         * lib/fsusage.c (open, close): Undefine.
54684         * lib/gc-gnulib.c (open, close): Undefine.
54685         * lib/getcwd.c (opendir, closedir): Undefine.
54686         * lib/glob.c (opendir, closedir): Undefine.
54687         * lib/javacomp.c (open, close): Undefine.
54688         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
54689         * lib/openat-proc.c (open, close): Undefine.
54690         * lib/pagealign_alloc.c (open, close): Undefine.
54691         * lib/pipe.c (open, close): Undefine.
54692         * lib/progreloc.c (open, close): Undefine.
54693         * lib/savedir.c (opendir, closedir): Undefine.
54694         * lib/utime.c (open, close): Undefine.
54695         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
54696
54697 2007-01-10  Bruno Haible  <bruno@clisp.org>
54698
54699         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
54700
54701 2007-01-12  Eric Blake  <ebb9@byu.net>
54702
54703         Provide a robust <wchar.h>.  Further simplifications are now
54704         possible in other modules, but not included here.
54705         * modules/wchar: New module.
54706         * m4/wchar.m4: New file.
54707         * lib/wchar_.h: Likewise.
54708         * modules/mbchar (Depends-on): Depend on wchar, as the first use
54709         of the new module.
54710         * MODULES.html.sh (Extended multibyte and wide character utilities):
54711         New section.
54712
54713 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
54714
54715         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
54716         to a reasonable default for memory allocation.
54717         (xreadlink): Don't allocate a huge buffer, to work around a buggy
54718         file system that reports garbage st_size values for symlinks.
54719         Problem reported by Liyang Hu.
54720
54721 2007-01-11  Simon Josefsson  <simon@josefsson.org>
54722
54723         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
54724         Emacs .#* auto-save files).
54725
54726 2007-01-11  Bruno Haible  <bruno@clisp.org>
54727
54728         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
54729         directory.
54730
54731 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54732
54733         Use @...@ consistently in lib/wctype_.h.
54734         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
54735         on it being set to 1 or 0.
54736         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
54737         go back to AC_SUBSTing it.
54738         * modules/wctype (Makefile.am): Undo previous change.
54739
54740 2007-01-10  Eric Blake  <ebb9@byu.net>
54741
54742         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
54743         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
54744         * modules/wctype (Makefile.am): Likewise.
54745         Reported by Chris McGuire.
54746
54747 2007-01-10  Jim Meyering  <jim@meyering.net>
54748
54749         fts.c: a small readability/maintainability improvement
54750         * lib/fts.c (fts_read): Make this code slightly more readable and
54751         maintainable by hoisting the "sp->fts_cur = p" assignments to
54752         immediately follow the statements that set P.  Derived from
54753         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
54754
54755 2007-01-10  Eric Blake  <ebb9@byu.net>
54756
54757         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
54758         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
54759         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54760         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
54761         Reported by Chris McGuire.
54762
54763 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54764
54765         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
54766         in sed script.
54767
54768 2007-01-09  Bruno Haible  <bruno@clisp.org>
54769
54770         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
54771         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
54772         variables.
54773         (func_module): Use them.
54774
54775 2007-01-09  Bruno Haible  <bruno@clisp.org>
54776
54777         * modules/unistr/base: New file.
54778         * lib/unistr.h: New file.
54779
54780         * modules/unistr/u8-to-u16: New file.
54781         * lib/unistr/u8-to-u16.c: New file.
54782
54783         * modules/unistr/u8-to-u32: New file.
54784         * lib/unistr/u8-to-u32.c: New file.
54785
54786         * modules/unistr/u16-to-u8: New file.
54787         * lib/unistr/u16-to-u8.c: New file.
54788
54789         * modules/unistr/u16-to-u32: New file.
54790         * lib/unistr/u16-to-u32.c: New file.
54791
54792         * modules/unistr/u32-to-u8: New file.
54793         * lib/unistr/u32-to-u8.c: New file.
54794
54795         * modules/unistr/u32-to-u16: New file.
54796         * lib/unistr/u32-to-u16.c: New file.
54797
54798         * modules/unistr/u8-check: New file.
54799         * modules/unistr/u16-check: New file.
54800         * modules/unistr/u32-check: New file.
54801         * lib/unistr/u8-check.c: New file.
54802         * lib/unistr/u16-check.c: New file.
54803         * lib/unistr/u32-check.c: New file.
54804
54805         * modules/unistr/u8-chr: New file.
54806         * modules/unistr/u16-chr: New file.
54807         * modules/unistr/u32-chr: New file.
54808         * lib/unistr/u8-chr.c: New file.
54809         * lib/unistr/u16-chr.c: New file.
54810         * lib/unistr/u32-chr.c: New file.
54811
54812         * modules/unistr/u8-cmp: New file.
54813         * modules/unistr/u16-cmp: New file.
54814         * modules/unistr/u32-cmp: New file.
54815         * lib/unistr/u8-cmp.c: New file.
54816         * lib/unistr/u16-cmp.c: New file.
54817         * lib/unistr/u32-cmp.c: New file.
54818
54819         * modules/unistr/u8-cpy: New file.
54820         * modules/unistr/u16-cpy: New file.
54821         * modules/unistr/u32-cpy: New file.
54822         * lib/unistr/u8-cpy.c: New file.
54823         * lib/unistr/u16-cpy.c: New file.
54824         * lib/unistr/u32-cpy.c: New file.
54825         * lib/unistr/u-cpy.h: New file.
54826
54827         * modules/unistr/u8-cpy-alloc: New file.
54828         * modules/unistr/u16-cpy-alloc: New file.
54829         * modules/unistr/u32-cpy-alloc: New file.
54830         * lib/unistr/u8-cpy-alloc.c: New file.
54831         * lib/unistr/u16-cpy-alloc.c: New file.
54832         * lib/unistr/u32-cpy-alloc.c: New file.
54833         * lib/unistr/u-cpy-alloc.h: New file.
54834
54835         * modules/unistr/u8-endswith: New file.
54836         * modules/unistr/u16-endswith: New file.
54837         * modules/unistr/u32-endswith: New file.
54838         * lib/unistr/u8-endswith.c: New file.
54839         * lib/unistr/u16-endswith.c: New file.
54840         * lib/unistr/u32-endswith.c: New file.
54841         * lib/unistr/u-endswith.h: New file.
54842
54843         * modules/unistr/u8-mblen: New file.
54844         * modules/unistr/u16-mblen: New file.
54845         * modules/unistr/u32-mblen: New file.
54846         * lib/unistr/u8-mblen.c: New file.
54847         * lib/unistr/u16-mblen.c: New file.
54848         * lib/unistr/u32-mblen.c: New file.
54849
54850         * modules/unistr/u8-mbtouc: New file.
54851         * modules/unistr/u16-mbtouc: New file.
54852         * modules/unistr/u32-mbtouc: New file.
54853         * lib/unistr/u8-mbtouc.c: New file.
54854         * lib/unistr/u16-mbtouc.c: New file.
54855         * lib/unistr/u32-mbtouc.c: New file.
54856
54857         * modules/unistr/u8-mbtouc-safe: New file.
54858         * modules/unistr/u16-mbtouc-safe: New file.
54859         * modules/unistr/u32-mbtouc-safe: New file.
54860         * lib/unistr/u8-mbtouc-safe.c: New file.
54861         * lib/unistr/u16-mbtouc-safe.c: New file.
54862         * lib/unistr/u32-mbtouc-safe.c: New file.
54863
54864         * modules/unistr/u8-move: New file.
54865         * modules/unistr/u16-move: New file.
54866         * modules/unistr/u32-move: New file.
54867         * lib/unistr/u8-move.c: New file.
54868         * lib/unistr/u16-move.c: New file.
54869         * lib/unistr/u32-move.c: New file.
54870         * lib/unistr/u-move.h: New file.
54871
54872         * modules/unistr/u8-next: New file.
54873         * modules/unistr/u16-next: New file.
54874         * modules/unistr/u32-next: New file.
54875         * lib/unistr/u8-next.c: New file.
54876         * lib/unistr/u16-next.c: New file.
54877         * lib/unistr/u32-next.c: New file.
54878
54879         * modules/unistr/u8-prev: New file.
54880         * modules/unistr/u16-prev: New file.
54881         * modules/unistr/u32-prev: New file.
54882         * lib/unistr/u8-prev.c: New file.
54883         * lib/unistr/u16-prev.c: New file.
54884         * lib/unistr/u32-prev.c: New file.
54885
54886         * modules/unistr/u8-set: New file.
54887         * modules/unistr/u16-set: New file.
54888         * modules/unistr/u32-set: New file.
54889         * lib/unistr/u8-set.c: New file.
54890         * lib/unistr/u16-set.c: New file.
54891         * lib/unistr/u32-set.c: New file.
54892         * lib/unistr/u-set.h: New file.
54893
54894         * modules/unistr/u8-startswith: New file.
54895         * modules/unistr/u16-startswith: New file.
54896         * modules/unistr/u32-startswith: New file.
54897         * lib/unistr/u8-startswith.c: New file.
54898         * lib/unistr/u16-startswith.c: New file.
54899         * lib/unistr/u32-startswith.c: New file.
54900         * lib/unistr/u-startswith.h: New file.
54901
54902         * modules/unistr/u8-stpcpy: New file.
54903         * modules/unistr/u16-stpcpy: New file.
54904         * modules/unistr/u32-stpcpy: New file.
54905         * lib/unistr/u8-stpcpy.c: New file.
54906         * lib/unistr/u16-stpcpy.c: New file.
54907         * lib/unistr/u32-stpcpy.c: New file.
54908         * lib/unistr/u-stpcpy.h: New file.
54909
54910         * modules/unistr/u8-stpncpy: New file.
54911         * modules/unistr/u16-stpncpy: New file.
54912         * modules/unistr/u32-stpncpy: New file.
54913         * lib/unistr/u8-stpncpy.c: New file.
54914         * lib/unistr/u16-stpncpy.c: New file.
54915         * lib/unistr/u32-stpncpy.c: New file.
54916         * lib/unistr/u-stpncpy.h: New file.
54917
54918         * modules/unistr/u8-strcat: New file.
54919         * modules/unistr/u16-strcat: New file.
54920         * modules/unistr/u32-strcat: New file.
54921         * lib/unistr/u8-strcat.c: New file.
54922         * lib/unistr/u16-strcat.c: New file.
54923         * lib/unistr/u32-strcat.c: New file.
54924         * lib/unistr/u-strcat.h: New file.
54925
54926         * modules/unistr/u8-strchr: New file.
54927         * modules/unistr/u16-strchr: New file.
54928         * modules/unistr/u32-strchr: New file.
54929         * lib/unistr/u8-strchr.c: New file.
54930         * lib/unistr/u16-strchr.c: New file.
54931         * lib/unistr/u32-strchr.c: New file.
54932
54933         * modules/unistr/u8-strcmp: New file.
54934         * modules/unistr/u16-strcmp: New file.
54935         * modules/unistr/u32-strcmp: New file.
54936         * lib/unistr/u8-strcmp.c: New file.
54937         * lib/unistr/u16-strcmp.c: New file.
54938         * lib/unistr/u32-strcmp.c: New file.
54939
54940         * modules/unistr/u8-strcpy: New file.
54941         * modules/unistr/u16-strcpy: New file.
54942         * modules/unistr/u32-strcpy: New file.
54943         * lib/unistr/u8-strcpy.c: New file.
54944         * lib/unistr/u16-strcpy.c: New file.
54945         * lib/unistr/u32-strcpy.c: New file.
54946         * lib/unistr/u-strcpy.h: New file.
54947
54948         * modules/unistr/u8-strcspn: New file.
54949         * modules/unistr/u16-strcspn: New file.
54950         * modules/unistr/u32-strcspn: New file.
54951         * lib/unistr/u8-strcspn.c: New file.
54952         * lib/unistr/u16-strcspn.c: New file.
54953         * lib/unistr/u32-strcspn.c: New file.
54954         * lib/unistr/u-strcspn.h: New file.
54955
54956         * modules/unistr/u8-strdup: New file.
54957         * modules/unistr/u16-strdup: New file.
54958         * modules/unistr/u32-strdup: New file.
54959         * lib/unistr/u8-strdup.c: New file.
54960         * lib/unistr/u16-strdup.c: New file.
54961         * lib/unistr/u32-strdup.c: New file.
54962         * lib/unistr/u-strdup.h: New file.
54963
54964         * modules/unistr/u8-strlen: New file.
54965         * modules/unistr/u16-strlen: New file.
54966         * modules/unistr/u32-strlen: New file.
54967         * lib/unistr/u8-strlen.c: New file.
54968         * lib/unistr/u16-strlen.c: New file.
54969         * lib/unistr/u32-strlen.c: New file.
54970         * lib/unistr/u-strlen.h: New file.
54971
54972         * modules/unistr/u8-strmblen: New file.
54973         * modules/unistr/u16-strmblen: New file.
54974         * modules/unistr/u32-strmblen: New file.
54975         * lib/unistr/u8-strmblen.c: New file.
54976         * lib/unistr/u16-strmblen.c: New file.
54977         * lib/unistr/u32-strmblen.c: New file.
54978
54979         * modules/unistr/u8-strmbtouc: New file.
54980         * modules/unistr/u16-strmbtouc: New file.
54981         * modules/unistr/u32-strmbtouc: New file.
54982         * lib/unistr/u8-strmbtouc.c: New file.
54983         * lib/unistr/u16-strmbtouc.c: New file.
54984         * lib/unistr/u32-strmbtouc.c: New file.
54985
54986         * modules/unistr/u8-strncat: New file.
54987         * modules/unistr/u16-strncat: New file.
54988         * modules/unistr/u32-strncat: New file.
54989         * lib/unistr/u8-strncat.c: New file.
54990         * lib/unistr/u16-strncat.c: New file.
54991         * lib/unistr/u32-strncat.c: New file.
54992         * lib/unistr/u-strncat.h: New file.
54993
54994         * modules/unistr/u8-strncmp: New file.
54995         * modules/unistr/u16-strncmp: New file.
54996         * modules/unistr/u32-strncmp: New file.
54997         * lib/unistr/u8-strncmp.c: New file.
54998         * lib/unistr/u16-strncmp.c: New file.
54999         * lib/unistr/u32-strncmp.c: New file.
55000
55001         * modules/unistr/u8-strncpy: New file.
55002         * modules/unistr/u16-strncpy: New file.
55003         * modules/unistr/u32-strncpy: New file.
55004         * lib/unistr/u8-strncpy.c: New file.
55005         * lib/unistr/u16-strncpy.c: New file.
55006         * lib/unistr/u32-strncpy.c: New file.
55007         * lib/unistr/u-strncpy.h: New file.
55008
55009         * modules/unistr/u8-strnlen: New file.
55010         * modules/unistr/u16-strnlen: New file.
55011         * modules/unistr/u32-strnlen: New file.
55012         * lib/unistr/u8-strnlen.c: New file.
55013         * lib/unistr/u16-strnlen.c: New file.
55014         * lib/unistr/u32-strnlen.c: New file.
55015         * lib/unistr/u-strnlen.h: New file.
55016
55017         * modules/unistr/u8-strpbrk: New file.
55018         * modules/unistr/u16-strpbrk: New file.
55019         * modules/unistr/u32-strpbrk: New file.
55020         * lib/unistr/u8-strpbrk.c: New file.
55021         * lib/unistr/u16-strpbrk.c: New file.
55022         * lib/unistr/u32-strpbrk.c: New file.
55023         * lib/unistr/u-strpbrk.h: New file.
55024
55025         * modules/unistr/u8-strrchr: New file.
55026         * modules/unistr/u16-strrchr: New file.
55027         * modules/unistr/u32-strrchr: New file.
55028         * lib/unistr/u8-strrchr.c: New file.
55029         * lib/unistr/u16-strrchr.c: New file.
55030         * lib/unistr/u32-strrchr.c: New file.
55031
55032         * modules/unistr/u8-strspn: New file.
55033         * modules/unistr/u16-strspn: New file.
55034         * modules/unistr/u32-strspn: New file.
55035         * lib/unistr/u8-strspn.c: New file.
55036         * lib/unistr/u16-strspn.c: New file.
55037         * lib/unistr/u32-strspn.c: New file.
55038         * lib/unistr/u-strspn.h: New file.
55039
55040         * modules/unistr/u8-strstr: New file.
55041         * modules/unistr/u16-strstr: New file.
55042         * modules/unistr/u32-strstr: New file.
55043         * lib/unistr/u8-strstr.c: New file.
55044         * lib/unistr/u16-strstr.c: New file.
55045         * lib/unistr/u32-strstr.c: New file.
55046         * lib/unistr/u-strstr.h: New file.
55047
55048         * modules/unistr/u8-strtok: New file.
55049         * modules/unistr/u16-strtok: New file.
55050         * modules/unistr/u32-strtok: New file.
55051         * lib/unistr/u8-strtok.c: New file.
55052         * lib/unistr/u16-strtok.c: New file.
55053         * lib/unistr/u32-strtok.c: New file.
55054         * lib/unistr/u-strtok.h: New file.
55055
55056         * modules/unistr/u8-uctomb: New file.
55057         * modules/unistr/u16-uctomb: New file.
55058         * modules/unistr/u32-uctomb: New file.
55059         * lib/unistr/u8-uctomb.c: New file.
55060         * lib/unistr/u16-uctomb.c: New file.
55061         * lib/unistr/u32-uctomb.c: New file.
55062
55063         * MODULES.html.sh (Unicode string functions): Add the new modules.
55064
55065 2007-01-08  Bruno Haible  <bruno@clisp.org>
55066
55067         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
55068         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
55069         subdirectories.
55070
55071 2007-01-08  Karl Berry  <karl@gnu.org>
55072
55073         * doc/error.texi: mention that main() fns must set program_name
55074         when progname is used.
55075
55076 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
55077
55078         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
55079         WCTYPE_H is empty, for the benefit of builds from non-distclean
55080         directories.  Problem reported by Eric Blake in
55081         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
55082
55083 2007-01-08  Bruno Haible  <bruno@clisp.org>
55084
55085         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
55086         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
55087         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
55088         PROVIDE_CANONICALIZE_FILENAME_MODE.
55089         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
55090
55091 2007-01-08  Bruno Haible  <bruno@clisp.org>
55092
55093         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
55094         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
55095         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
55096         * lib/fts.c: Likewise.
55097         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
55098
55099 2006-12-25  Bruno Haible  <bruno@clisp.org>
55100
55101         * modules/utf8-ucs4-safe: New file.
55102         * lib/utf8-ucs4-safe.h: New file.
55103         * lib/unistr/utf8-ucs4-safe.c: New file.
55104
55105         * modules/utf16-ucs4-safe: New file.
55106         * lib/utf16-ucs4-safe.h: New file.
55107         * lib/unistr/utf16-ucs4-safe.c: New file.
55108
55109         * MODULES.html.sh (Unicode string functions): Add the new modules.
55110
55111 2007-01-08  Bruno Haible  <bruno@clisp.org>
55112
55113         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
55114         (Depends-on): Add unitypes.
55115         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55116         (u8_mbtouc_aux): Move out to separate file.
55117         (u8_mbtouc): Use ucs4_t, uint8_t types.
55118         * lib/unistr/utf8-ucs4.c: New file.
55119
55120         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
55121         (Depends-on): Add unitypes.
55122         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55123         (u16_mbtouc_aux): Move out to separate file.
55124         (u16_mbtouc): Use ucs4_t, uint16_t types.
55125         * lib/unistr/utf16-ucs4.c: New file.
55126
55127         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
55128         (Depends-on): Add unitypes.
55129         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
55130         (u8_uctomb_aux): Move out to separate file.
55131         (u8_uctomb): Use ucs4_t, uint8_t types.
55132         * lib/unistr/ucs4-utf8.c: New file.
55133
55134         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
55135         (Depends-on): Add unitypes.
55136         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
55137         (u16_uctomb_aux): Move out to separate file.
55138         (u16_uctomb): Use ucs4_t, uint16_t types.
55139         * lib/unistr/ucs4-utf16.c: New file.
55140
55141 2006-12-25  Bruno Haible  <bruno@clisp.org>
55142
55143         * modules/unitypes: New file.
55144         * lib/unitypes.h: New file.
55145         * MODULES.html.sh (func_all_modules): New section "Unicode string
55146         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
55147         this section. Add unitypes.
55148
55149 2007-01-08  Bruno Haible  <bruno@clisp.org>
55150
55151         Avoid variable names that conflict with those from libtool.
55152         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
55153         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
55154         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
55155         library_names_spec to acl_library_names_spec, hardcode_* to
55156         acl_hardcode_*.
55157         Reported by Ralf Wildenhues.
55158
55159 2007-01-08  Bruno Haible  <bruno@clisp.org>
55160
55161         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
55162         definition.
55163         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
55164         definition.
55165         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
55166         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
55167         definition.
55168         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
55169         definition.
55170         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
55171         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
55172         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
55173         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
55174         definition.
55175         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
55176         definition.
55177         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
55178         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
55179         GC_USE_<algorithm>.
55180         * lib/gc-libgcrypt.c: Likewise.
55181         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
55182         * modules/gc-arctwo (configure.ac): Likewise.
55183         * modules/gc-des (configure.ac): Likewise.
55184         * modules/gc-hmac-md5 (configure.ac): Likewise.
55185         * modules/gc-hmac-sha1 (configure.ac): Likewise.
55186         * modules/gc-md2 (configure.ac): Likewise.
55187         * modules/gc-md4 (configure.ac): Likewise.
55188         * modules/gc-md5 (configure.ac): Likewise.
55189         * modules/gc-random (configure.ac): Likewise.
55190         * modules/gc-rijndael (configure.ac): Likewise.
55191         * modules/gc-sha1 (configure.ac): Likewise.
55192
55193 2007-01-08  Bruno Haible  <bruno@clisp.org>
55194
55195         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
55196         macro definition.
55197         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
55198         definition.
55199         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
55200         definition.
55201         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
55202         * modules/fcntl-safer (configure.ac): Likewise.
55203         * modules/fopen-safer (configure.ac): Likewise.
55204         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
55205         GNULIB_FWRITEERROR macro definition.
55206
55207 2007-01-08  Bruno Haible  <bruno@clisp.org>
55208
55209         * m4/gnulib-common.m4: New file.
55210         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
55211         (func_get_filelist): Add m4/gnulib-common.m4.
55212
55213 2007-01-08  Bruno Haible  <bruno@clisp.org>
55214
55215         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
55216         command.
55217
55218 2007-01-08  Jim Meyering  <jim@meyering.net>
55219
55220         Use a more robust test for a "can't happen" condition.
55221         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
55222         narrowed the st_size value.  Presuming the "can't happen" condition
55223         is true, that narrowing could conceivably convert an invalid st_size
55224         value into a valid one.  Instead, use a change based on Matthew
55225         Woehlke's original patch.
55226
55227         Slight readability improvement: use an assert-like macro
55228         in place of literal "abort ()" uses.
55229         * lib/fts.c (fts_assert): Define.
55230         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
55231         Use this macro instead of a bare 'abort'.
55232
55233 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
55234
55235         Don't worry about using IRIX 5.3's wctype.h broken definitions;
55236         simply work around them.
55237         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
55238         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
55239         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
55240         declaring.
55241         Don't bother to define as macros, since the standard doesn't require it.
55242         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
55243         longer worry about IRIX 5.3.
55244         (HAVE_WCTYPE_CTMP_BUG): Remove.
55245
55246 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55247
55248         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
55249         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
55250         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55251         Problems reported by Georg Schwarz for IRIX 5.3.
55252
55253         * gnulib-tool (autoconf_minversion): Take the maximum version number
55254         found, not the minimum.  Problem reported by James Youngman.
55255
55256 2007-01-03  Karl Berry  <karl@gnu.org>
55257
55258         * doc/error.texi: new file, explaining interaction with progname.
55259         * doc/gnulib.texi: include it.  Update copyright.
55260
55261 2007-01-03  Simon Josefsson  <simon@josefsson.org>
55262
55263         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
55264         AC_CANONICAL_HOST, to improve autobuild outputs.
55265
55266 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
55267             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55268
55269         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
55270         sockets, server sockets, and other file descriptors.  Count errors
55271         to compute the return value.  Reorder the code a bit to be easier
55272         to follow.  Don't set event bits that were not requested (except
55273         POLLERR and POLLHUP).
55274
55275 2007-01-01  Bruno Haible  <bruno@clisp.org>
55276
55277         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
55278
55279 2007-01-03  Jim Meyering  <jim@meyering.net>
55280
55281         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
55282
55283 2007-01-02  Bruno Haible  <bruno@clisp.org>
55284
55285         * modules/settime (Include): Require timespec.h.
55286         * modules/nanosleep (Include): Likewise.
55287
55288 2007-01-01  Bruno Haible  <bruno@clisp.org>
55289
55290         * gnulib-tool (func_emit_copyright_notice): Bump year.
55291         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
55292
55293 2007-01-01  Bruno Haible  <bruno@clisp.org>
55294
55295         Improve support for OpenBSD.
55296         * build-aux/config.rpath (libname_spec): Export.
55297         (library_names_spec): New variable. Export.
55298         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
55299         library_names_spec from the config.rpath output. Locate shared library
55300         through the name pattern in library_names_spec.
55301
55302 2007-01-01  Eric Blake  <ebb9@byu.net>
55303
55304         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
55305
55306 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
55307
55308         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
55309         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
55310         assume the C locale, and avoid an "eval" that could cause trouble.
55311         Problem with SORT reported by Bob Proulx.
55312
55313         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
55314         Define.  Trivial patch from Henning Nielsen Lund, originally
55315         sent to bug-grep@gnu.org today.
55316
55317 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55318
55319         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
55320         struct stat.  Problem reported by Henning Nielsen Lund.
55321         * lib/acl.c: Include acl.h first, to check interface.  Don't
55322         bother to include sys/types.h and sys/stat.h again.
55323
55324 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
55325
55326         Import the following change from libc; problem reported by
55327         Sven Verdoolaege.
55328
55329         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
55330
55331         [BZ #1373]
55332         * lib/argp.h: Remove __NTH for __argp_usage inline function.
55333
55334 2006-12-28  Jim Meyering  <jim@meyering.net>
55335
55336         * build-aux/announce-gen: Do not assume that the package
55337         builds any of tar.gz, tar.bz2, and .xdelta files.
55338         Suggestion from Simon Josefsson.
55339
55340 2006-12-28  Simon Josefsson  <simon@josefsson.org>
55341
55342         * modules/announce-gen: New file.
55343
55344 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
55345
55346         * lib/mbchar.h: Just include <wctype.h>; the wctype module
55347         handles its gotchas now.
55348         * lib/mbswidth.c: Likewise.
55349         * lib/wcwidth.h: Likewise.
55350         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
55351         and iswcntrl; the wctype module does this stuff now.
55352         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55353         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55354         * modules/mbchar (Depends-on): Add wctype.
55355         * modules/mbswidth (Depends-on): Likewise.
55356         * modules/wcwidth (Depends-on): Likewise.
55357
55358 2006-12-27  Eric Blake  <ebb9@byu.net>
55359
55360         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
55361         module uses more than what <wctype.h> is required to provide.
55362
55363 2006-12-26  Eric Blake  <ebb9@byu.net>
55364
55365         * gnulib-tool (sed_extract_prog): Avoid space-tab.
55366
55367 2006-12-26  Eric Blake  <ebb9@byu.net>
55368
55369         * modules/absolute-header: New module.
55370         * modules/fcntl (Depends-on): Depend on it.
55371         * modules/inttypes (Depends-on): Likewise.
55372         * modules/stdint (Depends-on): Likewise.
55373         * modules/sys_stat (Depends-on): Likewise.
55374         * modules/wctype (Depends-on): Likewise.
55375         * MODULES.html.sh (Support for building libraries and
55376         executables): Document it.
55377
55378 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55379
55380         * gnulib-tool (SED): Remove, undoing previous change.
55381         The problem was that it broke coreutils on Solaris, because
55382         "sed --posix" leaked into a makefile.
55383         (sed): New alias, if 'alias' and GNU sed.
55384
55385 2006-12-24  Jim Meyering  <jim@meyering.net>
55386
55387         Work around an fchownat bug in glibc-2.4:
55388         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
55389         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
55390         in spite of the -P option.
55391         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
55392         New macros.
55393         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
55394         * modules/openat (Files): Add lib/fchownat.c.
55395         * lib/openat.c (fchownat): Don't define here.  Move to...
55396         * lib/fchownat.c: ...this new file.
55397
55398 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
55399
55400         Fix bug reported by Bruno Haible in
55401         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
55402         where quotearg.c didn't compile on Mac OS X 10.2 because it
55403         lacks <wchar.h> and wint_t.
55404         * lib/wctype_.h (__wctype_wint_t): New type.
55405         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
55406         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
55407         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
55408         Arg is now of type __wctype_wint_t, not wint_t.
55409         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
55410         substitute HAVE_WINT_T.
55411         * modules/wctype (Files): Add m4/wint_t.m4.
55412         (wctype.h): Substitute HAVE_WINT_T.
55413
55414 2006-12-23  Bruno Haible  <bruno@clisp.org>
55415
55416         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
55417
55418 2006-12-23  Bruno Haible  <bruno@clisp.org>
55419
55420         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
55421         S_ISLNK.
55422         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
55423         mingw.
55424
55425 2006-12-22  Bruno Haible  <bruno@clisp.org>
55426
55427         * lib/copy-file.c: Include acl.h.
55428         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
55429         Close the file descriptors only after being done with copy_acl.
55430         * modules/copy-file (Depends-on): Add acl.
55431
55432 2006-12-22  Bruno Haible  <bruno@clisp.org>
55433
55434         * gnulib-tool (SED): New variable.
55435         Use $SED instead of sed everywhere.
55436
55437 2006-12-22  Bruno Haible  <bruno@clisp.org>
55438
55439         * modules/no-c++: New file.
55440         * m4/no-c++.m4: New file.
55441         * MODULES.html.sh (Support for building libraries and executables):
55442         Add no-c++.
55443
55444 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
55445
55446         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55447         Include <limits.h>, and use its INT_MAX to rewrite the
55448         j loop so that it does not overflow 'int'.  Problem reported by
55449         Ralf Wildenhues in
55450         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
55451         Play it safe by shifting left by 1 rather than multiplying by 2,
55452         as GCC is less likely to optimize this away when the value
55453         is signed (when it assumes overflow leads to undefined behavior).
55454         Also, don't assume time_t uses two's complement.
55455
55456 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
55457
55458         * MODULES.html.sh: New module wctype.
55459         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
55460         * lib/fnmatch.c: Don't bother to include <wchar.h> before
55461         <wctype.h>, since the new wctype module should fix this.
55462         * lib/quotearg.c: Include <wctype.h> unconditionally, since
55463         the wctype module should arrange for it.
55464         * lib/regex_internal.h: Likewise.
55465         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
55466         since the wctype module should handle this now.
55467         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
55468         * modules/fnmatch (Depends-on): Add wctype.
55469         * modules/quotearg (Depends-on): Likewise.
55470         * modules/regex (Depends-on): Likewise.
55471
55472 2006-12-19  Bruno Haible  <bruno@clisp.org>
55473
55474         * lib/strdup.h [C++]: Wrap definitions in extern "C".
55475         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
55476
55477 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55478
55479         * modules/savewd (Depends-on): Fix dependency on fcntl.
55480
55481 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55482
55483         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
55484         conforms to C99, rather than relying on the user's environment
55485         setting of STDINT_H.
55486
55487 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55488         and Eric Blake  <ebb9@byu.net>
55489
55490         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
55491         This is more consistent with the other defines here.
55492         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
55493         Port to z/OS.  Problem reported by Paul Gilmartin.
55494         Change local vars to use gl_ prefix rather than ac_.
55495         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
55496         with other defines.
55497         * modules/double-slash-root: New module.
55498         * modules/dirname (Files): Remove m4/double-slash-root.m4.
55499         (Depends-on): Add double-slash-root.
55500         * MODULES.html.sh (File system functions): Mention new module.
55501
55502 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
55503
55504         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
55505         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
55506         This is for the benefit of gzip, which doesn't do i18n.
55507
55508 2006-12-12  Jim Meyering  <jim@meyering.net>
55509
55510         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
55511         Reported by Andreas Schwab <schwab@suse.de>.
55512
55513 2006-12-12  Bruno Haible  <bruno@clisp.org>
55514
55515         Merge these changes.
55516         2006-09-05  Bruno Haible  <bruno@clisp.org>
55517         * lib/iconvme.c (iconv_string): No need to save and restore errno when
55518         iconv_alloc succeeded.
55519         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
55520         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
55521         test for " && dest " at the end - dest is always != NULL there. Call
55522         iconv with 4xNULL arguments initially, to reset the state. Call iconv
55523         with 2xNULL arguments, also to flush the state storage. Handle the
55524         IRIX iconv behaviour. Realloc the final result, to throw away unused
55525         memory.
55526
55527 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
55528
55529         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
55530         and fchmodat unconditionally, since glibc 2.4 has them.
55531         Problem reported by Arkadiusz Miskiewicz.
55532
55533 2006-12-10  Bruno Haible  <bruno@clisp.org>
55534
55535         * gnulib-tool (func_import): Show the include files only for those
55536         modules that are copied and specified.
55537         Reported by Karl Berry.
55538
55539 2006-12-08  Jim Meyering  <jim@meyering.net>
55540
55541         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
55542         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
55543
55544         * build-aux/announce-gen: Add two new options, both optional:
55545         --bootstrap-tools=TOOL_LIST
55546               a comma-separated list of tools, e.g.,
55547               autoconf,automake,bison,gnulib
55548         --gnulib-snapshot-date=DATE
55549               if gnulib is in the bootstrap tool list,
55550               then report this as the snapshot date.
55551               If not specified, use the current date/time.
55552               If you specify a date here, be sure it's UTC.
55553
55554 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55555
55556         * tests/test-argp-2.sh: Fix test to match actual output.
55557         (func_compare): Fix sed script to be portable.
55558
55559 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
55560
55561         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
55562         workaround for this case.  It is not autoconfigured now; offhand
55563         it's hard to see how to autoconfigure it.
55564
55565 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55566
55567         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
55568         a directory that is about to be chowned.  Such a directory's
55569         initial file permissions should permit the owner only and this
55570         should not be changed until after the chown, since the group and
55571         other bits would be incorrect if they granted permission before
55572         the chown.
55573
55574         Fix porting problem for iswctype reported by Georg Schwarz in:
55575         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
55576         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
55577         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
55578         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
55579         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55580
55581 2006-12-03  Jim Meyering  <jim@meyering.net>
55582
55583         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
55584         p->fts_statp may not yet be defined.
55585         (fts_read): Instead, set it in the caller, once p->fts_statp is
55586         sure to be defined, and corresponds to a top-level directory.
55587         This bug made du -x fail.  Here's the coreutils test case:
55588         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
55589         Reported by Mike Frysinger.
55590
55591 2006-12-01  Jim Meyering  <jim@meyering.net>
55592
55593         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
55594         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
55595         Reported by Simon Josefsson.
55596
55597 2006-11-30  Jim Meyering  <jim@meyering.net>
55598
55599         * m4/warning.m4: Use the all-permissive copyright notice
55600         recommended by RMS (rather than LGPL).
55601         * m4/vararrays.m4: Likewise.
55602         * m4/flexmember.m4: Likewise.
55603
55604 2006-11-29  Bruno Haible  <bruno@clisp.org>
55605
55606         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55607         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
55608         using +=.
55609         Reported by Simon Josefsson <simon@josefsson.org>.
55610
55611 2006-11-28  James Youngman <jay@gnu.org>
55612
55613         * README: Advise users that they might find the bug-gnulib@gnu.org
55614         and autotools-announce@gnu.org mailing lists useful.
55615
55616 2006-11-28  Bruno Haible  <bruno@clisp.org>
55617
55618         * m4/ptrdiff_max.m4: Remove file.
55619
55620 2006-11-21  Bruno Haible  <bruno@clisp.org>
55621
55622         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
55623         _AC_COMPUTE_INT.
55624         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55625         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
55626         _AC_COMPUTE_INT.
55627         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55628         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
55629         _AC_COMPUTE_INT.
55630         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55631
55632 2006-11-28  Jim Meyering  <jim@meyering.net>
55633
55634         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
55635         warning from "gcc -Wshadow" about shadowing the builtin.
55636
55637 2006-11-27  Bruno Haible  <bruno@clisp.org>
55638
55639         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
55640         _AC_COMPUTE_INT.
55641         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55642
55643 2006-11-27  Bruno Haible  <bruno@clisp.org>
55644             Paul Eggert  <eggert@cs.ucla.edu>
55645
55646         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
55647
55648 2006-11-26  Bruno Haible  <bruno@clisp.org>
55649
55650         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55651         noinst_LTLIBRARIES.
55652
55653 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
55654             Bruno Haible  <bruno@clisp.org>
55655
55656         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
55657         if compiling with "gcc -ansi".
55658
55659 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
55660
55661         Fix some incompatibilities with gcc -ansi -pedantic.
55662         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
55663         if compiling pedantically with GCC, unless it's C99 or later.
55664         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
55665         it mishandles gcc -ansi -pedantic as well.
55666         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
55667         if gcc -pedantic.
55668         * lib/regexec.c (check_node_accept_bytes): Don't use auto
55669         initializers for struct if -pedantic, unless it's C99 or later.
55670
55671 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
55672
55673         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
55674         Don't close an fd more than once. Identical atimes indicate
55675         success, not failure.
55676
55677 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
55678
55679         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
55680
55681 2006-11-23  Jim Meyering  <jim@meyering.net>
55682
55683         * build-aux/announce-gen: New file.  From coreutils.
55684
55685 2006-11-22  Jim Meyering  <jim@meyering.net>
55686
55687         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
55688         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
55689         (fts_read): Use a temporary to narrow the overused st_size member
55690         before using it in a switch statement.  Reported by Matthew Woehlke.
55691
55692         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
55693         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
55694
55695 2006-11-20  Bruno Haible  <bruno@clisp.org>
55696
55697         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
55698         changequote instead of pairs of brackets.
55699         Reported by Andreas Schwab <schwab@suse.de>.
55700
55701 2006-11-21  Jim Meyering  <jim@meyering.net>
55702
55703         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
55704         so as to remain compatible with older compilers.
55705         Patch from Michael Deutschmann.
55706
55707 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55708
55709         * MODULES.html.sh (File system functions): Add openat.
55710
55711         * lib/openat.h (rpl_fstatat): New macro, if
55712         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
55713         (fstatat): Define to rpl_fstatat under the same conditions,
55714         unless COMPILING_FSTATAT.
55715         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
55716         seems to have the bug.
55717         * lib/fstatat.c: New file.
55718         * modules/openat (Files): Add it.
55719
55720 2006-11-20  Bruno Haible  <bruno@clisp.org>
55721
55722         * Makefile: New file.
55723
55724 2006-11-20  Jim Meyering  <jim@meyering.net>
55725
55726         The beginnings of syntax-related checks for gnulib.
55727         * lib/Makefile: New file.
55728         * lib/t-idcache: New script.  Ensure that the two halves of
55729         idcache.c stay in sync.
55730
55731         * lib/idcache.c: Adjust comments in user- and group- portions to
55732         be more accurate, and to be consistent with one another.
55733
55734 2006-11-20  Jim Meyering  <jim@meyering.net>
55735
55736         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
55737         continue using the flexible array member (thus, this module performs
55738         half as many malloc calls), with the addition that...
55739         (getgroup, getuser): Consistently record a non-match via an empty
55740         "name" string, and map an empty string match to a NULL return value.
55741         * modules/idcache (Depends-on): Re-add flexmember.
55742
55743         * lib/idcache.c (getuser): Remove all uses of the register keyword.
55744         (getuidbyname, getgroup, getgidbyname): Likewise.
55745
55746         Use cleaner syntax: NULL rather than 0.
55747         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
55748
55749 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55750
55751         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
55752         It mishandled the case where the group was missing.
55753         Problem reported by Greg Schafer.
55754         * modules/idcache: Likewise.
55755
55756 2006-11-18  Jim Meyering  <jim@meyering.net>
55757
55758         * check-module (%exempt_header): Add exception for some
55759         conditionally-included headers.
55760
55761         * modules/i-ring (Depends-on): Add verify.
55762         (License): Change to LGPL.
55763
55764 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55765
55766         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
55767         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
55768         and inttostr.h.  Use snprintf rather than uinttostr, so that
55769         LGPLed code doesn't depend on GPLed.
55770
55771 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55772
55773         * modules/inline (License): Change from GPL to LGPL.
55774
55775 2006-11-17  Jim Meyering  <jim@meyering.net>
55776
55777         * modules/d-type (License): Switch to LGPL.
55778
55779 2006-11-15  Bruno Haible  <bruno@clisp.org>
55780
55781         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
55782
55783 2006-11-15  Eric Blake  <ebb9@byu.net>
55784
55785         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
55786         the module dependency.
55787
55788 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55789             Bruno Haible  <bruno@clisp.org>
55790
55791         * gnulib-tool (func_create_testdir): Add license consistency check.
55792
55793 2006-11-15  Eric Blake  <ebb9@byu.net>
55794
55795         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
55796         random "(cached)" in configure output.
55797
55798 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55799
55800         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
55801         test for conforming inttypes.h is both announced and cached.
55802
55803         * MODULES.html.sh (seen_modules, seen_files): New variables.
55804         (func_module): Rewrite to use a few less gnulib-tool and sed
55805         invocations.  Avoid a couple of quadratic algorithms for ...
55806         (missed_modules, missed_files): ... these, with ...
55807         (func_append, func_tmpdir): ... these new functions, from
55808         gnulib-tool.  Analogously, install traps for cleanup.
55809
55810         * tests/test-gc.c (main): Remove unused variables.
55811         * tests/test-read-file.c: Include stdlib.h, for 'free'.
55812
55813 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
55814
55815         * modules/inttostr (License): Change to LGPL.
55816
55817 2006-11-14  Eric Blake  <ebb9@byu.net>
55818
55819         * modules/tempname (License): Change to LGPL.
55820
55821 2006-11-14  Eric Blake  <ebb9@byu.net>
55822
55823         * doc/functions.texi (Function Portability): *printf functions on
55824         Cygwin now understand all POSIX size specifiers.
55825
55826 2006-11-14  Bruno Haible  <bruno@clisp.org>
55827
55828         * modules/c-ctype (License): Change to LGPL.
55829
55830 2006-11-12  Bruno Haible  <bruno@clisp.org>
55831
55832         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55833         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
55834         for GNOME libraries, for which the include files are installed in
55835         subdirectories of $prefix/include.
55836
55837 2006-11-12  Bruno Haible  <bruno@clisp.org>
55838
55839         * m4/lib-link.m4: Require at least autoconf-2.54.
55840         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
55841         name to underscores for the --with option.
55842
55843 2006-11-13  Bruno Haible  <bruno@clisp.org>
55844
55845         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
55846         the tests directory.
55847         Reported by Ralf Wildenhues.
55848
55849 2006-11-13  Bruno Haible  <bruno@clisp.org>
55850
55851         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
55852         (func_emit_initmacro_end): Undo the override here.
55853         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
55854         Works around the famous automake error in coreutils.
55855
55856 2006-11-13  Eric Blake  <ebb9@byu.net>
55857
55858         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
55859         element, not its node.
55860
55861 2006-11-12  Bruno Haible  <bruno@clisp.org>
55862
55863         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
55864         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
55865
55866 2006-11-12  Bruno Haible  <bruno@clisp.org>
55867
55868         * gnulib-tool: New option --local-symlink.
55869         (func_usage): Document it.
55870         (lsymbolic): New variable.
55871         (func_import, func_create_testdir): If --symlink was not specified,
55872         test whether --local-symlink was specified and the file comes from
55873         the local_gnulib_dir.
55874
55875 2006-11-12  Bruno Haible  <bruno@clisp.org>
55876
55877         * gnulib-tool (func_ln): New function.
55878         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
55879
55880 2006-11-12  Bruno Haible  <bruno@clisp.org>
55881
55882         Finish support for source files in subdirectories.
55883         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
55884         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
55885         AUTOMAKE_OPTIONS.
55886         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
55887
55888 2006-11-12  Bruno Haible  <bruno@clisp.org>
55889
55890         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55891         EXTRA_lib_SOURCES augmentation.
55892         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
55893
55894 2006-11-12  Jim Meyering  <jim@meyering.net>
55895
55896         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
55897         file descriptors.  This also averts a failure on systems with
55898         native openat support when a traversed directory lacks "x" access.
55899         * lib/fts_.h: Include "i-ring.h"
55900         (struct FTS) [fts_fd_ring]: New member.
55901         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
55902         (FCHDIR): Add parentheses.
55903         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
55904         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
55905         When descending, rather than simply closing the previous
55906         fts_cwd_fd value, push that file descriptor onto the ring.
55907         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
55908         (fts_open): Initialize the new fd_ring member.
55909         (fts_close): Clear the ring.
55910         (fts_safe_changedir): When possible, use our new fd_ring to skip
55911         the diropen and fstat and dev/ino comparison that would normally
55912         accompany a virtual `chdir ("..")'.
55913
55914         * modules/fts (Depends-on): Add i-ring.
55915         * modules/i-ring: New module.
55916         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
55917         * m4/i-ring.m4: New file.
55918
55919 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55920
55921         * gnulib-tool (func_create_testdir): Fix replacement of
55922         `build-aux' in configure.ac.  Run autotools in gltests
55923         subdirectory.
55924         (func_create_testdir, func_create_megatestdir, test): There is
55925         no need for '--force' in most autotool invocations in a new
55926         tree.  Actually fail the whole test if any of the tools, or the
55927         configure or make stages fail.
55928
55929         Sync from Automake.
55930         * build-aux/gnupload: Revert last change.  Add pointer to upload
55931         instructions of the GNU Maintenance Instructions.
55932         Suggestion by Karl Berry.
55933
55934 2006-11-10  Jim Meyering  <jim@meyering.net>
55935
55936         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
55937
55938 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55939
55940         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
55941         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
55942         (bind_textdomain_codeset) [! ENABLE_NLS]:
55943         Evaluate all the arguments.  That way, callers get compatible behavior
55944         if the arguments have side effects.  Also, it avoids some GCC
55945         diagnostics in some cases; Joel E. Denny reported problems when Bison
55946         was configured with --enable-gcc-warnigs.
55947
55948 2006-11-10  Jim Meyering  <jim@meyering.net>
55949
55950         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
55951         relevant options in CFLAGS (like -O, -fno-inline) are taken into
55952         account.
55953
55954 2006-11-10  Jim Meyering  <jim@meyering.net>
55955
55956         * modules/inline: New file/module.
55957         * modules/xalloc (Files): Remove m4/inline.m4.
55958         (Depends-on): Add inline, instead.
55959         * modules/oset: Likewise.
55960         * modules/list: Likewise.
55961
55962 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55963
55964         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
55965         Problem reported by Matthew Woehlke.
55966
55967 2006-11-09  Bruno Haible  <bruno@clisp.org>
55968
55969         * lib/tempname.c (gen_tempname): Remove variant that invokes
55970         __gen_tempname.
55971         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
55972         __gen_tempname.
55973
55974 2006-11-08  Bruno Haible  <bruno@clisp.org>
55975
55976         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
55977         to 'yes' instead of 'cross-compiling'.
55978
55979 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
55980
55981         * lib/quotearg.h (quotearg_free): New decl.
55982         * lib/quotearg.c (quotearg_free): New function.
55983         (slot0, nslots, slotvec0, slotvec):
55984         Now file-scope so that quotearg_free can get at them.
55985
55986 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55987
55988         Sync from Automake.
55989         * build-aux/gnupload: Add missing 'gnu' to example URL.
55990         Report by Karl Berry.
55991
55992 2006-11-08  Bruno Haible  <bruno@clisp.org>
55993
55994         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
55995         Suggested by Paul Eggert.
55996
55997 2006-11-08  Jim Meyering  <jim@meyering.net>
55998
55999         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
56000         It's already included if !_LIBC.
56001         (fts_safe_changedir): Add a comment.
56002
56003 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56004
56005         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
56006         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
56007         Matthew Woehlke.
56008
56009         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
56010         definitions up, to avoid colliding with change below.
56011         (static_inline) [HAVE_INLINE]: New macro.
56012         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
56013         Provide extern decls when !HAVE_INLINE.  Do not define unless
56014         static_inline is defined, either by us or by xmalloc.c.  Use
56015         static_inline rather than static inline.
56016         (XCALLOC): Optimize sizeof(T) = 1 case.
56017         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
56018
56019 2006-11-07  Bruno Haible  <bruno@clisp.org>
56020
56021         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
56022         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
56023         AC_C_INLINE.
56024         * modules/xalloc (Files): Add m4/inline.m4.
56025
56026 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56027
56028         * README: Fix typo.
56029         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
56030         (Miscellanous Notes): ...from this.
56031
56032 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56033
56034         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
56035         Mention that offsetof should be used instead of sizeof.
56036         From Bruno Haible.
56037
56038 2006-11-07  Bruno Haible  <bruno@clisp.org>
56039
56040         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
56041
56042 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56043
56044         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56045         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
56046         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56047         (gl_tree_add_before, gl_tree_add_after):
56048         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
56049         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
56050         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56051         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
56052         (gl_linked_add_after, gl_linked_add_at): Likewise.
56053         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
56054         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56055         (gl_tree_add_before, gl_tree_add_after): Likewise.
56056         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
56057         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
56058         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
56059
56060 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56061
56062         * lib/gl_oset.h: Use C comment style, not C++ comment style.
56063
56064 2006-11-06  Bruno Haible  <bruno@clisp.org>
56065
56066         * m4/inline.m4: New file.
56067         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
56068         * modules/list (Files): Add m4/inline.m4.
56069         * modules/oset (Files): Likewise.
56070
56071 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56072
56073         * lib/idcache.c: Include <stddef.h>, for offsetof.
56074         (struct userid.name): Change from char * to a flexible array member.
56075         All uses changed.
56076         * modules/idcache (Depends-on): Add flexmember.
56077
56078         * MODULES.html.sh (Core language properties): New module flexmember.
56079         * modules/flexmember, m4/flexmember.m4: New files.
56080
56081         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
56082         inline functions that are identical with the old xnmalloc_inline,
56083         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
56084         that we can avoid some unnecessary integer multiplications and
56085         divisions in the common case where the element size is known at
56086         compile time.
56087         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
56088         needed.
56089         (xnboundedmalloc): Remove.
56090         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
56091         arguments, for consistency with rest of this header.
56092         (xcharalloc): Rewrite using XNMALLOC.
56093         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
56094         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
56095         versions have been moved to lib/xalloc.h and renamed to be the
56096         non-*_inline versions.
56097         (xmalloc, xrealloc): Implement without reference to the xnmalloc
56098         and xnrealloc functions, since those functions are now inline and
56099         now call us.
56100         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
56101         renaming described above.
56102         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
56103         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
56104         captures the dependency in AC_C_INLINE.
56105
56106         New module canonicalize-lgpl, proposed by Charles Wilson in
56107         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
56108         with a few small changes afterwards.
56109         * MODULES.html.sh (File system functions): New module
56110         canonicalize-lgpl.
56111         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
56112         and canonicalize_file_name.
56113         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
56114         * modules/canonicalize-lgpl: New files.
56115
56116 2006-11-05  Bruno Haible  <bruno@clisp.org>
56117
56118         * gnulib-tool (func_import, func_create_testdir): Create directories
56119         also for files in subdirectories of lib/.
56120
56121 2006-11-05  Bruno Haible  <bruno@clisp.org>
56122
56123         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
56124         ANSI C compliant.
56125
56126 2006-11-03  Bruno Haible  <bruno@clisp.org>
56127
56128         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56129         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
56130         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
56131         (xnboundedmalloc): New inline function.
56132         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
56133         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
56134         xmalloc.
56135         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
56136         xmalloc.
56137         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
56138         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
56139         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
56140         xmalloc.
56141         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56142         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
56143         xmalloc.
56144         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
56145         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56146         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
56147         xmalloc.
56148         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56149         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
56150         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56151         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
56152         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
56153         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
56154         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
56155
56156 2006-11-03  Bruno Haible  <bruno@clisp.org>
56157
56158         * lib/c-ctype.h [C++]: Define functions without name mangling.
56159         * lib/fwriteerror.h [C++]: Likewise.
56160         * lib/gcd.h [C++]: Likewise.
56161         * lib/linebreak.h [C++]: Likewise.
56162
56163 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
56164
56165         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
56166         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
56167         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
56168         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56169         Check for functions and headers just once.
56170         Check for declaration of canonicalize_file_name.
56171         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
56172
56173 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56174
56175         * gnulib-tool (func_import): Fix typo in actioncmd.
56176
56177 2006-11-02  Bruno Haible  <bruno@clisp.org>
56178
56179         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
56180         newline sequence in the Makefile.am snippet as a space, like "make"
56181         does.
56182         Reported by Roger Persson <perrog@gmail.com>.
56183
56184 2006-11-01  Bruno Haible  <bruno@clisp.org>
56185
56186         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
56187         already declared in <string.h>.
56188         * lib/strcase.h (strncasecmp): Don't declare it if yes.
56189
56190 2006-11-01  Bruno Haible  <bruno@clisp.org>
56191
56192         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
56193         * lib/strcase.h: Include <string.h>.
56194         (strcasecmp): Define to rpl_strcasecmp here.
56195
56196 2006-11-01  Bruno Haible  <bruno@clisp.org>
56197
56198         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
56199
56200 2006-11-01  Eric Blake  <ebb9@byu.net>
56201
56202         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
56203
56204         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
56205
56206 2006-10-29  Bruno Haible  <bruno@clisp.org>
56207
56208         Make it compile in C++ mode.
56209         * lib/full-write.c (full_rw): Add a cast.
56210
56211 2006-11-01  Bruno Haible  <bruno@clisp.org>
56212
56213         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
56214         be POSIX compliant.
56215         Reported by Roger Persson <perrog@gmail.com>.
56216
56217 2006-11-01  Eric Blake  <ebb9@byu.net>
56218
56219         * lib/getopt_.h: Fix comments.
56220
56221 2006-10-31  Eric Blake  <ebb9@byu.net>
56222
56223         * modules/tmpdir (Depends-on): Add sys_stat.
56224         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
56225         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
56226         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
56227         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
56228         tempname.
56229
56230 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
56231
56232         Avoid some C++ diagnostics reported by Bruno Haible.
56233         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
56234         xmalloc.
56235         (quotearg_alloc): Use xcharalloc rather than xmalloc.
56236         (struct slotvec): Move to top level.
56237         (quotearg_n_options): Rewrite to avoid xmalloc.
56238         * lib/xalloc.h (xcharalloc): New function.
56239         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
56240         [defined __cplusplus]: Add function template that provides result
56241         type propagation.  This part of the change is from Bruno Haible.
56242
56243 2006-10-29  Bruno Haible  <bruno@clisp.org>
56244
56245         Make it compile in C++ mode.
56246         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
56247         * lib/strnlen1.c (strnlen1): Cast memchr result.
56248         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
56249         * lib/clean-temp.c (string_equals, string_hash): Add casts.
56250         (create_temp_dir): Rename local variable 'template'.
56251         (compile_csharp_using_sscli): Add cast.
56252         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
56253         * lib/findprog.c (find_in_path): Likewise.
56254         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
56255         * lib/wait-process.c (register_slave_subprocess): Likewise.
56256
56257 2006-10-22  Bruno Haible  <bruno@clisp.org>
56258
56259         * modules/tsearch: New file.
56260         * lib/tsearch.h: New file.
56261         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
56262         * m4/tsearch.m4: New file.
56263         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
56264
56265 2006-10-29  Eric Blake  <ebb9@byu.net>
56266
56267         * lib/arcfour.c: Assume config.h.
56268         * lib/arctwo.c: Likewise.
56269         * lib/base64.c: Likewise.
56270         * lib/check-version.c: Likewise.
56271         * lib/crc.c: Likewise.
56272         * lib/des.c: Likewise.
56273         * lib/gc-gnulib.c: Likewise.
56274         * lib/gc-libgcrypt.c: Likewise.
56275         * lib/gc-pbkdf2-sha1.c: Likewise.
56276         * lib/getaddrinfo.c: Likewise.
56277         * lib/getdelim.c: Likewise.
56278         * lib/getline.c: Likewise.
56279         * lib/hmac-md5.c: Likewise.
56280         * lib/hmac-sha1.c: Likewise.
56281         * lib/iconvme.c: Likewise.
56282         * lib/md2.c: Likewise.
56283         * lib/md4.c: Likewise.
56284         * lib/memxor.c: Likewise.
56285         * lib/read-file.c: Likewise.
56286         * lib/readline.c: Likewise.
56287         * lib/rijndael-alg-fst.c: Likewise.
56288         * lib/rijndael-api-fst.c: Likewise.
56289         * lib/xgetdomainname.c: Likewise.
56290
56291 2006-10-28  Eric Blake  <ebb9@byu.net>
56292
56293         * lib/xstrndup.c: Assume config.h.
56294
56295 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56296
56297         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
56298         stat-macros.h is now for our own macros, whereas stat_h is for
56299         macros in the <sys/stat.h> name space.
56300         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
56301         (STAT_MACROS_H): Remove.
56302         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
56303         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
56304         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
56305         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
56306         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
56307         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
56308         Move these macros to ...
56309         * lib/stat_.h: here.  Don't include stat-macros.h.
56310         * lib/canonicalize.c: Don't include stat-macros.h.
56311         * lib/chown.c: Likewise.
56312         * lib/euidaccess.c: Likewise.
56313         * lib/file-type.c: Likewise.
56314         * lib/filemode.c: Likewise.
56315         * lib/glob.c: Likewise.
56316         * lib/isapipe.c: Likewise.
56317         * lib/lchown.c: Likewise.
56318         * lib/lstat.c: Likewise.
56319         * lib/mkdir-p.c: Likewise.
56320         * lib/rmdir.c: Likewise.
56321         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
56322         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
56323         unless mkdir isn't declared, to speed up 'configure'.
56324         Always create sys/stat.h, since it's unlikely any real sys/stat.h
56325         would define all the S_* symbols.
56326         * modules/canonicalize (Depends-on):
56327         Depend on sys_stat, not stat-macros.
56328         * modules/chown: Likewise.
56329         * modules/euidaccess: Likewise.
56330         * modules/filemode: Likewise.
56331         * modules/file-type: Likewise.
56332         * modules/glob: Likewise.
56333         * modules/isapipe: Likewise.
56334         * modules/lchown: Likewise.
56335         * modules/lstat: Likewise.
56336         * modules/mkancesdirs: Likewise.
56337         * modules/rmdir: Likewise.
56338         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
56339         * modules/modechange: Likewise.
56340         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
56341         (configure.ac): Remove gl_STAT_MACROS.
56342         * modules/sys_stat (Depends-on): Remove stat-macros.
56343
56344 2006-10-27  Bruno Haible  <bruno@clisp.org>
56345
56346         * m4/signed.m4: Remove file.
56347         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
56348         invocation.
56349         * modules/vasnprintf (Files): Remove m4/signed.m4.
56350
56351 2006-10-27  Bruno Haible  <bruno@clisp.org>
56352
56353         Update to GNU gettext 0.16.
56354         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
56355         m4/inttypes-h.m4, m4/signed.m4.
56356         * m4/gettext.m4: Update to GNU gettext 0.16.
56357         * m4/intl.m4: New file, from GNU gettext.
56358         * m4/intldir.m4: New file, from GNU gettext.
56359         * config/srclist.txt: Update
56360
56361 2006-10-27  Eric Blake  <ebb9@byu.net>
56362
56363         * MODULES.html.sh: Document tempname.
56364         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
56365         dependencies.
56366         (Files): Move lib/tempname.c...
56367         * modules/tempname: ...to this new module.
56368         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
56369         (gl_PREREQ_TEMPNAME): Move...
56370         * m4/tempname.m4: ...to this new file.
56371         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
56372         * modules/sys_stat (Depends-on): Add stat-macros.
56373         * lib/stat_.h (includes): Pick up stat macros.
56374         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
56375         if stat macros are broken.
56376         * lib/tempname.c (includes): No need to include "stat-macros.h".
56377         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
56378         (direxists, __path_search) [!_LIBC]: Don't compile these in
56379         gnulib; the tmpdir module covers that.
56380         * lib/tempname.h: New file.
56381
56382 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
56383
56384         * COPYING: Explain how gnulib-tool converts licence headers.
56385         Almost all wording by Eric Blake.
56386
56387 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
56388
56389         * lib/mbchar.h (is_basic_table): Make read-only.
56390         * lib/mbchar.c (is_basic_table): Likewise.
56391         Reported by John Darrington.
56392
56393 2006-10-25  Bruno Haible  <bruno@clisp.org>
56394
56395         * lib/progname.h (set_program_name): Undefine before defining.
56396
56397 2006-10-25  Bruno Haible  <bruno@clisp.org>
56398
56399         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
56400         false for non-gcc C++ compilers.
56401         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56402
56403 2006-10-24  Bruno Haible  <bruno@clisp.org>
56404
56405         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
56406         iconv implementations like Irix iconv.
56407
56408 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56409
56410         * modules/vararrays: New file.
56411         * m4/vararrays.m4: New file, taken from diffutils.
56412         * MODULES.html.sh: New module vararrays.
56413
56414 2006-10-24  Karl Berry  <karl@gnu.org>
56415
56416         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
56417         Don't call GNU Unix.
56418
56419 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56420
56421         * users.txt: Add Libtool.
56422
56423         Sync from Libtool:
56424
56425         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56426
56427         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
56428         to gnulib's policy of including config.h unconditionally.
56429
56430 2006-10-24  Bruno Haible  <bruno@clisp.org>
56431
56432         * modules/wcwidth (Files): Add m4/wint_t.m4.
56433         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
56434         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
56435
56436 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56437
56438         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
56439         to pacify GCC with some -W flags enabled.  Problem reported by
56440         Bruno Haible.
56441
56442 2006-10-24  Jim Meyering  <jim@meyering.net>
56443
56444         * MODULES.html.sh: Remove uinttostr.  It's not a module.
56445         Reported by Karl Berry.
56446
56447 2006-10-23  Bruno Haible  <bruno@clisp.org>
56448
56449         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
56450
56451 2006-10-24  Bruno Haible  <bruno@clisp.org>
56452
56453         * lib/gl_list.h: Use C comment style, not C++ comment style.
56454
56455 2006-10-23  Eric Blake  <ebb9@byu.net>
56456
56457         * lib/getaddrinfo.c (includes): Add missing include.
56458
56459 2006-10-23  Bruno Haible  <bruno@clisp.org>
56460             Paul Eggert  <eggert@cs.ucla.edu>
56461
56462         Ability to rename obstack_free.
56463         * lib/obstack.h (__obstack_free): New macro. Declare instead of
56464         obstack_free.
56465         (obstack_free): Invoke the __obstack_free macro.
56466         * lib/obstack.c (obstack_free): Use __obstack_free macro.
56467
56468 2006-10-23  Bruno Haible  <bruno@clisp.org>
56469             Paul Eggert  <eggert@cs.ucla.edu>
56470
56471         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
56472         __argc, __argv from the declaration. (They are defined as macros on
56473         mingw.)
56474
56475 2006-10-22  Bruno Haible  <bruno@clisp.org>
56476
56477         * doc/gnulib-intro.texi: New file.
56478         * doc/gnulib.texi: Include it.
56479
56480 2006-10-21  Bruno Haible  <bruno@clisp.org>
56481
56482         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
56483         "Introduction", "Miscellanous Notes", "Particular Modules".
56484
56485 2006-10-21  Bruno Haible  <bruno@clisp.org>
56486
56487         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56488         Change mostlyclean-local rule to avoid sh syntax error from bash
56489         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
56490
56491 2006-10-23  Jim Meyering  <jim@meyering.net>
56492
56493         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
56494         in place of snprintf.
56495
56496         * modules/inttostr (Files): Add lib/uinttostr.c.
56497         * lib/uinttostr.c (inttostr): New file/function.
56498         * lib/inttostr.h (uinttostr): Declare.
56499         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
56500         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
56501         Add uinttostr.
56502         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
56503
56504 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56505
56506         * lib/canonicalize.c (ELOOP): Define if not already defined.
56507         Problem reported by Bruno Haible in
56508         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
56509
56510 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56511
56512         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
56513         Problem reported by Perry Smith and Ville Laurikari.
56514
56515         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
56516         uses.
56517
56518 2006-10-19  Bruno Haible  <bruno@clisp.org>
56519
56520         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
56521         for mingw.
56522
56523 2006-10-19  Bruno Haible  <bruno@clisp.org>
56524
56525         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
56526         Needed for mingw.
56527
56528 2006-10-19  Bruno Haible  <bruno@clisp.org>
56529
56530         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
56531
56532 2006-10-19  Bruno Haible  <bruno@clisp.org>
56533
56534         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
56535         it.
56536
56537 2006-10-19  Bruno Haible  <bruno@clisp.org>
56538
56539         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
56540         invocation.
56541
56542 2006-10-19  Bruno Haible  <bruno@clisp.org>
56543
56544         * gnulib-tool (func_create_testdir): Don't include ftruncate and
56545         mountlist by default.
56546
56547 2006-10-16  Bruno Haible  <bruno@clisp.org>
56548
56549         * lib/c-strstr.c: Include c-strstr.h.
56550
56551 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56552
56553         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
56554         in a slash.
56555
56556 2006-10-18  Bruno Haible  <bruno@clisp.org>
56557
56558         * lib/lock.h [C++]: Wrap definitions in extern "C".
56559
56560 2006-10-18  Bruno Haible  <bruno@clisp.org>
56561
56562         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
56563         gl_LIBOBJS list.
56564
56565 2006-10-18  Bruno Haible  <bruno@clisp.org>
56566
56567         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
56568
56569 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
56570
56571         * lib/xstrtol.h: Include gettext.h.
56572         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
56573         Problem reported by Eric Blake.
56574         * modules/xstrtol (Depends-on): Add gettext-h.
56575
56576 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
56577
56578         * lib/strftime.c (advance): New macro.
56579         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
56580         incomplete type, so you can't add 0 to it.  Problem and patch
56581         reported by Eelco Dolstra for dietlibc.
56582
56583 2006-10-18  Jim Meyering  <jim@meyering.net>
56584
56585         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
56586         type for a local, and rename it: s/up/user_proc/.
56587
56588 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56589
56590         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
56591         READ_UTMP_USER_PROCESS.
56592         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
56593
56594 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56595
56596         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
56597         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
56598
56599 2006-10-17  Eric Blake  <ebb9@byu.net>
56600
56601         * lib/sigprocmask.c (sigprocmask): Fix typo.
56602
56603         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
56604
56605         * modules/clean-temp (Makefile.am): Don't add to make output...
56606         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
56607         config.h.
56608
56609 2006-10-17  Bruno Haible  <bruno@clisp.org>
56610
56611         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
56612         differently if DEFAULT_TEXT_DOMAIN is set.
56613
56614 2006-10-16  Bruno Haible  <bruno@clisp.org>
56615
56616         * lib/clean-temp.c: Include fwriteerror.h.
56617
56618 2006-10-16  Bruno Haible  <bruno@clisp.org>
56619
56620         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
56621
56622 2006-10-16  Bruno Haible  <bruno@clisp.org>
56623
56624         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
56625         * lib/sigprocmask.h: Include <sys/types.h>.
56626         (sigset_t): Use the system's definition if present.
56627
56628 2006-10-17  Eric Blake  <ebb9@byu.net>
56629
56630         * lib/xvasprintf.c (includes): Assume config.h.
56631         * lib/xasprintf.c (includes): Likewise.
56632
56633 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56634
56635         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
56636         at least as wide as intmax_t.
56637
56638 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
56639
56640         (Imported from Automake.)
56641         * build-aux/gnupload: Update to version 1.1 of directive file.
56642
56643 2006-10-16  Eric Blake  <ebb9@byu.net>
56644
56645         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
56646         match Automake 1.10a.
56647
56648 2006-10-14  Bruno Haible  <bruno@clisp.org>
56649
56650         * modules/sigprocmask: New file.
56651         * lib/sigprocmask.h: New file.
56652         * lib/sigprocmask.c: New file.
56653         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
56654         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
56655         request sigprocmask.o.
56656         (gl_PREREQ_SIGPROCMASK): New macro.
56657         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
56658         (Depends-on): Add sigprocmask.
56659         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
56660         gt_SIGNALBLOCKING. Test for 'raise' only once.
56661         * lib/fatal-signal.c: Include sigprocmask.h.
56662         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
56663         unblock_fatal_signals): Define always.
56664         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56665         sigprocmask.
56666
56667 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56668
56669         Sync from Automake.
56670         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
56671         which incorrectly sets the mode of an existing destination
56672         directory.  In some cases the unpatched install-sh could do the
56673         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
56674         system.  We hope this is rare in practice, but it's clearly worth
56675         fixing.  Problem reported by Alex Unleashed in
56676         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
56677         Also, don't bother to check for -m bugs unless we're using -m;
56678         suggested by Stepan Kasal.
56679
56680 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56681
56682         Sync from Automake.
56683         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
56684         `-c' flag, so they appear at the same position as in %FASTDEP%
56685         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
56686         which ignores unknown options only after the first non-option.
56687         Bug report against M4 by Nelson H. F. Beebe.
56688
56689 2006-10-13  Jim Meyering  <jim@meyering.net>
56690
56691         Fix a bug in yesterday's change.
56692         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
56693         p->fts_statp->st_dev would be used uninitialized.
56694         Ensures that we always call fts_stat on the very first entry.
56695         Miklos Szeredi reported that find -xdev stopped working.
56696
56697 2006-10-12  Bruno Haible  <bruno@clisp.org>
56698
56699         * gnulib-tool (func_get_automake_snippet): Append an automatically
56700         computed EXTRA_DIST augmentation.
56701         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
56702         * modules/alloca-opt (Makefile.am): Likewise.
56703         * modules/allocsa (Makefile.am): Likewise.
56704         * modules/arcfour (Makefile.am): Likewise.
56705         * modules/arctwo (Makefile.am): Likewise.
56706         * modules/argmatch (Makefile.am): Likewise.
56707         * modules/argz (Makefile.am): Likewise.
56708         * modules/atexit (Makefile.am): Likewise.
56709         * modules/backupfile (Makefile.am): Likewise.
56710         * modules/byteswap (Makefile.am): Likewise.
56711         * modules/c-strtod (Makefile.am): Likewise.
56712         * modules/c-strtold (Makefile.am): Likewise.
56713         * modules/calloc (Makefile.am): Likewise.
56714         * modules/canon-host (Makefile.am): Likewise.
56715         * modules/canonicalize (Makefile.am): Likewise.
56716         * modules/chdir-long (Makefile.am): Likewise.
56717         * modules/chdir-safer (Makefile.am): Likewise.
56718         * modules/check-version (Makefile.am): Likewise.
56719         * modules/chown (Makefile.am): Likewise.
56720         * modules/cloexec (Makefile.am): Likewise.
56721         * modules/close-stream (Makefile.am): Likewise.
56722         * modules/closeout (Makefile.am): Likewise.
56723         * modules/crc (Makefile.am): Likewise.
56724         * modules/csharpexec (Makefile.am): Likewise.
56725         * modules/cycle-check (Makefile.am): Likewise.
56726         * modules/des (Makefile.am): Likewise.
56727         * modules/dev-ino (Makefile.am): Likewise.
56728         * modules/dirfd (Makefile.am): Likewise.
56729         * modules/dirname (Makefile.am): Likewise.
56730         * modules/dup2 (Makefile.am): Likewise.
56731         * modules/eealloc (Makefile.am): Likewise.
56732         * modules/error (Makefile.am): Likewise.
56733         * modules/euidaccess (Makefile.am): Likewise.
56734         * modules/exclude (Makefile.am): Likewise.
56735         * modules/exitfail (Makefile.am): Likewise.
56736         * modules/fcntl-safer (Makefile.am): Likewise.
56737         * modules/fcntl (Makefile.am): Likewise.
56738         * modules/file-type (Makefile.am): Likewise.
56739         * modules/fileblocks (Makefile.am): Likewise.
56740         * modules/filemode (Makefile.am): Likewise.
56741         * modules/filenamecat (Makefile.am): Likewise.
56742         * modules/fnmatch (Makefile.am): Likewise.
56743         * modules/fopen-safer (Makefile.am): Likewise.
56744         * modules/fpending (Makefile.am): Likewise.
56745         * modules/fprintftime (Makefile.am): Likewise.
56746         * modules/free (Makefile.am): Likewise.
56747         * modules/fsusage (Makefile.am): Likewise.
56748         * modules/ftruncate (Makefile.am): Likewise.
56749         * modules/fts (Makefile.am): Likewise.
56750         * modules/gc-arcfour (Makefile.am): Likewise.
56751         * modules/gc-des (Makefile.am): Likewise.
56752         * modules/gc-hmac-md5 (Makefile.am): Likewise.
56753         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
56754         * modules/gc-md4 (Makefile.am): Likewise.
56755         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56756         * modules/gc-sha1 (Makefile.am): Likewise.
56757         * modules/gc (Makefile.am): Likewise.
56758         * modules/getaddrinfo (Makefile.am): Likewise.
56759         * modules/getcwd (Makefile.am): Likewise.
56760         * modules/getdelim (Makefile.am): Likewise.
56761         * modules/getdomainname (Makefile.am): Likewise.
56762         * modules/getgroups (Makefile.am): Likewise.
56763         * modules/gethostname (Makefile.am): Likewise.
56764         * modules/gethrxtime (Makefile.am): Likewise.
56765         * modules/getline (Makefile.am): Likewise.
56766         * modules/getloadavg (Makefile.am): Likewise.
56767         * modules/getlogin_r (Makefile.am): Likewise.
56768         * modules/getndelim2 (Makefile.am): Likewise.
56769         * modules/getopt (Makefile.am): Likewise.
56770         * modules/getpagesize (Makefile.am): Likewise.
56771         * modules/getpass-gnu (Makefile.am): Likewise.
56772         * modules/getpass (Makefile.am): Likewise.
56773         * modules/getsubopt (Makefile.am): Likewise.
56774         * modules/gettime (Makefile.am): Likewise.
56775         * modules/gettimeofday (Makefile.am): Likewise.
56776         * modules/getugroups (Makefile.am): Likewise.
56777         * modules/getusershell (Makefile.am): Likewise.
56778         * modules/glob (Makefile.am): Likewise.
56779         * modules/group-member (Makefile.am): Likewise.
56780         * modules/hard-locale (Makefile.am): Likewise.
56781         * modules/hash (Makefile.am): Likewise.
56782         * modules/hmac-md5 (Makefile.am): Likewise.
56783         * modules/hmac-sha1 (Makefile.am): Likewise.
56784         * modules/human (Makefile.am): Likewise.
56785         * modules/idcache (Makefile.am): Likewise.
56786         * modules/imaxabs (Makefile.am): Likewise.
56787         * modules/imaxdiv (Makefile.am): Likewise.
56788         * modules/inet_ntop (Makefile.am): Likewise.
56789         * modules/inet_pton (Makefile.am): Likewise.
56790         * modules/intprops (Makefile.am): Likewise.
56791         * modules/inttostr (Makefile.am): Likewise.
56792         * modules/inttypes (Makefile.am): Likewise.
56793         * modules/isapipe (Makefile.am): Likewise.
56794         * modules/javaversion (Makefile.am): Likewise.
56795         * modules/lchmod (Makefile.am): Likewise.
56796         * modules/lchown (Makefile.am): Likewise.
56797         * modules/localcharset (Makefile.am): Likewise.
56798         * modules/long-options (Makefile.am): Likewise.
56799         * modules/lstat (Makefile.am): Likewise.
56800         * modules/malloc (Makefile.am): Likewise.
56801         * modules/mathl (Makefile.am): Likewise.
56802         * modules/mbchar (Makefile.am): Likewise.
56803         * modules/md2 (Makefile.am): Likewise.
56804         * modules/md4 (Makefile.am): Likewise.
56805         * modules/md5 (Makefile.am): Likewise.
56806         * modules/memcasecmp (Makefile.am): Likewise.
56807         * modules/memchr (Makefile.am): Likewise.
56808         * modules/memcmp (Makefile.am): Likewise.
56809         * modules/memcoll (Makefile.am): Likewise.
56810         * modules/memcpy (Makefile.am): Likewise.
56811         * modules/memmem (Makefile.am): Likewise.
56812         * modules/memmove (Makefile.am): Likewise.
56813         * modules/mempcpy (Makefile.am): Likewise.
56814         * modules/memrchr (Makefile.am): Likewise.
56815         * modules/memset (Makefile.am): Likewise.
56816         * modules/memxor (Makefile.am): Likewise.
56817         * modules/mkancesdirs (Makefile.am): Likewise.
56818         * modules/mkdir-p (Makefile.am): Likewise.
56819         * modules/mkdir (Makefile.am): Likewise.
56820         * modules/mkdtemp (Makefile.am): Likewise.
56821         * modules/mkstemp (Makefile.am): Likewise.
56822         * modules/mktime (Makefile.am): Likewise.
56823         * modules/modechange (Makefile.am): Likewise.
56824         * modules/mountlist (Makefile.am): Likewise.
56825         * modules/nanosleep (Makefile.am): Likewise.
56826         * modules/obstack (Makefile.am): Likewise.
56827         * modules/openat (Makefile.am): Likewise.
56828         * modules/pagealign_alloc (Makefile.am): Likewise.
56829         * modules/pathmax (Makefile.am): Likewise.
56830         * modules/physmem (Makefile.am): Likewise.
56831         * modules/poll (Makefile.am): Likewise.
56832         * modules/posixtm (Makefile.am): Likewise.
56833         * modules/posixver (Makefile.am): Likewise.
56834         * modules/putenv (Makefile.am): Likewise.
56835         * modules/quote (Makefile.am): Likewise.
56836         * modules/quotearg (Makefile.am): Likewise.
56837         * modules/raise (Makefile.am): Likewise.
56838         * modules/read-file (Makefile.am): Likewise.
56839         * modules/readline (Makefile.am): Likewise.
56840         * modules/readlink (Makefile.am): Likewise.
56841         * modules/readtokens (Makefile.am): Likewise.
56842         * modules/readutmp (Makefile.am): Likewise.
56843         * modules/realloc (Makefile.am): Likewise.
56844         * modules/regex (Makefile.am): Likewise.
56845         * modules/rename-dest-slash (Makefile.am): Likewise.
56846         * modules/rename (Makefile.am): Likewise.
56847         * modules/rijndael (Makefile.am): Likewise.
56848         * modules/rmdir (Makefile.am): Likewise.
56849         * modules/rpmatch (Makefile.am): Likewise.
56850         * modules/safe-read (Makefile.am): Likewise.
56851         * modules/safe-write (Makefile.am): Likewise.
56852         * modules/same-inode (Makefile.am): Likewise.
56853         * modules/same (Makefile.am): Likewise.
56854         * modules/save-cwd (Makefile.am): Likewise.
56855         * modules/savedir (Makefile.am): Likewise.
56856         * modules/setenv (Makefile.am): Likewise.
56857         * modules/settime (Makefile.am): Likewise.
56858         * modules/sha1 (Makefile.am): Likewise.
56859         * modules/sig2str (Makefile.am): Likewise.
56860         * modules/snprintf (Makefile.am): Likewise.
56861         * modules/stat-macros (Makefile.am): Likewise.
56862         * modules/stat-time (Makefile.am): Likewise.
56863         * modules/stdbool (Makefile.am): Likewise.
56864         * modules/stdint (Makefile.am): Likewise.
56865         * modules/stdlib-safer (Makefile.am): Likewise.
56866         * modules/stpcpy (Makefile.am): Likewise.
56867         * modules/stpncpy (Makefile.am): Likewise.
56868         * modules/strcase (Makefile.am): Likewise.
56869         * modules/strcasestr (Makefile.am): Likewise.
56870         * modules/strchrnul (Makefile.am): Likewise.
56871         * modules/strcspn (Makefile.am): Likewise.
56872         * modules/strdup (Makefile.am): Likewise.
56873         * modules/strerror (Makefile.am): Likewise.
56874         * modules/strftime (Makefile.am): Likewise.
56875         * modules/strndup (Makefile.am): Likewise.
56876         * modules/strnlen (Makefile.am): Likewise.
56877         * modules/strpbrk (Makefile.am): Likewise.
56878         * modules/strsep (Makefile.am): Likewise.
56879         * modules/strstr (Makefile.am): Likewise.
56880         * modules/strtod (Makefile.am): Likewise.
56881         * modules/strtoimax (Makefile.am): Likewise.
56882         * modules/strtok_r (Makefile.am): Likewise.
56883         * modules/strtol (Makefile.am): Likewise.
56884         * modules/strtoll (Makefile.am): Likewise.
56885         * modules/strtoul (Makefile.am): Likewise.
56886         * modules/strtoull (Makefile.am): Likewise.
56887         * modules/strtoumax (Makefile.am): Likewise.
56888         * modules/strverscmp (Makefile.am): Likewise.
56889         * modules/sys_socket (Makefile.am): Likewise.
56890         * modules/sys_stat (Makefile.am): Likewise.
56891         * modules/sysexits (Makefile.am): Likewise.
56892         * modules/time_r (Makefile.am): Likewise.
56893         * modules/timegm (Makefile.am): Likewise.
56894         * modules/timespec (Makefile.am): Likewise.
56895         * modules/tmpfile-safer (Makefile.am): Likewise.
56896         * modules/trim (Makefile.am): Likewise.
56897         * modules/unistd-safer (Makefile.am): Likewise.
56898         * modules/unlinkdir (Makefile.am): Likewise.
56899         * modules/unlocked-io (Makefile.am): Likewise.
56900         * modules/userspec (Makefile.am): Likewise.
56901         * modules/utime (Makefile.am): Likewise.
56902         * modules/utimecmp (Makefile.am): Likewise.
56903         * modules/utimens (Makefile.am): Likewise.
56904         * modules/vasnprintf (Makefile.am): Likewise.
56905         * modules/vasprintf (Makefile.am): Likewise.
56906         * modules/vsnprintf (Makefile.am): Likewise.
56907         * modules/xalloc (Makefile.am): Likewise.
56908         * modules/xgetcwd (Makefile.am): Likewise.
56909         * modules/xnanosleep (Makefile.am): Likewise.
56910         * modules/xreadlink (Makefile.am): Likewise.
56911         * modules/xstrtod (Makefile.am): Likewise.
56912         * modules/xstrtol (Makefile.am): Likewise.
56913         * modules/xstrtold (Makefile.am): Likewise.
56914         * modules/yesno (Makefile.am): Likewise.
56915         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
56916
56917 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56918
56919         * modules/error (Makefile.am): Distribute files through
56920         EXTRA_DIST, not lib_SOURCES.
56921
56922 2006-10-12  Eric Blake  <ebb9@byu.net>
56923
56924         * modules/error (Makefile.am): Distribute files in /lib.
56925         * modules/obstack (Makefile.am): Likewise.
56926
56927 2006-10-12  Bruno Haible  <bruno@clisp.org>
56928
56929         * modules/acl (Makefile.am): Distribute all files in lib/ through
56930         EXTRA_DIST.
56931         * modules/arcfour (Makefile.am): Likewise.
56932         * modules/arctwo (Makefile.am): Likewise.
56933         * modules/argmatch (Makefile.am): Likewise.
56934         * modules/argz (Makefile.am): Likewise.
56935         * modules/atexit (Makefile.am): Likewise.
56936         * modules/backupfile (Makefile.am): Likewise.
56937         * modules/c-strtod (Makefile.am): Likewise.
56938         * modules/c-strtold (Makefile.am): Likewise.
56939         * modules/calloc (Makefile.am): Likewise.
56940         * modules/canon-host (Makefile.am): Likewise.
56941         * modules/canonicalize (Makefile.am): Likewise.
56942         * modules/chdir-long (Makefile.am): Likewise.
56943         * modules/chdir-safer (Makefile.am): Likewise.
56944         * modules/check-version (Makefile.am): Likewise.
56945         * modules/chown (Makefile.am): Likewise.
56946         * modules/cloexec (Makefile.am): Likewise.
56947         * modules/close-stream (Makefile.am): Likewise.
56948         * modules/closeout (Makefile.am): Likewise.
56949         * modules/crc (Makefile.am): Likewise.
56950         * modules/cycle-check (Makefile.am): Likewise.
56951         * modules/des (Makefile.am): Likewise.
56952         * modules/dirfd (Makefile.am): Likewise.
56953         * modules/dirname (Makefile.am): Likewise.
56954         * modules/dup2 (Makefile.am): Likewise.
56955         * modules/euidaccess (Makefile.am): Likewise.
56956         * modules/exclude (Makefile.am): Likewise.
56957         * modules/exitfail (Makefile.am): Likewise.
56958         * modules/fcntl-safer (Makefile.am): Likewise.
56959         * modules/file-type (Makefile.am): Likewise.
56960         * modules/fileblocks (Makefile.am): Likewise.
56961         * modules/filemode (Makefile.am): Likewise.
56962         * modules/filenamecat (Makefile.am): Likewise.
56963         * modules/fnmatch (Makefile.am): Likewise.
56964         * modules/fopen-safer (Makefile.am): Likewise.
56965         * modules/fpending (Makefile.am): Likewise.
56966         * modules/fprintftime (Makefile.am): Likewise.
56967         * modules/free (Makefile.am): Likewise.
56968         * modules/fsusage (Makefile.am): Likewise.
56969         * modules/ftruncate (Makefile.am): Likewise.
56970         * modules/fts (Makefile.am): Likewise.
56971         * modules/gc (Makefile.am): Likewise.
56972         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56973         * modules/getaddrinfo (Makefile.am): Likewise.
56974         * modules/getcwd (Makefile.am): Likewise.
56975         * modules/getdelim (Makefile.am): Likewise.
56976         * modules/getdomainname (Makefile.am): Likewise.
56977         * modules/getgroups (Makefile.am): Likewise.
56978         * modules/gethostname (Makefile.am): Likewise.
56979         * modules/gethrxtime (Makefile.am): Likewise.
56980         * modules/getline (Makefile.am): Likewise.
56981         * modules/getloadavg (Makefile.am): Likewise.
56982         * modules/getlogin_r (Makefile.am): Likewise.
56983         * modules/getopt (Makefile.am): Likewise.
56984         * modules/getpass (Makefile.am): Likewise.
56985         * modules/getpass-gnu (Makefile.am): Likewise.
56986         * modules/getsubopt (Makefile.am): Likewise.
56987         * modules/gettime (Makefile.am): Likewise.
56988         * modules/gettimeofday (Makefile.am): Likewise.
56989         * modules/getugroups (Makefile.am): Likewise.
56990         * modules/getusershell (Makefile.am): Likewise.
56991         * modules/glob (Makefile.am): Likewise.
56992         * modules/group-member (Makefile.am): Likewise.
56993         * modules/hard-locale (Makefile.am): Likewise.
56994         * modules/hash (Makefile.am): Likewise.
56995         * modules/hmac-md5 (Makefile.am): Likewise.
56996         * modules/hmac-sha1 (Makefile.am): Likewise.
56997         * modules/human (Makefile.am): Likewise.
56998         * modules/idcache (Makefile.am): Likewise.
56999         * modules/imaxabs (Makefile.am): Likewise.
57000         * modules/imaxdiv (Makefile.am): Likewise.
57001         * modules/inet_ntop (Makefile.am): Likewise.
57002         * modules/inet_pton (Makefile.am): Likewise.
57003         * modules/inttostr (Makefile.am): Likewise.
57004         * modules/isapipe (Makefile.am): Likewise.
57005         * modules/lchown (Makefile.am): Likewise.
57006         * modules/long-options (Makefile.am): Likewise.
57007         * modules/lstat (Makefile.am): Likewise.
57008         * modules/malloc (Makefile.am): Likewise.
57009         * modules/mathl (Makefile.am): Likewise.
57010         * modules/mbchar (Makefile.am): Likewise.
57011         * modules/md2 (Makefile.am): Likewise.
57012         * modules/md4 (Makefile.am): Likewise.
57013         * modules/md5 (Makefile.am): Likewise.
57014         * modules/memcasecmp (Makefile.am): Likewise.
57015         * modules/memchr (Makefile.am): Likewise.
57016         * modules/memcmp (Makefile.am): Likewise.
57017         * modules/memcoll (Makefile.am): Likewise.
57018         * modules/memcpy (Makefile.am): Likewise.
57019         * modules/memmem (Makefile.am): Likewise.
57020         * modules/memmove (Makefile.am): Likewise.
57021         * modules/mempcpy (Makefile.am): Likewise.
57022         * modules/memrchr (Makefile.am): Likewise.
57023         * modules/memset (Makefile.am): Likewise.
57024         * modules/memxor (Makefile.am): Likewise.
57025         * modules/mkancesdirs (Makefile.am): Likewise.
57026         * modules/mkdir (Makefile.am): Likewise.
57027         * modules/mkdir-p (Makefile.am): Likewise.
57028         * modules/mkdtemp (Makefile.am): Likewise.
57029         * modules/mkstemp (Makefile.am): Likewise.
57030         * modules/mktime (Makefile.am): Likewise.
57031         * modules/modechange (Makefile.am): Likewise.
57032         * modules/mountlist (Makefile.am): Likewise.
57033         * modules/nanosleep (Makefile.am): Likewise.
57034         * modules/openat (Makefile.am): Likewise.
57035         * modules/pagealign_alloc (Makefile.am): Likewise.
57036         * modules/physmem (Makefile.am): Likewise.
57037         * modules/poll (Makefile.am): Likewise.
57038         * modules/posixtm (Makefile.am): Likewise.
57039         * modules/posixver (Makefile.am): Likewise.
57040         * modules/putenv (Makefile.am): Likewise.
57041         * modules/quote (Makefile.am): Likewise.
57042         * modules/quotearg (Makefile.am): Likewise.
57043         * modules/raise (Makefile.am): Likewise.
57044         * modules/read-file (Makefile.am): Likewise.
57045         * modules/readline (Makefile.am): Likewise.
57046         * modules/readlink (Makefile.am): Likewise.
57047         * modules/readtokens (Makefile.am): Likewise.
57048         * modules/readutmp (Makefile.am): Likewise.
57049         * modules/realloc (Makefile.am): Likewise.
57050         * modules/regex (Makefile.am): Likewise.
57051         * modules/rename (Makefile.am): Likewise.
57052         * modules/rename-dest-slash (Makefile.am): Likewise.
57053         * modules/rijndael (Makefile.am): Likewise.
57054         * modules/rmdir (Makefile.am): Likewise.
57055         * modules/rpmatch (Makefile.am): Likewise.
57056         * modules/safe-read (Makefile.am): Likewise.
57057         * modules/safe-write (Makefile.am): Likewise.
57058         * modules/same (Makefile.am): Likewise.
57059         * modules/save-cwd (Makefile.am): Likewise.
57060         * modules/savedir (Makefile.am): Likewise.
57061         * modules/setenv (Makefile.am): Likewise.
57062         * modules/settime (Makefile.am): Likewise.
57063         * modules/sha1 (Makefile.am): Likewise.
57064         * modules/sig2str (Makefile.am): Likewise.
57065         * modules/snprintf (Makefile.am): Likewise.
57066         * modules/stdlib-safer (Makefile.am): Likewise.
57067         * modules/stpcpy (Makefile.am): Likewise.
57068         * modules/stpncpy (Makefile.am): Likewise.
57069         * modules/strcase (Makefile.am): Likewise.
57070         * modules/strcasestr (Makefile.am): Likewise.
57071         * modules/strchrnul (Makefile.am): Likewise.
57072         * modules/strcspn (Makefile.am): Likewise.
57073         * modules/strdup (Makefile.am): Likewise.
57074         * modules/strerror (Makefile.am): Likewise.
57075         * modules/strftime (Makefile.am): Likewise.
57076         * modules/strndup (Makefile.am): Likewise.
57077         * modules/strnlen (Makefile.am): Likewise.
57078         * modules/strpbrk (Makefile.am): Likewise.
57079         * modules/strsep (Makefile.am): Likewise.
57080         * modules/strstr (Makefile.am): Likewise.
57081         * modules/strtod (Makefile.am): Likewise.
57082         * modules/strtoimax (Makefile.am): Likewise.
57083         * modules/strtok_r (Makefile.am): Likewise.
57084         * modules/strtol (Makefile.am): Likewise.
57085         * modules/strtoll (Makefile.am): Likewise.
57086         * modules/strtoul (Makefile.am): Likewise.
57087         * modules/strtoull (Makefile.am): Likewise.
57088         * modules/strtoumax (Makefile.am): Likewise.
57089         * modules/strverscmp (Makefile.am): Likewise.
57090         * modules/time_r (Makefile.am): Likewise.
57091         * modules/timegm (Makefile.am): Likewise.
57092         * modules/tmpfile-safer (Makefile.am): Likewise.
57093         * modules/unistd-safer (Makefile.am): Likewise.
57094         * modules/unlinkdir (Makefile.am): Likewise.
57095         * modules/userspec (Makefile.am): Likewise.
57096         * modules/utime (Makefile.am): Likewise.
57097         * modules/utimecmp (Makefile.am): Likewise.
57098         * modules/utimens (Makefile.am): Likewise.
57099         * modules/vasnprintf (Makefile.am): Likewise.
57100         * modules/vasprintf (Makefile.am): Likewise.
57101         * modules/vsnprintf (Makefile.am): Likewise.
57102         * modules/xalloc (Makefile.am): Likewise.
57103         * modules/xgetcwd (Makefile.am): Likewise.
57104         * modules/xnanosleep (Makefile.am): Likewise.
57105         * modules/xreadlink (Makefile.am): Likewise.
57106         * modules/xstrtod (Makefile.am): Likewise.
57107         * modules/xstrtol (Makefile.am): Likewise.
57108         * modules/xstrtold (Makefile.am): Likewise.
57109         * modules/yesno (Makefile.am): Likewise.
57110
57111 2006-10-12  Jim Meyering  <jim@meyering.net>
57112
57113         * m4/getloadavg.m4: Revert the change below.
57114
57115         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
57116         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
57117         fail with a symlink, which is what coreutils' ./bootstrap now
57118         creates by default.
57119
57120 2006-10-12  Bruno Haible  <bruno@clisp.org>
57121
57122         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
57123         mingw.
57124         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
57125         MSVC and mingw explicitly.
57126
57127 2006-10-11  Simon Josefsson  <jas@extundo.com>
57128             Bruno Haible  <bruno@clisp.org>
57129
57130         Add support for multiple gnulib-tool invocations in the scope of a
57131         single configure.ac file.
57132         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
57133         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
57134         with the same contents as the _LIBADD variable.
57135         (func_emit_initmacro_start, func_emit_initmacro_end,
57136         func_emit_initmacro_done): New functions.
57137         (func_import, func_create_testdir): Invoke them. Allow the identifiers
57138         gl_LIBOBJS and gl_LTLIBOBJS.
57139
57140 2006-10-11  Bruno Haible  <bruno@clisp.org>
57141
57142         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
57143         (func_create_testdir): Don't create po/Makefile.am, don't invoke
57144         autoreconf. Instead, invoke autopoint explicitly but move back the
57145         *.m4 files from gnulib.
57146
57147 2006-10-11  Bruno Haible  <bruno@clisp.org>
57148
57149         * gnulib-tool (func_usage): Make module names after --create-testdir
57150         optional.
57151         (func_create_testdir): If no module was specified, use nearly all
57152         modules.
57153
57154 2006-10-12  Jim Meyering  <jim@meyering.net>
57155
57156         Big performance improvement for fts-based tools that use FTS_NOSTAT.
57157         Avoid spurious inode-mismatch problems on non-POSIX file systems.
57158         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
57159         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
57160         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
57161         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
57162         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
57163         (fts_set_stat_required): New function.
57164         (fts_open): Defer the calls to fts_stat, if possible or requested.
57165         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
57166         into fts_stat itself.
57167         (fts_read): Perform any required (deferred) fts_stat call.
57168         (fts_build): Likewise, for the directory we're about to open and read.
57169         In the readdir loop, carefully decide whether each entry will require
57170         an eventual call to fts_stat, using dirent.d_type info if available.
57171         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
57172         a command line argument into this function.  Update all callers.
57173         Map a return value of FTS_DOT to FTS_D for a command line argument.
57174         * modules/fts (Depends-on): Add d-type.  Alphabetize.
57175         Thanks to Miklos Szeredi for his tenacity and for the initial
57176         bug report about "find" failing on a FUSE-based file system.
57177
57178         * lib/fts.c (fts_open): Use consistent indentation.
57179
57180 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57181
57182         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
57183         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
57184         reported by Jim Meyering.  All uses of cache variables renamed
57185         to match Autoconf's.
57186         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
57187         the other one.
57188
57189         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
57190         Fix misspelling in diagnostic.
57191
57192 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57193
57194         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
57195         defined.  Problem reported by Matthew Woehlke.
57196
57197         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
57198         Add support for Tandem NonStop R series.
57199         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
57200         Use new macro.
57201
57202         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
57203         (has_trailing_slash): Omit size arg; all callers changed.
57204         Omit 'inline', since it doesn't help performance and we'd
57205         need to configure it.
57206         Don't count //, ///, etc. as having a trailing slash.
57207         As a side effect, this removes a C99ism reported by Matthew Woehlke.
57208         (rpl_rename_dest_slash): On failure, use rename's errno rather
57209         than (in some cases) an incorrect or junk errno.
57210         Simplify code by removing need to compute length; this does
57211         cause it to make two passes instead of one over the file name,
57212         but it's worth it.
57213
57214         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
57215         change, since Autoconf's version may no longer be appropriate now
57216         that we are using CVS Autoconf's version.  Add support for Tandem.
57217
57218 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57219             Bruno Haible  <bruno@clisp.org>
57220
57221         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
57222         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
57223         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
57224         gl_AC_TYPE_LONG_LONG.
57225
57226         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
57227         instead of HAVE_LONG_LONG.
57228         * lib/printf-args.c (printf_fetchargs): Likewise.
57229         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
57230         * lib/vasnprintf.c (VASNPRINTF): Likewise.
57231         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
57232         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
57233         gl_AC_TYPE_LONG_LONG.
57234
57235 2006-10-11  Bruno Haible  <bruno@clisp.org>
57236
57237         * m4/longlong.m4: Add comments.
57238         * m4/ulonglong.m4: Likewise.
57239
57240 2006-10-10  Bruno Haible  <bruno@clisp.org>
57241
57242         Make it possible to #define stpcpy, strdup to aliases.
57243         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
57244         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
57245
57246 2006-10-10  Bruno Haible  <bruno@clisp.org>
57247
57248         Make it possible to #define gcd to an alias.
57249         * lib/gcd.c: Include config.h.
57250
57251 2006-10-10  Bruno Haible  <bruno@clisp.org>
57252
57253         Make it possible to #define c_isascii to an alias.
57254         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
57255         defined. Undefine the macros before defining them, to avoid gcc
57256         warnings.
57257         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
57258         define NO_C_CTYPE_MACROS early.
57259
57260 2006-10-10  Bruno Haible  <bruno@clisp.org>
57261
57262         Make it possible to #define set_program_name to an alias.
57263         * lib/progname.c: Don't undefine set_program_name; instead, undefine
57264         ENABLE_RELOCATABLE early.
57265
57266 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57267
57268         Port to Tandem NSK OSS, which has 64-bit signed int but at most
57269         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
57270         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
57271         More generally, don't assume that 64-bit signed int is available
57272         if unsigned int is, and vice versa.
57273         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
57274         unsigned symbols, not on their signed counterparts.
57275         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
57276         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
57277         (UINT64_C, UINTMAX_C):
57278         Likewise.
57279         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
57280         unsigned counterparts.
57281         (Have_long_long, Unsigned): New macros.
57282         (Int): Renamed from INT.
57283         (strtoimax): Use the new macros.
57284         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
57285         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
57286         * modules/inttypes (inttypes.h): Substitute
57287         HAVE_UNSIGNED_LONG_LONG_INT.
57288         * modules/stdint (stdint.h): Likewise.
57289         (Files): Add m4/ulonglong.m4.
57290
57291 2006-10-10  Bruno Haible  <bruno@clisp.org>
57292
57293         Fix a gcc -Wshadow warning.
57294         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
57295         to 'bucket'.
57296         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
57297         gl_linked_indexof_from_to): Likewise.
57298         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
57299         Likewise.
57300         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
57301         Likewise.
57302         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
57303         Reported by Eric Blake.
57304
57305 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
57306
57307         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
57308         for NetBSD.  Problem reported by Bruno Haible.
57309
57310 2006-10-09  Jim Meyering  <jim@meyering.net>
57311
57312         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
57313         Patch from Bruno Haible.
57314
57315 2006-10-09  Jim Meyering  <jim@meyering.net>
57316
57317         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
57318         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
57319         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
57320
57321 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57322
57323         Don't include <config.h> twice; this doesn't work in some cases,
57324         e.g., when config.h has "#define intmax_t long long int" and
57325         we include <config.h>, <inttypes.h>, <config.h> in that order.
57326         Problem reported by Matthew Woehlke in:
57327         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
57328         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
57329         * lib/fts-cycle.c: Don't include config.h.
57330         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
57331         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
57332         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
57333         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
57334         inttypes.h.
57335         * lib/xstrtoumax.c: Likewise.
57336         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
57337         __strtol and the like, so that this module is more like its siblings.
57338         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
57339         Remove; no longer needed now that we assume gnulib inttypes.h.
57340
57341 2006-10-08  Bruno Haible  <bruno@clisp.org>
57342
57343         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
57344         option.
57345
57346 2006-10-07  Jim Meyering  <jim@meyering.net>
57347
57348         * modules/inttypes (inttypes.h): Revert what seems to have been
57349         an inadvertent part of today's change: use "|", not "/" in the
57350         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
57351
57352 2006-10-07  Bruno Haible  <bruno@clisp.org>
57353
57354         * modules/sublist: New file.
57355
57356 2006-10-07  Bruno Haible  <bruno@clisp.org>
57357
57358         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
57359         * modules/argz (argz.h): Likewise.
57360         * modules/arpa_inet (arpa/inet.h): Likewise.
57361         * modules/byteswap (byteswap.h): Likewise.
57362         * modules/configmake (configmake.h): Likewise.
57363         * modules/fcntl (fcntl.h): Likewise.
57364         * modules/fnmatch (fnmatch.h): Likewise.
57365         * modules/getopt (getopt.h): Likewise.
57366         * modules/glob (glob.h): Likewise.
57367         * modules/inttypes (inttypes.h): Likewise.
57368         * modules/netinet_in (netinet/in.h): Likewise.
57369         * modules/poll (poll.h): Likewise.
57370         * modules/stdbool (stdbool.h): Likewise.
57371         * modules/stdint (stdint.h): Likewise.
57372         * modules/sys_select (sys/select.h): Likewise.
57373         * modules/sys_socket (sys/socket.h): Likewise.
57374         * modules/sys_stat (sys/stat.h): Likewise.
57375         * modules/sysexits (sysexits.h): Likewise.
57376         * modules/unistd (unistd.h): Likewise.
57377         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57378         Add a "DO NOT EDIT" comment to the generated file.
57379         (func_import): Likewise for gnulib-comp.m4.
57380
57381 2006-10-07  Bruno Haible  <bruno@clisp.org>
57382
57383         * lib/gl_sublist.h: New file.
57384         * lib/gl_sublist.c: New file.
57385
57386 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57387
57388         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
57389         name (relative to the original working directory) and the file
57390         name component (relative to the temporary working directory).  All
57391         callers changed.
57392         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
57393         * lib/mkdir-p.c (make_dir_parents): Likewise.
57394         * lib/mkdir-p.h (make_dir_parents): Likewise.
57395
57396 2006-10-06  Eric Blake  <ebb9@byu.net>
57397
57398         Define several macros for use by the clean-temp module.
57399         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
57400         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
57401         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
57402
57403         * lib/clean-temp.h (close_stream_temp): New declaration.
57404         * lib/clean-temp.c (includes): Pull in headers according to what
57405         other modules are in use.
57406         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
57407
57408 2006-10-06  Bruno Haible  <bruno@clisp.org>
57409
57410         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
57411         instead of fopen, fwriteerror.
57412
57413 2006-10-06  Bruno Haible  <bruno@clisp.org>
57414
57415         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
57416         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
57417         int.
57418         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
57419         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
57420         Return an error indicator.
57421         Suggested by Eric Blake.
57422
57423 2006-10-06  Bruno Haible  <bruno@clisp.org>
57424
57425         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
57426         Reported by Eric Blake.
57427
57428 2006-10-06  Bruno Haible  <bruno@clisp.org>
57429
57430         * modules/closeout (Description): Mention stderr too.
57431
57432 2006-10-06  Bruno Haible  <bruno@clisp.org>
57433         and Paul Eggert  <eggert@cs.ucla.edu>
57434
57435         * lib/closeout.c (close_stdout): Also close stderr.
57436         * lib/closeout.h: Update comment.
57437
57438 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57439
57440         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
57441         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
57442         * lib/dirchownmod.c: Include lchown.h.
57443         * lib/lchown.c: Don't include files that lchown.h now includes.
57444         Don't declare chown, since lchown.h now does that.
57445         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
57446         (lchown): Define to rpl_chown if lchown is declared but
57447         does not exist.  Declare using a prototype if lchown is not
57448         declared.  Add a copyright notice.
57449         * lib/mkstemp.h: Include <unistd.h>.
57450         * lib/openat.c: Include lchown.h.
57451
57452         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
57453         we now test for that separately.
57454         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
57455         rather than O_NOFOLLOW, when testing whether it's possible to
57456         avoid a race condition reliably.
57457         * lib/savewd.c (savewd_chdir): Likewise.
57458
57459         Remove macros that are no longer needed now that stdint.h is
57460         reliable.
57461         * lib/fsusage.c (UINTMAX_MAX): Remove.
57462         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
57463         * lib/utimecmp.c (SIZE_MAX): Remove.
57464
57465         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
57466
57467         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
57468         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
57469         O_NOATIME works.
57470
57471 2006-10-05  Bruno Haible  <bruno@clisp.org>
57472
57473         * lib/gl_list.h (gl_sortedlist_search_from_to,
57474         gl_sortedlist_indexof_from_to): New declarations.
57475         (gl_list_implementation): New fields sortedlist_search_from_to,
57476         sortedlist_indexof_from_to.
57477         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
57478         inline functions.
57479         * lib/gl_list.c (gl_sortedlist_search_from_to,
57480         gl_sortedlist_indexof_from_to): New functions.
57481         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
57482         function.
57483         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
57484         (gl_array_sortedlist_search_from_to): New function.
57485         (gl_array_list_implementation): Update.
57486         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
57487         function.
57488         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
57489         (gl_carray_sortedlist_search_from_to): New function.
57490         (gl_carray_list_implementation): Update.
57491         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
57492         gl_linked_sortedlist_indexof_from_to): New functions.
57493         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57494         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57495         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
57496         gl_tree_sortedlist_indexof_from_to): New functions.
57497         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57498         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57499         Update.
57500         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57501         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
57502         Update.
57503
57504 2006-10-05  Bruno Haible  <bruno@clisp.org>
57505
57506         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
57507         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
57508         (struct gl_list_implementation): Add fields search_from_to,
57509         indexof_from_to. Remove fields search, indexof.
57510         (gl_list_search): Use the search_from_to method.
57511         (gl_list_search_from, gl_list_search_from_to): New functions.
57512         (gl_list_indexof): Use the indexof_from_to method.
57513         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57514         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
57515         (gl_list_search_from, gl_list_search_from_to): New functions.
57516         (gl_list_indexof): Use the indexof_from_to method.
57517         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57518         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
57519         gl_array_indexof. Add start_index, end_index arguments.
57520         (gl_array_search_from_to): Renamed from gl_array_search. Add
57521         start_index, end_index arguments.
57522         (gl_array_remove, gl_array_list_implementation): Update.
57523         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
57524         gl_carray_indexof. Add start_index, end_index arguments.
57525         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
57526         start_index, end_index arguments.
57527         (gl_carray_remove, gl_carray_list_implementation): Update.
57528         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
57529         gl_linked_search. Add start_index, end_index arguments.
57530         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
57531         start_index, end_index arguments.
57532         (gl_linked_remove): Update.
57533         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57534         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57535         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
57536         field to 'size_t'.
57537         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
57538         gl_tree_search. Add start_index, end_index arguments.
57539         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57540         start_index, end_index arguments.
57541         (gl_tree_remove): Update.
57542         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57543         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57544         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
57545         function.
57546         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
57547         gl_tree_search. Add start_index, end_index arguments.
57548         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57549         start_index, end_index arguments.
57550         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57551         Update.
57552         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57553
57554 2006-10-05  Bruno Haible  <bruno@clisp.org>
57555
57556         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
57557
57558         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
57559         fwriteerror_temp): New declarations.
57560         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
57561         (descriptors): New variable.
57562         (cleanup): First, close the descriptors.
57563         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
57564         fclose_temp, fwriteerror_temp): New functions.
57565
57566 2006-10-04  Jim Meyering  <jim@meyering.net>
57567
57568         * lib/fts.c (fts_open): Tiny comment change.
57569
57570 2006-10-04  Bruno Haible  <bruno@clisp.org>
57571
57572         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
57573         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
57574         gl_LOCK_BODY.
57575         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
57576         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
57577         gl_LOCK_EARLY_BODY.
57578         (gl_LOCK): Require gl_LOCK_BODY.
57579
57580 2006-10-04  Bruno Haible  <bruno@clisp.org>
57581
57582         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
57583         (gl_oset_search_atleast): New declaration.
57584         (struct gl_oset_implementation): Add field 'search_atleast'.
57585         (gl_oset_search_atleast): New inline function.
57586         * lib/gl_oset.c (gl_oset_search_atleast): New function.
57587         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
57588         (gl_array_oset_implementation): Update.
57589         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
57590         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
57591         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
57592
57593 2006-10-04  Bruno Haible  <bruno@clisp.org>
57594
57595         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
57596
57597 2006-10-03  Bruno Haible  <bruno@clisp.org>
57598
57599         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
57600         from gl_avltreehash_list_implementation.
57601
57602 2006-10-03  Bruno Haible  <bruno@clisp.org>
57603
57604         * lib/gl_oset.c (gl_oset_add): Fix return type.
57605
57606 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
57607
57608         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
57609
57610 2006-10-02  Eric Blake  <ebb9@byu.net>
57611
57612         * modules/strnlen (Depends-on): Add extensions.
57613
57614 2006-10-02  Eric Blake  <ebb9@byu.net>
57615
57616         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
57617         definition in 2.60+.
57618
57619 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57620
57621         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
57622         checks.
57623
57624 2006-10-02  Bruno Haible  <bruno@clisp.org>
57625
57626         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
57627         to the AUTOMAKE_OPTIONS.
57628         Reported by Jim Meyering.
57629
57630 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57631
57632         Work around bug in Solaris 10 /proc file system:
57633         /proc/self/fd/NNN/.. isn't the parent directory of
57634         the directory whose file descriptor is NNN.  This needs to
57635         be worked around at run time, not compile time, since a
57636         program might be built on Solaris 8, where things work, and
57637         run on Solaris 10.
57638         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
57639         to use the following interface instead:
57640         (OPENAT_BUFFER_SIZE): New macro.
57641         (openat_proc_name): New function.
57642         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
57643         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
57644         Likewise.
57645         * lib/openat-proc.c: New file.
57646         * modules/openat (Files): Add lib/openat-proc.c.
57647         (Depends-on): Add same-inode, stdbool.
57648         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
57649
57650 2006-09-29  Bruno Haible  <bruno@clisp.org>
57651
57652         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
57653         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
57654         argument. Set stdout_closed before testing for ferror, not after.
57655         (fwriteerror, fwriteerror_no_ebadf): New functions.
57656
57657 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57658
57659         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
57660
57661 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
57662
57663         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
57664         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
57665
57666 2006-09-28  Jim Meyering  <jim@meyering.net>
57667
57668         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
57669         Include <unistd.h>.
57670
57671 2006-09-28  Bruno Haible  <bruno@clisp.org>
57672
57673         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
57674         * modules/linkedhash-list (Depends-on): Likewise.
57675         * modules/rbtreehash-list (Depends-on): Likewise.
57676
57677 2006-09-28  Bruno Haible  <bruno@clisp.org>
57678
57679         * lib/strndup.h: Simplify the redefinition of strndup.
57680         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
57681         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
57682
57683 2006-09-28  Bruno Haible  <bruno@clisp.org>
57684
57685         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
57686         * lib/gl_linkedhash_list.c: Likewise.
57687         * lib/gl_rbtreehash_list.c: Likewise.
57688
57689 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57690
57691         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
57692         getaddrinfo.
57693
57694         * lib/__fpending.h: Don't include <stdio_ext.h> unless
57695         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
57696         it causes <stdio_ext.h> to cause a compile-time error.
57697         Problem reported by Nelson H. F. Beebe.
57698         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
57699         of HAVE_DECL___PENDING.
57700
57701         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
57702         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
57703         declaration.
57704
57705 2006-09-27  Jim Meyering  <jim@meyering.net>
57706
57707         This file could end up with a definition for a function
57708         named __strndup, rather than rpl_strndup on a system with
57709         incomplete weak_alias support.
57710         * lib/strndup.c (strndup): Rename from __strndup.
57711         Remove #defines that used to map __strndup to strndup.
57712         Don't use K&R prototypes.
57713         Remove LIBC-related code, since this file is not sync'd with glibc.
57714         * lib/strndup.h: Revamp, accordingly.
57715         * m4/strndup.m4: Modernize.
57716
57717 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57718
57719         * modules/savewd (Depends-on): Add 'raise'.
57720         * lib/savewd.c: Include <signal.h>, for 'raise'.
57721
57722 2006-09-26  Jim Meyering  <jim@meyering.net>
57723
57724         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
57725         when we detect Darwin 8.7.0's acl_get_file bug.
57726         Rearrange to perform the new (below) run-test while $LIBS
57727         contains any acl-related library.  Set USE_ACL at the end.
57728         (gl_ACL_GET_FILE): New function.
57729
57730 2006-09-26  Eric Blake  <ebb9@byu.net>
57731
57732         * lib/verror.c: Include <config.h> unconditionally.
57733
57734 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
57735
57736         * modules/clock-time (Maintainer): Add self.
57737         * modules/getlogin_r (Depends-on): Add extensions.
57738
57739 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57740
57741         * modules/clock-time: New module.
57742         * modules/nanosleep (Depends-on): Add clock-time.
57743         * modules/gethrxtime (Depends-on): Likewise.
57744         * modules/gettime (Depends-on): Likewise.
57745         * modules/settime (Depends-on): Likewise.
57746
57747         * modules/fts-lgpl: Depend on openat.
57748         * modules/mkancesdirs: Depend on savewd.
57749         * modules/mkdir-p: Likewise.
57750
57751 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57752
57753         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
57754
57755         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
57756         `gl_have_arbitrary_file_name_length_limit' to
57757         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
57758         actually works between configure runs.
57759
57760 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57761             Bruno Haible  <bruno@clisp.org>
57762
57763         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
57764
57765 2006-09-25  Jim Meyering  <jim@meyering.net>
57766
57767         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
57768         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
57769
57770 2006-09-25  Eric Blake  <ebb9@byu.net>
57771
57772         * gnulib-tool (func_import, func_create_testdir): Fix typos in
57773         exec's in 2006-09-18 patch when shuffling fds.
57774
57775 2006-09-25  Bruno Haible  <bruno@clisp.org>
57776
57777         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
57778         Reported by Jim Meyering.
57779
57780 2006-09-24  Jim Meyering  <jim@meyering.net>
57781
57782         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
57783         compare a pointer against a literal "0".  That caused failures with
57784         at least HP-UX's hpcc.
57785
57786 2006-09-22  Simon Josefsson  <jas@extundo.com>
57787
57788         * modules/gc-sha1:
57789         * modules/gc-md4:
57790         * modules/gc-hmac-sha1:
57791         * modules/gc-hmac-md5:
57792         * modules/gc-des:
57793         * modules/gc-arcfour: Distribute more files.
57794
57795 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57796
57797         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
57798         (gl_linked_iterator_from_to): Initialize struct completely.
57799         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
57800         (gl_tree_iterator_from_to): Likewise
57801         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
57802         * lib/gl_array_list.c [lint] (gl_array_iterator)
57803         (gl_array_iterator_from_to): Likewise.
57804         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
57805         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
57806         (gl_carray_iterator_from_to): Likewise.
57807
57808         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
57809         * lib/md4.c (md4_process_block): Remove unused variable.
57810         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
57811         parentheses for clarity.
57812
57813 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57814
57815         * modules/bison-i18n (Depends-on): Add gettext.
57816
57817 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57818
57819         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
57820         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
57821         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
57822         also add missing comma that caused broken test.
57823         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
57824         stdlib.h, for `abort'.
57825         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
57826         variables.
57827         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
57828         include unistd.h if present, for `rmdir'.
57829         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
57830         variables.
57831         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
57832         in the process include standard headers for prototypes.
57833         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
57834         gets declared on GNU/Linux.
57835         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
57836         unistd.h, for `rmdir'.
57837         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
57838
57839         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
57840         always true.
57841         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
57842
57843         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
57844
57845 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57846
57847         * gnulib-tool (func_version): Create output all at once.  This
57848         may help avoid triggering unnecessary SIGPIPEs, and at any
57849         rate it doesn't hurt.
57850
57851 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57852             Bruno Haible  <bruno@clisp.org>
57853
57854         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
57855         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57856         * m4/signed.m4 (bh_C_SIGNED): Likewise.
57857
57858         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
57859         (gl_FUNC_VASPRINTF): Invoke it.
57860
57861 2006-09-22  Bruno Haible  <bruno@clisp.org>
57862
57863         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
57864         getloadavg.c as first argument.
57865
57866 2006-09-22  Bruno Haible  <bruno@clisp.org>
57867
57868         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
57869         at the beginning of the gl_INIT macro.
57870         * modules/getloadavg (configure.ac): Pass $gl_source_base to
57871         gl_GETLOADAVG.
57872
57873 2006-09-22  Bruno Haible  <bruno@clisp.org>
57874
57875         * gnulib-tool (func_create_megatestdir): Don't include the config-h
57876         module.
57877         Suggested by Ralf Wildenhues.
57878
57879 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57880
57881         Import this patch from libc:
57882
57883         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
57884
57885         * lib/regex_internal.c (re_string_reconstruct): Handle
57886         offset < pstr->valid_raw_len && pstr->offsets_needed case.
57887         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
57888         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
57889         re_string_context_at.
57890
57891         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
57892         now requires it.
57893         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
57894         gl_REGEX now does it for us.
57895         (gl_REGEX): Add test taken from
57896         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
57897
57898         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
57899         Check that large offsets work.  Modernize Autoconf usages.
57900         Prefer "yes" to mean a good thing rather than a bad.
57901         Don't put "#define mkstemp" in config.h, as this might interfere
57902         with standard system headers that "#define mkstemp mkstemp64".
57903
57904         * modules/mkstemp (Depends-on): Add extensions, so that
57905         mkstemp is visible on some platforms.
57906         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
57907         (Include): Change to "mkstemp.h" from <stdlib.h>.
57908         (Files): Add mkstemp.h.
57909
57910         * lib/mkstemp.h: New file, since some standard headers
57911         #define mkstemp.
57912         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
57913         Include "mkstemp.h".
57914         Make the _LIBC code resemble glibc original more,
57915         e.g., use K&R style.
57916         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
57917         (mkstemp): Remove, since mkstemp.h does this for us.
57918         * lib/stdlib--.h: Include mkstemp.h.
57919
57920         Import this patch from libc:
57921
57922         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57923
57924         * lib/tempname.c (__gen_tempname): Change attempts_min
57925         into a macro.  Use preprocessor to decide how to initialize
57926         attempts [Coverity CID 67].
57927
57928 2006-09-20  Bruno Haible  <bruno@clisp.org>
57929
57930         * lib/mkdtemp.c: Import from libc.
57931         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57932                 * sysdeps/posix/tempname.c (__gen_tempname): Change
57933                 attempts_min into a macro.  Use preprocessor to decide how to
57934                 initialize attempts [Coverity CID 67].
57935         2001-11-27  Paul Eggert  <eggert@twinsun.com>
57936                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
57937                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
57938
57939 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57940
57941         * gnulib-tool (func_exit): New function, to allow to pass the
57942         exit status portably through the trap.  Use everywhere.
57943         (--help, --version): Signal a write error.
57944         (trap): catch SIGPIPE, for write errors.
57945         Exit at the end of the trap, with the correct exit status.
57946
57947 2006-09-19  Karl Berry  <karl@gnu.org>
57948
57949         * doc/gnulib.texi: note about the license texinfo files.
57950
57951 2006-09-19  Eric Blake  <ebb9@byu.net>
57952
57953         * gnulib-tool: Avoid space-tab.
57954
57955 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57956
57957         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
57958         that prevented coreutils 6.1 from building.  Problem reported
57959         by Petter Reinholdtsen.
57960
57961 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57962
57963         * gnulib-tool (avoidlist): Fix typo that broke options like
57964         --avoid=lock that are used by coreutils bootstrap.
57965
57966 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
57967
57968         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
57969         more systematically.
57970
57971 2006-09-18  Jim Meyering  <jim@meyering.net>
57972
57973         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
57974
57975 2006-09-18  Bruno Haible  <bruno@clisp.org>
57976
57977         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
57978
57979 2006-09-18  Bruno Haible  <bruno@clisp.org>
57980
57981         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
57982         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
57983         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
57984         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
57985         * m4/gettext.m4: Require autoconf >= 2.52.
57986         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
57987         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
57988         of gl_cv_header_inttypes_h.
57989
57990 2006-09-18  Bruno Haible  <bruno@clisp.org>
57991
57992         * lib/javaversion.c: Include configmake.h.
57993
57994 2006-09-18  Bruno Haible  <bruno@clisp.org>
57995
57996         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
57997         avoid that the while loops be executed in a subshell.
57998
57999 2006-09-18  Bruno Haible  <bruno@clisp.org>
58000
58001         * MODULES.html.sh (func_module): Break long lines.
58002         Suggested by Bruce Korb <bkorb@gnu.org>.
58003
58004 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58005
58006         Speed up by a factor of 1.12.
58007         * gnulib-tool (nl): New variable.
58008         (func_import): Rewrite include directive extraction to only read each
58009         directive once.
58010
58011 2006-09-17  Bruno Haible  <bruno@clisp.org>
58012
58013         * modules/javaversion (Makefile.am): Remove DEFS setting.
58014         (Depends-on): Add configmake, for PKGDATADIR definition.
58015
58016 2006-09-17  Bruno Haible  <bruno@clisp.org>
58017
58018         * gnulib-tool (func_create_testdir): Rewrite all files at once.
58019
58020 2006-09-17  Bruno Haible  <bruno@clisp.org>
58021
58022         * gnulib-tool (func_append): New function, stolen from libtool.m4.
58023         (func_modules_transitive_closure, func_modules_add_dummy,
58024         func_modules_to_filelist, func_import, func_create_testdir,
58025         func_create_megatestdir, ...): Use it wherever possible.
58026         Suggested by Ralf Wildenhues.
58027
58028 2006-09-16  Karl Berry  <karl@gnu.org>
58029
58030         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
58031         to avoid sectioning errors.
58032         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
58033         [ifinfo]: blank line after @center-ed titles.
58034         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
58035         Spell FSF address consistently with others.
58036         (These changes approved by rms.)
58037
58038 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58039
58040         Speed up by a factor of 1.61.
58041         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
58042         already checked module names again.
58043
58044 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58045
58046         Speed up by a factor of 1.13.
58047         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
58048         for new_files, and the input to func_add_or_update.
58049
58050 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58051
58052         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
58053         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
58054
58055 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58056
58057         * modules/mkancesdirs (Depends-on): Add fcntl.
58058         * modules/savewd: New file.
58059         * MODULES.html.sh (File system functions): Add savewd.
58060
58061         * modules/configmake (Makefile.am): Add support for the
58062         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
58063
58064 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58065
58066         * m4/savewd.m4: New file.
58067
58068 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58069
58070         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
58071         (dirchownmod): New arg FD.  All callers changed.
58072         Use FD rather than opening the directory ourself, as opening is
58073         now the caller's responsibility.
58074         * lib/dirchownmod.h: Likewise.
58075         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
58076         hosts that require <sys/types.h> before <sys/stat.h>.  Include
58077         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
58078         (test_dir): Remove.
58079         (mkancesdirs): Return length of prefix of FILE that has already
58080         been made, or -2 if there is a child doing the work.  Redo
58081         algorithm so that it is O(N) rather than O(N**2).  Optimize away
58082         ".", and treat ".." specially since it might stray back into
58083         already-created areas.  Use a subprocess if necessary.  New arg
58084         WD; all users changed.  MAKE_DIR function should now return 1
58085         if it creates a directory that is not readable.  Return -2 if
58086         a child process is spun off.
58087         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
58088         Adjust signature to match code.
58089         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
58090         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
58091         all users changed.
58092         * lib/savewd.c, lib/savewd.h: New files.
58093
58094 2006-09-15  Jim Meyering  <jim@meyering.net>
58095
58096         * modules/rename-dest-slash: New module.
58097         * MODULES.html.sh (posix_compat): Add it here.
58098
58099         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
58100
58101 2006-09-15  Jim Meyering  <jim@meyering.net>
58102
58103         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
58104         file.
58105
58106         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
58107
58108 2006-09-15  Jim Meyering  <jim@meyering.net>
58109
58110         * lib/rename-dest-slash.c (has_trailing_slash): Use
58111         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
58112         (rpl_rename_dest_slash): Perform the cheaper trailing slash
58113         test before testing whether SRC is a directory.
58114         Suggestions from Bruno Haible.
58115
58116         Avoid a warning about an unused variable.
58117         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
58118         into the #ifdef block where it's used.
58119
58120         * lib/rename-dest-slash.c: New file.
58121
58122 2006-09-14  Bruno Haible  <bruno@clisp.org>
58123
58124         * lib/allocsa.c: Include <config.h> unconditionally.
58125         * lib/asnprintf.c: Likewise.
58126         * lib/asprintf.c: Likewise.
58127         * lib/c-strcasecmp.c: Likewise.
58128         * lib/c-strcasestr.c: Likewise.
58129         * lib/c-strncasecmp.c: Likewise.
58130         * lib/c-strstr.c: Likewise.
58131         * lib/classpath.c: Likewise.
58132         * lib/clean-temp.c: Likewise.
58133         * lib/concatpath.c: Likewise.
58134         * lib/copy-file.c: Likewise.
58135         * lib/csharpcomp.c: Likewise.
58136         * lib/csharpexec.c: Likewise.
58137         * lib/execute.c: Likewise.
58138         * lib/fatal-signal.c: Likewise.
58139         * lib/findprog.c: Likewise.
58140         * lib/fwriteerror.c: Likewise.
58141         * lib/gl_array_list.c: Likewise.
58142         * lib/gl_array_oset.c: Likewise.
58143         * lib/gl_avltree_list.c: Likewise.
58144         * lib/gl_avltree_oset.c: Likewise.
58145         * lib/gl_avltreehash_list.c: Likewise.
58146         * lib/gl_carray_list.c: Likewise.
58147         * lib/gl_linked_list.c: Likewise.
58148         * lib/gl_linkedhash_list.c: Likewise.
58149         * lib/gl_list.c: Likewise.
58150         * lib/gl_oset.c: Likewise.
58151         * lib/gl_rbtree_list.c: Likewise.
58152         * lib/gl_rbtree_oset.c: Likewise.
58153         * lib/gl_rbtreehash_list.c: Likewise.
58154         * lib/imaxabs.c: Likewise.
58155         * lib/imaxdiv.c: Likewise.
58156         * lib/javacomp.c: Likewise.
58157         * lib/javaexec.c: Likewise.
58158         * lib/javaversion.c: Likewise.
58159         * lib/linebreak.c: Likewise.
58160         * lib/localcharset.c: Likewise.
58161         * lib/lock.c: Likewise.
58162         * lib/mbchar.c: Likewise.
58163         * lib/mbswidth.c: Likewise.
58164         * lib/mkdtemp.c: Likewise.
58165         * lib/pipe.c: Likewise.
58166         * lib/printf-args.c: Likewise.
58167         * lib/printf-parse.c: Likewise.
58168         * lib/progname.c: Likewise.
58169         * lib/progreloc.c: Likewise.
58170         * lib/readlink.c: Likewise.
58171         * lib/sh-quote.c: Likewise.
58172         * lib/stpcpy.c: Likewise.
58173         * lib/stpncpy.c: Likewise.
58174         * lib/strcasecmp.c: Likewise.
58175         * lib/strcasestr.c: Likewise.
58176         * lib/strcspn.c: Likewise.
58177         * lib/striconv.c: Likewise.
58178         * lib/strncasecmp.c: Likewise.
58179         * lib/strnlen1.c: Likewise.
58180         * lib/strstr.c: Likewise.
58181         * lib/strtok_r.c: Likewise.
58182         * lib/tls.c: Likewise.
58183         * lib/tmpdir.c: Likewise.
58184         * lib/unicodeio.c: Likewise.
58185         * lib/unsetenv.c: Likewise.
58186         * lib/vasnprintf.c: Likewise.
58187         * lib/vasprintf.c: Likewise.
58188         * lib/wait-process.c: Likewise.
58189         * lib/xallocsa.c: Likewise.
58190         * lib/xsetenv.c: Likewise.
58191         * lib/xstriconv.c: Likewise.
58192
58193 2006-09-13  Simon Josefsson  <jas@extundo.com>
58194
58195         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
58196         that internally, suggested by Ralf Wildenhues
58197         <Ralf.Wildenhues@gmx.de>.
58198
58199 2006-09-13  Simon Josefsson  <jas@extundo.com>
58200
58201         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
58202         @LIBOBJS@.
58203         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58204
58205 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58206
58207         * lib/_fpending.c: Include <config.h> unconditionally, since we no
58208         longer worry about uses that don't define HAVE_CONFIG_H.
58209         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
58210         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
58211         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
58212         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
58213         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
58214         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
58215         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
58216         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
58217         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
58218         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
58219         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
58220         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
58221         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
58222         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
58223         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
58224         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
58225         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
58226         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
58227         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
58228         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
58229         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
58230         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
58231         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
58232         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
58233         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
58234         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
58235         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
58236         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
58237         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
58238         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
58239         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
58240         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
58241         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
58242         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
58243         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
58244         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
58245         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
58246         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
58247         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
58248         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
58249         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
58250         Likewise.
58251
58252 2006-09-13  Eric Blake  <ebb9@byu.net>
58253
58254         * lib/getopt.c: Fix typo in last commit.
58255
58256 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58257
58258         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
58259         dgettext.
58260
58261 2006-09-12  Jim Meyering  <jim@meyering.net>
58262
58263         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
58264         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
58265         Reported by Nelson H. F. Beebe.
58266
58267 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58268
58269         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
58270         program_invocation_name and program_invocation_short_name are
58271         initialized.
58272         * lib/argp-namefrob.h: Move declarations of program_invocation_name
58273         and program_invocation_short_name to argp.h, so they are visible
58274         to user programs.
58275         * lib/argp.h: Likewise
58276
58277 2006-09-10  Bruno Haible  <bruno@clisp.org>
58278
58279         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58280         m4/inttypes_h.m4, m4/uintmax_t.m4.
58281
58282 2006-09-10  Bruno Haible  <bruno@clisp.org>
58283
58284         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
58285         gl_AC_TYPE_UINTMAX_T.
58286
58287 2006-09-10  Bruno Haible  <bruno@clisp.org>
58288
58289         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
58290
58291 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58292
58293         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
58294         convention.  Text proposed by Bruno Haible.
58295         (struct argp_option): Document the use of N_() wrappers.
58296
58297         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
58298         '\v', and translate the two parts separately, instead of feeding
58299         the whole string to gettext.  This allows to exclude
58300         '\v' from the strings visible to the translator by writing doc
58301         strings as N_("..") "\v" N_("..").
58302
58303 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
58304
58305         * config/srclist.txt: Undo latest change; the bug was fixed.
58306
58307 2006-09-09  Bruno Haible  <bruno@clisp.org>
58308
58309         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
58310         assignments if building a library without libtool.
58311         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
58312         in func_emit_lib_Makefile_am.
58313         (func_import): When building a static library libfoo.a, arrange to
58314         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
58315         (func_create_testdir): Likewise.
58316         * modules/gc (configure.ac, Makefile.am): If building statically,
58317         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
58318         * modules/iconvme (configure.ac, Makefile.am): Likewise.
58319         * modules/striconv (configure.ac, Makefile.am): Likewise.
58320         Based on a suggestion by Ralf Wildenhues.
58321
58322 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58323
58324         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58325         Check for unistd.h too, since Autoconf doesn't assume POSIX.
58326         Also:
58327
58328         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58329         Add year_2050_test to catch glibc bug 2821
58330         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58331
58332         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58333         Prefer #ifdef to #if.
58334
58335         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
58336         Return from 'main' instead of calling 'exit'.
58337
58338 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58339
58340         * lib/mktime.c (guess_time_tm): Fix bug where mktime
58341         returned the maximum time_t value rather than (time_t) -1.
58342         Problem originally reported by William Bardwell
58343         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58344
58345         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58346         Moved to here ...
58347         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58348         ... from here.
58349
58350 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58351
58352         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
58353         2821 is fixed.
58354
58355 2006-09-08  Jim Meyering  <jim@meyering.net>
58356
58357         Don't make generated files read-only.  That would bother too many
58358         people.  However, do retain the ability to work when targets are
58359         read-only: remove the destination and temporary files before writing
58360         them (when generated via sed or echo), or by using the -f option for
58361         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
58362         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58363         * modules/byteswap, modules/configmake, modules/fcntl:
58364         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58365         * modules/localcharset, modules/netinet_in, modules/poll:
58366         * modules/stdbool, modules/stdint, modules/sys_select:
58367         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58368
58369 2006-09-08  Jim Meyering  <jim@meyering.net>
58370
58371         Avoid new build failure on FreeBSD 6.0.
58372         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
58373         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
58374         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
58375
58376 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58377
58378         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
58379
58380 2006-09-07  Jim Meyering  <jim@meyering.net>
58381
58382         Fix global typo in last change: use chmod u-w, not chmod u-x.
58383         Spotted by Paul Eggert and Bruce Korb.
58384         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58385         * modules/byteswap, modules/configmake, modules/fcntl:
58386         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58387         * modules/localcharset, modules/netinet_in, modules/poll:
58388         * modules/stdbool, modules/stdint, modules/sys_select:
58389         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58390
58391 2006-09-06  Jim Meyering  <jim@meyering.net>
58392
58393         Make generated files be read-only.
58394         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
58395         Ensure that each generated file is now read-only.
58396         * modules/argz: Likewise.
58397         * modules/arpa_inet: Likewise.
58398         * modules/byteswap: Likewise.
58399         * modules/configmake: Likewise.
58400         * modules/fcntl: Likewise.
58401         * modules/fnmatch: Likewise.
58402         * modules/getopt: Likewise.
58403         * modules/glob: Likewise.
58404         * modules/inttypes: Likewise.
58405         * modules/netinet_in: Likewise.
58406         * modules/poll: Likewise.
58407         * modules/stdbool: Likewise.
58408         * modules/stdint: Likewise.
58409         * modules/sys_select: Likewise.
58410         * modules/sys_socket: Likewise.
58411         * modules/sys_stat: Likewise.
58412         * modules/sysexits: Likewise.
58413         * modules/localcharset: Same as above, but continue using temporary
58414         file named "t-$@" (why different?) rather than the "$@-t" used
58415         everywhere else.
58416
58417         * modules/sysexits (Makefile.am): Replace literal occurrences
58418         of "sysexit.h" more readable, and more consistent, "$@".
58419
58420 2006-09-06  Bruno Haible  <bruno@clisp.org>
58421
58422         * modules/striconv: New file.
58423         * modules/xstriconv: New file.
58424         * MODULES.html.sh (Internationalization functions): Add striconv,
58425         xstriconv.
58426
58427 2006-09-06  Bruno Haible  <bruno@clisp.org>
58428
58429         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
58430         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
58431         not using libtool correctly.
58432
58433 2006-09-06  Bruno Haible  <bruno@clisp.org>
58434
58435         * lib/striconv.h: New file.
58436         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
58437         iconvstring.c.
58438         * lib/xstriconv.h: New file.
58439         * lib/xstriconv.c: New file.
58440
58441 2006-09-06  Bruno Haible  <bruno@clisp.org>
58442
58443         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58444         lib_..._LDFLAGS.
58445
58446 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58447
58448         * lib/argz_.h: Sync from Libtool.
58449
58450         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
58451                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58452
58453         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
58454
58455 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58456
58457         * modules/trim: New file.
58458
58459 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58460
58461         * lib/trim.h: New file.
58462         * lib/trim.c: New file.
58463
58464 2006-09-05  Bruno Haible  <bruno@clisp.org>
58465
58466         * MODULES.html.sh (String handling): Add trim.
58467
58468 2006-09-04  Karl Berry  <karl@gnu.org>
58469
58470         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
58471         until next release.
58472
58473 2006-09-03  Bruno Haible  <bruno@clisp.org>
58474
58475         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
58476         correctly.
58477
58478 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58479
58480         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
58481         not gl_GETLOADAVG.  Omit unneeded semicolons.
58482         Problems reported by Ralf Wildenhues in
58483         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58484         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
58485         at the end, which is the usual gnulib style.
58486
58487         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
58488         of doing all the work ourselves.
58489         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
58490         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
58491
58492 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58493
58494         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
58495         Problem reported by Ralf Wildenhues in
58496         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58497
58498         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
58499         HAVE_STRUCT_STATFS_F_FSTYPENAME.
58500
58501 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58502
58503         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
58504         yesterday's patch by changing test -n to test -z.
58505
58506 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58507
58508         * modules/getloadavg (Files): Add m4/getloadavg.m4.
58509         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
58510         the former is now obsolescent.
58511
58512         * modules/chdir-long (Depends-on): Add fcntl.
58513
58514 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58515
58516         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
58517         obsolescent, and programs should use gnulib instead.
58518         * m4/getloadavg.m4: New file, with contents taken from Autoconf
58519         but with prefixes changed.
58520
58521 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58522
58523         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
58524         or stdbool.h, because they might not exist while configuring.
58525
58526         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
58527         Don't include unistd.h or limits.h; not needed, since chdir-long.h
58528         does that for us.
58529         (O_DIRECTORY): Remove.
58530
58531 2006-08-31  Eric Blake  <ebb9@byu.net>
58532
58533         * gnulib-tool: Don't let emacs change spaces to TAB.
58534
58535 2006-08-31  Bruno Haible  <bruno@clisp.org>
58536
58537         * gnulib-tool: When calling func_import more than once, do it in a
58538         subshell.
58539         Reported by Eric Blake <ebb9@byu.net>.
58540
58541 2006-08-31  Bruno Haible  <bruno@clisp.org>
58542
58543         * gnulib-tool (nl): Remove variable.
58544         (sed_transform_lib_file): Use more robust test for config-h module.
58545         (func_import): Fix typo in 2006-08-25 patch.
58546
58547 2006-08-31  Bruno Haible  <bruno@clisp.org>
58548
58549         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
58550         specified, augment Makefile.am variables instead of assigning them.
58551
58552 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58553
58554         Work around a bug in both the Linux and SunOS 64-bit kernels:
58555         nanosleep mishandles sleeps for longer than 2**31 seconds.
58556         Problem reported by Frank v Waveren in
58557         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58558         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
58559         Check for nanosleep bug.
58560         (LIB_NANOSLEEP): Append clock_gettime library if needed.
58561
58562 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58563
58564         Work around a bug in both the Linux and SunOS 64-bit kernels:
58565         nanosleep mishandles sleeps for longer than 2**31 seconds.
58566         Problem reported by Frank v Waveren in
58567         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58568         * lib/nanosleep.c (BILLION): New constant.
58569         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
58570         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
58571         implementation.
58572
58573 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58574
58575         * modules/nanosleep (Depends-on): Add gettime.
58576
58577 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58578         and Simon Josefsson  <jas@extundo.com>
58579         and Oskar Liljeblad  <oskar@osk.mine.nu>
58580
58581         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
58582         * gnulib-tool (func_import): New license type 'unmodifiable license
58583         text'.
58584         * modules/fdl: Use it.  Longer description.
58585         * module/gpl, module/lgpl: New files.
58586
58587 2006-08-30  Jim Meyering  <jim@meyering.net>
58588
58589         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
58590         shadowing the parameter.
58591
58592 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58593
58594         Sync from Libtool:
58595
58596         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58597
58598         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
58599         sharing with gnulib.  Report by Eric Blake.
58600
58601 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58602
58603         * modules/isapipe: New file.
58604         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
58605
58606 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58607
58608         * modules/configmake (Makefile.am): Add a comment, and omit
58609         the CONFIGMAKE_ prefix from generated macro names.  Suggested
58610         by Bruno Haible.
58611
58612 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58613
58614         * m4/isapipe.m4: New file.
58615
58616 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58617
58618         * lib/isapipe.c, lib/isapipe.h: New files.
58619
58620 2006-08-29  Jim Meyering  <jim@meyering.net>
58621
58622         * modules/configmake (Makefile.am): Make configmake.h depend on
58623         Makefile.  Otherwise, a stale configmake.h could hang around.
58624
58625 2006-08-29  Eric Blake  <ebb9@byu.net>
58626
58627         * lib/error.c (error_at_line, print_errno_message): Match libc, after
58628         resolution of upstream bug 3044.
58629
58630 2006-08-29  Bruno Haible  <bruno@clisp.org>
58631
58632         * modules/localcharset (Depends-on): Add configmake.
58633         (Makefile.am): Remove setting of LIBDIR through DEFS.
58634
58635 2006-08-29  Bruno Haible  <bruno@clisp.org>
58636
58637         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
58638         defined.
58639
58640 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58641
58642         * modules/fcntl: New file.
58643         * modules/chdir-safer (Depends-on): Add fcntl.
58644         * modules/fts: Likewise.
58645         * modules/mkdir-p: Likewise.
58646
58647         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
58648         This undoes the most recent change, since we're now addressing the
58649         problem in a different way.
58650
58651         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
58652         into output, since the output might be called Makefile.am even
58653         if $makefile_name is something different.
58654         (func_import): Use $makefile_am rather than
58655         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
58656         empty.
58657
58658         * modules/inttypes (Files): Add m4/inttypes-h.m4.
58659
58660 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58661
58662         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
58663         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
58664         recent change to stdint.m4, since we're now addressing the problem in a
58665         different way.
58666
58667 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58668
58669         * m4/fcntl_h.m4: New file.
58670
58671 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58672
58673         * lib/fcntl_.h: New file.
58674         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
58675         the fcntl module.
58676         * lib/dirchownmod.c: Likewise.
58677         * lib/fts.c: Likewise.
58678
58679         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
58680         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
58681         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
58682         just before including <inttypes.h>, to avoid circular inclusion.
58683
58684 2006-08-28  Jim Meyering  <jim@meyering.net>
58685
58686         * doc/visibility.texi: Actually read and correct the grammar of the
58687         sentence affected by yesterday's change.
58688
58689 2006-08-28  Eric Blake  <ebb9@byu.net>
58690
58691         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
58692         needs wrapper.
58693
58694 2006-08-28  Eric Blake  <ebb9@byu.net>
58695
58696         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
58697
58698 2006-08-28  Eric Blake  <ebb9@byu.net>
58699
58700         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
58701
58702 2006-08-28  Bruno Haible  <bruno@clisp.org>
58703
58704         * modules/c-strstr: New file, from GNU gettext.
58705         * MODULES.html.sh (String handling): Add c-strstr.
58706
58707 2006-08-28  Bruno Haible  <bruno@clisp.org>
58708
58709         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
58710         macros.
58711         Reported by Eric Blake.
58712
58713 2006-08-28  Bruno Haible  <bruno@clisp.org>
58714
58715         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
58716         (VASNPRINTF): Return a string of length > INT_MAX without failing.
58717         * lib/vasprintf.c: Include errno.h, limits.h.
58718         (EOVERFLOW): New fallback definition.
58719         (vasprintf): Test here whether the string length is > INT_MAX.
58720         * lib/vsnprintf.c: Include errno.h, limits.h.
58721         (EOVERFLOW): New fallback definition.
58722         (vsnprintf): Fix bug when generated string was too long for the buffer.
58723         Test here whether the string length is > INT_MAX.
58724
58725 2006-08-28  Bruno Haible  <bruno@clisp.org>
58726
58727         * lib/inttypes_.h (SCNX*): Remove definitions.
58728         Reported by Eric Blake.
58729
58730 2006-08-28  Bruno Haible  <bruno@clisp.org>
58731
58732         * lib/c-strstr.h: New file, from GNU gettext.
58733         * lib/c-strstr.c: New file, from GNU gettext.
58734
58735 2006-08-28  Bruno Haible  <bruno@clisp.org>
58736
58737         * gnulib-tool: Reorder some statements.
58738
58739 2006-08-28  Bruno Haible  <bruno@clisp.org>
58740
58741         * gnulib-tool: New option --makefile-name.
58742         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
58743         $makefile_name.
58744         (func_import): Write $makefile_name to the cache file, and read it from
58745         there unless explicitly specified. Use $makefile_name as file name
58746         instead of Makefile.am. Adjust the recommendations accordingly.
58747
58748 2006-08-28  Bruno Haible  <bruno@clisp.org>
58749
58750         * gnulib-tool (func_verify_module): Check against misapplying patch.
58751
58752 2006-08-28  Bruno Haible  <bruno@clisp.org>
58753
58754         * gnulib-tool (func_relativize, func_relconcat): New functions.
58755         Give an error if --local-dir is given with --update.
58756         Remove trailing slashes from $local_gnulib_dir.
58757         (func_import): Store the relativized $local_gnulib_dir in
58758         gnulib-cache.m4, and read it from there if not specified explicitly.
58759
58760 2006-08-28  Bruno Haible  <bruno@clisp.org>
58761
58762         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
58763         is the current directory. Respect also $local_gnulib_dir.
58764
58765 2006-08-28  Bruno Haible  <bruno@clisp.org>
58766             Simon Josefsson  <jas@extundo.com>
58767
58768         BeOS portability.
58769         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
58770
58771 2006-08-27  Jim Meyering  <jim@meyering.net>
58772
58773         * doc/visibility.texi: Remove duplicate word: "pointer".
58774
58775 2006-08-26  Bruno Haible  <bruno@clisp.org>
58776
58777         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
58778         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
58779         (Makefile.am): Create inttypes.h from inttypes_.h.
58780         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
58781
58782         * modules/imaxabs: New file.
58783
58784         * modules/imaxdiv: New file.
58785
58786 2006-08-26  Bruno Haible  <bruno@clisp.org>
58787
58788         * m4/inttypes.m4: New file.
58789         * m4/_inttypes_h.m4: Remove file.
58790         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
58791         PRI_MACROS_BROKEN.
58792         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
58793
58794         * m4/imaxabs.m4: New file.
58795
58796         * m4/imaxdiv.m4: New file.
58797
58798 2006-08-26  Bruno Haible  <bruno@clisp.org>
58799
58800         * lib/inttypes_.h: New file.
58801         * lib/inttypes.h: Remove file.
58802         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
58803
58804         * lib/imaxabs.c: New file.
58805
58806         * lib/imaxdiv.c: New file.
58807
58808 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58809
58810         New config-h module, so that "make" output needn't be cluttered
58811         by -DHAVE_CONFIG_H.
58812         * MODULES.html.sh (Support for building libraries and executables):
58813         Add config-h.
58814         * modules/config-h: New file.
58815         * gnulib-tool (nl, sed_transform_lib_file): New vars.
58816         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
58817         the config-h module is used.
58818
58819         New configmake module, so that "make" output needn't be cluttered
58820         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
58821         * MODULES.html.sh (Support for building libraries and executables):
58822         Add configmake.
58823         * modules/configmake: New file.
58824
58825 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58826
58827         * m4/config-h.m4: New file.
58828
58829 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58830
58831         * config/srclist.txt: Add elisp-comp.
58832
58833 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58834
58835         * MODULES.html.sh (Support for building libraries and executables):
58836         Add elisp-comp.
58837         * build-aux/elisp-comp: New file.
58838         * modules/elisp-comp: New file.
58839
58840 2006-08-24  Bruno Haible  <bruno@clisp.org>
58841
58842         * gnulib-tool (func_create_testdir): Use non-default values of
58843         sourcebase and m4base.
58844
58845 2006-08-24  Bruno Haible  <bruno@clisp.org>
58846
58847         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
58848         HTML structure.
58849
58850 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58851
58852         * modules/openat (Depends-on): Add lchown.
58853
58854 2006-08-23  Bruno Haible  <bruno@clisp.org>
58855
58856         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
58857         of gl_LOCK_EARLY instead of gl_LOCK.
58858
58859 2006-08-23  Bruno Haible  <bruno@clisp.org>
58860
58861         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
58862         on OSF/1 to no.
58863         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
58864
58865 2006-08-23  Bruno Haible  <bruno@clisp.org>
58866
58867         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
58868         as unusable.
58869
58870         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
58871         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
58872         (gl_LOCK): New macro.
58873
58874 2006-08-22  Simon Josefsson  <jas@extundo.com>
58875
58876         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
58877         to md5 module.
58878
58879 2006-08-22  Simon Josefsson  <jas@extundo.com>
58880
58881         * MODULES.html.sh: Add "Support for maintaining and release
58882         projects".
58883
58884         * build-aux/gnupload: New file, from coreutils.
58885
58886 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58887
58888         Avoid the need for AC_LIBSOURCES in m4 macros.
58889         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
58890         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
58891         * modules/check-version (EXTRA_DIST): Add check-version.h.
58892         * modules/crc (EXTRA_DIST): Add crc.h.
58893         * modules/des (EXTRA_DIST): Add des.h.
58894         * modules/gc (EXTRA_DIST): Add gc.h.
58895         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
58896         * modules/getline (EXTRA_DIST): Add getline.h.
58897         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
58898         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
58899         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
58900         * modules/md2 (EXTRA_DIST): Add md2.h.
58901         * modules/md4 (EXTRA_DIST): Add md4.h.
58902         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
58903         * modules/read-file (EXTRA_DIST): Add read-file.h.
58904         * modules/readline (EXTRA_DIST): Add readline.h.
58905         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
58906         rijndael-api-fst.h.
58907
58908 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58909
58910         * m4/rijndael.m4 (gl_ARCFOUR):
58911         * m4/arctwo.m4 (gl_ARCTWO):
58912         * m4/check-version.m4 (gl_CHECK_VERSION):
58913         * m4/crc.m4 (gl_CRC):
58914         * m4/des.m4 (gl_DES):
58915         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
58916         * m4/gc.m4 (gl_GC):
58917         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
58918         * m4/getline.m4 (gl_FUNC_GETLINE):
58919         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
58920         * m4/hmac-md5.m4 (gl_HMAC_MD5):
58921         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
58922         * m4/md2.m4 (gl_MD2):
58923         * m4/md4.m4 (gl_MD4):
58924         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
58925         * m4/read-file.m4 (gl_FUNC_READ_FILE):
58926         * m4/readline.m4 (gl_FUNC_READLINE):
58927         * m4/rijndael.m4 (gl_RIJNDAEL):
58928         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58929         to get the necessary .h files and whatnot.
58930
58931 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58932
58933         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
58934         gnulib rather than the other way around.
58935         * config/srclistvars.sh (COREUTILS): Remove.
58936
58937 2006-08-22  Jim Meyering  <jim@meyering.net>
58938
58939         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
58940
58941         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
58942
58943 2006-08-22  Eric Blake  <ebb9@byu.net>
58944
58945         * modules/regexprops-generic: New file.
58946         * MODULES.html.sh (Support for building documentation): List it.
58947
58948 2006-08-22  Eric Blake  <ebb9@byu.net>
58949
58950         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
58951         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
58952         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
58953         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
58954
58955 2006-08-22  Bruno Haible  <bruno@clisp.org>
58956
58957         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
58958         and lib_LTLIBRARIES like the other lib_* variables.
58959
58960 2006-08-22  Bruno Haible  <bruno@clisp.org>
58961
58962         * build-aux/x-to-1.in: New file, from GNU gettext.
58963
58964 2006-08-22  Bruno Haible  <bruno@clisp.org>
58965
58966         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
58967         <utmpx.h> exists.
58968
58969 2006-08-22  Bruno Haible  <bruno@clisp.org>
58970
58971         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
58972         <utmpx.h> exists.
58973
58974 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58975
58976         BeOS portability.
58977         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
58978         exist.
58979         Problem reported by Bruno Haible.
58980
58981 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58982
58983         Avoid the need for AC_LIBSOURCES in m4 macros.
58984         * modules/acl (EXTRA_DIST): Add acl.h.
58985         * modules/argmatch (Files): Add m4/argmatch.m4.
58986         (configure.ac): Add gl_ARGMATCH.
58987         (EXTRA_DIST): Renamed from lib_SOURCES, for
58988         consistency with the other modules.  Remove argmatch.c.
58989         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
58990         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
58991         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
58992         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
58993         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
58994         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
58995         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
58996         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
58997         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
58998         * modules/closeout (EXTRA_DIST): Add closeout.h.
58999         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
59000         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
59001         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
59002         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
59003         dirname.h; remove basename.c and stripslash.c.
59004         * modules/exclude (EXTRA_DIST): Add exclude.h.
59005         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
59006         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
59007         * modules/file-type (EXTRA_DIST): Add file-type.h.
59008         * modules/filemode (EXTRA_DIST): Add filemode.h.
59009         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
59010         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59011         * modules/fpending (EXTRA_DIST): Add __fpending.h.
59012         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
59013         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
59014         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
59015         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
59016         * modules/getdate (EXTRA_DIST): Add getdate.c.
59017         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
59018         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
59019         * modules/getpass (EXTRA_DIST): Add getpass.h.
59020         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
59021         * modules/group-member (EXTRA_DIST): Add group-member.h.
59022         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
59023         * modules/hash (EXTRA_DIST): Add hash.h.
59024         * modules/human (EXTRA_DIST): Add human.h.
59025         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
59026         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
59027         * modules/lchown (EXTRA_DIST): Add lchown.h.
59028         * modules/long-options (EXTRA_DIST): Add long-options.h.
59029         * modules/lstat (EXTRA_DIST): Add lstat.h.
59030         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
59031         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
59032         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
59033         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
59034         * modules/memxor (EXTRA_DIST): Add memxor.h.
59035         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
59036         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
59037         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
59038         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
59039         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
59040         * modules/physmem (EXTRA_DIST): Add physmem.h.
59041         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
59042         * modules/posixver (EXTRA_DIST): Add posixver.h.
59043         * modules/quote (EXTRA_DIST): Add quote.h.
59044         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
59045         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
59046         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
59047         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
59048         regex_internal.h regexec.c.
59049         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
59050         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
59051         * modules/same (EXTRA_DIST): Add same.h.
59052         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
59053         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
59054         * modules/savedir (EXTRA_DIST): Add savedir.h.
59055         * modules/sha1 (EXTRA_DIST): Add sha1.h.
59056         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
59057         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
59058         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
59059         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
59060         * modules/strdup (EXTRA_DIST): Add strdup.h.
59061         * modules/strftime (EXTRA_DIST): Add strftime.h.
59062         * modules/strndup (EXTRA_DIST): Add strndup.h.
59063         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
59064         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
59065         * modules/time_r (EXTRA_DIST): Add time_r.h.
59066         * modules/timespec (EXTRA_DIST): Add timespec.h.
59067         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59068         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
59069         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
59070         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
59071         * modules/userspec (EXTRA_DIST): Add userspec.h.
59072         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
59073         * modules/utimens (EXTRA_DIST): Add utimens.h.
59074         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
59075         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
59076         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
59077         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
59078         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
59079         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
59080         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
59081         * modules/yesno (EXTRA_DIST): Add yesno.h.
59082
59083 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59084
59085         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
59086
59087         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
59088         * m4/dev-ino.m4, same-inode.m4: Remove.
59089
59090         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
59091         * m4/acl.m4 (AC_FUNC_ACL):
59092         * m4/backupfile.m4 (gl_BACKUPFILE):
59093         * m4/c-strtod.m4 (gl_C99_STRTOLD):
59094         * m4/canon-host.m4 (gl_CANON_HOST):
59095         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59096         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
59097         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
59098         * m4/cloexec.m4 (gl_CLOEXEC):
59099         * m4/close-stream.m4 (gl_CLOSE_STREAM):
59100         * m4/closeout.m4 (gl_CLOSEOUT):
59101         * m4/dirfd.m4 (gl_FUNC_DIRFD):
59102         * m4/dirname.m4 (gl_DIRNAME):
59103         * m4/exclude.m4 (gl_EXCLUDE):
59104         * m4/exitfail.m4 (gl_EXITFAIL):
59105         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
59106         * m4/file-type.m4 (gl_FILE_TYPE):
59107         * m4/filemode.m4 (gl_FILEMODE):
59108         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
59109         * m4/fpending.m4 (gl_FUNC_FPENDING):
59110         * m4/fprintftime.m4 (gl_FPRINTFTIME):
59111         * m4/fts.m4 (gl_FUNC_FTS):
59112         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
59113         * m4/getdate.m4 (gl_GETDATE):
59114         * m4/gethrxtime.m4 (gl_GETHRXTIME):
59115         * m4/getpagesize.m4 (gl_GETPAGESIZE):
59116         * m4/getpass.m4 (gl_FUNC_GETPASS):
59117         * m4/gettime.m4 (gl_GETTIME):
59118         * m4/getugroups.m4 (gl_GETUGROUPS):
59119         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
59120         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
59121         * m4/hard-locale.m4 (gl_HARD_LOCALE):
59122         * m4/hash.m4 (gl_HASH):
59123         * m4/idcache.m4 (gl_IDCACHE):
59124         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
59125         * m4/lchown.m4 (gl_FUNC_LCHOWN):
59126         * m4/long-options.m4 (gl_LONG_OPTIONS):
59127         * m4/lstat.m4 (gl_FUNC_LSTAT):
59128         * m4/md5.m4 (gl_MD5):
59129         * m4/memcasecmp.m4 (gl_MEMCASECMP):
59130         * m4/memcoll.m4 (gl_MEMCOLL):
59131         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
59132         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
59133         * m4/memxor.m4 (gl_MEMXOR):
59134         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
59135         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
59136         * m4/modechange.m4 (gl_MODECHANGE):
59137         * m4/mountlist.m4 (gl_MOUNTLIST):
59138         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59139         * m4/openat.m4 (gl_FUNC_OPENAT):
59140         * m4/pathmax.m4 (gl_PATHMAX):
59141         * m4/physmem.m4 (gl_PHYSMEM):
59142         * m4/posixtm.m4 (gl_POSIXTM):
59143         * m4/posixver.m4 (gl_POSIXVER):
59144         * m4/quote.m4 (gl_QUOTE):
59145         * m4/quotearg.m4 (gl_QUOTEARG):
59146         * m4/readtokens.m4 (gl_READTOKENS):
59147         * m4/readutmp.m4 (gl_READUTMP):
59148         * m4/regex.m4 (gl_REGEX):
59149         * m4/safe-read.m4 (gl_SAFE_READ):
59150         * m4/safe-write.m4 (gl_SAFE_WRITE):
59151         * m4/same.m4 (gl_SAME):
59152         * m4/save-cwd.m4 (gl_SAVE_CWD):
59153         * m4/savedir.m4 (gl_SAVEDIR):
59154         * m4/settime.m4 (gl_SETTIME):
59155         * m4/sha1.m4 (gl_SHA1):
59156         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
59157         * m4/stat-macros.m4 (gl_STAT_MACROS):
59158         * m4/stat-time.m4 (gl_STAT_TIME):
59159         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
59160         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
59161         * m4/strdup.m4 (gl_FUNC_STRDUP):
59162         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
59163         * m4/strndup.m4 (gl_FUNC_STRNDUP):
59164         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
59165         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
59166         * m4/time_r.m4 (gl_TIME_R):
59167         * m4/timespec.m4 (gl_TIMESPEC):
59168         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
59169         * m4/unlinkdir.m4 (gl_UNLINKDIR):
59170         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
59171         * m4/userspec.m4 (gl_USERSPEC):
59172         * m4/utimecmp.m4 (gl_UTIMECMP):
59173         * m4/utimens.m4 (gl_UTIMENS):
59174         * m4/xalloc.m4 (gl_XALLOC):
59175         * m4/xgetcwd.m4 (gl_XGETCWD):
59176         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
59177         * m4/xreadlink.m4 (gl_XREADLINK):
59178         * m4/xstrtod.m4 (gl_XSTRTOD):
59179         * m4/yesno.m4 (gl_YESNO):
59180         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59181         to get the necessary .h files and whatnot.
59182
59183 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
59184             Bruno Haible  <bruno@clisp.org>
59185
59186         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
59187         /bin/sh understanding of '!' conditional negation.
59188
59189 2006-08-21  Jim Meyering  <jim@meyering.net>
59190
59191         * modules/openat (Depends-on): Really alphabetize.
59192
59193         * modules/acl (Depends-on): Add error and quote.
59194
59195         * check-module (find_included_lib_files): Add at-func.c to the
59196         ok-to-include-more-than-once white list.
59197
59198         * modules/openat (Depends-on): Add lstat.  Alphabetize.
59199
59200 2006-08-21  Bruno Haible  <bruno@clisp.org>
59201
59202         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59203         Emit a pkgdata_DATA variable only if some snippets add contents to it.
59204         Reported by Martin Lambers <marlam@marlam.de>.
59205
59206 2006-08-21  Bruno Haible  <bruno@clisp.org>
59207
59208         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
59209         specify an installation location, don't emit a noinst_LIBRARIES or
59210         noinst_LTLIBRARIES assignment.
59211
59212 2006-08-21  Bruno Haible  <bruno@clisp.org>
59213
59214         BeOS portability.
59215         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
59216         BeOS has mbrtowc() but no <wctype.h>.
59217
59218 2006-08-21  Bruno Haible  <bruno@clisp.org>
59219
59220         BeOS portability.
59221         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
59222         exist.
59223
59224 2006-08-21  Bruno Haible  <bruno@clisp.org>
59225
59226         BeOS portability.
59227         * lib/mbchar.h: Include <wctype.h> only if it exists.
59228
59229 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59230
59231         Remove files that are no longer needed by their respective modules.
59232         * m4/obstack.m4: Remove.
59233         * m4/strerror_r.m4: Remove.
59234         * m4/uint32_t.m4: Remove.
59235         * m4/uintptr_t.m4: Remove.
59236         * m4/ullong_max.m4: Remove.
59237         * m4/xstrtoimax.m4: Remove.
59238         * m4/xstrtoumax.m4: Remove.
59239
59240         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
59241         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
59242         dependencies now capture this.
59243
59244         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
59245         Do not use AC_LIBSOURCES, since gnulib modules now do this.
59246         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
59247         * m4/human.m4 (gl_HUMAN): Likewise.
59248         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
59249         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
59250
59251         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
59252
59253         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
59254         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
59255         stdint.
59256         * m4/human.m4 (gl_HUMAN): Likewise.
59257         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
59258         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
59259         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59260         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59261         * m4/xstrtol (gl_XSTRTOL): Likewise.
59262
59263         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
59264         AC_TYPE_LONG_LONG_INT.
59265         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59266         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
59267         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
59268         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59269
59270         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
59271         on stdbool.
59272
59273         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
59274         (gl_PREREQ_XSTRTOUL): Remove.
59275
59276         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
59277
59278         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
59279         mode.
59280
59281 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59282
59283         Add and change modules to make it easier for coreutils to use
59284         gnulib-tool.
59285         * modules/backupfile (Files): Remove m4/d-ino.m4.
59286         (Depends-on): Add d-ino.
59287         * modules/cycle-check (Depends-on): Add stdint.
59288         (lib_SOURCES): Add cycle-check.h.
59289         * modules/d-ino: New module.
59290         * modules/d-type: New module.
59291         * modules/error (Files): Remove m4/strerror_r.m4.
59292         * modules/filemode (Files): Add m4/st_dm_mode.m4.
59293         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59294         m4/inttypes_h.m4, m4/uintmax_t.m4.
59295         (Depends-on): Add stdint.
59296         (lib_SOURCES): Add fsusage.h.
59297         * modules/getcwd (Files): Remove d-ino.m4.
59298         (Depends-on): Add d-ino.
59299         * modules/getndelim2 (Depends-on): Add stdint.
59300         * modules/glob (Files): Remove m4/d-type.m4.
59301         (Depends-on): Add d-type.
59302         * modules/host-os: New module.
59303         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
59304         m4/inttypes_h.m4, m4/uintmax_t.m4.
59305         * Depends-on: Add stdint.
59306         (lib_SOURCES): Add human.h.
59307         * modules/inttostr (Files): Remove m4/intmax_t.m4,
59308         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
59309         m4/uintmax_t.m4, m4/ulonglong.m4.
59310         (Depends-on): Add stdint.
59311         (EXTRA_DIST): Add inttostr.h.
59312         * modules/lchmod: New module.
59313         * modules/link-follow: New module.
59314         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
59315         (Depends-on): Add lchmod.
59316         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
59317         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
59318         (Depends-on): Add stdint.
59319         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
59320         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
59321         (Depends-on): Add stdint.
59322         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
59323         * modules/perl: New module.
59324         * modules/regex (Depends-on): Add stdint.
59325         * modules/rmdir-errno: New module.
59326         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59327         m4/intmax_t.m4.
59328         (Depends-on): Add stdint.
59329         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59330         m4/uintmax_t.m4.
59331         (Depends-on): Add stdint.
59332         * modules/unlink-busy: New module.
59333         * modules/utimecmp (Depends-on): Add stdint.
59334         * modules/uptime: New module.
59335         * modules/winsz-ioctl: New module.
59336         * modules/winsz-termios: New module.
59337         * modules/xnanosleep (Depends-on): Add nanosleep.
59338         * modules/ullong_max: Remove.
59339         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
59340         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
59341         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
59342         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
59343         (Depends-on): Add inttypes.
59344         (lib_SOURCES): Add xstrtol.h.
59345         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
59346         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
59347         * MODULES.html.sh: Move 'assert' into the assert section.
59348         Move 'dummy' into the linking section.
59349         Remove ullong_max.
59350         Add section for compatibility checks for POSIX:2001 functions,
59351         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
59352         winsz-ioctl, and winsz-termios into it.
59353         Add lchmod.
59354         Add top-level Misc section and put host-os, perl, and uptime
59355         into it.
59356
59357 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59358
59359         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
59360         now assume the stdint module.  Do not include inttypes.h.
59361         * lib/fsusage.h: Likewise.
59362         * lib/getndelim2.c: Likewise.
59363         * lib/human.h: Likewise.
59364         * lib/inttostr.h: Likewise.
59365         * lib/obstack.c: Likewise.
59366         * lib/regex_internal.h: Likewise.
59367         * lib/tempname.c: Likewise.
59368         * lib/utimecmp.c: Likewise.
59369         * lib/xstrtol.h: Likewise.
59370
59371         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
59372
59373         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
59374         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
59375         * lib/xtime.h: Likewise.
59376
59377 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59378
59379         * modules/openat (Files): Add lib/fchmodat.c.
59380         Fixes problem reported by Jay Youngman.
59381
59382 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59383
59384         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
59385         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
59386
59387 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
59388             Bruno Haible  <bruno@clisp.org>
59389
59390         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
59391         and is a script that invokes bison. Tighten the code. Add comments.
59392
59393 2006-08-18  Jim Meyering  <jim@meyering.net>
59394
59395         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
59396         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
59397         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
59398         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
59399
59400 2006-08-18  Bruno Haible  <bruno@clisp.org>
59401
59402         * modules/bison-i18n: New file.
59403         * MODULES.html.sh (Internationalization functions): Add it.
59404
59405 2006-08-18  Bruno Haible  <bruno@clisp.org>
59406
59407         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
59408         sys/statvfs.h. When getmntinfo was found, check its declaration and
59409         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
59410
59411 2006-08-18  Bruno Haible  <bruno@clisp.org>
59412
59413         * m4/bison-i18n.m4: New file, from bison.
59414
59415 2006-08-18  Bruno Haible  <bruno@clisp.org>
59416
59417         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
59418         (ME_DUMMY): Treat "kernfs" as a dummy.
59419         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
59420
59421 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59422
59423         Update from coreutils.
59424
59425         2006-08-15  Jim Meyering  <jim@meyering.net>
59426
59427         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
59428
59429         2006-01-17  Jim Meyering  <jim@meyering.net>
59430
59431         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
59432
59433         2006-01-11  Jim Meyering  <jim@meyering.net>
59434
59435         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
59436         Check for the lchmod function.
59437
59438 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59439
59440         Update from coreutils.
59441
59442         * lib/__fpending.h: Add copyright notice.
59443         * lib/fprintftime.h: Likewise.
59444         * lib/savedir.c: Use (C) in copyright notice.
59445         * lib/savedir.h: Likewise.
59446
59447         2006-08-15  Jim Meyering  <jim@meyering.net>
59448
59449         * lib/at-func.c: New file, with the logic of all emulated at-functions.
59450         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
59451         in support of the EXPECTED_ERRNO macro.
59452         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
59453         definitions.  Instead, define the appropriate symbols and include
59454         "at-func.c".
59455         * lib/mkdirat.c (mkdirat): Likewise.
59456         * lib/fchmodat.c (fchmodat): Likewise.
59457         (ENOSYS): Remove definition.
59458         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
59459         it.  Don't include "unistd--.h" -- it wasn't ever used.
59460
59461         2006-01-17  Jim Meyering  <jim@meyering.net>
59462
59463         Rewrite fts.c not to change the current working directory,
59464         by using openat, fstatat, fdopendir, etc..
59465
59466         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
59467         (HAVE_OPENAT_SUPPORT): Define.
59468         [_LIBC] (fchdir): Don't undef or define; no longer used.
59469         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
59470         Now, this `function' always succeeds, and consumes its file descriptor
59471         parameter -- so callers must not close such FDs.  Update callers.
59472         (diropen_fd, opendirat, cwd_advance_fd): New functions.
59473         (diropen): Add parameter, SP.  Adjust all callers.
59474         Implement using diropen_fd, rather than open.
59475         (fts_open): Initialize new member, fts_cwd_fd.
59476         Remove fts_rft-setting code.
59477         (fts_close): Close fts_cwd_fd, if necessary.
59478         (__opendir2): Define in terms of opendir or opendirat,
59479         depending on whether the FST_NOCHDIR flag is set.
59480         (fts_build): Since fts_safe_changedir consumes its FD, and since
59481         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
59482         and close the dup'd file descriptor upon failure.
59483         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
59484         (fts_safe_changedir): Tweak semantics to reflect that this function
59485         now calls cwd_advance_fd and hence consumes its FD argument.
59486         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
59487         [struct FTS] (fts_rft): Remove now-unused member.
59488         [struct FTS] (fts_cycle.state): Improve comment.
59489
59490         * lib/openat.c (openat_needs_fchdir): New function.
59491         * lib/openat.h (openat_needs_fchdir): Declare it.
59492
59493 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
59494
59495         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
59496         Problem and fix reported by Pádraig Brady in
59497         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
59498
59499 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59500
59501         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
59502
59503 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59504
59505         * lib/memcoll.c (memcoll): Optimize for the common case where the
59506         arguments are bytewise equal.
59507
59508 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59509
59510         * doc/regexprops-generic.texi: Add a copyright notice.
59511
59512 2006-08-15  Bruno Haible  <bruno@clisp.org>
59513
59514         * modules/tmpdir (License): Change to LGPL.
59515
59516 2006-08-15  Bruno Haible  <bruno@clisp.org>
59517
59518         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
59519         module.
59520
59521 2006-08-14  Simon Josefsson  <jas@extundo.com>
59522
59523         * config/srclist.txt: Add gnupload.
59524
59525 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59526
59527         Change copyright notice from LGPL 2 to GPL 2, since that's the
59528         standard form used in the gnulib repository.
59529         * tests/test-lock.c: Likewise.
59530         * tests/test-stdint.c: Likewise.
59531         * tests/test-tls.c: Likewise.
59532
59533         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
59534         prelude-manager.  User shorter URLs for GNU projects, without '?'.
59535         Add copyright notice.
59536
59537         * check-module: Add copyright notice.  Output a copyright
59538         notice if "--version" is specified.
59539         * modules/COPYING: New file.
59540         * tests/test-getaddrinfo.c: Add copyright notice.
59541         * tests/test-verify.c: Likewise.
59542
59543 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59544
59545         Change copyright notice from LGPL 2 to GPL 2, since that's the
59546         standard form used in the gnulib repository.
59547         * lib/lock.c: LGPL -> GPL.
59548         * lib/lock.h: Likewise.
59549         * lib/strnlen1.c: Likewise.
59550         * lib/strnlen1.h: Likewise.
59551         * lib/tls.c: Likewise.
59552         * lib/tls.h: Likewise.
59553         * lib/tmpdir.c: Likewise.
59554
59555         * lib/TODO: Remove; this belongs only in coreutils.
59556
59557 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59558
59559         Add copyright notices to long-enough files that lack them, since
59560         otherwise the files aren't clearly free.  Use the same notice that
59561         getdate.texi already uses.
59562         * doc/alloca-opt.texi: Add copyright notice.
59563         * doc/alloca.texi: Likewise.
59564         * doc/ctime.texi: Likewise.
59565         * doc/functions.texi: Likewise.
59566         * doc/gcd.texi: Likewise.
59567         * doc/gnulib-tool.texi: Likewise.
59568         * doc/inet_ntoa.texi: Likewise.
59569         * doc/visibility.texi: Likewise.
59570
59571         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
59572         * doc/quote.texi: Add copyright notice.
59573
59574         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
59575         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
59576         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
59577         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
59578         is now obsolete, and give a pointer to the Sun list.
59579         Add copyright notice.
59580
59581 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59582
59583         * config/srclistvars.sh: Add copyright notice.
59584
59585 2006-08-14  Eric Blake  <ebb9@byu.net>
59586
59587         Import the following change from libc:
59588
59589         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
59590
59591         Upstream bug 2997.
59592         * lib/misc/error.c: Add space between program name and message if file
59593         name is missing.
59594
59595 2006-08-12  Karl Berry  <karl@gnu.org>
59596
59597         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
59598         remove, these originate in gnulib now.
59599
59600 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59601
59602         * doc/Makefile (standards.info standards.html standards.dvi):
59603         Also depend on make-stds.texi.
59604
59605 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59606
59607         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
59608         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
59609
59610         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
59611         in wchar_t.  Problem reported by Eric Blake.
59612
59613         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
59614         LEN is smaller than SIZE.  Suggested by Bruno Haible.
59615         Also, help the compiler to keep LEN in a register.
59616
59617 2006-08-11  Eric Blake  <ebb9@byu.net>
59618
59619         * users.txt: Sort.  Add tar.
59620
59621 2006-08-11  Bruno Haible  <bruno@clisp.org>
59622
59623         * users.txt: New file.
59624
59625 2006-08-11  Bruno Haible  <bruno@clisp.org>
59626
59627         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
59628         before <wchar.h>. Needed for OSF/1 and BSD/OS.
59629
59630 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59631
59632         * modules/snprintf (Depends-on): Remove minmax.
59633         (Maintainer): Add self and Bruno.
59634
59635 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59636
59637         * lib/.cppi-disable: Add snprintf.h, socket_.h.
59638         * lib/snprintf.c: Include <errno.h> and <limits.h>.
59639         (EOVERFLOW): Define if the system does not.
59640         Do not include "minmax.h"; it wasn't used.
59641         (snprintf): Don't assume size_t promotes to an unsigned type.
59642         Fix bug when generated string was too long for the buffer: the
59643         buffer's contents are supposed to be the initial prefix of the
59644         output.  Don't assume vasnprintf returns EOVERFLOW if the size
59645         exceeds INT_MAX; do the check ourselves.
59646
59647         Import the following changes from libc:
59648
59649         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
59650
59651         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
59652         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
59653         set wc to the byte which couldn't be converted.
59654         (re_string_reconstruct): Don't clear valid_raw_len before calling
59655         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
59656         tip_context using re_string_context_at.
59657
59658         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
59659
59660         * lib/posix/regex.h: g++ still cannot handled [restrict].
59661
59662         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
59663
59664         * lib/posix/regex.h: Remove special handling for VMS.
59665
59666 2006-08-10  Jim Meyering  <jim@meyering.net>
59667
59668         * modules/same-inode: New module.
59669         * modules/dev-ino: New module.
59670         * modules/cycle-check: Depend on these modules, rather than simply
59671         including their .h files.
59672         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
59673         required via m4/cycle-check.m4.
59674         * modules/same: Depend on new same-inode module, rather than
59675         including same-inode.h.
59676         * modules/chdir-safer: New file.
59677
59678         * modules/chown (Depends-on): Add stat-macros.
59679
59680 2006-08-10  Jim Meyering  <jim@meyering.net>
59681
59682         * m4/cycle-check.m4: New file.
59683         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
59684         * m4/dev-ino.m4, m4/same-inode.m4: New files.
59685
59686 2006-08-10  Eric Blake  <ebb9@byu.net>
59687
59688         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
59689         in from original proposal.
59690
59691 2006-08-10  Eric Blake  <ebb9@byu.net>
59692         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59693
59694         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
59695         namespace.
59696
59697 2006-08-10  Bruno Haible  <bruno@clisp.org>
59698
59699         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
59700         as well.
59701
59702 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59703
59704         Sync from coreutils.
59705
59706         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
59707
59708         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
59709         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
59710
59711 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59712
59713         * modules/restrict: Remove; no longer needed now that we assume
59714         Autoconf 2.59 or later.
59715         * MODULES.html.sh: Remove 'restrict'.
59716         * modules/argp (Depends-on): Remove 'restrict'.
59717         * modules/base64 (Depends-on): Likewise.
59718         * modules/gc (Depends-on): Likewise.
59719         * modules/getaddrinfo (Depends-on): Likewise.
59720         * modules/glob (Depends-on): Likewise.
59721         * modules/inet_ntop (Depends-on): Likewise.
59722         * modules/inet_pton (Depends-on): Likewise.
59723         * modules/memxor (Depends-on): Likewise.
59724         * modules/regex (Depends-on): Likewise.
59725         * modules/strtok_r (Depends-on): Likewise.
59726         * modules/time_r (Depends-on): Likewise.
59727
59728 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59729
59730         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
59731         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
59732         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59733         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
59734         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
59735         * m4/memxor.m4 (gl_MEMXOR): Likewise.
59736         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
59737         gl_C_RESTRICT replaced by AC_C_RESTRICT.
59738
59739         Merge from coreutils.
59740         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
59741         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
59742         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59743         * m4/time_r.m4 (gl_TIME_R): Likewise.
59744
59745 2006-08-09  Karl Berry  <karl@gnu.org>
59746
59747         * config/srclist.txt: no more gettext-tools, per Bruno.
59748
59749 2006-08-08  Eric Blake  <ebb9@byu.net>
59750
59751         * modules/verror: New module.
59752         * MODULES.html.sh: Document it.
59753
59754 2006-08-08  Eric Blake  <ebb9@byu.net>
59755
59756         * lib/verror.h, lib/verror.c: New files.
59757
59758 2006-08-08  Eric Blake  <ebb9@byu.net>
59759
59760         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
59761         verror_at_line output complies with GNU Coding Standards even when
59762         file is NULL.
59763
59764 2006-08-07  Bruno Haible  <bruno@clisp.org>
59765
59766         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
59767         versions of AIX.
59768         Reported by Ralf Wildenhues.
59769
59770 2006-08-07  Bruno Haible  <bruno@clisp.org>
59771
59772         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
59773         in an AC_DEFUN. Needed so that the autoconf snippets can use
59774         AC_REQUIRE.
59775
59776 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59777
59778         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59779         Initialize pkgdata_DATA.
59780         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
59781         overriding it.
59782
59783 2006-08-06  Eric Blake  <ebb9@byu.net>
59784
59785         * lib/error.h: Fold in some upstream changes from glibc.
59786         * lib/error.c: Likewise.
59787
59788 2006-08-04  Bruno Haible  <bruno@clisp.org>
59789
59790         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59791         Make the mostlyclean-local rule depend on mostlyclean-generic.
59792         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
59793
59794 2006-07-31  Bruno Haible  <bruno@clisp.org>
59795
59796         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
59797         <stdlib.h>, <string.h>.
59798
59799 2006-07-30  Bruno Haible  <bruno@clisp.org>
59800
59801         * modules/readlink (License): Change to LGPL.
59802
59803 2006-07-30  Bruno Haible  <bruno@clisp.org>
59804
59805         * modules/javaversion (Makefile.am): Distribute javaversion.java and
59806         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
59807         set PKGDATADIR to point to it.
59808
59809 2006-07-30  Bruno Haible  <bruno@clisp.org>
59810
59811         * modules/csharpexec (configure.ac): Comment out macro invocation.
59812         * modules/javaexec (configure.ac): Likewise.
59813         * modules/javacomp-script (configure.ac): Likewise.
59814
59815         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
59816
59817 2006-07-30  Bruno Haible  <bruno@clisp.org>
59818
59819         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
59820         linked-list.
59821
59822 2006-07-30  Bruno Haible  <bruno@clisp.org>
59823
59824         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
59825
59826 2006-07-30  Bruno Haible  <bruno@clisp.org>
59827
59828         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59829         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
59830         get removed.
59831
59832 2006-07-29  Bruno Haible  <bruno@clisp.org>
59833
59834         Make it possible for gnulib-tool to work with locally modified or
59835         augmented gnulib repositories.
59836         * gnulib-tool (func_usage): Document --local-dir option.
59837         (local_gnulib_dir): New variable.
59838         Handle --local-dir option.
59839         (func_lookup_file): New function.
59840         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
59841         (func_get_description, func_get_filelist, func_get_description,
59842         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
59843         func_get_automake_snippet, func_get_include_directive,
59844         func_get_license, func_get_maintainer): Use func_lookup_file.
59845         (func_import, func_create_testdir): Use func_lookup_file.
59846
59847 2006-07-29  Bruno Haible  <bruno@clisp.org>
59848
59849         * modules/setenv (Depends-on): Add unistd.
59850
59851 2006-07-29  Bruno Haible  <bruno@clisp.org>
59852
59853         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
59854
59855 2006-07-29  Bruno Haible  <bruno@clisp.org>
59856
59857         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
59858
59859 2006-07-29  Bruno Haible  <bruno@clisp.org>
59860
59861         * gnulib-tool (import, update): If there is no Makefile.am, look at
59862         aclocal.m4, instead of bailing out.
59863
59864 2006-07-29  Bruno Haible  <bruno@clisp.org>
59865
59866         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
59867         Categorize the options by when they are useful.
59868
59869 2006-07-29  Bruno Haible  <bruno@clisp.org>
59870
59871         * gnulib-tool (func_usage): Document option --no-libtool.
59872         Handle option --no-libtool.
59873         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
59874         for changed semantics of $libtool variable.
59875         (func_import): Likewise. If libtool is not used, show this through
59876         an option --no-libtool.
59877         (func_create_testdir): Update.
59878
59879 2006-07-29  Bruno Haible  <bruno@clisp.org>
59880
59881         * gnulib-tool (func_import): Extend error message about missing
59882         --doc-base.
59883
59884 2006-07-29  Bruno Haible  <bruno@clisp.org>
59885
59886         * gnulib-tool (func_import): Don't create the $docbase directory if
59887         there is no file to store there.
59888
59889 2006-07-29  Bruno Haible  <bruno@clisp.org>
59890
59891         * gnulib-tool (autoconf_minversion): If a --dir option is given and
59892         relevant, look for configure.ac there, not in the current directory.
59893         Also use a simple search for AC_PREREQ, not "autoconf --trace".
59894
59895 2006-07-29  Bruno Haible  <bruno@clisp.org>
59896
59897         * gnulib-tool (SORT): New variable.
59898         (func_usage): Undocument --assume-autoconf option.
59899         Remove --assume-autoconf option handling.
59900         (autoconf_minversion): Determine from the contents of configure.ac.
59901         (func_import): Remove autoconf_minversion handling.
59902         Suggested by Eric Blake.
59903
59904 2006-07-29  Bruno Haible  <bruno@clisp.org>
59905
59906         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
59907
59908 2006-07-29  Bruno Haible  <bruno@clisp.org>
59909
59910         * config/srclist.txt (*setenv.[ch]): Remove rules.
59911
59912 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59913
59914         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
59915
59916 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59917
59918         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
59919         arpa/inet.h.
59920
59921 2006-07-28  Simon Josefsson  <jas@extundo.com>
59922
59923         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
59924         * modules/inet_pton (Depends-on): Likewise.
59925
59926 2006-07-28  Simon Josefsson  <jas@extundo.com>
59927
59928         * m4/netinet_in_h.m4: New file.
59929
59930 2006-07-28  Simon Josefsson  <jas@extundo.com>
59931
59932         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
59933         #include's.
59934
59935 2006-07-28  Simon Josefsson  <jas@extundo.com>
59936
59937         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
59938         #include's.
59939
59940 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
59941
59942         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
59943         setgid on directories only if they set these bits.
59944         * lib/modechange.h: Remove obsolete comment about masks.
59945
59946 2006-07-28  Eric Blake  <ebb9@byu.net>
59947
59948         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
59949         macro expansion.
59950
59951 2006-07-28  Bruno Haible  <bruno@clisp.org>
59952
59953         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
59954
59955 2006-07-28  Bruno Haible  <bruno@clisp.org>
59956
59957         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
59958
59959 2006-07-28  Bruno Haible  <bruno@clisp.org>
59960
59961         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59962         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59963         Define fallbacks.
59964         Avoids link error on FreeBSD 4.x.
59965         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59966
59967         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
59968         encoding.
59969         * lib/mbswidth.c (iswcntrl): Likewise.
59970
59971 2006-07-27  Bruno Haible  <bruno@clisp.org>
59972
59973         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
59974         test.
59975
59976 2006-07-27  Bruno Haible  <bruno@clisp.org>
59977
59978         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
59979         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
59980         defined.
59981
59982 2006-07-26  Eric Blake  <ebb9@byu.net>
59983
59984         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
59985
59986 2006-07-26  Eric Blake  <ebb9@byu.net>
59987
59988         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
59989         like mingw that lack mkstemp.
59990         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
59991         avoid compilation warning on mingw.
59992
59993 2006-07-26  Bruno Haible  <bruno@clisp.org>
59994
59995         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
59996         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
59997         INT_FAST*_MIN, INTPTR_MIN.
59998
59999 2006-07-25  Bruno Haible  <bruno@clisp.org>
60000
60001         * modules/version-etc (Depends-on): Add stdarg.
60002
60003 2006-07-25  Bruno Haible  <bruno@clisp.org>
60004
60005         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
60006         complex commands.
60007
60008 2006-07-25  Bruno Haible  <bruno@clisp.org>
60009
60010         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
60011         defined in <stdarg.h> or config.h.
60012
60013 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60014
60015         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
60016         (gl_STDIO_SAFER): Remove.
60017
60018 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60019
60020         * MODULES.html.sh (File stream based Input/Output):
60021         Add fopen-safer, tmpfile-safer; remove stdio-safer.
60022         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
60023         * modules/fopen-safer, modules/tmpfile-safer: New files.
60024         * modules/stdio-safer: Remove.
60025
60026 2006-07-24  Bruno Haible  <bruno@clisp.org>
60027
60028         * modules/tmpdir: New file.
60029         * MODULES.html.sh (File system functions): Add it.
60030
60031 2006-07-24  Bruno Haible  <bruno@clisp.org>
60032
60033         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
60034         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
60035
60036 2006-07-24  Bruno Haible  <bruno@clisp.org>
60037
60038         * modules/clean-temp: New file.
60039
60040 2006-07-24  Bruno Haible  <bruno@clisp.org>
60041
60042         * m4/tmpdir.m4: New file, from GNU gettext.
60043
60044 2006-07-24  Bruno Haible  <bruno@clisp.org>
60045
60046         * lib/tmpdir.h: New file, from GNU gettext.
60047         * lib/tmpdir.c: New file, from GNU gettext.
60048
60049 2006-07-24  Bruno Haible  <bruno@clisp.org>
60050
60051         * lib/clean-temp.h: New file, from GNU gettext.
60052         * lib/clean-temp.c: New file, from GNU gettext.
60053
60054 2006-07-23  Eric Blake  <ebb9@byu.net>
60055
60056         * modules/stdio-safer (Files): Add tmpfile-safer.c.
60057         (Depends-on): Add binary-io.
60058
60059 2006-07-23  Eric Blake  <ebb9@byu.net>
60060
60061         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
60062
60063 2006-07-23  Eric Blake  <ebb9@byu.net>
60064
60065         * lib/tmpfile-safer.c: New file.
60066         * lib/stdio-safer.h (fopen_safer): Add prototype.
60067         * lib/stdio--.h (tmpfile): Make safer.
60068
60069 2006-07-23  Bruno Haible  <bruno@clisp.org>
60070
60071         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
60072         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
60073         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
60074         gl_linked_remove_at): Use it.
60075
60076 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60077         and Simon Josefsson <jas@extundo.com>
60078
60079         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
60080
60081         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
60082
60083 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60084
60085         * modules/close-stream: New file.
60086         * modules/closeout (Description): Make it clear that it exits
60087         with a diagnostic on error.
60088         (Depends-on): Add close-stream.  Remove fpending, stdbool.
60089         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
60090
60091 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60092
60093         * m4/close-stream.m4: New file.
60094
60095 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60096
60097         * lib/close-stream.c, lib/close-stream.h: New files.
60098
60099 2006-07-22  Bruno Haible  <bruno@clisp.org>
60100
60101         Merge from GNU gettext 0.15.
60102
60103         2006-05-01  Bruno Haible  <bruno@clisp.org>
60104
60105                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
60106
60107         2006-07-22  Bruno Haible  <bruno@clisp.org>
60108
60109                 * modules/javaversion: New file.
60110                 * MODULES.html.sh (Java): Add javaversion.
60111
60112         2006-03-12  Bruno Haible  <bruno@clisp.org>
60113
60114                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
60115
60116         2005-12-04  Bruno Haible  <bruno@clisp.org>
60117
60118                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
60119                 (untested).
60120
60121         2006-06-21  Bruno Haible  <bruno@clisp.org>
60122
60123                 Avoid warnings from recent versions of mcs.
60124                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
60125                 -o, -L, -r any more. Use options documented since mcs-1.0
60126                 instead. Similarly for -g.
60127
60128         2005-12-04  Bruno Haible  <bruno@clisp.org>
60129
60130                 * build-aux/csharpcomp.sh.in: Suffix for resources is
60131                 .resources, not .resource.
60132
60133         2005-07-09  Bruno Haible  <bruno@clisp.org>
60134
60135                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
60136                 add a .dll suffix.
60137                 Reported by Mark Junker <mjscod@gmx.de>.
60138
60139         2006-07-22  Bruno Haible  <bruno@clisp.org>
60140
60141                 * modules/gettext: Upgrade to gettext-0.15.
60142                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
60143                 m4/visibility.m4.
60144                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
60145
60146 2006-07-22  Bruno Haible  <bruno@clisp.org>
60147
60148         Merge from GNU gettext 0.15.
60149
60150         2006-03-25  Bruno Haible  <bruno@clisp.org>
60151
60152                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
60153
60154         2006-07-21  Bruno Haible  <bruno@clisp.org>
60155
60156                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
60157                 "1.1".
60158
60159         2006-05-09  Bruno Haible  <bruno@clisp.org>
60160
60161                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
60162                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
60163                 for the conftestver execution.
60164
60165         2006-05-01  Bruno Haible  <bruno@clisp.org>
60166
60167                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
60168                 optional target-version argument. Verify that the compiler
60169                 groks source of the specified source-version, or add -source
60170                 option as necessary. Verify that the compiler produces
60171                 bytecode in the specified target-version, or add -target and
60172                 -source options as necessary. Make the result of the test
60173                 available as variable CONF_JAVAC. Also log error output in
60174                 config.log.
60175
60176         2006-03-11  Bruno Haible  <bruno@clisp.org>
60177
60178                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
60179
60180         2006-05-09  Bruno Haible  <bruno@clisp.org>
60181
60182                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
60183                 CLASSPATH_SEPARATOR to a semicolon.
60184
60185         2006-03-12  Bruno Haible  <bruno@clisp.org>
60186
60187                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
60188                 available as variable CONF_JAVA, for subsequent autoconf
60189                 tests. Also log error output in config.log.
60190
60191         2006-07-19  Bruno Haible  <bruno@clisp.org>
60192
60193                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
60194                 that getline works on glibc2 systems. Needed to avoid trouble
60195                 in relocatable.c.
60196                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
60197
60198         2005-12-04  Bruno Haible  <bruno@clisp.org>
60199
60200                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
60201                 launcher (untested).
60202
60203         2005-12-04  Bruno Haible  <bruno@clisp.org>
60204
60205                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
60206
60207         2006-07-22  Bruno Haible  <bruno@clisp.org>
60208
60209                 * gettext.m4: Update from GNU gettext-0.15.
60210                 * nls.m4: Likewise.
60211                 * po.m4: Likewise.
60212                 * inttypes-pri.m4: Likewise.
60213                 * inttypes-h.m4: Renamed from inttypes.m4.
60214                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
60215
60216 2006-07-22  Bruno Haible  <bruno@clisp.org>
60217
60218         Merge from GNU gettext 0.15.
60219
60220         2005-07-05  Bruno Haible  <bruno@clisp.org>
60221
60222                 * printf-args.c (printf_fetchargs): Work around broken
60223                 definition of wint_t on mingw.
60224
60225         2005-02-12  Bruno Haible  <bruno@clisp.org>
60226
60227                 * xallocsa.h: Add extern "C" for C++.
60228
60229         2006-05-17  Bruno Haible  <bruno@clisp.org>
60230
60231                 Cygwin portability.
60232                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
60233
60234         2006-04-30  Bruno Haible  <bruno@clisp.org>
60235
60236                 * progreloc.c: Include <mach-o/dyld.h> if available.
60237                 (find_executable): Use _NSGetExecutablePath when possible.
60238
60239         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60240
60241                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
60242                 function.
60243
60244         2005-12-29  Bruno Haible  <bruno@clisp.org>
60245
60246                 * progreloc.c (set_program_name_and_installdir): Fix
60247                 compilation error.
60248
60249         2005-12-04  Bruno Haible  <bruno@clisp.org>
60250
60251                 Cygwin portability.
60252                 * progreloc.c: Include <windows.h> also on Cygwin.
60253                 (find_executable): Add support for Cygwin.
60254                 (set_program_name_and_installdir): Handle also platforms with
60255                 nonempty EXEEXT.
60256
60257         2006-07-11  Bruno Haible  <bruno@clisp.org>
60258
60259                 * javacomp.c: Fix a comment.
60260                 Reported by Jim Meyering.
60261
60262         2006-04-30  Bruno Haible  <bruno@clisp.org>
60263
60264                 * javacomp.h (compile_java_class): Add source_version,
60265                 target_version arguments.
60266                 * javacomp.c: Rewritten to choose only a compiler that
60267                 respects the specified source_version and target_version.
60268
60269         2006-06-27  Bruno Haible  <bruno@clisp.org>
60270
60271                 Assume correct S_ISDIR macro.
60272                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
60273
60274         2006-07-22  Bruno Haible  <bruno@clisp.org>
60275
60276                 * javaversion.h: New file, from GNU gettext.
60277                 * javaversion.c: New file, from GNU gettext.
60278                 * javaversion.java: New file, from GNU gettext.
60279                 * javaversion.class: New file, from GNU gettext.
60280
60281         2006-05-17  Bruno Haible  <bruno@clisp.org>
60282
60283                 Cygwin portability.
60284                 * javaexec.c (execute_java_class): Test for jview program
60285                 also on Cygwin.
60286
60287         2006-04-09  Bruno Haible  <bruno@clisp.org>
60288
60289                 * fatal-signal.c: Don't include string.h.
60290                 (at_fatal_signal): Use a copying loop instead of memcpy.
60291
60292         2005-12-04  Bruno Haible  <bruno@clisp.org>
60293
60294                 * csharpexec.c: Add support for 'clix' launcher (untested).
60295                 (execute_csharp_using_sscli): New function.
60296                 (execute_csharp_program): Call it.
60297
60298         2006-06-21  Bruno Haible  <bruno@clisp.org>
60299
60300                 Avoid warnings from recent versions of mcs.
60301                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
60302                 -o, -L, -r any more. Use options documented since mcs-1.0
60303                 instead. Similarly for -g.
60304
60305         2005-07-09  Bruno Haible  <bruno@clisp.org>
60306
60307                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
60308                 add a .dll suffix.
60309                 Reported by Mark Junker <mjscod@gmx.de>.
60310
60311         2006-06-17  Bruno Haible  <bruno@clisp.org>
60312
60313                 * config.charset: Update for NetBSD 3.0.
60314
60315         2006-05-17  Bruno Haible  <bruno@clisp.org>
60316
60317                 Cygwin portability.
60318                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
60319
60320         2006-05-16  Bruno Haible  <bruno@clisp.org>
60321
60322                 * localcharset.c [CYGWIN]: Include <windows.h>.
60323                 (get_charset_aliases): For Cygwin, return the same CPxxx
60324                 aliases list as under WIN32.
60325                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
60326                 the environment variables. Fall back to GetACP().
60327
60328         2006-04-05  Bruno Haible  <bruno@clisp.org>
60329
60330                 * config.charset: Update Juan Manuel Guerrero's address.
60331
60332         2005-02-12  Bruno Haible  <bruno@clisp.org>
60333
60334                 * allocsa.h: Add extern "C" for C++.
60335
60336         2005-02-10  Bruno Haible  <bruno@clisp.org>
60337
60338                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
60339                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
60340
60341         2006-07-22  Bruno Haible  <bruno@clisp.org>
60342
60343                 * gettext.h: Update to GNU gettext-0.15.
60344
60345 2006-07-22  Bruno Haible  <bruno@clisp.org>
60346
60347         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
60348         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
60349         lib-prefix.m4, longdouble.m4, ssize_t.m4.
60350
60351 2006-07-21  Eric Blake  <ebb9@byu.net>
60352
60353         * modules/stdlib-safer: New file.
60354         * MODULES.html.sh (File stream based Input/Output): Add
60355         stdlib-safer.
60356
60357 2006-07-21  Eric Blake  <ebb9@byu.net>
60358
60359         * lib/stdlib-safer.h: New file from coreutils, required by
60360         stdlib--.h.
60361
60362 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
60363
60364         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
60365
60366 2006-07-20  Bruno Haible  <bruno@clisp.org>
60367
60368         * gnulib-tool: Recognize new option --assume-autoconf.
60369         (autoconf_minversion): New variable.
60370         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
60371
60372 2006-07-20  Bruno Haible  <bruno@clisp.org>
60373
60374         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
60375
60376 2006-07-19  Derek R. Price  <derek@ximbiot.com>
60377
60378         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
60379         Reindent and repaginate.
60380
60381 2006-07-19  Derek Price  <derek@ximbiot.com>
60382
60383         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
60384         Correct grammar.
60385
60386 2006-07-17  Bruno Haible  <bruno@clisp.org>
60387
60388         * modules/list: New file.
60389         * modules/array-list: New file.
60390         * modules/carray-list, modules/carray-list-tests: New files.
60391         * modules/linked-list, modules/linked-list-tests: New files.
60392         * modules/avltree-list, modules/avltree-list-tests: New files.
60393         * modules/rbtree-list, modules/rbtree-list-tests: New files.
60394         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
60395         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
60396         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
60397         * modules/oset: New file.
60398         * modules/array-oset: New file.
60399         * modules/avltree-oset, modules/avltree-oset-tests: New files.
60400         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
60401         * tests/test-carray_list.c: New file.
60402         * tests/test-linked_list.c: New file.
60403         * tests/test-avltree_list.c: New file.
60404         * tests/test-rbtree_list.c: New file.
60405         * tests/test-linkedhash_list.c: New file.
60406         * tests/test-avltreehash_list.c: New file.
60407         * tests/test-rbtreehash_list.c: New file.
60408         * tests/test-avltree_oset.c: New file.
60409         * tests/test-rbtree_oset.c: New file.
60410         * MODULES.html.sh (Container data structures): New section.
60411
60412 2006-07-17  Bruno Haible  <bruno@clisp.org>
60413
60414         * m4/gl_list.m4: New file.
60415
60416 2006-07-17  Bruno Haible  <bruno@clisp.org>
60417
60418         * lib/gl_list.h: New file.
60419         * lib/gl_list.c: New file.
60420         * lib/gl_array_list.h: New file.
60421         * lib/gl_array_list.c: New file.
60422         * lib/gl_carray_list.h: New file.
60423         * lib/gl_carray_list.c: New file.
60424         * lib/gl_linked_list.h: New file.
60425         * lib/gl_linked_list.c: New file.
60426         * lib/gl_anylinked_list1.h: New file.
60427         * lib/gl_anylinked_list2.h: New file.
60428         * lib/gl_avltree_list.h: New file.
60429         * lib/gl_avltree_list.c: New file.
60430         * lib/gl_anyavltree_list1.h: New file.
60431         * lib/gl_anyavltree_list2.h: New file.
60432         * lib/gl_rbtree_list.h: New file.
60433         * lib/gl_rbtree_list.c: New file.
60434         * lib/gl_anyrbtree_list1.h: New file.
60435         * lib/gl_anyrbtree_list2.h: New file.
60436         * lib/gl_anytree_list1.h: New file.
60437         * lib/gl_anytree_list2.h: New file.
60438         * lib/gl_linkedhash_list.h: New file.
60439         * lib/gl_linkedhash_list.c: New file.
60440         * lib/gl_anyhash_list1.h: New file.
60441         * lib/gl_anyhash_list2.h: New file.
60442         * lib/gl_avltreehash_list.h: New file.
60443         * lib/gl_avltreehash_list.c: New file.
60444         * lib/gl_rbtreehash_list.h: New file.
60445         * lib/gl_rbtreehash_list.c: New file.
60446         * lib/gl_anytreehash_list1.h: New file.
60447         * lib/gl_anytreehash_list2.h: New file.
60448
60449         * lib/gl_oset.h: New file.
60450         * lib/gl_oset.c: New file.
60451         * lib/gl_array_oset.h: New file.
60452         * lib/gl_array_oset.c: New file.
60453         * lib/gl_avltree_oset.h: New file.
60454         * lib/gl_avltree_oset.c: New file.
60455         * lib/gl_rbtree_oset.h: New file.
60456         * lib/gl_rbtree_oset.c: New file.
60457         * lib/gl_anytree_oset.h: New file.
60458
60459 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60460
60461         * m4/mkancesdirs.m4: New file.
60462         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
60463         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
60464         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
60465         it.
60466
60467 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60468
60469         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
60470         * lib/mkancesdirs.h: New files.
60471         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
60472         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
60473         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
60474         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
60475         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
60476         callers changed.  Revamp internals significantly, by not
60477         attempting to create directories that are temporarily more
60478         permissive than the final results.  Do not attempt to use
60479         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
60480         This removes some race conditions, fixes some bugs, and simplifies
60481         things.  Use new dirchownmod function to do owner and mode changes.
60482         * lib/mkdir-p.h: Likewise.
60483         * lib/modechange.c (octal_to_mode): New function.
60484         (struct mode_change): New member mentioned.
60485         (make_node_op_equals): New arg mentioned.  All callers changed.
60486         (mode_compile): Keep track of which mode bits the user has explicitly
60487         mentioned.
60488         (mode_adjust): New arg DIR, so that we implement the X op correctly.
60489         New arg PMODE_BITS, to keep track of which mode bits the user
60490         mentioned; it treats S_ISUID and S_ISGID speciall.
60491         All callers changed.
60492         * lib/modechange.h: Likewise.
60493
60494 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60495
60496         * MODULES.html.sh: Add mkancestors.
60497         * modules/mkancesdirs: New module.
60498         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
60499         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
60500         The chdir-safer and afs files are now orphans; I'll remove them
60501         unless someone speaks up.
60502         Add lib/dirchownmod.c, lib/dirchownmod.h.
60503         (Depends-on): Remove alloca, chown, save-cwd, dirname.
60504         Add lchown, mkancesdirs.
60505         (Maintainer): Add self.
60506
60507 2006-07-15  Karl Berry  <karl@gnu.org>
60508
60509         * gnulib-tool: help message wording/arrangement.
60510
60511 2006-07-14  Simon Josefsson  <jas@extundo.com>
60512
60513         * doc/gnulib.texi (Libtool and Windows): New section.
60514
60515 2006-07-12  Simon Josefsson  <jas@extundo.com>
60516
60517         * modules/gendocs (License): Fix license, approved by Karl.
60518
60519 2006-07-12  Eric Blake  <ebb9@byu.net>
60520
60521         * MODULES.html.sh: Add gendocs.
60522
60523 2006-07-11  Eric Blake  <ebb9@byu.net>
60524
60525         * modules/fdl: New module, to install doc/fdl.texi.
60526         * MODULES.html.sh: Add new section for documentation modules.
60527         * gnulib-tool: Avoid space-tab.
60528         (--doc-base): New option, to manage files from doc.
60529
60530 2006-07-11  Eric Blake  <ebb9@byu.net>
60531
60532         * m4/absolute-header.m4: Fix comments to match recent change.
60533
60534 2006-07-11  Eric Blake  <ebb9@byu.net>
60535
60536         * gnulib-tool: List --doc-base before --tests-base.
60537
60538 2006-07-11  Derek R. Price  <derek@ximbiot.com>
60539
60540         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
60541
60542 2006-07-11  Bruno Haible  <bruno@clisp.org>
60543
60544         * README: Mention where to put documentation.
60545
60546 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60547
60548         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
60549
60550 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60551
60552         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
60553         to stdint.m4.
60554
60555 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60556
60557         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
60558         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
60559         "no/such/file/stdint.h" when there is no such file, so that
60560         the resulting C code can be parsed by dodgy compilers.
60561         Problems reported by Bob Proulx.
60562
60563 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60564
60565         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
60566         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60567         macros into the GNU _D_EXACT_NAMLEN.
60568         * lib/savedir.c:  Likewise.
60569         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
60570
60571 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60572         and Paul Eggert  <eggert@cs.ucla.edu>
60573
60574         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
60575         * m4/savedir.m4:
60576         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60577         macros into the GNU _D_EXACT_NAMLEN.
60578
60579 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60580
60581         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
60582         around the absolute name, to work around a problem with the HP-UX
60583         11.23 native C compiler, reported by Bob Proulx.
60584
60585 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60586
60587         * doc/maintain.texi, make-stds.texi: Sync from
60588         <http://savannah.gnu.org/projects/gnustandards>.
60589
60590 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60591
60592         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
60593
60594 2006-07-09  Jim Meyering  <jim@meyering.net>
60595
60596         * m4/glob.m4: Remove a doubled word in a comment.
60597
60598 2006-07-09  Jim Meyering  <jim@meyering.net>
60599
60600         * lib/argp-pv.c: Remove a doubled word in a comment.
60601         * lib/check-version.c (check_version): Likewise.
60602         * lib/javacomp.c (compile_java_class): Likewise.
60603
60604 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
60605
60606         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
60607         for the benefit of people using Autoconf 2.60.  If you want to
60608         support older Autoconf versions you can copy m4/onceonly_2_57.m4
60609         (or m4/onceonly.m4, if pre-2.57) manually.
60610
60611 2006-07-08  Jim Meyering  <jim@meyering.net>
60612
60613         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
60614         comment.
60615         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
60616         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
60617         comment.
60618
60619 2006-07-08  Jim Meyering  <jim@meyering.net>
60620
60621         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
60622
60623 2006-07-07  Simon Josefsson  <jas@extundo.com>
60624
60625         * tests/test-crc.c: Change expected crc value, the test vector
60626         were probably computed using the old broken crc.c?
60627
60628 2006-07-06  Simon Josefsson  <jas@extundo.com>
60629
60630         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
60631         now the canonical place for the M4 file).
60632
60633         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
60634         from the sys_socket dependency now.
60635
60636         * modules/inet_pton (Files): Ditto.
60637
60638         * modules/inet_ntop (Files): Ditto.
60639
60640 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60641
60642         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
60643         not gl_PREREQ_GETUSERSHELL.
60644
60645 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60646
60647         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
60648         with only one argument, for Autoconf 2.60.
60649         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
60650         expand to nothing, so add a shell command to avoid syntax error.
60651         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60652
60653 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60654
60655         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
60656
60657 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60658
60659         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
60660         no longer needed.  Check for isblank decl.
60661         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
60662         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
60663         of existence.
60664
60665 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60666
60667         * lib/getloadavg.c: Use __VMS, not VMS.
60668         * lib/getopt.c: Likewise.
60669         * lib/getpagesize.h: Likewise.
60670         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
60671         and probably does not work.
60672
60673 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60674
60675         * lib/.cppi-disable: Add wcwidth.
60676         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
60677         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
60678         (ISGRAPH): Remove.  All uses changed to isgraph.
60679         (FOLD) [!defined _LIBC]: Remove special case.
60680         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
60681         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
60682         HAVE_ISBLANK.
60683         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
60684         case.
60685
60686 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60687
60688         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
60689         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
60690         brackets.  Other minor changes to suppress some compiler
60691         warnings.
60692
60693 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60694         and Paul Eggert  <eggert@cs.ucla.edu>
60695
60696         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
60697         of invoking obsolescent AC_HEADER_DIRENT macro.
60698         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
60699         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
60700         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60701         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
60702         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
60703         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60704         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
60705         * m4/readdir.m4: Remove; no longer needed.
60706
60707 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60708         and Paul Eggert  <eggert@cs.ucla.edu>
60709
60710         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
60711         Don't worry about this obsolete case any more.
60712         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
60713         directories.
60714         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
60715         worry about this obsolete case any more.
60716         * lib/fts.c: Likewise.
60717         * lib/getcwd.c: Likewise.
60718         * lib/glob.h: Likewise.
60719         * lib/savedir.c: Likewise.
60720
60721 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60722
60723         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
60724         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
60725         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
60726         needed.
60727         All uses removed.
60728         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60729         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60730         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
60731         needed.
60732         * m4/getdate.m4 (gl_GETDATE): Likewise.
60733         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60734         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60735         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60736         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60737         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60738         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60739         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
60740         needed.
60741
60742 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60743
60744         * lib/memcasecmp.c: Include <limits.h>.
60745         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
60746         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
60747         Don't assume isdigit succeeds only on '0' through '9'.
60748
60749 2006-07-05  Eric Blake  <ebb9@byu.net>
60750
60751         * modules/getaddrinfo (Depends-on): Add snprintf.
60752
60753 2006-07-05  Eric Blake  <ebb9@byu.net>
60754
60755         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
60756         to avoid 'header present but could not be compiled' on cygwin.
60757
60758 2006-07-05  Eric Blake  <ebb9@byu.net>
60759
60760         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
60761         missing from netdb.h.
60762         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
60763
60764 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60765
60766         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
60767         no longer needed.
60768         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
60769         * m4/getdate.m4 (gl_GETDATE): Likewise.
60770         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60771         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60772         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60773         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60774         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60775
60776 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60777
60778         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
60779         All uses of is_space replaced by isspace.
60780         * lib/exit.h: Don't talk about STDC_HEADERS.
60781         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
60782         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
60783         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
60784         replaced by isprint etc.
60785         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
60786         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60787         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
60788         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
60789         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
60790         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60791
60792 2006-07-05  Bruno Haible  <bruno@clisp.org>
60793
60794         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
60795         the function exists, before testing against AIX.
60796         Reported by Martin Lambers <marlam@marlam.de>.
60797
60798 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60799
60800         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
60801         From Mark D. Baushke.
60802
60803 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60804
60805         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
60806         to the absolute name, not just one, to bypass Sun C 5.8's
60807         "warning: #include of /usr/include/... may be non-portable".
60808
60809 2006-07-04  Eric Blake  <ebb9@byu.net>
60810
60811         * modules/dirname-tests: New test module.
60812         * tests/test-dirname.c: New file, replacing dirname.c
60813         TEST_DIRNAME section that was recently deleted.
60814
60815 2006-07-04  Bruno Haible  <bruno@clisp.org>
60816
60817         Assume ANSI C header files and <ctype.h> functions.
60818         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
60819         (mbsnwidth): Use isprint, iscntrl instead.
60820
60821 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60822
60823         Merge from coreutils.
60824         * MODULES.html.sh: Add xstrtold.
60825         * modules/xstrtold: New file.
60826         * modules/cycle-check (Files): Add lib/same-inode.h.
60827         * modules/dirname (Files): Add m4/double-slash-root.m4.
60828         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
60829         * modules/mkdir-p (Files): Add lib/same-inode.h.
60830         * modules/same (Files): Add lib/same-inode.h.
60831
60832 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60833
60834         * m4/absolute-header.m4: Renamed from full-header-path.m4.
60835         This is to keep the terminology clean; POSIX talks about
60836         "absolute pathnames", not "full pathnames", but the GNU
60837         Coding Standards say to use "path" for something else;
60838         so use "absolute" to keep both sides happy.
60839         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
60840         Set gl_absolute_header, not gl_full_header_path.
60841         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
60842         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
60843         All uses changed.
60844
60845         Merge from coreutils.
60846
60847         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60848
60849         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
60850         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
60851         want to require the building of c-strtod.o.
60852         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
60853         needs -lm directly.
60854         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
60855
60856         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60857
60858         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
60859         --as-needed option if available.  Problem reported by Albert Chin in
60860         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
60861         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
60862         cc merely issues a bunch of annoying warnings for --as-needed
60863         (this problem was reported by Bob Proulx).  Also, try linking with
60864         -lm to detect a bug in binutils 2.16 (this problem was reported
60865         by Ralf Wildenhues).
60866
60867         2006-06-18  Jim Meyering  <jim@meyering.net>
60868
60869         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
60870         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
60871         macro.
60872         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
60873         also check for glibc-2.4's abort-inducing bug.
60874
60875         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
60876         Low-probability clean-up should be to use rmdir to get rid of
60877         the just-created directory, not unlink.
60878
60879         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
60880         configure fail, and request a bug report to inform us about it.
60881         Add a comment that, barring reports to the contrary, in 2007 we'll
60882         assume ftruncate is universally available.
60883
60884         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60885
60886         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
60887
60888         2006-03-12  Jim Meyering  <jim@meyering.net>
60889
60890         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
60891         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
60892         * m4/same.m4 (gl_SAME): Likewise.
60893         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
60894
60895         2006-03-11  Eric Blake  <ebb9@byu.net>
60896
60897         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
60898         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
60899         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
60900         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
60901
60902 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60903
60904         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
60905         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
60906         reported by Mark D. Baushke, one in
60907         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
60908
60909         Merge from coreutils.
60910
60911         * lib/.cppi-disable: Add stdint_.h.
60912         * lib/.cvsignore: Add stdint.h.
60913
60914         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60915
60916         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
60917         both double and long double versions.
60918         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
60919         * lib/xstrtold.c: New file.
60920         * lib/xstrtod.h (xstrtold): New decl.
60921
60922         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60923
60924         * lib/filemode.c (setst): Remove.
60925         (strmode): Rewrite to avoid setst.  This makes the code shorter,
60926         (arguably) clearer, and the generated code is a bit smaller on my
60927         Debian GNU/Linux stable x86 host.
60928
60929         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60930
60931         * lib/filemode.c: Include "filemode.h" first, to test the interface.
60932         Assume that filemode.h includes sys/types.h and sys/stat.h.
60933         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
60934         (ftypelet): Reorder to put common cases first, for efficiency.
60935         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
60936         to do 'M'.
60937         (strmode): Renamed from mode_string, and now stores 12 bytes instead
60938         of 10, for compatibility with FreeBSD.  All callers changed.
60939         (filemodestring): Now stores 12 bytes instead of 10, and sets file
60940         types that can't be deduced solely from st_mode.  First arg is now a
60941         const pointer.
60942         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
60943         (strmode): Renamed from mode_string.
60944         (filemodestring): New decl.
60945         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
60946         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
60947         needed.
60948         (S_ISPORT, S_ISWHT): New macros, if not already defined.
60949
60950         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60951
60952         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
60953         fsusage.h now does that.  Include fsusage.h first, to test interface.
60954         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
60955         at most one method (the old code could have generated decls that
60956         didn't conform to C89, not that this was ever exercised).
60957         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
60958
60959         2006-03-19  Jim Meyering  <jim@meyering.net>
60960
60961         Work even in a chroot where d_ino values for entries in "/"
60962         don't match the stat.st_ino values for the same names.
60963         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
60964         number, iterate through all entries again, using lstat instead.
60965         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
60966         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
60967
60968         * lib/getcwd.c (__getcwd): Clarify a comment.
60969         Use memcpy in place of a call to strcpy.
60970
60971         2006-03-12  Jim Meyering  <jim@meyering.net>
60972
60973         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
60974         matches that of the current directory (which we're about to chdir ".."
60975         out of), then save the dev-ino of the parent, instead.
60976
60977         * lib/same-inode.h (SAME_INODE): New file/macro.
60978         * lib/chdir-safer.c (SAME_INODE): Remove definition.
60979         Include "same-inode.h", instead.
60980         * lib/same.c: Likewise.
60981         * lib/cycle-check.h: Include "same-inode.h".
60982         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
60983         * lib/cycle-check.c (SAME_INODE): Remove definition.
60984         * lib/root-dev-ino.h: Include "same-inode.h".
60985
60986         2006-03-11  Eric Blake  <ebb9@byu.net>
60987
60988         * lib/same.c (same_name): s/base_name/last_component/
60989         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
60990         * lib/filenamecat.c (file_name_concat): Likewise.
60991
60992         2006-03-11  Eric Blake  <ebb9@byu.net>,
60993                     Paul Eggert  <eggert@cs.ucla.edu>
60994
60995         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
60996         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
60997         drive prefix.
60998         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
60999         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
61000         (last_component): New method.
61001         * lib/dirname.c (dir_len): Determine when drive letters need a
61002         subsequent slash.  Preserve // when it is special.
61003         (dir_name): Don't append dot when drive letter is absolute.
61004         [TEST_DIRNAME]: Move into a full-blown gnulib test.
61005         * lib/basename.c (base_name): New semantics - malloc the result.
61006         Preserve // when it is special.  Preserve relative files that look
61007         like drive letters.
61008         (base_len): Preserve // when it is special.
61009         (last_component): New method, similar to old base_name semantics.
61010         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
61011         base_name.  Strip redundant slashes from ///.
61012
61013 2006-07-03  Jim Meyering  <jim@meyering.net>
61014
61015         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
61016         macro is used before the first cycle_check call.
61017
61018 2006-07-03  Eric Blake  <ebb9@byu.net>
61019
61020         * modules/dirname (Depends-on): Add xstrndup.
61021
61022 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61023
61024         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
61025         test cases, so that config.log is a bit easier to follow.
61026
61027 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61028
61029         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
61030         both are 64 bits, since this seems to be the tradition, and this
61031         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
61032         we ever run into a host that prefers long long to long in this
61033         case, we'll need another configure-time test.  Problem reported by
61034         Jim Meyering.
61035
61036 2006-07-02  Eric Blake  <ebb9@byu.net>
61037
61038         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
61039
61040 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61041
61042         * modules/inttypes (Depends-on): No longer depends on stdint.
61043         * modules/stdint (Description): Say more about assumptions.
61044         Say that the fast types might differ.  Say macros are used.
61045         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
61046         (Makefile.am): Revise list of substituted symbols to match
61047         new stdint.m4.
61048         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
61049         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
61050         * tests/test-stdint.c (verify_same_types)
61051         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
61052         the code conforms to C99/C89.
61053         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
61054         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
61055
61056 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61057
61058         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
61059         but fix a bug, by requiring at least 64 bits.
61060         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61061         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
61062         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
61063         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61064
61065         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
61066         changes.  Make 2.59 a prerequisite.  Check and substitute for
61067         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
61068         inttypes.h.  Do not use special include files; just use the
61069         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
61070         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
61071         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
61072         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
61073         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
61074         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
61075         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
61076         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
61077         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
61078         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
61079         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
61080         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
61081         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
61082         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
61083         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
61084         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
61085         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
61086         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
61087         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
61088         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
61089         WINT_MAX.  Check for C99 conformance more strictly, by detecting
61090         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
61091         not check for things that C99 does not require, e.g., int8_t.  If
61092         a test isn't needed unless <stdint.h> isn't working, and is
61093         unlikely to be needed for any other reason, then don't do it
61094         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
61095         size_t, since we assume C89 freestanding at least.  Do not check
61096         for sig_atomic_t, wchar_t, or wint_t, since the code now does
61097         the right thing even if the types are not defined.  Instead use:
61098         (gl_STDINT_TYPE_PROPERTIES): New macro.
61099         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
61100         testing whether <sys/types.h> clashes, as Autoconf does this for
61101         us now.  All uses removed.
61102         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
61103         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
61104         (gl_CHECK_TYPE_SAME):
61105         Remove; no longer needed.
61106         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
61107         exists, since we'll return 0 anyway in that case.
61108         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
61109
61110 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61111
61112         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
61113         possible collision with system files.
61114         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
61115         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
61116         WCHAR_MIN and WCHAR_MAX in this case.
61117         (<stddef.h>): Do not include; no longer needed.
61118         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
61119         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
61120         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
61121         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
61122         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
61123         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
61124         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
61125         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
61126         !defined(__c99))]: Include in this case too, since it's harmless
61127         now.
61128         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
61129         dangerous to do so.
61130         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
61131         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
61132         (_STDINT_MIN, _STDINT_MAX): New macros.
61133         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
61134         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
61135         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
61136         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
61137         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
61138         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
61139         macros, not typedefs; this simplifies things quite a bit.
61140         Use long int for all types narrower than int64_t.
61141         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
61142         Define in terms of long long int or int64_t or long int,
61143         not int64_t or int32_t.  This saves some compile-time testing.
61144         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
61145         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
61146         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
61147         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
61148         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
61149         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
61150         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
61151         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
61152         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
61153         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
61154         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61155         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61156         undef any previous version and define our own version, for
61157         simplicity and consistency with the new macros for types.
61158         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61159         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61160         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
61161         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
61162         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
61163         @WINT_T_SUFFIX@ to keep things simple here.
61164         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
61165         Simplify by assuming typical 8/16/32/64 host, since we're
61166         already doing that elsewhere anyway.
61167         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
61168         and assume long long int is 64 bits if available.  This
61169         speeds up 'configure'.
61170
61171 2006-07-01  Eric Blake  <ebb9@byu.net>
61172
61173         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
61174         Reported by Andreas Buening.
61175
61176 2006-07-01  Eric Blake  <ebb9@byu.net>
61177
61178         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
61179
61180 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61181
61182         * lib/getaddrinfo.c: fixed typo
61183
61184 2006-06-29  Jim Meyering  <jim@meyering.net>
61185
61186         * modules/strftime (Maintainer): Add my name, since with the
61187         FPRINTFTIME changes strftime.c has forked from glibc.
61188
61189 2006-06-29  Eric Blake  <ebb9@byu.net>
61190
61191         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
61192
61193 2006-06-29  Eric Blake  <ebb9@byu.net>
61194
61195         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
61196
61197 2006-06-29  Eric Blake  <ebb9@byu.net>
61198
61199         * lib/stat_.h: New file.
61200
61201 2006-06-29  Eric Blake  <ebb9@byu.net>
61202
61203         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
61204         unused static function.
61205
61206 2006-06-29  Eric Blake  <ebb9@byu.net>
61207
61208         * doc/functions.texi (Function Portability): Document missing lstat
61209         on mingw.
61210
61211 2006-06-29  Eric Blake  <ebb9@byu.net>
61212
61213         * MODULES.html.sh: Add sys_stat.
61214         * modules/sys_stat: New module.
61215         * modules/mkstemp (Depends-on): Add sys_stat.
61216
61217 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61218
61219         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
61220
61221 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61222
61223         * m4/c-bs-a.m4: Removed.
61224
61225 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61226
61227         * lib/strftime.c: Assume strftime() exists.
61228
61229 2006-06-29  Derek Price  <derek@ximbiot.com>
61230
61231         * modules/c-bs-a: Removed - \a is C89.
61232         * MODULES.html.sh: Remove c-bs-a.
61233
61234 2006-06-29  Bruno Haible  <bruno@clisp.org>
61235
61236         * modules/wcwidth (License): Change to LGPL.
61237
61238 2006-06-28  Simon Josefsson  <jas@extundo.com>
61239
61240         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
61241         on _WIN32.
61242
61243         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
61244         getnameinfo.
61245
61246 2006-06-28  Simon Josefsson  <jas@extundo.com>
61247
61248         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
61249
61250 2006-06-28  Simon Josefsson  <jas@extundo.com>
61251
61252         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
61253         functions there.  It will succeed on Windows XP, but on Windows
61254         2000 and (presumably) earlier, it will fail, and use the internal
61255         re-implementation.
61256         (use_win32_p): New function.
61257         (getaddrinfo): Use strtoul on servname, to support numeric ports.
61258         Support AI_NUMERICSERV to disable getservbyname.
61259         (getnameinfo): New function, only supports
61260         NI_NUMERICHOST|NI_NUMERICSERV for now.
61261
61262         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
61263         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
61264         getnameinfo.
61265
61266 2006-06-28  Eric Blake  <ebb9@byu.net>
61267
61268         * modules/wcwidth: New file.
61269         * modules/mbchar (Depends-on): Add wcwidth.
61270         * modules/mbswidth (Depends-on): Add wcwidth.
61271         * MODULES.html.sh: Add wcwidth.
61272
61273 2006-06-28  Eric Blake  <ebb9@byu.net>
61274
61275         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
61276         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
61277
61278 2006-06-28  Eric Blake  <ebb9@byu.net>
61279
61280         * lib/xvasprintf.h: Fix comments.
61281
61282 2006-06-28  Eric Blake  <ebb9@byu.net>
61283
61284         * lib/mbchar.h (wcwidth): Include wcwidth.h.
61285         * lib/mbswidth.c (wcwidth): Move from here...
61286         * lib/wcwidth.h: ...to this new file.
61287
61288 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61289
61290         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
61291
61292         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
61293         it's obsolete.
61294         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
61295
61296 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61297
61298         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
61299         Autoconf 2.60 says this stuff was obsolete.
61300
61301 2006-06-28  Bruno Haible  <bruno@clisp.org>
61302
61303         * modules/wcwidth (Files): Add m4/wchar_t.m4.
61304
61305 2006-06-28  Bruno Haible  <bruno@clisp.org>
61306
61307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
61308         gt_TYPE_WCHAR_T.
61309
61310 2006-06-28  Bruno Haible  <bruno@clisp.org>
61311
61312         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
61313         declaration for wcwidth.
61314         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
61315
61316 2006-06-28  Bruno Haible  <bruno@clisp.org>
61317
61318         * lib/mkdtemp.c [MINGW]: Include <io.h>.
61319         (mkdir): Define using _mkdir.
61320
61321 2006-06-28  Bruno Haible  <bruno@clisp.org>
61322
61323         * lib/getaddrinfo.h: Fix POSIX URL.
61324         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
61325         _WIN32.
61326         (use_win32_p): Make static.
61327         (getaddrinfo): Reject service name if it is empty or does not consist
61328         solely of decimal digits, or if its value is > 65535.
61329         (getnameinfo): Remove useless casts.
61330
61331 2006-06-27  Simon Josefsson  <jas@extundo.com>
61332
61333         * modules/sys_select: New file, suggested by Bruno Haible, Paul
61334         Eggert and Martin Lambers.
61335
61336 2006-06-27  Simon Josefsson  <jas@extundo.com>
61337
61338         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
61339         Eggert and Martin Lambers.
61340
61341 2006-06-27  Bruno Haible  <bruno@clisp.org>
61342
61343         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
61344         result to 0, not to empty.
61345         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
61346
61347 2006-06-27  Bruno Haible  <bruno@clisp.org>
61348
61349         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
61350
61351 2006-06-26  Simon Josefsson  <jas@extundo.com>
61352
61353         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
61354         present.
61355
61356 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
61357
61358         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
61359         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
61360         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
61361
61362 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
61363
61364         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
61365
61366 2006-06-26  Bruno Haible  <bruno@clisp.org>
61367
61368         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
61369
61370 2006-06-26  Bruno Haible  <bruno@clisp.org>
61371
61372         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
61373
61374 2006-06-26  Bruno Haible  <bruno@clisp.org>
61375
61376         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
61377         SGI C compiler in pre-C99 mode.
61378         Suggested by Mark D. Baushke and Larry Jones.
61379
61380 2006-06-26  Bruno Haible  <bruno@clisp.org>
61381
61382         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
61383         WCHAR_MAX.
61384         Reported by Mark D. Baushke and Larry Jones.
61385
61386 2006-06-26  Bruno Haible  <bruno@clisp.org>
61387
61388         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
61389         in pre-C99 mode.
61390         Suggested by Mark D. Baushke and Larry Jones.
61391
61392 2006-06-23  Simon Josefsson  <jas@extundo.com>
61393             Bruno Haible  <bruno@clisp.org>
61394
61395         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
61396         Emit mostlyclean-local rule.
61397         (func_emit_tests_Makefile_am): Likewise.
61398         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
61399
61400 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
61401
61402         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
61403
61404 2006-06-23  Bruno Haible  <bruno@clisp.org>
61405
61406         * tests/test-stdint.c: Update to match ISO C 99 Technical
61407         Corrigendum 1.
61408
61409 2006-06-23  Bruno Haible  <bruno@clisp.org>
61410
61411         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
61412
61413 2006-06-23  Bruno Haible  <bruno@clisp.org>
61414
61415         * lib/stdint_.h: Treat IRIX like OpenBSD.
61416
61417 2006-06-23  Bruno Haible  <bruno@clisp.org>
61418
61419         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
61420         ISO C 99 Technical Corrigendum 1.
61421
61422 2006-06-22  Simon Josefsson  <jas@extundo.com>
61423
61424         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
61425         MinGW.
61426
61427 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61428
61429         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
61430         needed.  Some compiler complained about some of them.  Problem reported
61431         by Larry Jones in
61432         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
61433
61434 2006-06-21  Simon Josefsson  <jas@extundo.com>
61435
61436         * tests/test-getaddrinfo.c: New file.
61437
61438         * modules/getaddrinfo-tests: New file.
61439
61440         * MODULES.html.sh: Add inet_pton.
61441
61442         * modules/inet_pton: New file.
61443
61444 2006-06-21  Simon Josefsson  <jas@extundo.com>
61445
61446         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
61447         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
61448         of using the (limited) gnulib implementation on Windows XP.
61449
61450         * m4/inet_pton.m4: New file.
61451
61452 2006-06-21  Simon Josefsson  <jas@extundo.com>
61453
61454         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
61455         variable.
61456
61457         * lib/socket_.h: Don't define WINVER.
61458
61459         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
61460         slightly modified to work in gnulib.
61461
61462 2006-06-21  Simon Josefsson  <jas@extundo.com>
61463
61464         * doc/gnulib.texi (Windows sockets): Add.
61465
61466 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61467
61468         * lib/read-file.c (fread_file): Start with buffer allocation of
61469         0 bytes rather than 1 byte; this simplifies the code.
61470         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
61471         code to free buffer and save/restore errno.
61472         (internal_read_file): Remove unused local.
61473
61474 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61475
61476         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
61477         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
61478         Problem reported by Denis Excoffier in
61479         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
61480
61481 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61482
61483         * modules/sys_socket, modules/socklen: Include sys/types since
61484         FreeBSD 4.x's sys/socket.h needs it.
61485
61486 2006-06-19  Simon Josefsson  <jas@extundo.com>
61487
61488         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
61489
61490 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61491
61492         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
61493
61494 2006-06-19  Bruno Haible  <bruno@clisp.org>
61495
61496         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
61497         and FULL_PATH_INTTYPES_H in angle brackets.
61498         Reported by Mark D. Baushke <mdb@gnu.org>.
61499
61500 2006-06-17  Eric Blake  <ebb9@byu.net>
61501
61502         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
61503         errno.
61504
61505 2006-06-17  Bruno Haible  <bruno@clisp.org>
61506
61507         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
61508         <sys/inttypes.h>.
61509
61510 2006-06-17  Bruno Haible  <bruno@clisp.org>
61511
61512         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
61513         whether errno is declared. Assume <errno.h> declares errno.
61514
61515 2006-06-17  Bruno Haible  <bruno@clisp.org>
61516
61517         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
61518
61519 2006-06-17  Bruno Haible  <bruno@clisp.org>
61520
61521         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
61522         problem on Solaris 2.5.1.
61523
61524 2006-06-16  Eric Blake  <ebb9@byu.net>
61525
61526         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
61527         * lib/unicodeio.c [!defined errno]: Likewise.
61528         * lib/strtol.c [!defined errno]: Likewise.
61529         * lib/strtod.c [!defined errno]: Likewise.
61530
61531 2006-06-15  Eric Blake  <ebb9@byu.net>
61532
61533         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
61534
61535 2006-06-15  Eric Blake  <ebb9@byu.net>
61536
61537         * config/srclist.txt (ssize_t.m4): Lose sync.
61538
61539 2006-06-15  Bruno Haible  <bruno@clisp.org>
61540
61541         * modules/stdint (Files): Include m4/full-header-path.m4,
61542         m4/size_max.m4, m4/wchar_t.m4.
61543         (Makefile.am): Many more substitutions.
61544         * modules/stdint-tests: New file.
61545         * tests/test-stdint.c: New file.
61546
61547 2006-06-15  Bruno Haible  <bruno@clisp.org>
61548
61549         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
61550         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
61551         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
61552         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
61553         gl_CHECK_TYPE_SAME): New macros.
61554
61555 2006-06-15  Bruno Haible  <bruno@clisp.org>
61556
61557         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
61558
61559 2006-06-15  Bruno Haible  <bruno@clisp.org>
61560
61561         * lib/stdint_.h: Rewritten to be fully auto-configured.
61562         Fixes bug on HP-UX/IA64.
61563
61564 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
61565
61566         * lib/getdate.y (__attribute__): Don't define if already defined.
61567         Problem reported by Larry Jones.
61568         * lib/utimens.c (__attribute__): Likewise.
61569
61570 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
61571
61572         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
61573         reported by Andreas Schwab.
61574
61575 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61576             Bruno Haible  <bruno@clisp.org>
61577
61578         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
61579         check for the declaration of strnlen and a run test that exposes the
61580         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
61581         rpl_strndup.
61582
61583 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61584             Bruno Haible  <bruno@clisp.org>
61585
61586         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
61587
61588 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61589
61590         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
61591         compile test, for Tru64 4.0D.
61592
61593 2006-05-28  Karl Berry  <karl@gnu.org>
61594
61595         * config/srclist.txt (printf-args.c): lose sync.
61596
61597 2006-05-26  Martin Lambers  <marlam@marlam.de>
61598
61599         * lib/getpass.c: Updates the test for the native W32 API, and adds
61600         missing includes, thus fixing compilation warnings.
61601
61602 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61603
61604         * lib/exclude.c (exclude_fnmatch): New function.
61605         (excluded_file_name): Call exclude_fnmatch.
61606         * lib/exclude.h (excluded_file_name): New prototype
61607
61608 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
61609
61610         * lib/tempname.c (small_open, large_open): New macros.
61611         (__open, __open64) [!_LIBC]: Remove.
61612         (__gen_tempname): Use small_open and large_open instead of __open
61613         and __open64.  This fixes a portability bug on HP-UX 11.11i
61614         reported by Simon Wing-Tang in
61615         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
61616
61617 2006-05-24  Bruno Haible  <bruno@clisp.org>
61618
61619         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
61620         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
61621         Reported by Thorsten Maerz <torte@netztorte.de> via
61622         Aaron Stone <aaron@serendipity.cx>.
61623
61624 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61625
61626         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
61627         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
61628         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
61629         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
61630         not really conditional on the cache.
61631         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
61632
61633 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61634
61635         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
61636         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
61637         (my_usleep): Don't mishandle maximum value.
61638
61639 2006-05-19  Jim Meyering  <jim@meyering.net>
61640
61641         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
61642
61643 2006-05-17  Bruno Haible  <bruno@clisp.org>
61644
61645         Cygwin portability.
61646         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
61647
61648 2006-05-17  Bruno Haible  <bruno@clisp.org>
61649
61650         * lib/stdint_.h: Fix recognition of Cygwin.
61651
61652 2006-05-15  Bruno Haible  <bruno@clisp.org>
61653
61654         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
61655         on libtool patch by Ralf Wildenhues.
61656
61657 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61658
61659         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
61660         test for C99 conformance; (bool) 0.5 is an integer constant
61661         expression, but (bool) -0.5 is not.  Problem reported by Fedor
61662         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
61663
61664 2006-05-11  Simon Josefsson  <jas@extundo.com>
61665
61666         * m4/xvasprintf.m4: Fix obvious typo.
61667
61668 2006-05-11  Jim Meyering  <jim@meyering.net>
61669
61670         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
61671         James Lemley.
61672
61673 2006-05-10  Simon Josefsson  <jas@extundo.com>
61674
61675         * lib/md4.c: Typo fix, update copyright years.
61676         (K1, K2): Don't use L because it turn computations into 64-bit on
61677         64-bit platforms.
61678
61679 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
61680
61681         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
61682         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
61683         unwanted sign propagation, e.g., on hosts with 64-bit int.
61684         There still are some problems with reeelly weird theoretical hosts
61685         (e.g., 33-bit int) but it's not worth worrying about now.
61686         * lib/sha1.c (rol): Likewise.
61687         (K1, K2, K3, K4): Remove unnecessary L suffix.
61688
61689 2006-05-10  Bruno Haible  <bruno@clisp.org>
61690
61691         * lib/des.c: Cast to avoid warnings.
61692
61693 2006-05-09  Bruno Haible  <bruno@clisp.org>
61694
61695         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
61696         (Depends-on): Depend also on xsize, stdarg.
61697         (configure.ac): Add gl_XVASPRINTF.
61698
61699 2006-05-09  Bruno Haible  <bruno@clisp.org>
61700
61701         * m4/xvasprintf.m4: New file.
61702
61703 2006-05-09  Bruno Haible  <bruno@clisp.org>
61704
61705         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
61706         (EOVERFLOW): Define fallback value.
61707         (xstrcat): New function.
61708         (xvasprintf): Recognize the special case of a string concatenation.
61709
61710 2006-05-08  Eric Blake  <ebb9@byu.net>
61711
61712         * gnulib-tool (func_version): Base copyright year on CVS date.
61713         (func_emit_copyright_notice): New function.
61714         (func_emit_lib_Makefile_am): Use it.
61715         (func_emit_tests_Makefile_am): Likewise.
61716         (func_import): Likewise.
61717
61718 2006-05-08  Bruno Haible  <bruno@clisp.org>
61719
61720         * modules/stdarg: New file.
61721         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
61722
61723 2006-05-08  Bruno Haible  <bruno@clisp.org>
61724
61725         * m4/stdarg.m4: New file, from GNU gettext.
61726
61727 2006-05-08  Bruno Haible  <bruno@clisp.org>
61728
61729         * config/srclist.txt (build-aux/config.rpath): different from latest
61730         release.
61731
61732 2006-05-08  Bruno Haible  <bruno@clisp.org>
61733
61734         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
61735
61736 2006-05-05  Jim Meyering  <jim@meyering.net>
61737
61738         * m4/warning.m4: New file, derived from bison's file by the same name.
61739
61740 2006-05-03  Bruno Haible  <bruno@clisp.org>
61741
61742         * lib/stdint_.h: Shorter URL.
61743         * lib/inttypes.h: Likewise.
61744
61745 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61746
61747         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
61748
61749 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61750
61751         * lib/verify.h: Document the internals better.  Most of this change
61752         was written by Bruno Haible.
61753
61754 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61755
61756         * doc/verify.texi: New file, partly based on a proposal by
61757         Bruno Haible.
61758
61759 2006-05-02  Bruno Haible  <bruno@clisp.org>
61760
61761         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
61762         test from here...
61763         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
61764
61765 2006-04-29  Bruno Haible  <bruno@clisp.org>
61766
61767         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
61768         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
61769
61770 2006-04-29  Bruno Haible  <bruno@clisp.org>
61771
61772         * gnulib-tool: Make --update option actually work.
61773
61774 2006-04-29  Bruno Haible  <bruno@clisp.org>
61775
61776         * doc/gcd.texi: New file.
61777         * doc/gnulib.texi: Include it.
61778
61779 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
61780
61781         * lib/getdate.y (get_date): When adding relative date, start with the
61782         initial time, not with the result of the first mktime call.
61783
61784 2006-04-25  Bruno Haible  <bruno@clisp.org>
61785
61786         * gnulib-tool (func_import): Output the include directives in three
61787         blocks, sorted separately.
61788         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61789
61790 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61791
61792         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
61793         to define main with arguments, for C++.  Reported by Eric Blake.
61794         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
61795         Prefer 'int main ()' to 'int main (void)', for C++.
61796         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61797         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
61798         for 'main', for C99 and C++.
61799
61800 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61801
61802         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
61803         Don't assume that exit status -1 is valid.
61804         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61805         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61806         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
61807         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
61808         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
61809         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
61810         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
61811         functions can be used without declaring them, or that you can
61812         exit with status -1.
61813         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
61814
61815 2006-04-24  Karl Berry  <karl@gnu.org>
61816
61817         * config/srclist.txt (longdouble.m4): sync lost.
61818
61819 2006-04-24  Eric Blake  <ebb9@byu.net>
61820
61821         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
61822
61823 2006-04-24  Bruno Haible  <bruno@clisp.org>
61824
61825         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
61826         poll() implementation in AIX.
61827         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61828
61829 2006-04-24  Bruno Haible  <bruno@clisp.org>
61830
61831         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
61832         assigned exactly once.
61833
61834 2006-04-23  Claudio Fontana  <claudio@gnu.org>
61835             Bruno Haible  <bruno@clisp.org>
61836
61837         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
61838         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
61839         for AM_CPPFLAGS.
61840
61841 2006-04-23  Bruno Haible  <bruno@clisp.org>
61842
61843         * modules/copy-file: Depend on unistd.
61844         * modules/execute: Likewise.
61845         * modules/fatal-signal: Likewise.
61846         * modules/findprog: Likewise.
61847         * modules/mkdtemp : Likewise.
61848         * modules/pipe: Likewise.
61849         * modules/wait-process: Likewise.
61850
61851 2006-04-23  Bruno Haible  <bruno@clisp.org>
61852
61853         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
61854         condition was already detected.
61855         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61856
61857 2006-04-23  Bruno Haible  <bruno@clisp.org>
61858
61859         * lib/copy-file.c: Include <unistd.h> unconditionally.
61860         * lib/execute.c: Likewise.
61861         * lib/fatal-signal.c: Likewise.
61862         * lib/findprog.c: Likewise.
61863         * lib/mkdtemp.c: Likewise.
61864         * lib/pipe.h: Likewise.
61865         * lib/pipe.c: Likewise.
61866         * lib/wait-process.h: Likewise.
61867
61868 2006-04-23  Bruno Haible  <bruno@clisp.org>
61869
61870         * gnulib-tool (func_usage): Fix --import description. Document
61871         --update.
61872         (func_import): Create temporary file in a temporary directory, if
61873         --dry-run is specified. Silence errors from 'grep' when there are no
61874         m4 files in $m4dir.
61875         (func_create_testdir): Silence errors from 'grep' when there are no
61876         m4 files in $m4dir.
61877         Reported by Karl Berry <karl@freefriends.org>.
61878
61879 2006-04-20  Bruno Haible  <bruno@clisp.org>
61880
61881         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
61882         one argument, so that the code will be portable to Autoconf 2.60.
61883         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
61884         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61885         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
61886
61887 2006-04-19  Derek Price  <derek@ximbiot.com>
61888             Eric Blake  <ebb9@byu.net>
61889
61890         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
61891         rather than "/full/path.h".  Update comment to match.  Shorten &
61892         generalize m4_translit call via AS_TR_CPP.
61893
61894 2006-04-19  Derek Price  <derek@ximbiot.com>
61895             Eric Blake  <ebb9@byu.net>
61896
61897         * lib/inttypes.h: Correct grammar in comment.
61898
61899 2006-04-18  Derek Price  <derek@ximbiot.com>
61900             Paul Eggert  <eggert@cs.ucla.edu>
61901
61902         * modules/inttypes: New file.
61903         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
61904
61905 2006-04-18  Derek Price  <derek@ximbiot.com>
61906             Paul Eggert  <eggert@cs.ucla.edu>
61907
61908         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
61909         New files.
61910
61911 2006-04-18  Derek Price  <derek@ximbiot.com>
61912             Paul Eggert  <eggert@cs.ucla.edu>
61913
61914         * lib/inttypes.h: New file.
61915         * lib/strtoimax.c: Assume <inttypes.h>.
61916
61917 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
61918
61919         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
61920         isn't mounted.  Problem reported by Kir Kolyshkin.
61921
61922 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61923
61924         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
61925         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
61926         Derek R. Price.
61927         * lib/regex.h (RE_DUP_MAX): Update comment to match current
61928         implementation.
61929
61930 2006-04-12  Eric Blake  <ebb9@byu.net>
61931
61932         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
61933         is now done automatically by the corresponding Autoconf macro.
61934
61935 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
61936
61937         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
61938         time_r.h.
61939
61940 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61941
61942         Merge regex changes from libc, removing some of our
61943         POSIX-conformance changes that were rejected and redoing them in a
61944         less-intrusive way.
61945
61946         * lib/regcomp.c (re_compile_internal, init_dfa):
61947         Length arg is now size_t, not Idx.  All uses changed.
61948         (peek_token): Forward decl now says internal_function.
61949         (__re_error_msgid, __re_error_msgid_idx):
61950         Now static rather than extern with attribute_hidden.
61951         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
61952         For some reason libc prefers K&R style defns for external functions.
61953         (regerror) [!defined _LIBC]: Likewise.
61954         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
61955         (seek_collating_symbol_entry, lookup_collation_sequence_value):
61956         (build_range_exp, build_collating_symbol):
61957         Use K&R-style defn.
61958         (re_compile_fastmap): Use '\0' to memset, not 0.
61959         (utf8_sb_map): Make the calculations more obvious.
61960         (init_dfa, parse_bracket_exp, build_charclass_op):
61961         Call calloc and cast result, as glibc does.
61962         (init_word_char, fetch_token, peek_token, peek_token_bracket):
61963         (build_range_exp, build_collating_symbol):
61964         Now internal functions.
61965
61966         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
61967
61968         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
61969         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
61970         Don't depend on VMS; depend on __VMS instead, for POSIX
61971         namespace cleanness.
61972         (regoff_t): Define to ssize_t, not long int.
61973
61974         Remove the REG_ macros named below.  Instead, make the old names
61975         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
61976         __USE_GNU_REGEX.
61977         (REG_BACKSLASH_ESCAPE_IN_LISTS):
61978         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
61979         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
61980         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
61981         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
61982         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
61983         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
61984         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
61985         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
61986         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
61987         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
61988         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
61989         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
61990         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
61991         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
61992         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
61993         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
61994         (REG_NREGS):
61995         Remove.  All uses replaced by the old RE_* names.
61996         (RE_BACKSLASH_ESCAPE_IN_LISTS):
61997         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
61998         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
61999         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
62000         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
62001         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
62002         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
62003         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
62004         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
62005         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
62006         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
62007         Don't bother having these macros be independent of each others'
62008         values, since they no longer exist in the POSIX name space.
62009
62010         Rename the following member names back to their old names,
62011         unless !__USE_GNU_REGEX.  All uses changed back.
62012         (buffer): Renamed from re_buffer.
62013         (allocated): Renamed from re_allocated.
62014         (used): Renamed from re_used.
62015         (syntax): Renamed from re_syntax.
62016         (fastmap): Renamed from re_fastmap.
62017         (translate): Renamed from re_translate.
62018         (can_be_null): Renamed from re_can_be_null.
62019         (regs_allocated): Renamed from re_regs_allocated.
62020         (fastmap_accurate): Renamed from re_fastmap_accurate.
62021         (no_sub): Renamed from re_no_sub.
62022         (not_bol): Renamed from re_not_bol.
62023         (not_eol): Renamed from re_not_eol.
62024         (newline_anchor): Renamed from re_newline_anchor.
62025         (num_regs): Renamed from rm_num_regs.
62026         (start): Renamed from rm_start.
62027         (end): Renamed from rm_end.
62028
62029         (free_state): Move up a bit.
62030
62031         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
62032         #define to be empty.
62033         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
62034         when that is what is intended.
62035         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
62036         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
62037         (MAX): New macro.
62038         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
62039         All uses changed back to re_malloc, etc.  It's now the caller's
62040         responsibility to check for overflow; all callers changed.
62041         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
62042         (re_x2nrealloc): Remove.
62043         (free_state): Remove decl.
62044
62045         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
62046         (re_set_registers, re_exec):
62047         Use K&R-style defn.
62048
62049         2006-01-31  Roland McGrath  <roland@redhat.com>
62050
62051         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
62052         Reported by Mike Frysinger <vapier@gentoo.org>.
62053
62054         2006-01-15  Andreas Jaeger  <aj@suse.de>
62055
62056         [BZ #1950]
62057         * lib/regex_internal.c (re_string_reconstruct): Adjust for
62058         build_wcs_upper_buffer change.
62059         (build_wcs_upper_buffer): Change return type.
62060
62061         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
62062
62063         * lib/regex_internal.h: Include <stdint.h> if available.
62064
62065         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
62066
62067         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
62068
62069         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62070
62071         * lib/regcomp.c: Adjust for changed secondary hash function.
62072
62073         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
62074
62075         * lib/regex.h: Pretty printing.
62076         Clean up namespace a bit.
62077
62078         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
62079
62080         * lib/regexec.c (update_cur_sifted_state, check_arrival,
62081         check_arrival_add_next_nodes): Avoid using uninitialized variable.
62082
62083         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62084                     Ulrich Drepper  <drepper@redhat.com>
62085
62086         [BZ #1302]
62087         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
62088         changed.
62089         (bitset_word_t): Renamed from bitset_word.  All uses changed.
62090
62091         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
62092
62093         [BZ #281]
62094         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
62095         * lib/regcomp.c: Remove unnecessary uses of
62096         unsigned RE_TRANSLATE_TYPE.
62097         * lib/regex_internal.h: Likewise.
62098         * lib/regex_internal.c: Likewise.
62099         * lib/regexec.c: Likewise.
62100         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
62101
62102         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
62103
62104         * lib/regexec.c (find_recover_state): Remove unnecessary
62105         initialization.
62106         (transit_state_bkref): Make DFA a const pointer.
62107         (get_subexp): Likewise.
62108         (check_arrival): Likewise.
62109         (update_cur_sifted_state): Likewise.
62110         (re_search_internal): Likewise.
62111         (prune_impossible_nodes): Likewise.
62112         (acquire_init_state_context): Likewise.
62113         (proceed_next_node): Likewise.
62114         (set_regs): Likewise.
62115         (free_fail_stack_return): Likewise.
62116         (check_arrival_expand_ecl): Mark DFA parameter as const.
62117         (check_arrival_expand_ecl_sub): Likewise.
62118         (check_subexp_limits): Likewise.
62119         (sub_epsilon_src_nodes):  Likewise.
62120         (add_epsilon_src_nodes):  Likewise.
62121         (merge_state_array): Likewise.
62122         (update_regs): Likewise.
62123         (build_trtable): Likewise.
62124         (sift_states_backward): Mark MCTX parameter as const.
62125         (build_sifted_states): Likewise.
62126         (update_cur_sifted_state): Likewise.
62127         (sift_states_mkref): Likewise.
62128         (check_arrival_expand_ecl): Mark eclosure as const.
62129         (check_dst_limits_calc_pos_1): Likewise.
62130         * lib/regex_internal.h (re_match_context_t): Make dfa a const
62131         pointer.
62132
62133         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
62134
62135         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
62136         (transit_state_sb): Likewise.
62137         (transit_state_mb): Likewise.
62138         (sift_states_iter_mb): Likewise.
62139         (check_arrival_add_next_nodes): Likewise.
62140         (check_node_accept_bytes): Change first parameter to pointer-to-const.
62141         [_LIBC] (re_search_2_stub): Use mempcpy.
62142
62143         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
62144         mbrtowc for very simple UTF-8 case.
62145
62146         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
62147         a pointer-to-const.
62148         (re_acquire_state_context): Likewise.
62149         * lib/regex_internal.h: Adjust prototypes.
62150
62151         * lib/regex.c: Prevent using C++ compilers.
62152
62153         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
62154         (re_acquire_state_context): Likewise.
62155
62156 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62157
62158         * modules/regex (Depends-on): Add ssize_t.
62159
62160 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62161
62162         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
62163         translation table.
62164
62165 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62166
62167         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
62168
62169 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
62170             Bruno Haible  <bruno@clisp.org>
62171
62172         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
62173         <sys/types.h> and <inttypes.h>.
62174
62175 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62176
62177         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
62178         `__error_t_defined', so argp.h will not typedef the former.
62179
62180 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
62181
62182         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
62183         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
62184         glibc names.  Even if glibc is changed to conform to POSIX, the
62185         traditional names will be available anyway, since regex depends on
62186         the extensions module.  Also, fix a longstanding typo in the
62187         implementation of Spencer ERE test #75 from grep 2.3.  Problems
62188         reported by Emanuele Giaquinta.  Also, change sense of cached
62189         variable, so that the message makes sense.
62190
62191 2006-03-24  Simon Josefsson  <jas@extundo.com>
62192
62193         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
62194         including some doc fixes.
62195         (base64_encode_alloc): Fix +1 bug on allocation failures.
62196
62197 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62198
62199         * lib/base64.c (base64_encode): Do not read past end of array with
62200         unsanitized input on systems with CHAR_BIT > 8.
62201
62202 2006-03-24  Eric Blake  <ebb9@byu.net>
62203
62204         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
62205
62206 2006-03-22  Karl Berry  <karl@gnu.org>
62207
62208         * config/srclist.txt (*setenv.[ch]): get from coreutils.
62209         * config/srclistvars.sh (COREUTILS): new var.
62210
62211 2006-03-17  Jim Meyering  <jim@meyering.net>
62212
62213         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
62214         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
62215
62216 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62217
62218         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
62219         no longer needs it.  Instead, check that regoff_t is as least
62220         as wide as ptrdiff_t.
62221
62222         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
62223         so that our regex.h stays compatible with the installed regex.
62224         This is helpful for installers who configure --without-included-regex.
62225         Problem reported by Emanuele Giaquinta.
62226
62227 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62228
62229         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
62230         Typedef to long int, not to off_, as POSIX will likely change
62231         in that direction.
62232
62233 2006-03-15  Eric Blake  <ebb9@byu.net>
62234
62235         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
62236
62237 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62238
62239         * lib/argp-help.c (validate_uparams): Fix typo
62240         * lib/argp-parse.c (argp_default_options): Consistently begin help
62241         messages with a lowercase letter.
62242
62243 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
62244
62245         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
62246         overrun buffers and shouldn't be used (much as gets shouldn't be
62247         used).
62248         * lib/time_r.c (asctime_r, ctime_r): Likewise.
62249
62250 2006-03-08  Simon Josefsson  <jas@extundo.com>
62251
62252         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
62253         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62254
62255 2006-03-08  Simon Josefsson  <jas@extundo.com>
62256
62257         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
62258         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62259
62260 2006-03-08  Simon Josefsson  <jas@extundo.com>
62261
62262         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
62263         signal that configure disabled the device.
62264
62265 2006-03-08  Simon Josefsson  <jas@extundo.com>
62266
62267         * build-aux/maint.mk: Fix refresh-po, to handle no translated
62268         languages.
62269
62270 2006-03-07  Simon Josefsson  <jas@extundo.com>
62271
62272         * modules/getopt (Depends-on): Add unistd.
62273
62274         * modules/unistd: New file.
62275
62276 2006-03-07  Simon Josefsson  <jas@extundo.com>
62277
62278         * modules/gc-random: New file.
62279
62280 2006-03-07  Simon Josefsson  <jas@extundo.com>
62281
62282         * m4/unistd_h.m4: New file.
62283
62284 2006-03-07  Simon Josefsson  <jas@extundo.com>
62285
62286         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
62287         test to be side-effect free by storing the result in the cache
62288         variable gl_cv_lib_readline, and moving the assignment of
62289         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
62290         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62291
62292 2006-03-07  Simon Josefsson  <jas@extundo.com>
62293
62294         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
62295         error on missing devices (the functions will return an error).
62296
62297         * m4/gc.m4: Move random stuff to gc-random.m4
62298
62299 2006-03-07  Simon Josefsson  <jas@extundo.com>
62300
62301         * lib/unistd_.h: New file.
62302
62303 2006-03-07  Simon Josefsson  <jas@extundo.com>
62304
62305         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
62306
62307 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62308
62309         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
62310         Problem reported by Juan Manuel Guerrero.
62311
62312 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62313
62314         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
62315         the unistd module.
62316         * lib/getlogin_r.c: Likewise.
62317         * lib/getlogin_r.h: Likewise.
62318         * lib/glob.c: Likewise.
62319         * lib/pagealign_alloc.c: Likewise.
62320         * lib/unistd_.h: Remove; no longer needed.
62321
62322 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62323
62324         * MODULES.html.sh (Support for systems lacking POSIX:2001):
62325         Add unistd.
62326         * modules/c-stack (Depends-on): Add unistd.
62327         * modules/getlogin_r: Likewise.
62328         * modules/glob: Likewise.
62329         * modules/pagealign_alloc: Likewise.
62330         * modules/unistd (Files): Remove lib/unistd_.h.
62331         (EXTRA_DIST): Remove.
62332         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
62333         need unistd_.h.
62334         (MOSTLYCLEANFILES): Remove unistd.h-t.
62335
62336 2006-03-03  Simon Josefsson  <jas@extundo.com>
62337
62338         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
62339
62340 2006-03-03  Simon Josefsson  <jas@extundo.com>
62341
62342         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
62343         libidn and bison.
62344
62345 2006-03-03  Simon Josefsson  <jas@extundo.com>
62346
62347         * build-aux/maint.mk: Add indent target.
62348
62349 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
62350
62351         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
62352         our replacement poll.h in any case, to avoid a differing
62353         declaration from a system header.  Seen on AIX.
62354
62355 2006-03-01  Simon Josefsson  <jas@extundo.com>
62356
62357         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
62358         <kasal@ucw.cz>.
62359
62360 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62361
62362         * modules/gettime (Depends-on): Add extensions module.
62363         * modules/nanosleep (Depends-on): Likewise.
62364         * modules/settime (Depends-on): Likewise.
62365
62366 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62367
62368         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
62369         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
62370         pedantically.
62371         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62372         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
62373
62374         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
62375         not "==".  Reported by Ralf Wildenhues.
62376
62377 2006-03-01  Karl Berry  <karl@gnu.org>
62378
62379         * doc/Copyright/request-*: new files, synced from gnuorg.
62380
62381 2006-03-01  Karl Berry  <karl@gnu.org>
62382
62383         * config/srclist.txt (Copyright/*): new entries.
62384
62385 2006-02-28  Simon Josefsson  <jas@extundo.com>
62386
62387         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
62388
62389 2006-02-27  Simon Josefsson  <jas@extundo.com>
62390
62391         * lib/base64.h: Indent #define's.  From Jim Meyering
62392         <jim@meyering.net>.
62393
62394 2006-02-27  Jim Meyering  <jim@meyering.net>
62395
62396         Revert the change of 2006-02-24, so these files can continue
62397         to be sync'd from gettext.
62398         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
62399         of `config.h'.
62400
62401 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62402
62403         * modules/intprops: New file.
62404         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62405         Add intprops.
62406         * modules/getloadavg (Files): Remove lib/intprops.h.
62407         (Depends-on): Add intprops.
62408         * modules/human: Likewise.
62409         * modules/inttostr: Likewise.
62410         * modules/openat: Likewise.
62411         * modules/sig2str: Likewise.
62412         * modules/userspec: Likewise.
62413         * modules/utimecmp: Likewise.
62414         * modules/xnanosleep: Likewise.
62415         * modules/xstrtol: Likewise.
62416
62417 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
62418
62419         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
62420         * modules/lock-tests (TESTS): Use $(EXEEXT).
62421         * modules/tls-tests: Likewise.
62422         * modules/argp-tests: Likewise.
62423         (check_PROGRAMS): New var, replacing...
62424         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
62425
62426 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62427
62428         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
62429         `config.h'.
62430
62431 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62432
62433         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
62434
62435 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62436
62437         Sync from coreutils.
62438         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
62439         gl_CHDIR_SAFER.
62440
62441 2006-02-22  Jim Meyering  <jim@meyering.net>
62442
62443         Sync from coreutils.
62444         * m4/chdir-safer.m4: New file.
62445
62446 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62447
62448         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
62449         AT_FDCWD exceeds INT_MAX.
62450         * lib/openat.h (AT_FDCWD): Likewise.
62451
62452 2006-02-17  Eric Blake  <address@hidden>
62453
62454         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
62455
62456 2006-02-16  Simon Josefsson  <jas@extundo.com>
62457
62458         * modules/getaddrinfo (Depends-on): Add sys_socket.
62459
62460 2006-02-15  Simon Josefsson  <jas@extundo.com>
62461
62462         * build-aux/maint.mk: Add dsyntax-check rule.
62463
62464 2006-02-15  Eric Blake  <ebb9@byu.net>
62465
62466         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
62467         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
62468         'present but cannot compile' warnings on cygwin.
62469         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
62470         use ws2tcpip.h if sys/socket.h works.
62471         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
62472         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
62473
62474 2006-02-14  Simon Josefsson  <jas@extundo.com>
62475
62476         * modules/maintainer-makefile (Files): Rename.
62477
62478         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
62479         and (the local) Makefile.cfg to maint-cfg.mk.
62480
62481         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
62482         to the latter.
62483
62484         * modules/maintainer-makefile: New module.
62485
62486         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
62487         severaly stripped to make it possible to build it up from scratch
62488         with reliable tests.
62489
62490         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
62491         fixes to permit overriding the default actions when configure and
62492         makefile are not available.
62493
62494 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62495
62496         Sync from coreutils.
62497         * modules/lstat (Depends-on): Don't depend on xalloc.
62498         (License): Change from GPL to LGPL, since this is now simply a
62499         replacement for a libc function.
62500
62501 2006-02-14  Jim Meyering  <jim@meyering.net>
62502
62503         Sync from coreutils.
62504
62505         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
62506         failure on deficient systems, and simplify gnulib lgpl dependencies.
62507         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
62508         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
62509
62510         * lib/xalloc-die.c: Remove unused definition of N_.
62511
62512 2006-02-14  Jim Meyering  <jim@meyering.net>
62513
62514         Sync from coreutils.
62515         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
62516         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
62517         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
62518         double-quote uses of that variable, to accommodate the rare case in
62519         which getmntent is available in none of the libraries checked.  This
62520         happens at least on FreeBSD 5.0.
62521
62522 2006-02-13  Simon Josefsson  <jas@extundo.com>
62523
62524         * gnulib-tool (Usage): Fix --import, from
62525         karl@freefriends.org (Karl Berry).
62526
62527 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62528
62529         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
62530
62531 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
62532
62533         * lib/argp-namefrob.h: Restore changes accidentally lost during the
62534         "autoupdate" on 2005-12-12.
62535
62536 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62537
62538         * modules/closeout (Depends-on): Remove atexit.
62539
62540 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62541
62542         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
62543         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
62544
62545 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62546
62547         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
62548         __EXTENSIONS__ if this causes compilation to fail.  Problem
62549         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
62550         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
62551
62552 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
62553
62554         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
62555         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
62556         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
62557         All uses changed.
62558
62559 2006-01-26  Simon Josefsson  <jas@extundo.com>
62560
62561         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
62562         prototype is visible on mingw32.
62563
62564         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
62565         for mingw32.
62566
62567         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
62568         mingw32).
62569
62570 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62571
62572         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
62573         attempt to open for write; this always fails, at least on POSIX
62574         hosts.  This reinstates the 2006-01-09 change, which was
62575         inadvertently removed.
62576
62577 2006-01-26  Bruno Haible  <bruno@clisp.org>
62578
62579         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
62580         Reported by Paul Eggert.
62581
62582 2006-01-26  Bruno Haible  <bruno@clisp.org>
62583             Paul Eggert  <eggert@cs.ucla.edu>
62584
62585         * lib/stdbool_.h (_Bool)
62586         [(! (defined __cplusplus || defined __BEOS__)
62587           && !defined __GNUC__
62588           && !(defined __HP_cc || defined __xlc__
62589                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
62590                || defined __sgi))]:
62591         #define to signed char in these cases too; this simplifies
62592         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
62593         etc., separately) and makes it more conservative.
62594
62595 2006-01-25  Simon Josefsson  <jas@extundo.com>
62596
62597         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
62598         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
62599         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
62600
62601 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62602
62603         * lib/argp-namefrob.h: Bugfix. Remove stray #
62604
62605 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62606
62607         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
62608         so that we test the test.
62609         Check for yet another HP-UX cc bug involving *bool |= bool.
62610
62611 2006-01-25  Karl Berry  <karl@gnu.org>
62612
62613         * config/srclist.txt (vasnprintf.c): sync lost.
62614
62615 2006-01-25  Jim Meyering  <jim@meyering.net>
62616
62617         Sync from the stable (b5) branch of coreutils:
62618
62619         * lib/fts.c (fts_children): Don't let close() clobber errno from
62620         failed fchdir().
62621
62622         * lib/fts.c (fts_stat): When following a symlink-to-directory,
62623         don't necessarily interpret stat-fails+lstat-succeeds as indicating
62624         a dangling symlink.  That can also happen at least for ELOOP.
62625         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
62626         FYI, this bug predates the inclusion of fts.c in coreutils.
62627
62628         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
62629         in their own block, so pre-c99 compilers don't object.
62630
62631         Avoid the double-free (first in fts_read, second in fts_close) that
62632         would occur when an `active' directory is made inaccessible (e.g.,
62633         via chmod a-x) during a traversal.
62634         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62635         before returning.  Reproduce this failure by
62636         mkdir -p a/b; cd a; chmod a-x . b
62637         Reported by Stavros Passas.
62638
62639 2006-01-25  Jim Meyering  <jim@meyering.net>
62640
62641         * lib/fileblocks.c: Remove more useless parentheses.
62642         * lib/readutmp.h: Likewise.
62643
62644 2006-01-25  Bruno Haible  <bruno@clisp.org>
62645
62646         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
62647         warnings.
62648         Reported by Paul Eggert.
62649
62650 2006-01-25  Bruno Haible  <bruno@clisp.org>
62651
62652         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
62653         rid of a trap command. For Solaris sh.
62654         Reported by Mark D. Baushke <mdb@gnu.org>.
62655
62656 2006-01-24  Simon Josefsson  <jas@extundo.com>
62657
62658         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
62659         Bruno.
62660
62661 2006-01-24  Karl Berry  <karl@gnu.org>
62662
62663         * config/srclist.txt (argp-namefrob.h): sync lost.
62664
62665 2006-01-24  Jim Meyering  <jim@meyering.net>
62666
62667         * modules/openat (Files): Add lib/intprops.h.
62668         From Mark D. Baushke.
62669
62670 2006-01-24  Jim Meyering  <jim@meyering.net>
62671
62672         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
62673         Reported by Mark D. Baushke.
62674
62675 2006-01-24  Jim Meyering  <jim@meyering.net>
62676
62677         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
62678
62679 2006-01-24  Bruno Haible  <bruno@clisp.org>
62680
62681         * modules/strnlen (Maintainer): Change from glibc to all.
62682
62683 2006-01-24  Bruno Haible  <bruno@clisp.org>
62684
62685         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
62686         Patch by Paul Eggert.
62687
62688 2006-01-24  Bruno Haible  <bruno@clisp.org>
62689
62690         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
62691         already has it.
62692         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
62693         2005-11-26.
62694
62695         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
62696         'signed char' to avoid problems with the built-in _Bool type.
62697         Reported by Paul Eggert on 2005-11-26.
62698
62699 2006-01-24  Bruno Haible  <bruno@clisp.org>
62700
62701         * gnulib-tool (func_import): Avoid constructing complicated sed
62702         expressions inside backquote.
62703         Report and solution by Mark D. Baushke <mdb@gnu.org>.
62704
62705 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
62706
62707         These changes imported from libc.
62708         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
62709         test and two separate function calls.
62710         * lib/strndup.c (__strndup): Add libc_hidden_def.
62711
62712 2006-01-23  Simon Josefsson  <jas@extundo.com>
62713
62714         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
62715         Remove the test_*_SOURCES variable: automake infers it by default.
62716         * modules/tls-tests: Likewise.
62717
62718 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62719
62720         Work around porting bugs reported by Dieter in
62721         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
62722         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
62723         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
62724         Include "getopt.h" first, to check interface.
62725         (getenv): Declare only if defined HAVE_DECL_GETENV &&
62726         !HAVE_DECL_GETENV.
62727         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
62728         (__strndup): Revert to K&R-style function dfns, the glibc style.
62729         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
62730         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
62731         Include strnlen.h first, to get prototype properly.
62732         (strnlen): Renamed from __strnlen.
62733         Remove weak alias.
62734
62735 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62736
62737         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
62738
62739 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62740
62741         * config/srclist.txt: Adjust to reflect glibc reorganization.
62742         This affects only comments.
62743
62744 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62745
62746          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
62747          Reported by Bruce Korb <bkorb@gnu.org>.
62748
62749 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62750
62751         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
62752         to pacify gcc -Wswitch-default.
62753
62754 2006-01-22  Bruno Haible  <bruno@clisp.org>
62755
62756         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
62757         temporary buffer for sprintf, take into account the precision also
62758         for 'd', 'i', 'u', 'o', 'x', 'X'.
62759
62760 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62761
62762         * modules/argp-tests: New module
62763         * tests/test-argp.c: New file
62764         * tests/test-argp-2.sh: New file
62765
62766 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62767
62768         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
62769         (__argp_base_name): Removed
62770         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
62771         typo.
62772         (__argp_base_name): Provide macro definition or extern declaration
62773         depending on the configuration
62774
62775 2006-01-20  Simon Josefsson  <jas@extundo.com>
62776
62777         * modules/inet_ntop (Depends-on): Depend on sys_socket.
62778
62779 2006-01-20  Simon Josefsson  <jas@extundo.com>
62780
62781         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
62782
62783 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62784
62785         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
62786         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
62787         Suggested by Bruno Haible.
62788
62789 2006-01-20  Karl Berry  <karl@gnu.org>
62790
62791         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
62792         until changes propagate, I guess.
62793
62794 2006-01-19  Simon Josefsson  <jas@extundo.com>
62795
62796         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
62797
62798 2006-01-19  Simon Josefsson  <jas@extundo.com>
62799
62800         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
62801
62802 2006-01-19  Simon Josefsson  <jas@extundo.com>
62803
62804         * gnulib-tool: Set check_PROGRAMS.
62805
62806         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62807         modules/des-tests, modules/gc-arcfour-tests,
62808         modules/gc-arctwo-tests, modules/gc-des-tests,
62809         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62810         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62811         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62812         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62813         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62814         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
62815         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
62816         test_*_SOURCES.
62817
62818 2006-01-18  Simon Josefsson  <jas@extundo.com>
62819
62820         * modules/socklen (Depends-on): Depend on sys_socket.
62821
62822 2006-01-18  Simon Josefsson  <jas@extundo.com>
62823
62824         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62825         modules/des-tests, modules/gc-arcfour-tests,
62826         modules/gc-arctwo-tests, modules/gc-des-tests,
62827         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62828         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62829         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62830         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62831         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62832         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
62833         $(EXEEXT) to automake TESTS variable, for mingw32.
62834
62835 2006-01-17  Simon Josefsson  <jas@extundo.com>
62836
62837         * modules/socklen (Include): Need sys/socket.h.
62838
62839 2006-01-17  Bruno Haible  <bruno@clisp.org>
62840
62841         * modules/ssize_t (Include): Add <sys/types.h>.
62842
62843 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
62844
62845         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
62846         it's not portable and it doesn't work with cross-compiles.
62847         Problem reported by Bruno Haible.  Fix missing-$ typo in
62848         'test "gl_cv_ignore_unused_libraries" ...' that prevented
62849         -zignore from being used with Sun's C compiler.
62850
62851 2006-01-12  Simon Josefsson  <jas@extundo.com>
62852
62853         * lib/base64.c: Fix warning, reported by Bruno Haible
62854         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
62855
62856 2006-01-12  Bruno Haible  <bruno@clisp.org>
62857
62858         * modules/ldd: New file.
62859         * build-aux/ldd.sh.in: New file.
62860         * MODULES.html.sh (Support for building libraries and executables): Add
62861         ldd.
62862
62863 2006-01-12  Bruno Haible  <bruno@clisp.org>
62864
62865         * m4/ldd.m4: New file.
62866
62867 2006-01-12  Bruno Haible  <bruno@clisp.org>
62868
62869         * gnulib-tool (func_import, func_create_testdir): Don't go into an
62870         endless loop while replacing $auxdir with build-aux.
62871
62872 2006-01-11  Simon Josefsson  <jas@extundo.com>
62873
62874         * lib/stdint_.h (SIZE_MAX): Add missing (.
62875
62876 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
62877
62878         Sync from coreutils.
62879         * lib/md5.c: Fix commentary typos.
62880         (alignof, UNALIGNED_P): No need for a GCC-specific version.
62881         * lib/md5.h (__attribute__): Remove; unused.
62882         * lib/sha1.c: Fix commentary to match md5 better.
62883         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
62884         so that we don't need to worry about alignment.  All uses changed.
62885         This merges the 2005-10-28 md5 change into sha1.
62886
62887 2006-01-11  Jim Meyering  <jim@meyering.net>
62888
62889         Sync from coreutils.
62890         * lib/md5.c (OP): Fix spacing.
62891
62892 2006-01-11  Bruno Haible  <bruno@clisp.org>
62893
62894         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62895         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
62896         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
62897
62898 2006-01-11  Bruno Haible  <bruno@clisp.org>
62899
62900         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62901         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
62902         the "early" section as well.
62903
62904 2006-01-11  Bruno Haible  <bruno@clisp.org>
62905
62906         Avoid "ar: no archive members specified" error on MacOS X.
62907         * gnulib-tool (func_modules_add_dummy): New function.
62908         (func_import, func_create_testdir): Invoke it.
62909
62910 2006-01-11  Bruno Haible  <bruno@clisp.org>
62911
62912         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
62913         with $auxdir in AC_CONFIG_FILES statements.
62914
62915 2006-01-11  Bruno Haible  <bruno@clisp.org>
62916
62917         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62918         Initialize also noinst_HEADERS to empty.
62919
62920 2006-01-11  Bruno Haible  <bruno@clisp.org>
62921
62922         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
62923         variables.
62924         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
62925         autoreconf.
62926
62927 2006-01-11  Bruno Haible  <bruno@clisp.org>
62928
62929         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
62930         overridable by the user.
62931         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62932
62933 2006-01-10  Simon Josefsson  <jas@extundo.com>
62934
62935         * modules/sys_socket: New file.
62936
62937 2006-01-10  Simon Josefsson  <jas@extundo.com>
62938
62939         * m4/sys_socket_h.m4: New file.
62940
62941 2006-01-10  Simon Josefsson  <jas@extundo.com>
62942
62943         * lib/socket_.h: New file.
62944
62945 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62946
62947         * modules/readutmp (Maintainer): Add myself.
62948
62949 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62950
62951         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
62952         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
62953         People who are still concerned with buggy memcmp implementations
62954         can invoke gl_FUNC_MEMCMP themselves.
62955
62956 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62957
62958         * lib/regex_internal.h (BITSET_WORD_BITS):
62959         Work around a bug in 64-bit PGC (before version 6.1-2), where the
62960         preprocessor mishandles large unsigned values as if they were signed.
62961         Problem reported by Claudio Fontana in
62962         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
62963
62964 2006-01-10  Jim Meyering  <jim@meyering.net>
62965
62966         Avoid the double-free (first in fts_read, second in fts_close) that
62967         would occur when an `active' directory is made inaccessible (e.g.,
62968         via chmod a-x) during a traversal.
62969         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62970         before returning.  Reproduce this failure by
62971         mkdir -p a/b; cd a; chmod a-x . b
62972         Reported by Stavros Passas.
62973
62974         Sync from coreutils.
62975         * lib/sha1.c: Tweak grammar in a comment.
62976
62977 2006-01-10  Jim Meyering  <jim@meyering.net>
62978
62979         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
62980         Patch by Joerg Sonnenberger.
62981
62982 2006-01-10  Bruno Haible  <bruno@clisp.org>
62983
62984         * modules/readutmp: Depend on module free.
62985         * modules/strtok_r: Depend on module restrict.
62986
62987 2006-01-10  Bruno Haible  <bruno@clisp.org>
62988
62989         * modules/gettext (configure.ac): Add an invocation of
62990         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
62991
62992 2006-01-10  Bruno Haible  <bruno@clisp.org>
62993
62994         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
62995         Reported by Werner Lemberg <wl@gnu.org>.
62996
62997 2006-01-10  Bruno Haible  <bruno@clisp.org>
62998
62999         * lib/localcharset.c: Update from GNU gettext.
63000
63001 2006-01-10  Bruno Haible  <bruno@clisp.org>
63002
63003         * lib/argp.h (__const): Remove macro. Use const instead.
63004         * lib/argp-fmtstream.h (__const): Likewise.
63005         * lib/glob_.h (__const): Remove macro.
63006         * lib/glob-libc.h: Use const instead of __const.
63007
63008 2006-01-10  Bruno Haible  <bruno@clisp.org>
63009
63010         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
63011         variable.
63012         Needed to avoid an automake error regarding the 'gettext' module.
63013
63014 2006-01-09  Simon Josefsson  <jas@extundo.com>
63015
63016         * modules/inet_ntop (Depends-on): Add restrict.
63017
63018 2006-01-09  Simon Josefsson  <jas@extundo.com>
63019
63020         * modules/gc-rijndael-tests (License): Put under LGPL.
63021
63022         * modules/gc-des-tests (License): Likewise.
63023
63024         * modules/gc-arcfour-tests (License): Likewise.
63025
63026         * modules/gc-arctwo-tests (License): Likewise.
63027
63028         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
63029
63030         * modules/gc-hmac-sha1-tests (Files): Likewise.
63031
63032         * modules/gc-hmac-md5-tests (License): Likewise.
63033
63034         * modules/gc-sha1-tests (License): Likewise.
63035
63036         * modules/gc-md5-tests (License): Likewise.
63037
63038         * modules/gc-md4-tests (License): Likewise.
63039
63040         * modules/gc-md2-tests (License): Likewise.
63041
63042         * modules/gc-tests (License): Likewise.
63043
63044         * modules/des-tests (License): Likewise.
63045
63046         * modules/md4-tests (License): Likewise.
63047
63048         * modules/md2-tests (License): Likewise.
63049
63050 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63051
63052         Sync from coreutils:
63053
63054         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
63055         * modules/lib-ignore: New file.
63056         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
63057         chdir-safer.m4, lchmod.m4.
63058         * modules/openat: Add mkdirat.c, openat-priv.h.
63059
63060 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63061
63062         Sync from coreutils.
63063         * m4/lib-ignore.m4: New file.
63064         * m4/lchmod.m4: New file.
63065
63066 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63067
63068         Sync from coreutils.
63069         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
63070         for write access: POSIX says that must fail.
63071         * lib/fts.c (diropen): Likewise.
63072         * lib/save-cwd.c (save_cwd): Likewise.
63073         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
63074         well, for minor improvements on hosts that lack O_DIRECTORY.
63075         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
63076         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
63077         Fall back on chown if open failed with EACCES.
63078
63079         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
63080         Report an error at compile-time if only a 1-second nominal clock
63081         resolution is found.
63082
63083         * lib/lchmod.h: New file.
63084         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
63085         (make_dir_parents): Use lchown rather than chown, and
63086         lchmod rather than chmod.
63087
63088         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
63089         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
63090         "proc" reported by n0dalus.
63091
63092         * lib/mountlist.c: Include <limits.h>.
63093         (dev_from_mount_options)
63094         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
63095         New function.  It no longer assumes "dev=" has the System V meaning
63096         on Linux (since it doesn't).  It also parses "dev=" more carefully.
63097         (read_file_system_list)
63098         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
63099         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
63100         dev= in that case.
63101
63102         * lib/posixtm.h (PDS_PRE_2000): New macro.
63103         * lib/posixtm.c (year): Arg is now syntax_bits rather than
63104         allow_century.  All usages changed.  Reject dates outside the range
63105         1969-1999 if PDS_PRE_2000 is used.
63106
63107 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63108
63109         Sync from coreutils.
63110         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
63111         (Time of day items): Mention the possibility of leap seconds.
63112         Problem reported by Dr. David Alan Gilbert.
63113
63114 2006-01-09  Jim Meyering  <jim@meyering.net>
63115
63116         Sync from coreutils.
63117
63118         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
63119
63120         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
63121
63122         * lib/modechange.c (mode_compile): Reject an invalid mode string
63123         that starts with an octal digit.  From Andreas Gruenbacher.
63124
63125         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
63126         and dup to open_safer and dup_safer, respectively.
63127         (openat_permissive): Fix typo in comment.
63128
63129         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
63130         "gettext.h"; either no longer needed or are guaranteed by openat.h.
63131         (_): Remove; no longer needed.
63132         (openat): Renamed from rpl_openat; no need for rpl_openat
63133         since openat.h renames openat for us.
63134         Replace most of the body with a call to openat_permissive,
63135         to avoid duplicate code.
63136         Port to (probably hypothetical) environments were mode_t is
63137         wider than int.
63138         (openat_permissive): Require mode arg, so that we can check
63139         types better.  Put it just after flags.  Change cwd failure
63140         indicator from pointer-to-bool to pointer-to-errno-value.
63141         All callers changed.
63142         Invoke openat_save_fail and/or openat_restore_fail if
63143         cwd_errno is null, so that openat can call us.
63144         (openat_permissive, fdopendir, fstatat, unlinkat):
63145         Simplify errno handling to avoid some duplicate code,
63146         as it's OK to set errno on success.
63147         * lib/openat.h: Revamp code so that function macros depend on
63148         __OPENAT_PREFIX only, not also on AT_FDCWD.
63149         (openat_ro): Remove.  Caller changed to use openat_permissive.
63150         (openat_permissive): Now a macro, if not a function.
63151         (openat_restore_fail, openat_save_fail): Now always functions,
63152         since mkdirat needs them even if __OPENAT_PREFIX is defined.
63153
63154         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
63155         and openat.c.
63156         * lib/mkdirat.c: Include openat-priv.h.
63157         Remove definitions of macros defined therein.
63158         * lib/openat.c: Likewise.
63159
63160         * lib/mkdirat.c (mkdirat): New file and function.
63161         * lib/openat.h (mkdirat): Declare.
63162
63163         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
63164
63165         * lib/openat.h (openat_permissive): Declare.
63166         (openat_ro): Define.
63167
63168         * lib/openat.c (EXPECTED_ERRNO): New macro.
63169         (openat_permissive): New function -- used in remove.c rewrite.
63170         (all functions): Set errno just before returning, only if there
63171         was an actual failure.
63172         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
63173
63174         Emulate openat-family functions using Linux's procfs, if possible.
63175         Idea and some code based on Ulrich Drepper's glibc changes.
63176
63177         * lib/openat.c: (BUILD_PROC_NAME): New macro.
63178         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
63179         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
63180         before falling back on save_cwd and restore_cwd.
63181         (fdopendir, fstatat, unlinkat): Likewise.
63182
63183         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
63184         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
63185
63186         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
63187         as second argument to va_arg.  Otherwise, some versions of gcc
63188         warn that `if this code is reached, the program will abort'.
63189
63190 2006-01-09  Jim Meyering  <jim@meyering.net>
63191
63192         Sync from coreutils.
63193         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
63194         Require openat-priv.h.
63195
63196 2006-01-09  Bruno Haible  <bruno@clisp.org>
63197
63198         * modules/strnlen (Include): Use strnlen.h.
63199
63200 2006-01-09  Bruno Haible  <bruno@clisp.org>
63201
63202         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
63203
63204 2006-01-09  Bruno Haible  <bruno@clisp.org>
63205
63206         * lib/sysexit_.h (EX_OK): New macro.
63207         Suggested by Martin Lambers <marlam@marlam.de>.
63208
63209 2006-01-09  Bruno Haible  <bruno@clisp.org>
63210
63211         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
63212         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
63213
63214 2006-01-09  Bruno Haible  <bruno@clisp.org>
63215
63216         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
63217         numbers.
63218
63219 2006-01-09  Bruno Haible  <bruno@clisp.org>
63220
63221         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
63222         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
63223         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
63224         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
63225
63226 2006-01-09  Bruno Haible  <bruno@clisp.org>
63227
63228         * build-aux/javacomp.sh.in: New file, moved from lib/.
63229         * modules/javacomp-script (Files): Update.
63230         (configure.ac): Add AC_CONFIG_FILES invocation.
63231         (EXTRA_DIST): Remove variable.
63232
63233         * build-aux/javaexec.sh.in: New file, moved from lib/.
63234         * modules/javaexec (Files): Update.
63235         (configure.ac): Add AC_CONFIG_FILES invocation.
63236         (EXTRA_DIST): Remove javaexec.sh.in.
63237
63238         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
63239         * modules/csharpcomp-script (Files): Update.
63240         (configure.ac): Add AC_CONFIG_FILES invocation.
63241         (EXTRA_DIST): Remove variable.
63242
63243         * build-aux/csharpexec.sh.in: New file, moved from lib/.
63244         * modules/csharpexec (Files): Update.
63245         (configure.ac): Add AC_CONFIG_FILES invocation.
63246         (EXTRA_DIST): Remove csharpexec.sh.in.
63247
63248 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63249
63250         Sync from coreutils.
63251
63252         Add POSIX ACL support
63253         * lib/acl.h (copy_acl, set_acl): Add declarations.
63254         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
63255         systems other than Linux.
63256         (chmod_or_fchmod): New function: use fchmod when possible,
63257         and chmod otherwise.
63258         (file_has_acl): Add a POSIX ACL implementation, with a
63259         Linux-specific subcase.
63260         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
63261         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
63262         acls are unsupported.
63263         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
63264         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
63265         are unsupported.
63266
63267 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63268
63269         Sync from coreutils.
63270         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
63271
63272 2006-01-07  Bruno Haible  <bruno@clisp.org>
63273
63274         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
63275         gl_EARLY.
63276
63277 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63278
63279         * lib/strftime.c (tzname): Don't declare if it is already #defined.
63280         Problem reported for Mingw by Mark Junker.
63281
63282 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63283
63284         * README: Gnulib normally doesn't generate a tarball.
63285
63286 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
63287
63288         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
63289         long int, not int, for nanosecond counts, so that people who are
63290         used to POSIX struct timespec won't be surprised.  Reported by Jim
63291         Meyering.
63292
63293 2005-12-28  Bruno Haible  <bruno@clisp.org>
63294
63295         * build-aux/config.rpath: Update from GNU gettext.
63296
63297 2005-12-16  Jim Meyering  <jim@meyering.net>
63298
63299         * modules/fprintftime: New module.
63300         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
63301
63302 2005-12-16  Jim Meyering  <jim@meyering.net>
63303
63304         * m4/fprintftime.m4: New file.
63305
63306 2005-12-16  Jim Meyering  <jim@meyering.net>
63307
63308         * lib/fprintftime.c, lib/fprintftime.h: New files.
63309
63310 2005-12-15  Simon Josefsson  <jas@extundo.com>
63311
63312         * modules/socklen (configure.ac): Fix M4 macro name, to align with
63313         new m4/socklen.m4.
63314
63315 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63316
63317         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
63318         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
63319
63320 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63321
63322         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
63323         * lib/argp-help.c (fill_in_uparams): Check if the constructed
63324         struct uparams is valid. Fall back to the default values if it is
63325         not.
63326
63327 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63328
63329         * modules/argp (Files): Add argp-pin.c
63330         (Depends-on): dirname
63331         (lib_SOURCES): Add argp-pin.c
63332
63333 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63334
63335         * m4/argp.m4:  Check if program_invocation_name and
63336         program_invocation_short_name are declared and define appropriate
63337         macros if they are not.
63338
63339 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63340
63341         * lib/argp-help.c (__argp_base_name): New function
63342         (__argp_short_program_name): Rewrite using __argp_base_name
63343         * lib/argp-namefrob.h: Define program_invocation_name and
63344         program_invocation_short_name if requested
63345         (__argp_base_name): Add prototype
63346         * lib/argp-parse.c (argp_def): Use gettext wrappers
63347         (argp_default_parser): Use __argp_base_name
63348         * lib/argp-pin.c: New file. Defines program_invocation_name and
63349         program_invocation_short_name on systems that lack them.
63350
63351 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63352
63353         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
63354         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63355         porting problem reported by Georg Schwarz in
63356         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63357
63358 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63359
63360         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
63361         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63362         porting problem reported by Georg Schwarz in
63363         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63364
63365 2005-12-05  Bruno Haible  <bruno@clisp.org>
63366
63367         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
63368         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
63369         Reported by Mark Junker <mjscod@gmx.de>.
63370
63371 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
63372
63373         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
63374         Use implementation from Albert Chin, with some
63375         comments/corrections by Stepan Kasal and myself.
63376
63377 2005-12-02  Bruno Haible  <bruno@clisp.org>
63378
63379         * gnulib-tool (func_import): Accept GPLed build tool modules when
63380         --lgpl is given.
63381         * modules/csharpcomp-script: New file.
63382         * modules/csharpcomp: Depend on it.
63383         * modules/javacomp-script: New file.
63384         * modules/javacomp: Depend on it.
63385         Suggested by Simon Josefsson.
63386
63387 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63388
63389         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
63390         statement, to work around an HP-UX 10.20 compiler bug reported by
63391         Peter O'Gorman.
63392
63393 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63394
63395         * modules/savedir (Depends-on): Add openat.
63396
63397 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63398
63399         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
63400         (uintmax_t) [defined uintmax_t]: Do not declare.
63401         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
63402         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
63403         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
63404         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
63405         sake of portability to weird hosts that C allows (though we don't
63406         know of any practical examples).
63407
63408         * lib/savedir.h (fdsavedir): New decl.
63409         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
63410         contains most of the former guts of savedir.
63411         (savedir): Use savedirstream.
63412         Include "openat.h".
63413
63414 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63415
63416         * modules/obstack (Files): Add m4/ulonglong.m4.
63417         Problem reported by Davide Angelocola.
63418
63419 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63420
63421         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
63422         coreutils no longer futzes with rounding modes.
63423
63424 2005-11-14  Jim Meyering  <jim@meyering.net>
63425
63426         * lib/mkstemp-safer.c: Include <config.h>, required for possible
63427         replacement of mkstemp.
63428
63429 2005-11-10  Simon Josefsson  <jas@extundo.com>
63430
63431         * lib/readline.c: Remove EOL.
63432
63433 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63434
63435         * modules/gethrxtime (Depends-on): Add gettime.
63436
63437 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63438
63439         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
63440         or gettimeofday; no longer needed.
63441
63442 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63443
63444         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
63445         time business.
63446         (gethrxtime) [! (HAVE_NANOUPTIME
63447         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
63448         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
63449         our own approximation.
63450
63451 2005-11-08  Eric Blake  <ebb9@byu.net>
63452
63453         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63454
63455 2005-11-08  Eric Blake  <ebb9@byu.net>
63456
63457         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63458
63459 2005-11-04  Bruno Haible  <bruno@clisp.org>
63460
63461         * gnulib-tool: Implement --update mode.
63462
63463 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63464
63465         Fix porting problem reported by Theodoros V. Kalamatianos.
63466         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
63467         Don't assume that futimes failing means we must fail.
63468
63469 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63470
63471         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
63472         variables to suggest the intended function of the PATH_MAX check.
63473
63474 2005-10-30  Kean Johnston  <jkj@sco.com>
63475
63476         Trivial changes to support SCO systems.
63477         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
63478         as PATH_MAX.
63479         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
63480         where __ptr is null when no I/O is pending.
63481
63482 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63483
63484         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
63485         leave errno alone.  Problem reported by Dmitry V. Levin.
63486
63487 2005-10-28  Simon Josefsson  <jas@extundo.com>
63488
63489         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
63490         Test more.
63491
63492         * tests/test-gc-md2.c, tests/test-md2.c: New files.
63493
63494         * modules/md2, modules/md2-tests: New files.
63495
63496 2005-10-28  Simon Josefsson  <jas@extundo.com>
63497
63498         * m4/inet_ntop.m4: More tests.
63499
63500         * m4/gc-md2.m4, md2.m4: New file.
63501
63502 2005-10-28  Simon Josefsson  <jas@extundo.com>
63503
63504         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
63505         "restrict" keywords, as per POSIX.  Protect the function
63506         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
63507         Don't use K&R prototypes.  Check the sprintf return values.
63508         Re-define EAFNOSUPPORT if not present.  Indent.
63509
63510         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
63511         suggested by Bruno Haible <bruno@clisp.org>.
63512
63513         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
63514
63515         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
63516
63517         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
63518         libgcrypt).
63519
63520         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
63521
63522         * lib/md2.h, lib/md2.c: New files.
63523
63524 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
63525
63526         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
63527         errno alone.  Problem reported by Frederic Jolliton.
63528
63529 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63530
63531         * modules/verify (License): Change from GPL to LGPL.  This is a
63532         tiny module and there are apparently near-equivalents that are
63533         under the BSD license.
63534
63535 2005-10-24  Simon Josefsson  <jas@extundo.com>
63536
63537         * modules/sha1: Relicense to LGPL.
63538
63539 2005-10-24  Simon Josefsson  <jas@extundo.com>
63540
63541         * lib/md4.h: Shrink buffer size, now that we changed the type.
63542
63543 2005-10-23  Simon Josefsson  <jas@extundo.com>
63544
63545         * gnulib-tool (func_import): Fix --tests-base.
63546
63547 2005-10-22  Simon Josefsson  <jas@extundo.com>
63548
63549         * modules/arcfour (Depends-on): Need stdint.
63550
63551 2005-10-22  Simon Josefsson  <jas@extundo.com>
63552
63553         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
63554         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
63555
63556 2005-10-22  Simon Josefsson  <jas@extundo.com>
63557
63558         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
63559         suggested by Bruno Haible <bruno@clisp.org>.
63560
63561 2005-10-22  Simon Josefsson  <jas@extundo.com>
63562
63563         * lib/crc.h: Include stddef.h, for size_t.
63564
63565 2005-10-22  Simon Josefsson  <jas@extundo.com>
63566
63567         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
63568         arcfour_context struct (simplify test vector testing in GNU
63569         Shishi).
63570
63571 2005-10-21  Simon Josefsson  <jas@extundo.com>
63572
63573         * modules/des, modules/des-tests: New files.
63574
63575         * modules/gc-des, modules/gc-des-tests: New files.
63576
63577         * tests/test-des.c, tests/test-gc-des.c: New file.
63578
63579 2005-10-21  Simon Josefsson  <jas@extundo.com>
63580
63581         * modules/arctwo, modules/arctwo-tests: New files.
63582
63583         * tests/test-arctwo.c: New file.
63584
63585         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
63586
63587         * tests/test-gc-arctwo.c: New file.
63588
63589 2005-10-21  Simon Josefsson  <jas@extundo.com>
63590
63591         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
63592         Bruno Haible <bruno@clisp.org>.
63593
63594         * m4/gc-des.m4: New file.
63595
63596 2005-10-21  Simon Josefsson  <jas@extundo.com>
63597
63598         * m4/arctwo.m4: New file.
63599
63600         * m4/gc-arctwo.m4: New file.
63601
63602 2005-10-21  Simon Josefsson  <jas@extundo.com>
63603
63604         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
63605         block.
63606
63607 2005-10-21  Simon Josefsson  <jas@extundo.com>
63608
63609         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
63610         <bruno@clisp.org>.
63611
63612         * lib/hmac-sha1.c (hmac_sha1): Likewise.
63613
63614         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
63615         Bruno Haible <bruno@clisp.org>.
63616
63617         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
63618         <bruno@clisp.org>.
63619
63620 2005-10-21  Simon Josefsson  <jas@extundo.com>
63621
63622         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
63623
63624 2005-10-21  Simon Josefsson  <jas@extundo.com>
63625
63626         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
63627
63628 2005-10-21  Simon Josefsson  <jas@extundo.com>
63629
63630         * lib/des.h, lib/des.c: New files.
63631
63632         * lib/gc-gnulib.c: Support DES.c
63633
63634 2005-10-21  Simon Josefsson  <jas@extundo.com>
63635
63636         * lib/arctwo.h, lib/arctwo.c: New files.
63637
63638         * lib/gc-gnulib.c: Support ARCTWO.
63639
63640 2005-10-21  Simon Josefsson  <jas@extundo.com>
63641
63642         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
63643         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63644
63645 2005-10-21  Simon Josefsson  <jas@extundo.com>
63646
63647         * gnulib-tool (func_import, func_create_testdir): Define automake
63648         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
63649         Makefile.am snippet),
63650         suggested by Bruno Haible <bruno@clisp.org>.
63651
63652         * modules/gc (Makefile.am): Use it.
63653
63654 2005-10-21  Bruno Haible  <bruno@clisp.org>
63655
63656         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
63657         patch.
63658
63659 2005-10-19  Simon Josefsson  <jas@extundo.com>
63660
63661         * tests/test-gc-rijndael.c: New file.
63662
63663         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
63664
63665 2005-10-19  Simon Josefsson  <jas@extundo.com>
63666
63667         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
63668         interface too.
63669
63670 2005-10-19  Simon Josefsson  <jas@extundo.com>
63671
63672         * tests/test-gc-arcfour.c: New file.
63673
63674         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
63675
63676 2005-10-19  Simon Josefsson  <jas@extundo.com>
63677
63678         * modules/gc-md4, modules/gc-md4-tests: New file.
63679
63680         * tests/test-gc-md4.c: New file.
63681
63682 2005-10-19  Simon Josefsson  <jas@extundo.com>
63683
63684         * m4/gc-md4.m4: New file.
63685
63686 2005-10-19  Simon Josefsson  <jas@extundo.com>
63687
63688         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
63689         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
63690         <kasal@ucw.cz>.
63691
63692 2005-10-19  Simon Josefsson  <jas@extundo.com>
63693
63694         * m4/gc-arcfour.m4: New file.
63695
63696         * m4/gc-rijndael.m4: New file.
63697
63698 2005-10-19  Simon Josefsson  <jas@extundo.com>
63699
63700         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
63701
63702 2005-10-19  Simon Josefsson  <jas@extundo.com>
63703
63704         * lib/gc-gnulib.c: Support ARCFOUR.
63705
63706 2005-10-19  Simon Josefsson  <jas@extundo.com>
63707
63708         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
63709         support.
63710
63711         * lib/gc.h: Add ECB enum type.
63712
63713         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
63714
63715 2005-10-18  Simon Josefsson  <jas@extundo.com>
63716
63717         * tests/test-md5.c: New file.
63718
63719         * modules/md5-tests: New file.
63720
63721 2005-10-18  Simon Josefsson  <jas@extundo.com>
63722
63723         * tests/test-md4.c: New file.
63724
63725         * modules/md4, modules/md4-tests: New files.
63726
63727 2005-10-18  Simon Josefsson  <jas@extundo.com>
63728
63729         * m4/md4.m4: New file.
63730
63731 2005-10-18  Simon Josefsson  <jas@extundo.com>
63732
63733         * lib/md4.h, lib/md4.c: New files, based on md5.?.
63734
63735 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
63736
63737         * gnulib-tool (func_create_testdir): Omit the second check whether
63738         BUILT_SOURCES in nonempty.
63739
63740 2005-10-17  Simon Josefsson  <jas@extundo.com>
63741
63742         * tests/test-rijndael.c: New file.
63743
63744 2005-10-17  Simon Josefsson  <jas@extundo.com>
63745
63746         * modules/sha1: Depend on stdint instead of md5.
63747
63748         * modules/md5: Depend on stdint, remove uint32_t.
63749
63750 2005-10-17  Simon Josefsson  <jas@extundo.com>
63751
63752         * modules/gc-sha1-tests: New file.
63753
63754         * tests/test-gc-sha1.c: New file.
63755
63756 2005-10-17  Simon Josefsson  <jas@extundo.com>
63757
63758         * m4/md5.m4: Remove call to uint32_t.m4.
63759
63760 2005-10-17  Simon Josefsson  <jas@extundo.com>
63761
63762         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
63763
63764         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
63765         md5.h.
63766
63767         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
63768
63769         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
63770
63771 2005-10-17  Simon Josefsson  <jas@extundo.com>
63772
63773         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
63774
63775 2005-10-17  Simon Josefsson  <jas@extundo.com>
63776
63777         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
63778
63779 2005-10-17  Simon Josefsson  <jas@extundo.com>
63780
63781         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
63782
63783         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
63784
63785 2005-10-17  Bruno Haible  <bruno@clisp.org>
63786
63787         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
63788         that it can also be used in a test.
63789
63790 2005-10-16  Bruno Haible  <bruno@clisp.org>
63791
63792         * gnulib-tool (func_emit_tests_Makefile_am): Also define
63793         TESTS_ENVIRONMENT, so that individual tests can augment it.
63794
63795         * gnulib-tool (func_create_testdir): Use an intermediate target for
63796         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
63797         macros, like $(ALLOCA_H), which cannot be passed through the command
63798         line.
63799
63800 2005-10-15  Simon Josefsson  <jas@extundo.com>
63801
63802         * modules/rijndael-tests: New file.
63803
63804         * modules/rijndael: New file.
63805
63806 2005-10-15  Simon Josefsson  <jas@extundo.com>
63807
63808         * m4/rijndael.m4: New file.
63809
63810 2005-10-15  Simon Josefsson  <jas@extundo.com>
63811
63812         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
63813
63814         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
63815
63816 2005-10-14  Simon Josefsson  <jas@extundo.com>
63817
63818         * tests/test-arcfour.c: New file.
63819
63820         * modules/arcfour, modules/arcfour-tests: New files.
63821
63822 2005-10-14  Simon Josefsson  <jas@extundo.com>
63823
63824         * m4/arcfour.m4: New file.
63825
63826 2005-10-14  Simon Josefsson  <jas@extundo.com>
63827
63828         * lib/arcfour.h, lib/arcfour.c: New files.
63829
63830 2005-10-14  Roland McGrath  <roland@redhat.com>
63831
63832         Import from libc.  [BZ #1331]
63833         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
63834         macro argument.
63835         Reported by Matej Vela <vela@debian.org>.
63836
63837 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63838
63839         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
63840         include <wchar.h>; no longer needed.
63841
63842 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63843
63844         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
63845
63846 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
63847         and  Ulrich Drepper  <drepper@redhat.com>
63848
63849         Import from libc.
63850         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
63851         instead of inline stream orientation test and two separate
63852         function calls.  Pay no attention to USE_IN_LIBIO.
63853
63854 2005-10-13  Simon Josefsson  <jas@extundo.com>
63855
63856         * modules/gc-hmac-md5-tests: New file.
63857
63858         * tests/test-gc-hmac-sha1.c: New file.
63859
63860         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
63861
63862         * modules/gc-hmac-md5-tests: New file.
63863
63864         * tests/test-gc-md5.c: New file.
63865
63866         * modules/gc-md5-tests: New file.
63867
63868 2005-10-13  Simon Josefsson  <jas@extundo.com>
63869
63870         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
63871         Move memory allocation outside of loop.
63872
63873 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63874
63875         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
63876         intermediate directory is in a read-only file system.  Problem
63877         reported by Eric Blake.
63878
63879 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
63880
63881         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
63882
63883 2005-10-12  Simon Josefsson  <jas@extundo.com>
63884
63885         * tests/test-hmac-sha1.c: New file.
63886
63887         * modules/hmac-sha1-tests: New file.
63888
63889         * modules/hmac-sha1: New file.
63890
63891 2005-10-12  Simon Josefsson  <jas@extundo.com>
63892
63893         * modules/gc-sha1: New file.
63894
63895 2005-10-12  Simon Josefsson  <jas@extundo.com>
63896
63897         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
63898
63899         * tests/test-gc-pbkdf2-sha1.c: New file.
63900
63901 2005-10-12  Simon Josefsson  <jas@extundo.com>
63902
63903         * modules/gc-md5, modules/gc-hmac-md5: New files.
63904
63905         * modules/gc (Files): Remove md5, memxor and hmac files.
63906
63907 2005-10-12  Simon Josefsson  <jas@extundo.com>
63908
63909         * m4/gc-pbkdf2-sha1.m4: New file.
63910
63911         * m4/gc-hmac-sha1.m4: New file.
63912
63913         * m4/gc-sha1: New file.
63914
63915         * m4/hmac-sha1.m4: New file.
63916
63917 2005-10-12  Simon Josefsson  <jas@extundo.com>
63918
63919         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
63920
63921         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
63922
63923 2005-10-12  Simon Josefsson  <jas@extundo.com>
63924
63925         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
63926         suggested by Bruno Haible <bruno@clisp.org>.
63927
63928 2005-10-12  Simon Josefsson  <jas@extundo.com>
63929
63930         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
63931
63932 2005-10-12  Simon Josefsson  <jas@extundo.com>
63933
63934         * lib/gc-pbkdf2-sha1.c: New file.
63935
63936         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
63937
63938 2005-10-12  Simon Josefsson  <jas@extundo.com>
63939
63940         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
63941
63942         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
63943
63944 2005-10-12  Simon Josefsson  <jas@extundo.com>
63945
63946         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
63947         GC_USE_HMAC_MD5, respectively.
63948
63949         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
63950         (gc_md5): Fix typo.
63951
63952         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
63953
63954         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
63955
63956         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
63957
63958 2005-10-12  Bruno Haible  <bruno@clisp.org>
63959
63960         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
63961         Reported by Stepan Kasal <kasal@ucw.cz>.
63962
63963 2005-10-11  Simon Josefsson  <jas@extundo.com>
63964
63965         * tests/test-crc.c: New file.
63966
63967         * modules/crc, modules/crc-tests: New files.
63968
63969 2005-10-11  Simon Josefsson  <jas@extundo.com>
63970
63971         * m4/crc.m4: New file.
63972
63973 2005-10-11  Simon Josefsson  <jas@extundo.com>
63974
63975         * lib/gc.h: Add gc_hash and gc_hash_buffer.
63976
63977         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
63978
63979         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
63980
63981 2005-10-11  Simon Josefsson  <jas@extundo.com>
63982
63983         * lib/crc.h, lib/crc.c: New files.
63984
63985         * lib/gc.h (gc_hash_buffer): Add doc.
63986
63987 2005-10-11  Bruno Haible  <bruno@clisp.org>
63988
63989         * modules/c-strcasestr: New file.
63990         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
63991
63992 2005-10-11  Bruno Haible  <bruno@clisp.org>
63993
63994         * modules/c-strcase: New file.
63995         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
63996
63997 2005-10-11  Bruno Haible  <bruno@clisp.org>
63998
63999         * lib/strcasecmp.c: Include limits.h.
64000         (strcasecmp): Avoid integer overflow on exotic platforms.
64001         * lib/strncasecmp.c: Include limits.h.
64002         (strncasecmp): Avoid integer overflow on exotic platforms.
64003         Reported by Paul Eggert.
64004
64005 2005-10-11  Bruno Haible  <bruno@clisp.org>
64006
64007         * lib/c-strcasestr.h: New file, from GNU gettext.
64008         * lib/c-strcasestr.c: New file, from GNU gettext.
64009
64010 2005-10-11  Bruno Haible  <bruno@clisp.org>
64011
64012         * lib/c-strcase.h: New file, from GNU gettext.
64013         * lib/c-strcasecmp.c: New file, from GNU gettext.
64014         * lib/c-strncasecmp.c: New file, from GNU gettext.
64015
64016 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64017
64018         * modules/mempcpy (License): GPL -> LGPL.
64019         * modules/strchrnul (License): Likewise.
64020         * modules/sysexits (License): Likewise.
64021
64022 2005-10-08  Simon Josefsson  <jas@extundo.com>
64023
64024         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
64025
64026 2005-10-07  Simon Josefsson  <jas@extundo.com>
64027
64028         * m4/memxor.m4: Remove gl_C_RESTRICT call.
64029
64030 2005-10-06  Simon Josefsson  <jas@extundo.com>
64031
64032         * tests/test-hmac-md5.c: New file.
64033
64034         * modules/hmac-md5-tests: New file.
64035
64036         * modules/hmac-md5: New file.
64037
64038 2005-10-06  Simon Josefsson  <jas@extundo.com>
64039
64040         * m4/hmac-md5.m4: New file.
64041
64042         * m4/memxor.m4: Require gl_C_RESTRICT.
64043
64044 2005-10-06  Simon Josefsson  <jas@extundo.com>
64045
64046         * lib/memxor.c (memxor): Avoid casts and warnings.
64047
64048 2005-10-06  Simon Josefsson  <jas@extundo.com>
64049
64050         * lib/hmac-md5.c: New file.
64051
64052         * lib/hmac.h: New file.
64053
64054 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64055
64056         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
64057         promotes to int, not unsigned int, to catch the AIX 5.3
64058         compiler bug.
64059
64060 2005-10-05  Simon Josefsson  <jas@extundo.com>
64061
64062         * modules/memxor: New file.
64063
64064         * modules/iconv (Files): Move config.rpath to havelib, it is used
64065         there.
64066
64067         * modules/havelib (Files): Add config.rpath.
64068
64069 2005-10-05  Simon Josefsson  <jas@extundo.com>
64070
64071         * m4/memxor.m4: New file.
64072
64073 2005-10-05  Simon Josefsson  <jas@extundo.com>
64074
64075         * lib/memxor.c (memxor): Fix compiler error.
64076
64077         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
64078         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
64079
64080         * lib/memxor.h, lib/memxor.c: New files.
64081
64082         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
64083         we assume all systems have it, suggested by Jim Meyering
64084         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
64085         any systems lack sys/socket.h; mingw32 is known to lack it, but we
64086         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
64087         same reasons.
64088
64089 2005-10-05  Simon Josefsson  <jas@extundo.com>
64090
64091         * config/srclist.txt: Add glibc bug 1423 for md5.h.
64092
64093 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64094
64095         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
64096         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
64097         needed, since the source code now assumes these .h files.
64098
64099 2005-10-05  Derek Price  <derek@ximbiot.com>
64100
64101         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
64102
64103 2005-10-05  Bruno Haible  <bruno@clisp.org>
64104
64105         * modules/stdint (License): Change to LGPL.
64106
64107 2005-10-04  Simon Josefsson  <jas@extundo.com>
64108
64109         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
64110         D. Baushke" <mdb@gnu.org>.
64111
64112 2005-10-04  Bruno Haible  <bruno@clisp.org>
64113
64114         * lib/verify.h (verify_true): Provide alternative definition for C++.
64115
64116 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64117
64118         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
64119         (SSIZE_MAX): New macro, if not already defined.
64120         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
64121         than 2 GiB.
64122
64123 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64124
64125         Sync from coreutils.
64126         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
64127         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
64128         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
64129         ULLONG_MAX doesn't work with 2.7.2.1.
64130
64131 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64132
64133         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
64134         From Ben Pfaff.
64135
64136         * modules/exclude (Depends-on): Depend on verify.
64137         * modules/strtoimax (Depends-on): Likewise.
64138         * modules/utimecmp (Depends-on): Likewise.
64139
64140 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64141
64142         * lib/exclude.c: Include verify.h.
64143         (verify): Remove.  All callers changed to use verify.h's version.
64144         * lib/strtoimax.c: Likewise.
64145         * lib/utimecmp.c: Likewis.e
64146
64147         Sync from coreutils.
64148         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
64149         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
64150         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
64151         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
64152         bother returning ENOSYS if settimeofday or stime fails; just let
64153         them return whatever errno they want to return.
64154         * lib/utimens.c: Include unistd.h, for dup2.
64155         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
64156         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
64157
64158 2005-10-02  Jim Meyering  <jim@meyering.net>
64159
64160         Sync from coreutils.
64161         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
64162         from glibc-2.2.5 that fails for read-only files.
64163
64164 2005-10-02  Jim Meyering  <jim@meyering.net>
64165
64166         Sync from coreutils.
64167         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
64168         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
64169         `#if HAVE_CONFIG_H'.
64170         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
64171         Remove AT_FDCWD test.
64172         Do not consume the fd unless successful.
64173         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
64174         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
64175         block, so that we don't even try to compile it if settimeofday is
64176         available.  This works around a compilation failure on OSF1 V5.1,
64177         due to stime requiring a `long int*' while tv_sec is `int'.
64178
64179 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
64180
64181         Sync from coreutils.
64182         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
64183         against `yes', rather than just testing for nonempty.
64184
64185 2005-10-01  Simon Josefsson  <jas@extundo.com>
64186
64187         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
64188         and Darwin.
64189
64190         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
64191         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
64192         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
64193         freeaddrinfo and gai_strerror are declared by the POSIX headers.
64194         Check if struct addrinfo is declared.
64195
64196 2005-10-01  Simon Josefsson  <jas@extundo.com>
64197
64198         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
64199         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
64200         AI_* and EAI_* definitions.  Protect function declarations.
64201
64202 2005-10-01  Jim Meyering  <jim@meyering.net>
64203
64204         Sync from coreutils.
64205
64206         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
64207         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
64208         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
64209         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64210         in the inet and nsl libraries.  Required on Solaris 5.7.
64211
64212 2005-10-01  Jim Meyering  <jim@meyering.net>
64213
64214         Sync from coreutils.
64215         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64216         in the inet and nsl libraries.  Required on Solaris 5.7.
64217
64218 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
64219
64220         * lib/getdelim.c (getdelim): Remove unused variables.
64221
64222 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64223
64224         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
64225         so that the code works even with ancient cpp.  Portability problem
64226         with GCC 2.7.2.1 reported by Thomas M.Ott.
64227
64228 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64229
64230         * modules/regex (Depends-on): Add strcase.
64231
64232         * modules/gethostname (Licence): Change from GPL to LGPL, since
64233         gethostname.c is a trivial implementation of a standard library
64234         function.
64235         * modules/poll (License): Change from GPL to LGPL, since it's
64236         derived from LGPL code.
64237
64238 2005-09-27  Jim Meyering  <jim@meyering.net>
64239
64240         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
64241         HAVE_CONFIG_H.
64242
64243         * lib/intprops.h (signed_type_or_expr__): Define.
64244         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
64245         for unsigned types.
64246
64247 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64248
64249         * lib/verify.h (verify_expr): Remove, replacing with:
64250         (verify_true): New macro that returns true instead of void.
64251         (verify_type__): Remove.
64252         (verify): Use verify_true rather than verify_type__.
64253
64254 2005-09-26  Bruno Haible  <bruno@clisp.org>
64255
64256         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
64257         is necessary.
64258         (lib_SOURCES): Remove mbchar.c.
64259         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
64260         (Files): Add m4/mbrtowc.m4.
64261         * modules/mbiter: Likewise.
64262         * modules/mbuiter: Likewise.
64263
64264 2005-09-26  Bruno Haible  <bruno@clisp.org>
64265
64266         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
64267         compile mbchar.c if they are not both present.
64268         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
64269         * m4/mbiter.m4 (gl_MBITER): Likewise.
64270         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
64271         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
64272         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
64273
64274 2005-09-25  Jim Meyering  <jim@meyering.net>
64275
64276         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
64277         also uses socklen_t.
64278
64279 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
64280
64281         * lib/utimens.c (ENOSYS): Define if not already defined.
64282         (futimens): Support having a null PATH if the file descriptor
64283         is nonnegative.
64284
64285         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
64286         Remove.
64287         (__attribute): Define to empty unless GCC 3.1 or later.
64288         This works around a core dump on OpenBSD 3.4, which has GCC
64289         2.95.3, which dumps core when given __attribute__(()).  It also
64290         simplifies other tests, since we really don't want to bother with
64291         worrying about which ancient version of GCC supported what.
64292         Original problem reported by Yoann Vandoorselaere, with part of
64293         the fix suggested by Derek Price.
64294
64295 2005-09-24  Jim Meyering  <jim@meyering.net>
64296
64297         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
64298         so we can once again use a positive bitfield width of 1 -- now we
64299         don't have to explain why we were using a bitfield width of 2.
64300
64301 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64302
64303         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
64304         and similarly for the other external symbols.  Problem reported
64305         by James Gallager.
64306
64307         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
64308         bug reported by Jim Meyering.
64309
64310         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
64311         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
64312         not needed, since socklen is a prerequisite module.
64313
64314 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64315
64316         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
64317         Problem reported by Eric Blake.
64318         (getaddrinfo): Initialize se so that it's not garbage.
64319         Redo internal storage allocation so that it doesn't make unportable
64320         assumptions about alignment.
64321         Fix a memory leak.
64322
64323         * lib/utimens.c (futimens): Use futimesat if available.
64324         Prefer it to futimes since it doesn't have the futimes bug.
64325
64326         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
64327         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
64328         Instead, declare a function that returns a pointer to an array,
64329         and use verify_type__ to declare the size of the array.
64330         Problem and germ of a solution reported by Bruno Haible.
64331         (verify_type__): Use 2, not 1, for bitfield size, to avoid
64332         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
64333
64334 2005-09-23  Jim Meyering  <jim@meyering.net>
64335
64336         Sync from coreutils.
64337         Correct build failure (socklen_t not defined) on at least
64338         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
64339         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
64340
64341 2005-09-23  Jim Meyering  <jim@meyering.net>
64342
64343         * modules/getaddrinfo (Depends-on): Add socklen.
64344
64345 2005-09-23  Bruno Haible  <bruno@clisp.org>
64346
64347         * tests/test-verify.c: New file.
64348
64349 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64350
64351         Sync from coreutils.
64352
64353         * modules/argmatch (Depends-on): Add verify.
64354         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
64355         unistd-safer.
64356         * modules/save-cwd (Depends-on): Likewise.
64357
64358         * modules/openat (Files): Add lib/openat-die.c.
64359         (Depends-on): Remove error, exitfail.
64360         Add dirname.
64361
64362         * modules/verify: New file.
64363         * MODULES.html.sh (Diagnostics <assert.h>): New section,
64364         with "verify" module.
64365
64366 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64367
64368         Sync from coreutils.
64369
64370         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
64371         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
64372         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
64373         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
64374         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
64375         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
64376         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
64377         Don't bother checking for string.h, stdlib.h, unistd.h.
64378         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
64379         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
64380         module's job.
64381         * m4/jm-macros.m4 (gl_MACROS): Likewise.
64382         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
64383
64384         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
64385         (gl_GETDATE): Use it.
64386
64387         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
64388
64389 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64390
64391         Sync from coreutils.
64392
64393         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
64394         stat-time.h.
64395         * lib/argmatch.h: Include verify.h
64396         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
64397         (ARGMATCH_ASSERT): Remove; unused.
64398         * lib/canonicalize.c: Assume STDC_HEADERS.
64399         * lib/exclude.c: Include "strcase.h".
64400         * lib/regex_internal.h [!defined _LIBC]: Likewise.
64401         * lib/getusershell.c: Include stdio--.h rather than stdio.h
64402         and stdio-safer.h.
64403         (getusershell): Call fopen, not fopen_safer.
64404         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
64405         Do not include unistd-safer.h.
64406         (save_cwd): Don't call fd_safer; no longer needed
64407         now that we include fcntl--.h.
64408
64409         * lib/getdate.y (relative_time): New type.
64410         (RELATIVE_TIME_0): New constant.
64411         (parser_control): Use relative_time instead of doing it ourselves.
64412         (%union): Add new relative_time rel member.
64413         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
64414         Now typeless.
64415         (relunit, relunit_snumber): Now of type rel.
64416         (zone, rel, relunit, get_date): Adjust to above changes.
64417
64418         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
64419         Do not include unistd-safer.h.
64420         (getloadavg): Don't call fd_safer; no longer needed
64421         now that we include fcntl--.h.
64422
64423         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
64424         (make_dir_parents): Treat ENOSYS like EEXIST.
64425
64426         Improve quality of diagnostics on restore_cwd failure.
64427         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
64428         (make_dir_parents): Last arg is now int * (for errno), not bool *.
64429         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
64430         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
64431         each time through the loop.  Do not diagnose restore_cwd failure;
64432         that is the caller's job (and perhaps the caller does not care).
64433
64434         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
64435         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
64436         If the file already exists but is not a directory, don't bother
64437         to try to make its parents.
64438         Close potential file descriptor leak if we can't chdir("/") (!).
64439         Don't always return true if chdir($PWD) fails; return true only
64440         if the requested action was done successfully (except for the
64441         chdir($PWD)).
64442         Don't log final directory unless we actually made it.
64443         Refactor to avoid duplicate code to fix up permissions.
64444         Don't attempt to fix up parent permissions if chdir($PWD) fails.
64445
64446         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
64447         to make it a bit faster and (I hope) clearer.
64448         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
64449         Fix bug in formats like %2N.
64450
64451         * lib/verify.h: New file.
64452
64453 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64454
64455         Sync from coreutils.
64456         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
64457
64458 2005-09-22  Jim Meyering  <jim@meyering.net>
64459
64460         Sync from coreutils.
64461
64462         * m4/lstat.m4 (gl_FUNC_LSTAT):
64463         Use AC_LIBSOURCES to require lstat.c and lstat.h.
64464         Remove obsolete comment.
64465         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
64466         * m4/xstrtod.m4: Likewise.
64467
64468         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
64469
64470 2005-09-22  Jim Meyering  <jim@meyering.net>
64471
64472         Sync from coreutils.
64473
64474         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
64475
64476         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
64477         the .tm_year member, since otherwise gcc-4.0 would now warn about
64478         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
64479
64480         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
64481         order to avoid an unsuppressible warning from gcc on 64-bit systems.
64482
64483         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
64484         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
64485         when run in a time zone for which daylight savings time is in effect
64486         for the starting date.
64487
64488         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
64489         stop us from restricting permissions of just-created absolute-named
64490         directories.
64491         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
64492         to restore initial working directory.
64493         * lib/mkdir-p.c (make_dir_parents): New parameter:
64494         different_working_dir, to tell caller if/when we change the working
64495         directory and are unable to return to the initial one.
64496         * lib/mkdir-p.h (make_dir_parents): Update prototype.
64497         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
64498         `return false'.  This fixes a bug introduced on 2004-07-30.
64499
64500         * lib/openat.c (fdopendir): Be sure to close the supplied
64501         file descriptor before returning.  This makes our replacement
64502         implementation a little closer to Solaris's, where fdopendir
64503         ties the file descriptor to the returned DIR* pointer.
64504         * lib/openat.c (unlinkat): New function.
64505         * lib/openat.h (unlinkat): Add prototype.
64506         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
64507         (openat_restore_fail): Rename from openat_restore_die.
64508         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
64509
64510         Provide an alternative to exiting immediately upon save_cwd or
64511         restore_cwd failure.  Now, an application can arrange e.g.,
64512         to perform a longjump in that case.
64513         * lib/openat.c: Include dirname.h.
64514         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
64515         (rpl_openat, fdopendir, fstatat): Call openat_save_die
64516         and openat_restore_die rather than calling error directly.
64517         Don't include "error.h" or "exitfail.h"; they're no longer needed.
64518
64519         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
64520         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
64521         define.
64522
64523         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
64524         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
64525                             int utc, int nanoseconds);
64526         Background:
64527         date should not have to allocate a megabyte of virtual memory to
64528         handle a format argument like +%1048575T.  When implemented with
64529         strftime, it must allocate such a buffer, use strftime to fill it
64530         in, print it, then free it.
64531         With fprintftime, it simply prints everything and exits.
64532         With no need for memory allocation, that's one fewer way to fail.
64533         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
64534         optional field width, not before, so we accept %9:z, not %:9z.
64535         (my_strftime): Be sure to use L_('x') for literals.
64536
64537         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
64538         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
64539         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
64540         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
64541         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
64542         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
64543         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
64544         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
64545         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
64546         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
64547         * lib/xgethostname.c, lib/xreadlink.c:
64548         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
64549
64550         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
64551         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
64552         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
64553         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64554         and don't include <sys/file.h>).
64555
64556 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
64557
64558         Sync from coreutils.
64559
64560         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
64561         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
64562         [!LDAV_DONE]: Avoid unused variable warning.
64563
64564 2005-09-21  Bruno Haible  <bruno@clisp.org>
64565
64566         * lib/unicodeio.h (unicode_to_mb): New declaration.
64567
64568 2005-09-20  Derek Price  <derek@ximbiot.com>
64569
64570         * lib/getaddrinfo.c: Don't include <netdb.h> included from
64571         getaddrinfo.h.
64572
64573 2005-09-20  Bruno Haible  <bruno@clisp.org>
64574
64575         * gnulib-tool: Remove trailing slashes from the values specified for
64576         --source-base, --m4-base, --tests-base, --aux-dir.
64577         Suggested by Simon Josefsson <jas@extundo.com>.
64578
64579 2005-09-20  Bruno Haible  <bruno@clisp.org>
64580
64581         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
64582         func_modules_to_filelist, func_import, func_create_testdir): Make all
64583         sorting results locale-independent, so that gnulib-cache.m4 doesn't
64584         change when gnulib-tool is invoked in a different locale.
64585
64586 2005-09-19  Simon Josefsson  <jas@extundo.com>
64587
64588         * m4/socklen.m4: Fix typo.
64589
64590 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64591
64592         Use a consistent style for including <config.h>.
64593         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
64594         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
64595         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
64596         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
64597         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
64598         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
64599         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
64600         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
64601         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
64602         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
64603         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
64604         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
64605         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
64606         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
64607         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
64608         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
64609         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
64610         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
64611         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
64612         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
64613         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
64614         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
64615         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
64616         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
64617         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
64618         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
64619         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
64620         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
64621         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
64622         lib/xstrtoumax.c, lib/yesno.c:
64623         Standardize inclusion of config.h.
64624         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
64625         lib/inttostr.h:  Removed inclusion of config.h from header files.
64626         * lib/inttostr.c:  Adjusted in-tree users.
64627         * lib/timespec.h: Remove superfluous warning to include config.h.
64628         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
64629         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
64630         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
64631         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
64632         config.h with HAVE_CONFIG_H.
64633
64634 2005-09-19  Jim Meyering  <jim@meyering.net>
64635
64636         * modules/pathmax (License): Change to LGPL.
64637
64638 2005-09-19  Derek Price  <derek@ximbiot.com>
64639
64640         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
64641
64642 2005-09-19  Bruno Haible  <bruno@clisp.org>
64643
64644         * gnulib-tool (import): Provide default for --tests-base.
64645
64646 2005-09-19  Bruno Haible  <bruno@clisp.org>
64647
64648         * doc/quote.texi: New file, extracted from gnulib.texi.
64649         * doc/ctime.texi: New file, extracted from gnulib.texi.
64650         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
64651         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
64652         * doc/gnulib.texi: Include them.
64653
64654 2005-09-18  Bruno Haible  <bruno@clisp.org>
64655
64656         Portability fix.
64657         * gnulib-tool (func_readlink): New function.
64658         (func_ln_if_changed): Use it.
64659
64660 2005-09-18  Bruno Haible  <bruno@clisp.org>
64661
64662         * gnulib-tool: Support --with-tests also with --import.
64663         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
64664         (func_import): Use variables $testsbase and $inctests. Emit a
64665         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
64666         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
64667         SUBDIRS += $testsdir.
64668         (func_create_testdir): Update.
64669
64670 2005-09-18  Bruno Haible  <bruno@clisp.org>
64671
64672         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
64673         instead of $dry_run.
64674         (func_cp_if_changed, func_mv_if_changed): Remove functions.
64675         (func_ln_if_changed): Don't handle dry-run here.
64676         (func_import): In dry-run mode, detect more precisely which actions
64677         would be performed, and don't use "...ing" verbs.
64678
64679 2005-09-18  Bruno Haible  <bruno@clisp.org>
64680
64681         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
64682         (func_import): Use join on two temporary files instead of three nested
64683         loops, in order to determine which files are new or old.
64684
64685 2005-09-18  Bruno Haible  <bruno@clisp.org>
64686
64687         * gnulib-tool (func_import): Comment out code that spits out the
64688         new files with --dry-run.
64689
64690 2005-09-18  Bruno Haible  <bruno@clisp.org>
64691
64692         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
64693
64694 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64695
64696         * lib/stat-time.h: New file.
64697         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
64698         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
64699         in a different way.
64700         (timespec_cmp): New function.
64701         * lib/utimecmp.c: Include stat-time.h.
64702         (SYSCALL_RESOLUTION): Depend on whether various struct stat
64703         members exist, not on the obsolescent ST_MTIM_NSEC.
64704         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
64705
64706 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64707
64708         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
64709
64710 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64711
64712         * MODULES.html.sh (File system functions): Add stat-time.
64713         * modules/stat-time: New file.
64714         * modules/timespec (Files): Remove m4/st_mtim.m4; this
64715         is now done in a different way, by the stat-time module.
64716         * modules/utimecmp (Depends-on): Add stat-time.
64717
64718 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64719
64720         * m4/st_mtim.m4: Remove.  Superseded by...
64721         * m4/stat-time.m4: New file.
64722         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
64723         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
64724
64725 2005-09-15  Derek Price  <derek@ximbiot.com>
64726
64727         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
64728
64729 2005-09-15  Derek Price  <derek@ximbiot.com>
64730
64731         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
64732         * lib/regex_internal.c: Ditto, using this...
64733         (__GNUC_PREREQ): ...new macro.
64734         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
64735         using...
64736         (__GNUC_PREREQ): ...this new macro.
64737
64738         * lib/strstr.h: Include string.h. Define strstr as a macro here.
64739
64740 2005-09-15  Derek Price  <derek@ximbiot.com>
64741             Paul Eggert  <eggert@cs.ucla.edu>
64742
64743         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
64744         changes, consolidating in...
64745         * lib/regex_internal.h: ...this file.
64746
64747 2005-09-13  Jim Meyering  <jim@meyering.net>
64748
64749         * lib/canon-host.c: Filter through gnu indent and reword comments
64750         slightly.
64751         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
64752
64753 2005-09-13  Derek Price  <derek@ximbiot.com>
64754
64755         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
64756         failure.
64757         Reported by Jim Meyering  <jim@meyering.net>.
64758
64759 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64760
64761         * lib/base64.c: Typo.
64762         (base64_encode): Put b64str in initialized data section.
64763
64764 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64765
64766         Merge glibc and coreutils changes into gnulib, plus a few
64767         extra fixes.
64768         * lib/md5.c: Use #error rather than a string.
64769         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
64770         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
64771         (__attribute__): Define to empty for non recent-GCC.
64772         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
64773         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
64774         Renamed from their non-__ counterparts, with new macros replacing
64775         them if not _LIBC.  Add __THROW attribute.
64776         (rol): Remove.
64777         (struct md5_ctx): Align buffer if using GCC.
64778         * lib/sha1.h (struct sha1_ctx): Likewise.
64779         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
64780         The old name was backwards.
64781         (NOTSWAP): Remove; not used.
64782         (rol): New macro, moved here from md5.h.
64783         (sha1_process_block): Remove a FIXME that doesn't make sense.
64784
64785 2005-09-12  Derek Price  <derek@ximbiot.com>
64786
64787         Return usable errors from canon-host.
64788         * lib/canon-host.h: New file.
64789         * lib/canon-host.c (canon_host): Wrap...
64790         (canon_host_r): ...this new function, which now relies exclusively on
64791         getaddrinfo.
64792         (ch_strerror): New function.
64793         (last_cherror): New global.
64794         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
64795         interface.
64796         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
64797         void *.
64798         (freeaddrinfo): Free ai->ai_canonname when set.
64799
64800 2005-09-12  Derek Price  <derek@ximbiot.com>
64801
64802         Make canon-host require getaddrinfo.
64803         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
64804         AC_LIBSOURCE canon-host.h.  Call...
64805         (gl_PREREQ_CANON_HOST): ...this new function, which requires
64806         gl_GETADDRINFO.
64807         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
64808
64809 2005-09-12  Derek Price  <derek@ximbiot.com>
64810
64811         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
64812         LGPL.
64813         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
64814
64815 2005-09-12  Derek Price  <derek@ximbiot.com>
64816
64817         * lib/gai_strerror.c: Include config.h when available.  Include
64818         getaddrinfo.h before other headers to test interface.
64819         Reported by Larry Jones <lawrence.jones@ugs.com>.
64820
64821 2005-09-12  Derek Price  <derek@ximbiot.com>
64822             Paul Eggert  <eggert@cs.ucla.edu>
64823
64824         * modules/glob (Files): Add glob-libc.h.
64825
64826 2005-09-12  Derek Price  <derek@ximbiot.com>
64827             Paul Eggert  <eggert@cs.ucla.edu>
64828
64829         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
64830         glob_.h, glob-libc.h.
64831         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
64832
64833 2005-09-12  Derek Price  <derek@ximbiot.com>
64834             Paul Eggert  <eggert@cs.ucla.edu>
64835
64836         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
64837         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
64838         protecting things that should be done only in gnulib contexts.
64839         * lib/glob_.h: New file, containing only the glob things needed for
64840         gnulib.
64841         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
64842         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
64843         (glob, globfree, glob_pattern_p): Now defined simply in terms of
64844         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
64845         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
64846         and to respect the namespace rules better.
64847
64848 2005-09-08  Simon Josefsson  <jas@extundo.com>
64849
64850         * modules/socklen: New file.
64851
64852 2005-09-08  Simon Josefsson  <jas@extundo.com>
64853
64854         * m4/socklen.m4: New file.
64855
64856 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64857
64858         * modules/utimens (Files): Add m4/utimbuf.m4, since
64859         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
64860         Reported by Sergey Poznyakoff.
64861
64862 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64863
64864         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
64865         definitions, since that's the preferred style in glibc.
64866         Fix a minor spacing issue, and update copyright notice to match
64867         glibc's.
64868
64869 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64870
64871         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
64872
64873 2005-09-06  Simon Josefsson  <jas@extundo.com>
64874
64875         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
64876         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
64877
64878 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64879
64880         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
64881         warning.
64882
64883 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64884
64885         * config/srclist.txt: Add glibc bug 1302.
64886
64887 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
64888
64889         Change bitset word type from unsigned int to unsigned long int,
64890         as this has better performance on typical 64-bit hosts.
64891         Port bitset code to hosts with unusual word sizes.
64892         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
64893         (build_collating_symbol):
64894         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
64895         argument is a bitset.  This is merely a style issue, but it makes
64896         it clearer that an entire array is expected.
64897         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
64898         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
64899         Port to the case where bitset_word is not the same as unsigned int.
64900         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64901         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
64902         Likewise.
64903         * lib/regexec.c (check_dst_limits_calc_pos_1,
64904         check_subexp_matching_top):
64905         (build_trtable, group_nodes_into_DFAstates):
64906         Likewise.
64907         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
64908         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
64909         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
64910         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
64911         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
64912         * lib/regcomp.c (optimize_subexps, lower_subexp):
64913         Work even if bitset_word has holes in its bitwise representation.
64914         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
64915         * lib/regexec.c (check_dst_limits_calc_pos_1,
64916         check_subexp_matching_top):
64917         Likewise.
64918         * lib/regex_internal.c (re_string_reconstruct):
64919         Don't assume UCHAR_MAX == 255.
64920         * lib/regex_internal.h (bitset_set_all): Likewise.
64921         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
64922         All uses changed.
64923         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
64924         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
64925         All uses changed.
64926         (BITSET_WORD_MAX): New macro.
64927         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
64928         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
64929         (bitset_empty, bitset_copy):
64930         Prefer sizeof (bitset) to multiplying it out ourselves.
64931         (bitset_not_merge): Remove; unused.
64932         (bitset_contain): Return bool, not unsigned int with one bit on.
64933         All callers changed.
64934         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
64935         alignment than re_node_set; do this by defining a new internal
64936         type struct dests_alloc and using it to allocate memory.
64937
64938 2005-09-05  Bruno Haible  <bruno@clisp.org>
64939
64940         * gnulib-tool (func_import): Fix comparison in handling of symbolic
64941         links.
64942
64943 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
64944
64945         * modules/size_max (Makefile.am): Add size_max.h
64946
64947 2005-09-04  Derek Price  <derek@ximbiot.com>
64948
64949         * gnulib-tool (func_import): Fix reversed $symbolic logic.
64950
64951 2005-09-03  Simon Josefsson  <jas@extundo.com>
64952
64953         * gnulib-tool: Fix typo.
64954
64955 2005-09-03  Simon Josefsson  <jas@extundo.com>
64956
64957         * config/srclist.txt: Add glibc bug 1293.
64958
64959 2005-09-03  Derek Price  <derek@ximbiot.com>
64960
64961         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
64962         From Larry Jones <lawrence.jones@ugs.com>.
64963
64964 2005-09-02  Simon Josefsson  <jas@extundo.com>
64965
64966         * modules/socklen: New file.
64967
64968 2005-09-02  Simon Josefsson  <jas@extundo.com>
64969
64970         * modules/havelib: New module.
64971
64972         * modules/gettext, modules/iconv, modules/lock, modules/readline:
64973         Use havelib.
64974
64975 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64976
64977         Check for arithmetic overflow when calculating sizes, to prevent
64978         some buffer-overflow issues.  These patches are conservative, in the
64979         sense that when I couldn't determine whether an overflow was possible,
64980         I inserted a run-time check.
64981         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
64982         macros.
64983         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
64984         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
64985         (re_xnrealloc, re_x2nrealloc): New inline functions.
64986         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
64987         parse_bracket_exp):
64988         (build_equiv_class, build_charclass): Check for arithmetic overflow
64989         in size expression calculations.
64990         * lib/regex_internal.c (re_string_realloc_buffers):
64991         (build_wcs_upper_buffer, re_node_set_add_intersect):
64992         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
64993         (re_dfa_add_node, register_state): Likewise.
64994         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
64995         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
64996         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
64997         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
64998
64999 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65000
65001         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65002         m4/ulonglong.m4.  Problem reported by Martin Lambers.
65003
65004 2005-09-02  Bruno Haible  <bruno@clisp.org>
65005
65006         Support for lib vs. lib64 distinction on biarch platforms.
65007         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
65008         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
65009         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
65010
65011 2005-09-02  Bruno Haible  <bruno@clisp.org>
65012
65013         * gnulib-tool (import): In the other first-use case, provide defaults
65014         as well.
65015
65016 2005-09-02  Bruno Haible  <bruno@clisp.org>
65017
65018         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
65019         patches not yet found in the latest gettext release.
65020
65021 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65022
65023         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
65024         to avoid a collision with bits/local_lim.h in glibc.
65025         All uses changed.  Problem reported by Dmitry V. Levin in
65026         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
65027
65028         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
65029         bugs in int versus size_t comparisons.
65030         (re_string_context_at): Fix bug where the code assumed that
65031         Idx is signed.
65032
65033         Use bool where appropriate.
65034         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
65035         All callers changed.
65036         (calc_eclosure_iter): Likewise, for ROOT arg.
65037         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
65038         (build_charclass_op): Likewise, for NON_MATCH arg.
65039         * lib/regex_internal.c (re_string_allocate, re_string_construct):
65040         (re_string_construct_common): Likewise, for ICASE arg.
65041         * lib/regexec.c (re_search_2_stub, re_search_stub):
65042         Likewise, for RET_LEN arg.
65043         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
65044         (set_regs): Likewise, for FL_BACKTRACK arg.
65045         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
65046         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
65047         (calc_eclosure_iter, parse_bracket_exp):
65048         Use bool for internal variables that are booleans.
65049         * lib/regexec.c (re_search_internal, check_matching,
65050         proceed_next_node):
65051         (set_regs, build_sifted_states, sift_states_bkref):
65052         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
65053         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65054         (find_collation_sequence_value):
65055         Likewise.
65056         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
65057         (re_node_set_compare):
65058         Return bool, not int. All callers changed.
65059         * lib/regexec.c (check_halt_node_context, check_dst_limits):
65060         (build_trtable, check_node_accept): Likewise.
65061         * lib/regex_internal.h: Include stdbool.h.
65062
65063         Fix bugs uncovered when converting to bool.
65064         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
65065         failure instead of charging ahead blindly.
65066         * lib/regex_internal.c (register_state): Likewise.
65067         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
65068         for freeing internal storage.
65069         (group_nodes_into_DFA_states): Use unsigned int, not int, for
65070         bitset pieces used as boolean, to avoid undefined behavior
65071         on hosts that do int overflow checking.
65072
65073 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65074
65075         * config/srclist.txt: Add glibc bugs 1285-1287.
65076
65077 2005-09-01  Jim Meyering  <jim@meyering.net>
65078
65079         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
65080         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
65081         Require gl_STAT_MACROS, too.
65082
65083 2005-09-01  Bruno Haible  <bruno@clisp.org>
65084
65085         * gnulib-tool (import): In the first-use case, provide defaults.
65086
65087 2005-09-01  Bruno Haible  <bruno@clisp.org>
65088
65089         * gnulib-tool (func_import): Remove the .tmp files.
65090
65091 2005-09-01  Bruno Haible  <bruno@clisp.org>
65092
65093         * gnulib-tool (func_import): Fix handling of symbolic links.
65094
65095 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65096
65097         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
65098         old glibc regex code mishandles strings longer than 2**31 bytes.
65099         This patch fixes this when the regex code is used in gnulib
65100         (i.e., outside glibc).
65101
65102         This patch should not affect the use of the regex code inside
65103         glibc.  No doubt this problem also needs to be handled for glibc
65104         as well, but the result will be an incompatible change to the
65105         glibc ABI, and the old ABI will have to be supported too.  That
65106         can be the the subject for another patch.
65107
65108         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
65109         governing whether the rest of this patch is active.  By default,
65110         the macro is disabled and the patch has no effect.
65111         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
65112         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
65113         (struct re_pattern_buffer, re_search, re_search_2, re_match):
65114         (re_match_2, re_set_registers): Use the new types.
65115         * lib/regex_internal.h (Idx, re_hashval_t): New types.
65116         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
65117         New macros.
65118         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
65119         (re_string_context_at, bin_tree_t, re_dfastate_t):
65120         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
65121         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
65122         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
65123         (re_string_char_size_at, re_string_wchar_at):
65124         (re_string_elem_size_at):
65125         Use the new types and macros to port to 64-bit hosts.
65126         Use unsigned types for internal values, so that the code
65127         mostly works even for arrays larger than SSIZE_MAX.
65128         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
65129         (search_duplicated_node, calc_eclosure_iter, fetch_number):
65130         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
65131         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
65132         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
65133         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
65134         (calc_inveclosure, parse_dup_op, build_range_exp):
65135         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
65136         (fetch_number, create_token_tree, mark_opt_subexp):
65137         Likewise.
65138         * lib/regex_internal.c (re_string_construct_common,
65139         create_ci_newstate):
65140         (create_cd_newstate, re_string_allocate, re_string_construct):
65141         (re_string_realloc_buffers, build_wcs_upper_buffer):
65142         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65143         (re_string_reconstruct, re_string_peek_byte_case):
65144         (re_string_fetch_byte_case, re_string_context_at):
65145         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65146         (re_node_set_init_copy, re_node_set_add_intersect):
65147         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65148         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65149         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65150         (re_acquire_state, re_acquire_state_context, register_state):
65151         Likewise.
65152         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
65153         search_cur_bkref_entry):
65154         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
65155         (re_search_internal, re_search_2_stub, re_search_stub)
65156         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
65157         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
65158         (update_cur_sifted_state, check_dst_limits):
65159         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65160         (check_subexp_limits, sift_states_bkref, merge_state_array):
65161         (check_subexp_matching_top, get_subexp, get_subexp_sub):
65162         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
65163         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65164         (expand_bkref_cache, check_node_accept_bytes):
65165         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
65166         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
65167         (acquire_init_state_context, check_halt_node_context):
65168         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
65169         (sift_states_backward, clean_state_log_if_needed):
65170         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
65171         (find_recover_state, transit_state_sb, transit_state_mb):
65172         (transit_state_bkref, build_trtable, match_ctx_clean):
65173         Likewise.
65174         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
65175         to work around an assumption that REG_MISSING is negative.
65176
65177         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
65178         (seek_collating_symbol_entry) [defined _LIBC]:
65179         (lookup_collation_sequence_value) [defined _LIBC]:
65180         (build_range_exp, build_collating_symbol) [defined _LIBC]:
65181         Use prototypes rather than old-style function definitions.
65182         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
65183         (transit_state_sb) [0]:
65184         (find_collation_sequence_value) [defined _LIBC]: Likewise.
65185
65186         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
65187         rm_eo.
65188
65189         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
65190         (optimize_subexps, lower_subexp):
65191         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
65192         since the signed shift might overflow.  Use 1u<<31 instead.
65193         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65194         Likewise.
65195         * lib/regexec.c (check_dst_limits_calc_pos_1,
65196         check_subexp_matching_top): Likewise.
65197
65198         * lib/regcomp.c (optimize_subexps, lower_subexp):
65199         Use CHAR_BIT rather than 8, for clarity.
65200         * lib/regexec.c (check_dst_limits_calc_pos_1):
65201         (check_subexp_matching_top): Likewise.
65202         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
65203         have to worry about portability issues when shifting it left.
65204         Remove no-longer-needed test for table_size > 0.
65205         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
65206         in a word, as the resulting behavior is undefined.
65207         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
65208         in one case, a <= should have been an <, and in another case the
65209         whole test was missing.
65210         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
65211         the standard name CHAR_BIT.
65212         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
65213         this is not true on one's complement and signed-magnitude hosts.
65214
65215         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
65216         next_last_offset.
65217         (struct re_dfa_t): Remove unused member states_alloc.
65218         * lib/regcomp.c (init_dfa): Don't initialize unused members.
65219
65220 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65221
65222         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
65223         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
65224         and large-file glibc and in 32-bit large-file Solaris.
65225
65226 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65227
65228         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
65229         lengths fit in regoff_t; this isn't true if regoff_t is the same
65230         width as size_t.
65231         * lib/regex.c (re_search_internal): 5th arg is LAST_START
65232         (= START + RANGE) instead of RANGE.  This avoids overflow
65233         problems when regoff_t is the same width as size_t.
65234         All callers changed.
65235         (re_search_2_stub): Check for overflow when adding the
65236         sizes of the two strings.
65237         (re_search_stub): Check for overflow when adding START
65238         to RANGE; if it occurs, substitute the extreme value.
65239
65240 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65241
65242         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
65243
65244 2005-08-31  Jim Meyering  <jim@meyering.net>
65245
65246         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
65247         a pointer-to-const.
65248         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
65249         (register_state): Likewise.
65250         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
65251         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65252         (group_nodes_into_DFAstates): Likewise.
65253
65254 2005-08-31  Jim Meyering  <jim@meyering.net>
65255
65256         * check-module: Add a FIXME comment.
65257
65258 2005-08-31  Eric Blake  <ebb9@byu.net>
65259
65260         * modules/unistd-safer (Files): Add unistd--.h.
65261         * modules/stdio-safer (Files): Add stdio--.h.
65262
65263 2005-08-31  Derek Price  <derek@ximbiot.com>
65264
65265         * lib/getdelim.c (getdelim): Return EOF on EOF.
65266         Reported by Larry Jones <lawrence.jones@ugs.com>.
65267
65268 2005-08-31  Bruno Haible  <bruno@clisp.org>
65269
65270         Avoid unnecessary diffs in the generated lib/Makefile.am.
65271         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
65272         the generated files.
65273         (func_import): Don't set cmd.
65274
65275 2005-08-31  Bruno Haible  <bruno@clisp.org>
65276
65277         * lib/strstr.c: Include <stddef.h>, for NULL.
65278         * lib/strcasestr.c: Likewise.
65279         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65280
65281 2005-08-31  Bruno Haible  <bruno@clisp.org>
65282
65283         * gnulib-tool: New option --macro-prefix.
65284         (func_import): Use macro_prefix.
65285         (import): Handle option --macro-prefix.
65286
65287 2005-08-31  Bruno Haible  <bruno@clisp.org>
65288
65289         * gnulib-tool (import): Rename most ac_* variables to cached_*.
65290         Also use new variables cached_lgpl, cached_libtool.
65291
65292 2005-08-31  Bruno Haible  <bruno@clisp.org>
65293
65294         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
65295         always instantiating them.
65296
65297 2005-08-31  Bruno Haible  <bruno@clisp.org>
65298
65299         * gnulib-tool (func_import): Read the previous cached settings
65300         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
65301         earlier added by gnulib but are now dropped. Warn when a gnulib file
65302         overwrites a non-gnulib file.
65303
65304 2005-08-31  Bruno Haible  <bruno@clisp.org>
65305
65306         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
65307         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
65308         projects that don't keep autogenerated files in CVS. Put into
65309         actioncmd only the specified modules, not the transitive closure.
65310
65311 2005-08-31  Bruno Haible  <bruno@clisp.org>
65312
65313         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
65314         Create directories that shall be filled.
65315         (import): Don't look for gl_* macros in configure.ac. Recurse across
65316         all directories containing a gnulib-cache.m4 files, if meaningful.
65317
65318 2005-08-31  Bruno Haible  <bruno@clisp.org>
65319
65320         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
65321         (import): Set seen_libtool when we see gl_LIBTOOL.
65322
65323 2005-08-31  Bruno Haible  <bruno@clisp.org>
65324
65325         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
65326         declaration macro definitions from generated gnulib.m4.
65327
65328 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
65329
65330         * lib/iconvme.h: Add prototype for iconv_alloc.
65331
65332 2005-08-29  Simon Josefsson  <jas@extundo.com>
65333
65334         * lib/iconvme.c: Fix errno.
65335
65336 2005-08-29  Bruno Haible  <bruno@clisp.org>
65337
65338         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
65339         that it works when the directory contains spaces.
65340
65341 2005-08-29  Bruno Haible  <bruno@clisp.org>
65342
65343         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
65344
65345 2005-08-29  Bruno Haible  <bruno@clisp.org>
65346
65347         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
65348         Emit more advice.
65349
65350 2005-08-29  Bruno Haible  <bruno@clisp.org>
65351         and Stepan Kasal  <kasal@ucw.cz>
65352
65353         * check-module: If more parameters are given, check each of them
65354         separately; add more exceptions, as noted by Jim Meyering.
65355         (check_module): New procedure.
65356         (%exempt_header): Now contains all exceptions.
65357
65358 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
65359
65360         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
65361
65362 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
65363
65364         * lib/iconvme.c: Split iconv_string into iconv_alloc.
65365
65366 2005-08-28  Bruno Haible  <bruno@clisp.org>
65367
65368         * m4/gnulib-tool.m4: New file.
65369
65370 2005-08-27  Jim Meyering  <jim@meyering.net>
65371
65372         * modules/unistd-safer (Files): Add pipe-safer.c.
65373         * modules/fcntl-safer (Files): Add creat-safer.c.
65374
65375 2005-08-27  Jim Meyering  <jim@meyering.net>
65376
65377         * m4/stdlib-safer.m4: New file.  From coreutils.
65378         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
65379         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
65380         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
65381         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
65382         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
65383
65384 2005-08-27  Jim Meyering  <jim@meyering.net>
65385
65386         * lib/fopen-safer.c: Merge minor changes from coreutils.
65387         * lib/dup-safer.c: Likewise.
65388         * lib/fd-safer.c: Likewise.
65389
65390         Merge from coreutils.
65391         * lib/stdio--.h: New file.
65392         * lib/stdlib--.h: New file.
65393         * lib/mkstemp-safer.c: New file.
65394
65395         GNU tar needs these.
65396         * lib/pipe-safer.c: New file.
65397         * lib/creat-safer.c: New file.
65398         * lib/fcntl--.h (creat): Define to creat_safer.
65399         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
65400         * lib/unistd--.h (pipe): Define to pipe_safer.
65401         * lib/unistd-safer.h: Declare pipe_safer.
65402
65403 2005-08-26  Simon Josefsson  <jas@extundo.com>
65404
65405         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
65406         Haible <bruno@clisp.org>.
65407
65408 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
65409
65410         * lib/regex_internal.h: Remove all references to
65411         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
65412         or better.
65413         (bitset_not, bitset_merge, bitset_not_merge):
65414         (bitset_mask, re_string_allocate, re_string_construct):
65415         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
65416         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
65417         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
65418         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
65419         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65420         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65421         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
65422         (re_acquire_state_context):
65423         Remove unnecessary forward decls.
65424         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
65425         Put __attribute at function definition,
65426         now that the function decl has been removed.
65427         * lib/regex_internal.c (re_string_peek_byte_case):
65428         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
65429         Likewise.
65430
65431 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
65432
65433         * m4/regex.m4: Add AC_PREREQ(2.50).
65434         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
65435
65436 2005-08-25  Simon Josefsson  <jas@extundo.com>
65437
65438         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
65439         __fsetlocking.
65440
65441 2005-08-25  Simon Josefsson  <jas@extundo.com>
65442
65443         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
65444         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
65445         GLIBC specific code.
65446
65447 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65448
65449         Make regex safe for g++.  This fixes one real bug (an "err"
65450         that should have been "*err").  g++ problem reported by
65451         Sam Steingold.
65452         * lib/regex_internal.h (re_calloc): New macro, consistent with
65453         re_malloc etc.  All callers of calloc changed to use re_calloc.
65454         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
65455         not int.  All callers changed.
65456         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
65457         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
65458         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
65459         (find_recover_state): Change "err" to "*err"; this fixes what
65460         appears to be a real bug.
65461         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
65462         versus int.
65463
65464 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65465
65466         * modules/regex (Depends-on): Add malloc, since the code
65467         assumes that !malloc(0) means failure.
65468
65469 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65470
65471         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
65472
65473         alloca modernization/simplification for regex.
65474         * lib/regex.c: Remove portability cruft for alloca.  This no longer
65475         needs to be at the start of the file, and can be moved into
65476         regex_internal.h and simplified.
65477         * lib/regex_internal.h: Include <alloca.h>.
65478         (__libc_use_alloca) [!defined _LIBC]: New macro.
65479         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
65480         now works outside glibc.
65481
65482 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65483
65484         * config/srclist.txt: Add glibc bugs 1241, 1245.
65485
65486 2005-08-25  Jim Meyering  <jim@meyering.net>
65487
65488         * lib/open-safer.c: Include <config.h>.
65489         Otherwise, we'd lose LARGEFILE support in any file using
65490         e.g. "fcntl--.h"
65491
65492 2005-08-25  Bruno Haible  <bruno@clisp.org>
65493
65494         * m4/minmax.m4: Require autoconf 2.52.
65495         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
65496         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
65497         alternatives of translit over the alphabet.
65498         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
65499
65500 2005-08-24  Simon Josefsson  <jas@extundo.com>
65501
65502         * tests/test-getpass.c: New file.
65503
65504 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65505
65506         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
65507         for GNU regex features.
65508
65509 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65510
65511         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
65512         * lib/regex.h (regerror): Likewise.
65513
65514         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
65515         requires this.  (The code never needed it.)
65516
65517         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
65518         All uses of recently-renamed identifiers changed to use the new,
65519         POSIX-compliant names.  The code will build and run just fine
65520         without these changes, but it's better to eat our own dog food
65521         and use the standard-conforming names.
65522
65523         * lib/regex.h: Fix a multitude of POSIX name space violations.
65524         These changes have an effect only for programs that define
65525         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
65526         do not change anything for programs compiled in the normal way.
65527         Also, there is no effect on the ABI.
65528
65529         (_REGEX_SOURCE): New macro.
65530         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
65531         defined and _GNU_SOURCE is not; this fixes a name space violation.
65532
65533         Rename the following macros to obey POSIX requirements.
65534         The old names are still visible as macros if _REGEX_SOURCE is defined.
65535         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
65536         RE_BACKSLASH_ESCAPE_IN_LISTS.
65537         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
65538         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
65539         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
65540         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
65541         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
65542         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
65543         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
65544         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
65545         (REG_INTERVALS): renamed from RE_INTERVALS.
65546         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
65547         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
65548         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
65549         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
65550         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
65551         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
65552         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
65553         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
65554         RE_UNMATCHED_RIGHT_PAREN_ORD.
65555         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
65556         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
65557         (REG_DEBUG): renamed from RE_DEBUG.
65558         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
65559         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
65560         unusual, since we can't clash with the POSIX REG_ICASE.
65561         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
65562         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
65563         (REG_NO_SUB): renamed from RE_NO_SUB.
65564         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
65565         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
65566         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
65567         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
65568         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
65569         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
65570         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
65571         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
65572         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
65573         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
65574         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
65575         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
65576         RE_SYNTAX_POSIX_MINIMAL_BASIC.
65577         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
65578         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
65579         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
65580         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
65581         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
65582         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
65583         (REG_FIXED): Renamed from REGS_FIXED.
65584         (REG_NREGS): Renamed from RE_NREGS.
65585
65586         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
65587         of other REG_* macros, since POSIX says the user is allowed to
65588         #undef these macros selectively.
65589
65590         (reg_errcode_t): Update comment stating what other tables need
65591         to be consistent.
65592
65593         Rename the following enum values to obey POSIX requirements.
65594         The old names are still visible as macros.
65595         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
65596         is not defined, since GNU is supposed to be a superset of POSIX as
65597         much as possible, and since we want reg_errcode_t to be a signed
65598         type for implementation consistency.
65599         (_REG_NOERROR): Renamed from REG_NOERROR.
65600         (_REG_NOMATCH): Renamed from REG_NOMATCH.
65601         (_REG_BADPAT): Renamed from REG_BADPAT.
65602         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
65603         (_REG_ECTYPE): Renamed from REG_ECTYPE.
65604         (_REG_EESCAPE): Renamed from REG_EESCAPE.
65605         (_REG_ESUBREG): Renamed from REG_ESUBREG.
65606         (_REG_EBRACK): Renamed from REG_EBRACK.
65607         (_REG_EPAREN): Renamed from REG_EPAREN.
65608         (_REG_EBRACE): Renamed from REG_EBRACE.
65609         (_REG_BADBR): Renamed from REG_BADBR.
65610         (_REG_ERANGE): Renamed from REG_ERANGE.
65611         (_REG_ESPACE): Renamed from REG_ESPACE.
65612         (_REG_BADRPT): Renamed from REG_BADRPT.
65613         (_REG_EEND): Renamed from REG_EEND.
65614         (_REG_ESIZE): Renamed from REG_ESIZE.
65615         (_REG_ERPAREN): Renamed from REG_ERPAREN.
65616         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
65617         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
65618         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
65619         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
65620
65621         (_REG_RE_NAME, _REG_RM_NAME): New macros.
65622         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
65623         changed.  But support the old name if the new one is not defined
65624         and if _REGEX_SOURCE.
65625
65626         Change the following member names in struct re_pattern_buffer.
65627         The old names are still supported if !_REGEX_SOURCE.
65628         The new names are always supported, regardless of _REGEX_SOURCE.
65629         (re_buffer): Renamed from buffer.
65630         (re_allocated): Renamed from allocated.
65631         (re_used): Renamed from used.
65632         (re_syntax): Renamed from syntax.
65633         (re_fastmap): Renamed from fastmap.
65634         (re_translate): Renamed from translate.
65635         (re_can_be_null): Renamed from can_be_null.
65636         (re_regs_allocated): Renamed from regs_allocated.
65637         (re_fastmap_accurate): Renamed from fastmap_accurate.
65638         (re_no_sub): Renamed from no_sub.
65639         (re_not_bol): Renamed from not_bol.
65640         (re_not_eol): Renamed from not_eol.
65641         (re_newline_anchor): Renamed from newline_anchor.
65642
65643         Change the following member names in struct re_registers.
65644         The old names are still supported if !_REGEX_SOURCE.
65645         The new names are always supported, regardless of _REGEX_SOURCE.
65646         (rm_num_regs): Renamed from num_regs.
65647         (rm_start): Renamed from start.
65648         (rm_end): Renamed from end.
65649
65650         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
65651         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
65652         Prepend __ to parameter names.
65653
65654         Undo yesterday's changes.
65655
65656 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65657
65658         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
65659         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
65660         lib/regex.c.
65661
65662 2005-08-24  Jim Meyering  <jim@meyering.net>
65663
65664         Sync from coreutils.
65665         * m4/fcntl-safer.m4: New file.
65666
65667         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
65668         and object files for this module.
65669
65670 2005-08-24  Jim Meyering  <jim@meyering.net>
65671
65672         Sync from coreutils.
65673         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
65674
65675 2005-08-24  Jim Meyering  <jim@meyering.net>
65676
65677         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
65678         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
65679
65680 2005-08-24  Jim Meyering  <jim@meyering.net>
65681
65682         * modules/fcntl-safer: New module.
65683         * modules/fts (Depends-on): Add fcntl-safer.
65684         * MODULES.html.sh (File descriptor based Input/Output):
65685         Add fcntl-safer.
65686
65687 2005-08-24  Bruno Haible  <bruno@clisp.org>
65688
65689         Support for unit test modules.
65690         * modules/README: Mention tests modules.
65691         * modules/TEMPLATE-TESTS: New file.
65692         * gnulib-tool: New options --extract-tests-module, --with-tests and
65693         --tests-base (unused for the moment).
65694         (testsbase, inctests): New variables.
65695         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
65696         (func_verify_module): Exclude TEMPLATE-TESTS.
65697         (func_verify_nontests_module, func_verify_tests_module): New functions.
65698         (func_get_dependencies): Add implicit dependency for tests modules.
65699         (func_get_tests_module): New function.
65700         (func_modules_transitive_closure): When --with-tests was specified,
65701         include the unit tests as well, unless explicitly avoided.
65702         (func_emit_lib_Makefile_am): Ignore the tests modules here.
65703         (func_emit_tests_Makefile_am): New function.
65704         (func_create_testdir): When --with-tests was specified, emit a
65705         tests/ directory.
65706         * MODULES.html.sh (Future developments): Update.
65707
65708 2005-08-24  Bruno Haible  <bruno@clisp.org>
65709
65710         * modules/tls-tests: New file.
65711         * tests/test-tls.c: New file, from GNU gettext.
65712
65713 2005-08-24  Bruno Haible  <bruno@clisp.org>
65714
65715         * modules/lock-tests: New file.
65716         * tests/test-lock.c: New file, from GNU gettext.
65717
65718 2005-08-24  Bruno Haible  <bruno@clisp.org>
65719
65720         * lib/lock.h: Add multiple inclusion guard.
65721         * lib/tls.h: Add multiple inclusion guard.
65722
65723 2005-08-24  Bruno Haible  <bruno@clisp.org>
65724
65725         * gnulib-tool: Add support for the --aux-dir option to
65726         --create-testdir, --create-megatestdir, --test, --megatest.
65727         (func_create_testdir, func_create_megatestdir): Optionally emit a
65728         AC_CONFIG_AUX_DIR directive.
65729         (create-testdir, create-megatestdir, test, megatest): Provide a
65730         default value for $auxdir.
65731
65732 2005-08-24  Bruno Haible  <bruno@clisp.org>
65733
65734         * gnulib-tool (import): Use compound statement instead of subshell
65735         where possible.
65736
65737 2005-08-24  Bruno Haible  <bruno@clisp.org>
65738
65739         * gnulib-tool (import): Change --aux-dir default to "build-aux".
65740
65741 2005-08-24  Bruno Haible  <bruno@clisp.org>
65742
65743         * gnulib-tool (func_version): Update.
65744
65745 2005-08-24  Bruno Haible  <bruno@clisp.org>
65746
65747         * gnulib-tool (func_import, func_create_testdir,
65748         func_create_megatestdir): Quote all autoconf macro arguments.
65749
65750 2005-08-24  Bruno Haible  <bruno@clisp.org>
65751
65752         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
65753         option --force, because --force causes the aclocal.m4 of each
65754         subdirectory to be newer than the corresponding config.h.in.
65755
65756 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65757
65758         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
65759         All contents moved to gl_REGEX.
65760         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
65761         assume that it does.
65762
65763 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65764
65765         * lib/regex.h (REG_NOSYS)
65766         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
65767         Define, since POSIX requires it as of 2001.
65768         (_REG_ENOSYS)
65769         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
65770         New private symbol, used to keep the enum signed in all cases.
65771         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
65772         Youngman in
65773         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
65774
65775         * lib/regex_internal.c (re_string_skip_chars, register_state):
65776         (calc_state_hash):
65777         Remove forward decls; no longer needed now that we use prototypes.
65778         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
65779         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
65780         (clean_state_log_if_needed): Likewise.
65781
65782 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65783
65784         * config/srclist.txt: Add glibc bugs 1231-1233.
65785
65786 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65787
65788         Fix problems reported by Sam Steingold in
65789         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
65790         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
65791         assumed that reg_errcode_t is a signed type, which is not
65792         necessarily true if _XOPEN_SOURCE is not defined.
65793         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
65794         since some compilers warn about it otherwise.
65795
65796 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65797
65798         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
65799         (init_word_char, create_initial_state, duplicate_node_closure):
65800         (fetch_token, peek_token_bracket, build_range_exp):
65801         (build_collating_symbol): Remove forward decls; no longer needed
65802         now that we use prototypes.
65803
65804         * lib/regcomp.c:
65805         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
65806         (re_compile_fastmap_iter, regcomp, regerror, regfree):
65807         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
65808         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
65809         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
65810         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
65811         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
65812         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
65813         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
65814         (build_range_exp, build_collating_symbol, parse_bracket_exp):
65815         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
65816         (build_charclass, build_charclass_op, fetch_number, create_tree):
65817         (create_token_tree, mark_opt_subexp, duplicate_tree):
65818         Use prototypes rather than old-style definitions.
65819
65820         * lib/regex_internal.c:
65821         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
65822         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
65823         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65824         (re_string_reconstruct, re_string_peek_byte_case):
65825         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
65826         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65827         (re_node_set_init_copy, re_node_set_add_intersect):
65828         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65829         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65830         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65831         (re_acquire_state, re_acquire_state_context, register_state):
65832         (create_ci_newstate, create_cd_newstate, free_state):
65833         Likewise.
65834         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
65835         re_search_2):
65836         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
65837         (re_search_internal, prune_impossible_nodes):
65838         (acquire_init_state_context, check_matching, static):
65839         (check_halt_node_context, check_halt_state_context, proceed_next_node):
65840         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
65841         (update_regs, sift_states_backward, build_sifted_states):
65842         (clean_state_log_if_needed, merge_state_array):
65843         (update_cur_sifted_state, add_epsilon_src_nodes):
65844         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
65845         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
65846         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
65847         (find_recover_state, check_subexp_matching_top, transit_state_mb):
65848         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
65849         (check_arrival, check_arrival_add_next_nodes):
65850         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65851         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65852         (check_node_accept_bytes, check_node_accept, extend_buffers):
65853         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
65854         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
65855         (sift_ctx_init):
65856         Likewise.
65857
65858         * lib/regex_internal.h:
65859         (re_string_allocate, re_string_construct, re_string_reconstruct):
65860         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
65861         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
65862         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
65863         (re_string_context_at, re_string_peek_byte_case):
65864         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
65865         is defined, since we now use prototypes always.
65866
65867         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
65868         C89 or better.  All uses removed.
65869
65870 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65871
65872         * config/srclist.txt: Add glibc bugs 1220-1227.
65873
65874 2005-08-20  Jim Meyering  <jim@meyering.net>
65875
65876         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
65877         of unused local, dfa.
65878
65879 2005-08-20  Bruno Haible  <bruno@clisp.org>
65880
65881         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
65882
65883 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65884
65885         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
65886         (re_node_set_insert_last, re_dfa_add_node):
65887         Rename local variables to avoid GCC shadowing warnings.
65888
65889 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65890
65891         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
65892         [defined lint]: Suppress bogus uninitialized-variable warnings.
65893
65894         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
65895         and let the caller return REG_ESPACE if out of space.  This
65896         removes an uninitialied-variable warning with GCC 4.0.1, and also
65897         avoids taking the address of a local variable.  All callers
65898         changed.
65899
65900 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65901
65902         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
65903         $LIBCSRC/posix/regexec.c.
65904         Add glibc bug 1217 for regcomp.c.
65905
65906 2005-08-19  Jim Meyering  <jim@meyering.net>
65907
65908         * lib/regexec.c (proceed_next_node): Redo local variables to
65909         avoid GCC shadowing warnings.
65910
65911 2005-08-18  Bruno Haible  <bruno@clisp.org>
65912
65913         * lib/strstr.c (strstr): Fix return value in multibyte case.
65914         * lib/strcasestr.c (strcasestr): Likewise.
65915
65916 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65917
65918         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
65919
65920 2005-08-17  Jim Meyering  <jim@meyering.net>
65921
65922         Make the %s format (seconds since the epoch) work for a negative
65923         number and when used with a zero-padded field width, e.g. %015s.
65924
65925         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
65926         label so that it precedes the code to set `digits'.  Otherwise,
65927         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
65928         print `00-22'.  Now, it prints `-0022', as it should.
65929
65930 2005-08-17  Bruno Haible  <bruno@clisp.org>
65931
65932         * modules/strstr (Files): Add m4/mbrtowc.m4.
65933         (Depends-on): Add mbuiter.
65934
65935 2005-08-17  Bruno Haible  <bruno@clisp.org>
65936
65937         * modules/strcasestr: New file.
65938         * MODULES.html.sh (String handling, based on ANSI C 89): Add
65939         strcasestr.
65940
65941 2005-08-17  Bruno Haible  <bruno@clisp.org>
65942
65943         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
65944
65945 2005-08-17  Bruno Haible  <bruno@clisp.org>
65946
65947         * modules/mbuiter: New file.
65948         * MODULES.html.sh (Extended multibyte and wide character utilities):
65949         Add mbuiter.
65950
65951 2005-08-17  Bruno Haible  <bruno@clisp.org>
65952
65953         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
65954         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
65955
65956 2005-08-17  Bruno Haible  <bruno@clisp.org>
65957
65958         * m4/strcasestr.m4: New file.
65959
65960 2005-08-17  Bruno Haible  <bruno@clisp.org>
65961
65962         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
65963         * lib/strstr.c: Completely rewritten, with multibyte locale support.
65964
65965 2005-08-17  Bruno Haible  <bruno@clisp.org>
65966
65967         * lib/strcasestr.h: New file.
65968         * lib/strcasestr.c: New file.
65969
65970 2005-08-17  Bruno Haible  <bruno@clisp.org>
65971
65972         * lib/strcasecmp.c: Use mbuiter.h.
65973
65974 2005-08-17  Bruno Haible  <bruno@clisp.org>
65975
65976         * lib/mbuiter.h: New file.
65977
65978 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65979
65980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
65981         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
65982         and gl_GETOPT are both invoked via different paths (as happens
65983         with GNU tar CVS because it uses both argp and getopt), the former
65984         wins.
65985
65986 2005-08-16  Bruno Haible  <bruno@clisp.org>
65987
65988         * modules/tls: New file.
65989         * MODULES.html.sh (Multithreading): Add tls.
65990
65991 2005-08-16  Bruno Haible  <bruno@clisp.org>
65992
65993         * modules/strnlen1: New file.
65994         * MODULES.html.sh (String handling): Add strnlen1.
65995
65996 2005-08-16  Bruno Haible  <bruno@clisp.org>
65997
65998         * modules/strcase (Files): Add m4/mbrtowc.m4.
65999         (Depends-on): Add strnlen1, mbchar.
66000
66001 2005-08-16  Bruno Haible  <bruno@clisp.org>
66002
66003         * modules/mbiter: New file.
66004         * MODULES.html.sh (Extended multibyte and wide character utilities):
66005         Add mbiter.
66006
66007 2005-08-16  Bruno Haible  <bruno@clisp.org>
66008
66009         * modules/mbfile: New file.
66010         * MODULES.html.sh (Extended multibyte and wide character utilities):
66011         Add mbfile.
66012
66013 2005-08-16  Bruno Haible  <bruno@clisp.org>
66014
66015         * modules/mbchar: New file.
66016         * MODULES.html.sh (Extended multibyte and wide character utilities):
66017         New section.
66018
66019 2005-08-16  Bruno Haible  <bruno@clisp.org>
66020
66021         * m4/tls.m4: New file, from GNU gettext.
66022
66023 2005-08-16  Bruno Haible  <bruno@clisp.org>
66024
66025         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
66026         always.
66027         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
66028
66029 2005-08-16  Bruno Haible  <bruno@clisp.org>
66030
66031         * m4/mbiter.m4: New file.
66032
66033 2005-08-16  Bruno Haible  <bruno@clisp.org>
66034
66035         * m4/mbfile.m4: New file.
66036
66037 2005-08-16  Bruno Haible  <bruno@clisp.org>
66038
66039         * m4/mbchar.m4: New file.
66040
66041 2005-08-16  Bruno Haible  <bruno@clisp.org>
66042
66043         * lib/tls.h: New file, from GNU gettext.
66044         * lib/tls.c: New file, from GNU gettext.
66045
66046 2005-08-16  Bruno Haible  <bruno@clisp.org>
66047
66048         * lib/strnlen1.h: New file.
66049         * lib/strnlen1.c: New file.
66050
66051 2005-08-16  Bruno Haible  <bruno@clisp.org>
66052
66053         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
66054         (mbi_init): Update.
66055         (mbi_avail, mbi_advance): Let the iteration end before the terminating
66056         NUL byte, not after it.
66057
66058 2005-08-16  Bruno Haible  <bruno@clisp.org>
66059
66060         * lib/strcase.h (strcasecmp): Add note in comments.
66061         * lib/strncasecmp.c: Use code from strcasecmp.c.
66062         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
66063         (strcasecmp): Work correctly in multibyte locales.
66064
66065 2005-08-16  Bruno Haible  <bruno@clisp.org>
66066
66067         * lib/mbiter.h: New file.
66068
66069 2005-08-16  Bruno Haible  <bruno@clisp.org>
66070
66071         * lib/mbfile.h: New file.
66072
66073 2005-08-16  Bruno Haible  <bruno@clisp.org>
66074
66075         * lib/mbchar.h: New file.
66076         * lib/mbchar.c: New file.
66077
66078 2005-08-16  Bruno Haible  <bruno@clisp.org>
66079
66080         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
66081         the valid ones. Makes the comparison operations transitive:
66082         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
66083         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
66084
66085 2005-08-15  Simon Josefsson  <jas@extundo.com>
66086
66087         * modules/ssize_t (License): Change to 'unlimited'.
66088
66089         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
66090
66091 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66092
66093         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
66094         Add comments for each pending glibc patch.
66095
66096 2005-08-15  Bruno Haible  <bruno@clisp.org>
66097
66098         * lib/regex.h (__restrict_arr): Don't define to __restrict if
66099         __cplusplus is defined.
66100
66101 2005-08-14  Jim Meyering  <jim@meyering.net>
66102
66103         Sync from coreutils.
66104
66105         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
66106         Use the hash-table-based cycle-detection code not just when
66107         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
66108         Reported by James Youngman in
66109         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
66110         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
66111         FTS_TIGHT_CYCLE_CHECK.
66112         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
66113         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
66114         once again.
66115         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
66116         * lib/fts.c (fd_safer): Remove decl.
66117         Include fcntl--.h rather than unistd-safer.h
66118         (fts_safe_changedir): Don't call fd_safer; no longer needed
66119         now that we include fcntl--.h.
66120
66121 2005-08-12  Simon Josefsson  <jas@extundo.com>
66122
66123         * modules/getndelim2: Use ssize_t module.
66124         * modules/getnline: Likewise.
66125         * modules/safe-read: Likewise.
66126         * modules/xreadlink: Likewise.
66127
66128         * modules/ssize_t: New file.
66129
66130 2005-08-12  Simon Josefsson  <jas@extundo.com>
66131
66132         * m4/readline.m4: Look for termcap, curses or ncurses if required.
66133
66134 2005-08-12  Simon Josefsson  <jas@extundo.com>
66135
66136         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66137         ssize_t.
66138
66139 2005-08-12  Simon Josefsson  <jas@extundo.com>
66140
66141         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
66142         readline, getdelim and check_version.
66143         (Support for systems lacking ISO C 99: Sizes of integer types):
66144         Add size_max.
66145
66146 2005-08-12  Bruno Haible  <bruno@clisp.org>
66147
66148         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
66149
66150 2005-08-11  Simon Josefsson  <jas@extundo.com>
66151
66152         * modules/readline: New file.
66153
66154         * modules/strnlen (Files): Add strnlen.h.
66155
66156 2005-08-11  Simon Josefsson  <jas@extundo.com>
66157
66158         * m4/readline.m4: New file.
66159
66160 2005-08-11  Simon Josefsson  <jas@extundo.com>
66161
66162         * lib/readline.h, readline.c: New file.
66163
66164 2005-08-11  Simon Josefsson  <jas@extundo.com>
66165
66166         * doc/gnulib.texi (Initial import, Finishing touches): Mention
66167         gl_AVOID.
66168
66169 2005-08-11  Bruno Haible  <bruno@clisp.org>
66170
66171         * lib/strnlen.h (strnlen): Change parameter name to match comment.
66172
66173 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
66174
66175         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
66176
66177 2005-08-10  Simon Josefsson  <jas@extundo.com>
66178
66179         * tests/test-iconvme.c: New file.
66180
66181 2005-08-10  Simon Josefsson  <jas@extundo.com>
66182
66183         * m4/strnlen.m4: New file.
66184
66185         * m4/strndup.m4: Don't check for strnlen declaration, done in
66186         strnlen.m4.
66187
66188 2005-08-10  Simon Josefsson  <jas@extundo.com>
66189
66190         * lib/strndup.c: Use strnlen.h.
66191
66192         * lib/strnlen.h: New file.
66193
66194 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66195
66196         * README: Typos.
66197
66198 2005-08-02  Simon Josefsson  <jas@extundo.com>
66199
66200         * modules/readline: New file.
66201
66202 2005-08-02  Simon Josefsson  <jas@extundo.com>
66203
66204         * modules/getdelim: New file.
66205
66206         * modules/getline: Rewrite, don't use getndelim2.
66207
66208 2005-08-02  Simon Josefsson  <jas@extundo.com>
66209
66210         * m4/getline.m4: Separate out getdelim stuff into separate module.
66211
66212         * m4/getdelim.m4: New file.
66213
66214 2005-08-02  Simon Josefsson  <jas@extundo.com>
66215
66216         * lib/getline.h, getline.c: Rewrite.
66217
66218         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
66219
66220 2005-07-31  Bruno Haible  <bruno@clisp.org>
66221
66222         * lib/lock.h (gl_lock_initializer): New macro.
66223         (gl_lock_define_initialized): Use it.
66224         (gl_rwlock_initializer): New macro.
66225         (gl_rwlock_define_initialized): Use it.
66226         (gl_recursive_lock_initializer): New macro.
66227         (gl_recursive_lock_define_initialized): Use it.
66228
66229 2005-07-30  Karl Berry  <karl@gnu.org>
66230
66231         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
66232         Report from Ben Pfaff, regarding getopt.
66233
66234 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
66235
66236         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
66237         normal way.
66238         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
66239         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
66240         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
66241         (gl_GETOPT): Use the new macros.  Most of the implementation
66242         is moved to the new macros.  This is for programs like Emacs
66243         that don't want all the functionality of gl_GETOPT.
66244
66245 2005-07-26  Bruno Haible  <bruno@clisp.org>
66246
66247         * m4/lock.m4: Update from GNU gettext.
66248
66249 2005-07-26  Bruno Haible  <bruno@clisp.org>
66250
66251         * lib/lock.h: Update from GNU gettext.
66252         * lib/lock.c: Update from GNU gettext.
66253
66254 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
66255
66256         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
66257         obsolescent AC_TRY_RUN.  Include the default includes files, for
66258         'exit'.
66259
66260 2005-07-24  Bruno Haible  <bruno@clisp.org>
66261
66262         * modules/visibility: New file.
66263         * MODULES.html.sh (Misc): Add visibility.
66264
66265 2005-07-24  Bruno Haible  <bruno@clisp.org>
66266
66267         * m4/visibility.m4: New file.
66268
66269 2005-07-24  Bruno Haible  <bruno@clisp.org>
66270
66271         * doc/visibility.texi: New file.
66272
66273 2005-07-22  Bruno Haible  <bruno@clisp.org>
66274
66275         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
66276         $(ALLOCA_H), redundant through BUILT_SOURCES.
66277         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
66278         redundant through BUILT_SOURCES.
66279         * modules/byteswap (Makefile.am): Remove explicit dependency on
66280         $(BYTESWAP_H), redundant through BUILT_SOURCES.
66281         * modules/fnmatch (Makefile.am): Remove explicit dependency on
66282         $(FNMATCH_H), redundant through BUILT_SOURCES.
66283         * modules/getopt (Makefile.am): Remove explicit dependency on
66284         $(GETOPT_H), redundant through BUILT_SOURCES.
66285         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
66286         redundant through BUILT_SOURCES.
66287         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
66288         redundant through BUILT_SOURCES.
66289         * modules/stdbool (Makefile.am): Remove explicit dependency on
66290         $(STDBOOL_H), redundant through BUILT_SOURCES.
66291         * modules/stdint (Makefile.am): Remove explicit dependency on
66292         $(STDINT_H), redundant through BUILT_SOURCES.
66293         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
66294         Remove explicit dependency on $(SYSEXITS_H).
66295         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
66296
66297 2005-07-18  Simon Josefsson  <jas@extundo.com>
66298
66299         * lib/check-version.c (check_version): Accept identical versions too.
66300
66301 2005-07-18  Bruno Haible  <bruno@clisp.org>
66302
66303         * modules/lock: New file.
66304         * MODULES.html.sh (Multithreading): New section.
66305
66306 2005-07-18  Bruno Haible  <bruno@clisp.org>
66307
66308         * m4/lock.m4: New file, from GNU gettext.
66309
66310 2005-07-18  Bruno Haible  <bruno@clisp.org>
66311
66312         * lib/lock.h: New file, from GNU gettext.
66313         * lib/lock.c: New file, from GNU gettext.
66314
66315 2005-07-18  Bruno Haible  <bruno@clisp.org>
66316
66317         * lib/lock.h (gl_once_t): New type.
66318         (gl_once_define, gl_once): New macros.
66319         * lib/lock.c (fresh_once): New variable.
66320         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
66321         functions.
66322
66323 2005-07-16  Simon Josefsson  <jas@extundo.com>
66324
66325         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
66326         workaround, suggested by Bruno.
66327
66328 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66329
66330         * modules/xalloc (Depends-on): Add xalloc-die.
66331         * modules/xvasprintf (Depends-on): Add xalloc-die.
66332
66333 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66334
66335         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
66336         with a minor change.
66337
66338 2005-07-15  Bruno Haible  <bruno@clisp.org>
66339
66340         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
66341         When using lib/poll.c, define poll as rpl_poll.
66342
66343 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
66344
66345         * modules/argp (Depends-on): Remove unlocked-io.
66346
66347 2005-07-14  Derek Price  <derek@ximbiot.com>
66348
66349         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
66350         for glob symlink bug.
66351
66352 2005-07-14  Bruno Haible  <bruno@clisp.org>
66353
66354         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
66355         Instead, test for *_unlocked function declarations directly.
66356
66357 2005-07-11  Simon Josefsson  <jas@extundo.com>
66358
66359         * modules/size_max: New file.
66360
66361         * modules/xsize: Depend on size_max module for size_max.m4.
66362
66363 2005-07-11  Simon Josefsson  <jas@extundo.com>
66364
66365         * lib/size_max.h: New file.
66366
66367 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
66368
66369         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
66370         copyright symbol and the year.
66371         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
66372         (version_etc_va): Use parameterized copyright notice.
66373         Reword to conform to the current GNU coding standards.
66374
66375 2005-07-11  Karl Berry  <karl@gnu.org>
66376
66377         * doc/gnulib.texi (Quoting): new node.
66378         (Initial import): more info, from Patrice.
66379
66380 2005-07-11  Bruno Haible  <bruno@clisp.org>
66381
66382         * gnulib-tool (func_usage): Document option --avoid.
66383         (Command line options): Handle --avoid.
66384         (func_acceptable): New function.
66385         (func_modules_transitive_closure): Use it.
66386
66387 2005-07-11  Bruno Haible  <bruno@clisp.org>
66388
66389         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
66390         Reported by Jim Meyering.
66391
66392 2005-07-10  Bruno Haible  <bruno@clisp.org>
66393
66394         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
66395         Needed when size_t is smaller than 'unsigned int'.
66396         Reported by Paul Eggert.
66397
66398 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66399
66400         * modules/argp (Depends-on): Add unlocked-io
66401
66402 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66403
66404         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
66405         block of defines.
66406
66407 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66408
66409         * config/srclist.txt: Comment out regcomp.c, since we have a porting
66410         fix now.
66411
66412 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
66413         and Paul Eggert  <eggert@cs.ucla.edu>
66414
66415         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
66416         in wint_t, not wchar_t.  Remove now-unnecessary cast.
66417
66418 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66419
66420         * modules/regex (Files): Add lib/regex_internal.c,
66421         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
66422         (Depends-on): Add extensions.
66423         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
66424
66425 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66426
66427         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
66428         pathconf.
66429         * m4/same.m4 (gl_SAME): Likewise.
66430         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
66431
66432         * m4/regex.m4: Adjust to new libc regex implementation.
66433         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
66434         all the .c and .h parts of (the new) regex.
66435         Quote the m4 stuff better.
66436         Check for RE_ICASE bug of old gnulib.
66437         Check for REG_STARTEND of recent libc.
66438         Rename local variables from jm_* to gl_*.
66439         Quote operand of "test -f".
66440         Say "recent enough" version of libc, not "version 2".
66441         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
66442         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
66443         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
66444         Remove check for btowc, isascii.
66445         Require AM_LANGINFO_CODESET.
66446
66447 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66448
66449         * lib/regex.c, regex.h: Sync from libc.
66450         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
66451         * lib/regexec.c:
66452         New files, synced from libc, except that regex_internal.h
66453         currently has a small porting fix.
66454
66455 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66456
66457         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
66458         regex_internal.c, regexec.c.
66459         Add regex_internal.h too, but as a comment, since the libc version
66460         is currently broken in gnulib mode.
66461
66462 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66463
66464         Support programs like Emacs that use gnulib but not gettext.
66465         * MODULES.html.sh (Internationalization functions): Add gettext-h.
66466         * modules/gettext-h: New file.
66467         * modules/gettext (Files): Remove lib/gettext.h.
66468         (Depends-on): Add gettext-h.
66469         (Makefile.am): Remove lib_SOURCES.
66470         * modules/argmatch, modules/c-stack, modules/closeout:
66471         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
66472         * modules/execute, modules/file-type, modules/getaddrinfo:
66473         * modules/getopt, modules/human, modules/javacomp:
66474         * modules/javaexec, modules/mkdir-p, modules/obstack:
66475         * modules/openat, modules/pagealign_alloc, modules/pipe:
66476         * modules/quotearg, modules/regex, modules/rpmatch:
66477         * modules/unicodeio, modules/userspec, modules/version-etc:
66478         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
66479         * modules/xsetenv:
66480         Depend on gettext-h, not gettext.
66481
66482 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66483
66484         * gnulib-tool (func_import): Add support for 'public domain' license.
66485         * modules/alloca, modules/atexit, modules/memmove:
66486         Now public domain, not GPL.
66487         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
66488         * modules/realloc, modules/strerror, modules/strtod:
66489         Now LGPL, not GPL.
66490
66491 2005-07-05  Bruno Haible  <bruno@clisp.org>
66492
66493         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
66494         autoconf CVS. Needed for mingw.
66495
66496 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66497
66498         Remove the dependency of the strftime module on the tzset module.
66499         * modules/strftime (Depends-on): Remove dependency on tzset.
66500
66501 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66502
66503         Remove the dependency of the strftime module on the tzset module.
66504         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
66505         gl_FUNC_TZSET_CLOBBER.
66506
66507 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66508
66509         Remove the dependency of the strftime module on the tzset module.
66510         * lib/strftime.c (my_strftime)
66511         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
66512         Copy the input structure, to work around some of the bug with
66513         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
66514         Solaris releases, you should also use the tzset module, but we won't
66515         require it as a dependency any more since we don't want LGPLed code
66516         to depend on GPLed code.
66517
66518 2005-07-02  Jim Meyering  <jim@meyering.net>
66519
66520         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
66521         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
66522         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
66523         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
66524
66525 2005-07-02  Jim Meyering  <jim@meyering.net>
66526
66527         * lib/backupfile.c (backup_args): Change a `0' to NULL.
66528
66529 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66530
66531         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
66532         declares only 'struct timespec;' (!).
66533
66534 2005-07-01  Jim Meyering  <jim@meyering.net>
66535
66536         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
66537         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
66538         * lib/save-cwd.c, tempname.c:
66539         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66540         and don't include <sys/file.h>).
66541
66542 2005-06-29  Jim Meyering  <jim@meyering.net>
66543
66544         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
66545         type name.  Use the variable name instead.
66546         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
66547         Likewise.
66548
66549 2005-06-28  Simon Josefsson  <jas@extundo.com>
66550
66551         * modules/check-version (Files): Add check-version.m4.
66552
66553 2005-06-28  Simon Josefsson  <jas@extundo.com>
66554
66555         * m4/check-version.m4: New file, suggested by Jim Meyering
66556         <jim@meyering.net>.
66557
66558 2005-06-28  Simon Josefsson  <jas@extundo.com>
66559
66560         * lib/check-version.h, lib/check-version.c: New files.
66561
66562 2005-06-28  Simon Josefsson  <jas@extundo.com>
66563
66564         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
66565         collision with global variable.  Better indentation.  Don't
66566         increment buffer pointer beyond buffer end.  Based on comments
66567         from Paul Eggert <eggert@cs.ucla.edu>.
66568
66569         * lib/base64.h: Indent.
66570
66571 2005-06-28  Simon Josefsson  <jas@extundo.com>
66572
66573         * doc/gnulib.texi (Library version handling): New section.
66574
66575 2005-06-28  Jim Meyering  <jim@meyering.net>
66576
66577         * check-module (find_included_lib_files): Hard-code another
66578         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
66579         but modules/fts-lgpl (correctly) does not list those files.
66580
66581         * modules/canonicalize (Files): Add lib/pathmax.h.
66582
66583 2005-06-25  Simon Josefsson  <jas@extundo.com>
66584
66585         * modules/check-version: New file.
66586
66587 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
66588
66589         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
66590         initializer of struct addrinfo, as an indication that we don't
66591         care how many members the structure has.
66592
66593 2005-06-24  Derek Price  <derek@ximbiot.com>
66594         and Bruno Haible  <bruno@clisp.org>
66595
66596         Remove stat module & update lstat.
66597         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
66598         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66599         * m4/stat.m4: Remove this file.
66600
66601 2005-06-24  Derek Price  <derek@ximbiot.com>
66602         and Bruno Haible  <bruno@clisp.org>
66603
66604         Remove stat module & update lstat.
66605         * lib/stat.c: Remove this file...
66606         (slash_aware_lstat): ...moving this content and its support...
66607         * lib/lstat.c (rpl_lstat): ...into here.
66608         * lib/lstat.h: New file.
66609
66610 2005-06-24  Derek Price  <derek@ximbiot.com>
66611         and Bruno Haible  <bruno@clisp.org>
66612
66613         Remove stat module & update lstat.
66614         * config/srclist.txt (libc sources): Remove stat.
66615
66616 2005-06-24  Derek Price  <derek@ximbiot.com>
66617         and Bruno Haible  <bruno@clisp.org>
66618
66619         Remove stat module & update lstat.
66620         * MODULES.html.sh (stat): Remove.
66621         * MODULES.html: Regenerated.
66622         * modules/lstat (Description): Correct function name.
66623         (Files): Add "lstat.h".
66624         (Depends-on): Remove stat, add xalloc, stat-macros.
66625         * modules/stat: Remove this file.
66626         (Include): Add "lstat.h", remove <sys/stat.h>.
66627
66628 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66629
66630         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
66631         (ranged_convert): Don't save conversion in a temporary struct.
66632         This causes a warning with GCC 4.0.0, and anyway in the typical
66633         case it's not worth the extra 100 bytes or so of code.
66634         (ranged_convert, __mktime_internal): When calling a function via a
66635         pointer P, use P () rather than (*P) (), as we now assume C89 or
66636         better.
66637
66638 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66639
66640         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
66641         "who -r" failed to give output.  Problem reported by Tim Waugh.
66642
66643         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
66644         (xcalloc): Use it to avoid needless tests.
66645         Problem reported by Jim Meyering.
66646
66647 2005-06-20  Derek Price  <derek@ximbiot.com>
66648
66649         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
66650         unnecessary for Autoconfs > 2.59c.
66651
66652 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66653
66654         * lib/argp.h (__option_is_short): Check upper limit of
66655         __key. Isprint() requires its argument to have the value
66656         of an unsigned char or EOF.
66657
66658 2005-06-16  Jim Meyering  <jim@meyering.net>
66659
66660         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
66661         when either N or S is zero.
66662
66663 2005-06-16  Derek Price  <derek@ximbiot.com>
66664
66665         * m4/bison.m4: Declare YACC & YFLAGS precious.
66666
66667 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
66668
66669         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
66670         multibyte string or pattern, fall back on unibyte matching.
66671         Problem reported by James Youngman.
66672
66673 2005-06-08  Bruno Haible  <bruno@clisp.org>
66674
66675         * modules/csharpcomp: New file.
66676         * MODULES.html.sh (C#): Add csharpcomp.
66677
66678 2005-06-08  Bruno Haible  <bruno@clisp.org>
66679
66680         * m4/csharpcomp.m4: New file, from GNU gettext.
66681
66682 2005-06-08  Bruno Haible  <bruno@clisp.org>
66683
66684         * lib/csharpcomp.h: New file, from GNU gettext.
66685         * lib/csharpcomp.c: New file, from GNU gettext.
66686         * lib/csharpcomp.sh.in: New file, from GNU gettext.
66687
66688 2005-06-08  Bruno Haible  <bruno@clisp.org>
66689
66690         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
66691         warning on mingw.
66692
66693 2005-06-07  Derek Price  <derek@ximbiot.com>
66694
66695         Sync from CVS.
66696         * lib/glob_.h: Indent nested #ifdef.
66697
66698 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66699
66700         Sync from coreutils.
66701         Use "file name" when talking about file names, instead of "filename"
66702         or "path", as per the GNU coding standards.
66703         * lib/mkdir-p.c: Renamed from makepath.c.
66704         (make_dir_parents): Renamed from make_path.  All callers changed.
66705         * lib/mkdir-p.h: Likewise.  All includers changed.
66706         * lib/filenamecat.c: Renamed from path-concat.c.
66707         (file_name_concat): Renamed from path_concat.  All callers changed.
66708         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
66709         * lib/filenamecat.h: Likewise.  All includers changed.
66710         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
66711         in comments or local variable names.
66712         * lib/basename.c: Likewise.
66713         * lib/canonicalize.c, canonicalize.h: Likewise.
66714         * lib/dirname.c, dirname.h: Likewise.
66715         * lib/euidaccess.c: Likewise.
66716         * lib/exclude.c: Likewise
66717         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
66718         * lib/fsusage.c, fsuage.h: Likewise.
66719         * lib/fts.c, fts_.h: Likewise.
66720         * lib/getcwd.c: Likewise.
66721         * lib/getloadavg.c: Likewise.
66722         * lib/mkstemp.c: Likewise.
66723         * lib/mountlist.c, mountlist.h: Likewise.
66724         * lib/openat.c, openat.h: Likewise.
66725         * lib/readlink-stub.c: Likewise.
66726         * lib/readutmp.c, readutmp.h: Likewise.
66727         * lib/rename.c: Likewise.
66728         * lib/rmdir.c: Likewise.
66729         * lib/same.c: Likewise.
66730         * lib/savedir.c: Likewise.
66731         * lib/stripslash.c: Likewise.
66732         * lib/tempname.c: Likewise.
66733         * lib/xreadlink.c: Likewise.
66734         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
66735         All uses changed.
66736         * lib/exclude.h: Likewise.
66737
66738         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
66739         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66740         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
66741         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66742         * lib/pathmax.h: Include <limits.h> unconditionally, since other
66743         files have been getting away with it for years (MORE/BSD 4.3
66744         is extinct now).
66745         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
66746         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66747
66748         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
66749         Define to 256, not 255, as per modern POSIX.
66750
66751 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66752
66753         Sync from coreutils.
66754         Use "file name" when talking about file names, instead of "filename"
66755         or "path", as per the GNU coding standards.
66756         * MODULES.html.sh: mkdir-p renamed from makepath.
66757         filenamecat renamed from path-concat.
66758         * modules/filenamecat: Renamed from modules/path-concat.
66759         (Files): filenamecat.h and filenamecat.c renamed from
66760         path-concat.h and path-concat.c.
66761         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
66762         (Include): filenamecat.h, not path-concat.h.
66763         * modules/mkdir-p: Renamed from modules/makepath.
66764         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
66765         makepath.c.
66766         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
66767         (Include): mkdir-p.h, not makepath.h.
66768
66769 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66770
66771         Sync from coreutils.
66772         * m4/mkdir-p.m4: Renamed from makepath.m4.
66773         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
66774         Rename files from makepath.c to mkdir-p.c, and from
66775         makepath.h to mkdir-p.h.
66776         * m4/filenamecat.m4: Renamed from path-concat.m4.
66777         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
66778         Rename files from path-concat.c to filenamecat.c,
66779         and from path-concat.h to filenamecat.h.
66780         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
66781         "file name" in local variables or comments.
66782         * m4/rename.m4: Likewise.
66783
66784 2005-06-01  Bruno Haible  <bruno@clisp.org>
66785
66786         * modules/csharpexec: New file.
66787         * MODULES.html.sh (C#): New section.
66788
66789 2005-06-01  Bruno Haible  <bruno@clisp.org>
66790
66791         * m4/csharp.m4: New file, from GNU gettext.
66792         * m4/csharpexec.m4: New file, from GNU gettext.
66793
66794 2005-06-01  Bruno Haible  <bruno@clisp.org>
66795
66796         * lib/csharpexec.h: New file, from GNU gettext.
66797         * lib/csharpexec.c: New file, from GNU gettext.
66798         * lib/csharpexec.sh.in: New file, from GNU gettext.
66799
66800 2005-05-31  Derek Price  <derek@ximbiot.com>
66801             Paul Eggert  <eggert@cs.ucla.edu>
66802
66803         Sync from cvs.
66804         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66805
66806 2005-05-31  Derek Price  <derek@ximbiot.com>
66807             Paul Eggert  <eggert@cs.ucla.edu>
66808
66809         Sync from cvs.
66810         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66811
66812 2005-05-29  Derek Price  <derek@ximbiot.com>
66813
66814         * config/srclist.txt (glob_.h, glob.c): Add these files.
66815
66816 2005-05-29  Derek Price  <derek@ximbiot.com>
66817
66818         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
66819         * modules/glob: New file.
66820         * modules/getlogin_r: Add link to POSIX spec in description.
66821
66822 2005-05-29  Derek Price  <derek@ximbiot.com>
66823             Paul Eggert  <eggert@cs.ucla.edu>
66824
66825         * m4/glob.m4: New file.
66826
66827 2005-05-29  Derek Price  <derek@ximbiot.com>
66828             Paul Eggert  <eggert@cs.ucla.edu>
66829
66830         * lib/glob_.h, lib/glob.c: New files.
66831
66832 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66833
66834         * modules/fts (Files): Remove m4/inttypes-pri.m4.
66835         * modules/fts-lgpl (Depends-on): Remove gettext.
66836
66837 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66838
66839         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
66840         and don't require gt_INTTYPES_PRI.
66841
66842 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66843
66844         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
66845
66846         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
66847         the configuration hassle isn't worth it.
66848         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
66849         (LONGEST_MODIFIER, PRIuMAX): Remove.
66850
66851 2005-05-27  Bruno Haible  <bruno@clisp.org>
66852
66853         * lib/getlogin_r.h: Remove second include of <stddef.h>.
66854
66855 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
66856
66857         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
66858         _POSIX_PTHREAD_SEMANTICS for Solaris.
66859
66860 2005-05-25  Derek Price  <derek@ximbiot.com>
66861
66862         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
66863
66864 2005-05-25  Derek Price  <derek@ximbiot.com>
66865             Paul Eggert  <eggert@cs.ucla.edu>
66866
66867         * modules/getlogin_r, m4/getlogin_r.m4: New files.
66868         * lib/getlogin_r.c, getlogin_r.h: New files.
66869
66870 2005-05-25  Bruno Haible  <bruno@clisp.org>
66871             Derek Price  <derek@ximbiot.com>
66872
66873         * lib/getlogin_r.h: Simplify API documentation.
66874
66875 2005-05-23  Derek Price  <derek@ximbiot.com>
66876
66877         * modules/minmax (Files): Add m4/minmax.m4.
66878         (configure.ac): Add gl_MINMAX.
66879
66880 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66881
66882         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
66883         so that unistd-safer.h (GPL'ed code) need not be included.
66884
66885 2005-05-22  Bruno Haible  <bruno@clisp.org>
66886
66887         * m4/minmax.m4: New file.
66888         Based on a patch by Derek Price <derek@ximbiot.com>.
66889
66890 2005-05-22  Bruno Haible  <bruno@clisp.org>
66891
66892         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
66893         (INT64_MIN): Fix definition.
66894         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
66895
66896         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
66897         NEED_SIGNED_INT_TYPES.
66898
66899         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
66900         HAVE_SYSTEM_INTTYPES.
66901
66902 2005-05-22  Bruno Haible  <bruno@clisp.org>
66903
66904         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
66905         Also include <sys/param.h> if it defines MIN, MAX.
66906         Based on a patch by Derek Price <derek@ximbiot.com>.
66907
66908 2005-05-21  Jim Meyering  <jim@meyering.net>
66909
66910         * modules/fts (Files): Add m4/inttypes-pri.m4.
66911         (Depends-on): Add lstat and remove gettext.  Alphabetize.
66912
66913 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66914
66915         New fts module.
66916         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
66917         (setup_dir, free_dir): New functions.
66918         (enter_dir, leave_dir): Define trivial
66919         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
66920         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
66921         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
66922         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
66923         Move to fts-cycle.c.
66924         (fts_open): Use setup_dir.
66925         (fts_close): Use free_dir.
66926         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
66927         This adds a label and some gotos, but the alternatives were messier.
66928         Check for memory allocation failure when entering a dir.
66929         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
66930         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
66931         (FTS): New member fts_cycle, that is a union that contains the
66932         old active_dir_ht and cycle_state.  All uses changed to mention
66933         fts_cycle.ht and fts_cycle.state.
66934         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
66935         fts.c, with the following changes:
66936         (setup_dir, free_dir): New functions.
66937         (enter_dir): Now returns bool.  Return true if successful, false
66938         if memory exhausted.  All callers changed.
66939         Do not bother partly cleaning up on
66940         memory allocation failure; that is free_dir's job.
66941         However, free ad if hash_insert fails, to avoid memory leak.
66942         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
66943         fts->fts_options to see which union member to use.
66944
66945 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66946
66947         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
66948         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
66949
66950 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66951
66952         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
66953
66954 2005-05-20  Jim Meyering  <jim@meyering.net>
66955
66956         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
66957         Now a macro, to pacify GCC.
66958
66959 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66960
66961         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
66962         of -1.
66963
66964 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66965
66966         * lib/chown.c (rpl_chown): Return -1 on failure.
66967
66968 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66969
66970         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
66971         Don't check for stddef.h.
66972         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
66973         don't use its results.
66974         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
66975         since we include them unconditionally.  Don't require
66976         AM_STDBOOL_H, since stdbool is a prerequisite.
66977         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
66978         since we assume C89 or better.
66979         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
66980         as we don't use their results.
66981         Don't check for fchdir, memmove, memset, strrchr, as we use
66982         them unconditionally.
66983         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
66984         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
66985
66986 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66987
66988         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
66989         Include <stddef.h> unconditionally, since we assume C89 now.
66990         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
66991         * lib/fts.c: Include fts_.h first, to check interface.
66992         Do not include intprops.h; no longer needed.
66993         Include cycle-check.h and hash.h, since fts_.h no longer does.
66994         Remove unnecessary casts of closedir to void.
66995         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
66996         decide whether to decrement nlinks.
66997         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
66998         (FTS): Use struct hash_table * instead of Hash_table, so that
66999         we no longer need to include hash.h here.
67000
67001 2005-05-18  Jim Meyering  <jim@meyering.net>
67002
67003         * modules/dirfd (License): Change to LGPL.  Most of the code
67004         is already in the public domain.
67005
67006 2005-05-18  Jim Meyering  <jim@meyering.net>
67007
67008         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
67009         Reported by Yoann Vandoorselaere.
67010
67011 2005-05-17  Jim Meyering  <jim@meyering.net>
67012
67013         * m4/fts.m4: New file, from coreutils.
67014
67015 2005-05-17  Jim Meyering  <jim@meyering.net>
67016
67017         * lib/fts.c, lib/fts_.h: New files, from coreutils.
67018
67019 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67020
67021         Sync from coreutils.
67022         * m4/unlinkdir.m4: New file.
67023
67024 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67025
67026         Sync from coreutils.
67027         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
67028         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
67029         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
67030         White space changes only.
67031         * lib/makepath.c (make_path): Port to hosts where leading "//" is
67032         special.
67033         * lib/yesno.c: Include getline.h, not ctype.h.
67034         (yesno): Don't remove leading white space; POSIX doesn't allow it.
67035         Use getline to remove arbitrary restriction on response length.
67036
67037 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67038
67039         * config/srclist-update: Spell out "Street" in FSF postal
67040         mail address; this is the style the FSF seems to prefer.
67041
67042         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
67043         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
67044         this updates FSF postal mail address.
67045
67046         Sync from coreutils.
67047         * modules/unlinkdir: New file.
67048         * modules/yesno (Depends-on): Add getline.
67049         * MODULES.html.sh (File system functions): Add unlinkdir.
67050
67051 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67052
67053         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
67054         lib/strsep.h:
67055         Change the initial comment to refer to GPL, not LGPL.
67056         gnulib-tool will change it to LGPL as needed.
67057
67058         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
67059         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
67060         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
67061         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
67062         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
67063         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
67064         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
67065         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
67066         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
67067         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
67068         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
67069         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
67070         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
67071         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
67072         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
67073         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
67074         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
67075         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
67076         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
67077         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
67078         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
67079         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
67080         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
67081         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
67082         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
67083         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
67084         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
67085         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
67086         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
67087         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
67088         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
67089         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
67090         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
67091         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
67092         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
67093         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
67094         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
67095         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
67096         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
67097         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
67098         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
67099         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
67100         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
67101         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
67102         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
67103         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
67104         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
67105         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
67106         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
67107         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
67108         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67109         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
67110         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
67111         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
67112         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
67113         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
67114         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
67115         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
67116         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
67117         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
67118         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
67119         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
67120         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
67121         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
67122         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
67123         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
67124         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
67125         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
67126         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
67127         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
67128         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
67129         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
67130         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
67131         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
67132         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
67133         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
67134         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
67135         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
67136         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
67137         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
67138         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
67139         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
67140         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
67141         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
67142         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
67143         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
67144         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
67145         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
67146         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
67147         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
67148         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
67149         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
67150         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
67151         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
67152         lib/yesno.c, lib/yesno.h:
67153         Update FSF postal mail address.
67154
67155 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67156
67157         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
67158         tests/test-memmem.c, tests/test-stpncpy.c:
67159         Update FSF postal mail address.
67160
67161 2005-05-13  Bruno Haible  <bruno@clisp.org>
67162
67163         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
67164         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
67165         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
67166         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
67167         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
67168         Add support for 64-bit integers in the MSVC compiler.
67169
67170 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67171
67172         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
67173
67174 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
67175
67176         * gnulib-tool (func_import): Sort and uniquify recommended includes.
67177
67178 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
67179
67180         * doc/getdate.texi (General date syntax): Don't say that date
67181         date --iso-8601=ns generates acceptable dates; it doesn't yet.
67182         Problem reported by Nic Ferrier.
67183
67184 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67185
67186         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
67187         specified in ai_socktype. Fix invalid ai_protocol
67188         check. ai_protocol is usually set to 0 or depending on
67189         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
67190         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
67191         ai_socktype / ai_protocol in the returned addrinfo structure.
67192
67193 2005-05-10  Simon Josefsson  <jas@extundo.com>
67194
67195         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
67196         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67197
67198 2005-05-10  Karl Berry  <karl@gnu.org>
67199
67200         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
67201         (from http://www.gnu.org/licenses).
67202         * doc/COPYING.LIB: also rename to COPYING.LESSER.
67203         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
67204         fdl.texi suffices.
67205
67206 2005-05-10  Karl Berry  <karl@gnu.org>
67207
67208         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
67209         (COPYING.DOC): remove.
67210
67211         * config/srclist-update: new FSF address.
67212
67213 2005-05-10  Derek Price  <derek@ximbiot.com>
67214
67215         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
67216         possible.
67217
67218 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67219             Bruno Haible  <bruno@clisp.org>
67220
67221         * modules/inet_ntop: New file.
67222         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67223         inet_ntop.
67224
67225 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67226             Bruno Haible  <bruno@clisp.org>
67227
67228         * m4/inet_ntop.m4: New file.
67229
67230 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67231             Bruno Haible  <bruno@clisp.org>
67232
67233         * lib/inet_ntop.h: New file.
67234         * lib/inet_ntop.c: New file, from glibc with modifications.
67235
67236 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
67237
67238         * modules/time_r (License): Change to LGPL.
67239         * modules/extensions (License): Change to LGPL.  Actually,
67240         the license is more permissive than that, but currently gnulib-tool
67241         doesn't know how to handle more-permissive licenses.
67242
67243         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
67244         Problem reported by Dave Love.
67245
67246 2005-05-08  Jim Meyering  <jim@meyering.net>
67247
67248         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
67249         blank.
67250
67251 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67252
67253         * modules/argmatch (Depends-on): Add stdbool.
67254         * modules/backupfile (Depends-on): Likewise.
67255         * modules/chdir-long (Depends-on): Likewise.
67256         * modules/closeout (Depends-on): Likewise.
67257         * modules/cycle-check (Depends-on): Likewise.
67258         * modules/dirname (Depends-on): Likewise.
67259         * modules/fnmatch (Depends-on): Likewise.
67260         * modules/fsusage (Depends-on): Likewise.
67261         * modules/fwriteerror (Depends-on): Likewise.
67262         * modules/getcwd (Depends-on): Likewise.
67263         * modules/getloadavg (Depends-on): Likewise.
67264         * modules/hard-locale (Depends-on): Likewise.
67265         * modules/makepath (Depends-on): Likewise.
67266         * modules/mountlist (Depends-on): Likewise.
67267         * modules/nanosleep (Depends-on): Likewise.
67268         * modules/posixtm (Depends-on): Likewise.
67269         * modules/quotearg (Depends-on): Likewise.
67270         * modules/readtokens (Depends-on): Likewise.
67271         * modules/readtokens0 (Depends-on): Likewise.
67272         * modules/readutmp (Depends-on): Likewise.
67273         * modules/save-cwd (Depends-on): Likewise.
67274         * modules/strftime (Depends-on): Likewise.
67275         * modules/userspec (Depends-on): Likewise.
67276         * modules/utimecmp (Depends-on): Likewise.
67277         * modules/xgetcwd (Depends-on): Likewise.
67278         * modules/xnanosleep (Depends-on): Likewise.
67279         * modules/xstrtod (Depends-on): Likewise.
67280         * modules/yesno (Depends-on): Likewise.
67281
67282 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67283
67284         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
67285         needless checks.
67286
67287 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67288
67289         Merge from coreutils.  Among other things,
67290         add bulletproofing for cases where stdin, stdout, or stderr are closed.
67291         * lib/fd-safer.c: New file.
67292         * lib/fcntl-safer.h, open-safer.c: Remove.
67293         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
67294         * lib/dup-safer.c: Include unistd-safer.h first.
67295         Don't include errno.h.
67296         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
67297         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
67298         * lib/file-type.c: Rely on file-type.h change.
67299         * lib/getloadavg.c: Include unistd-safer.h.
67300         (getloadavg): Use safer open.
67301         * lib/getusershell.c: Include "stdio-safer.h".
67302         (getusershell): Use safer fopen.
67303         * lib/long-options.c (long_options): Use NULL rather than 0.
67304         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
67305         'free'.
67306         * lib/modechange.c: Likewise.
67307         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
67308         (MODE_DONE): New constant.
67309         (struct mode_change): Remove 'next' member.
67310         (make_node_op_equals): New function; like the old one of the
67311         same name, except it allocates an array.
67312         (mode_compile, mode_create_from_ref): Use it.
67313         (mode_compile): Allocate result as an array, not a linked list.
67314         Parse octal string ourself, so that we catch mistakes like "+0".
67315         (mode_adjust): Arg is an array, not a linked list.
67316         * lib/modechange.c: Include stat-macros.h, xalloc.h.
67317         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
67318         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
67319         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
67320         Remove.  This is now stat-macros.h's job.
67321         (talloc): Remove.  All callers replaced by xalloc, so that
67322         our invokers don't have to worry about reporting memory failures.
67323         (make_node_op_equals): Remove.
67324         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67325         New constants.
67326         (struct mode_change): Moved here from modechange.h.
67327         (mode_append_entry): Remove.
67328         (mode_compile): Remove MASKED_OPS arg, since it encouraged
67329         apps to have incorrect behavior.  Use simpler algorithm for head
67330         and tail.  Don't futz with umask; that's now the job of mode_adjust.
67331         Detect more invalid usages rather than having somewhat-random behavior.
67332         Don't insert an "a=" action, as that leads to incorrect behavior.
67333         (mode_compile, mode_create_from_ref): Return NULL on error instead
67334         of an enum, since now there's only one way to have an error.  All
67335         callers changed.
67336         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
67337         at the correct time.  Simplify calculation of "+u" and its ilk.
67338         Don't mishandle "+X".
67339         (mode_free): Remove "register" and localize decls.
67340         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67341         (struct mode_change): Move to modechange.c; callers don't
67342         need to see this stuff.
67343         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
67344         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
67345         (mode_change, mode_adjust): Reflect the new signatures noted above.
67346         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
67347         that might redefine system include files.
67348         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
67349         (my_usleep): Use NULL rather than (void *) 0.
67350         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
67351         Use siginterrupt to specify that system calls should be interrupted.
67352         (rpl_nanosleep): Move initialization of suspended closer to call of
67353         my_usleep.
67354         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
67355         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
67356         (desirable_utmp_entry): New function.
67357         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
67358         using x2nrealloc, to simplify logic.
67359         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
67360         size calculation.  Do not assume utmp file is a regular file.
67361         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
67362         (READ_UTMP_CHECK_PIDS): New constant.
67363         * lib/save-cwd.c: Include unistd-safer.h.
67364         (save_cwd): Use fd_safer.
67365         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
67366         [!_LIBC] Include "stat-macros.h" instead.
67367         * lib/unistd-safer.h (fd_safer): New decl.
67368
67369 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67370
67371         * modules/getloadavg (Depends-on): Add unistd-safer.
67372         * modules/getusershell (Depends-on): Add stdio-safer.
67373         * modules/lstat (Depends-on): Remove xalloc.
67374         * modules/mkstemp (Depends-on): Add stat-macros.
67375         * modules/modechange (Depends-on): Remove xstrtol.
67376         Add stat-macros, xalloc.
67377         * modules/save-cwd (Depends-on): Add unistd-safer.
67378         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
67379         * modules/unistd-safer (Files): Add lib/fd-safer.c
67380         (Makefile.am): Remove lib_SOURCES.
67381
67382         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
67383         Remove fcntl-safer; unistd-safer supersedes it.
67384
67385 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67386
67387         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
67388         AC_HEADER_STAT.
67389         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
67390         (gl_PREREQ_CHOWN): Remove.
67391         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
67392         it.  Don't require AC_HEADER_STAT.
67393         (gl_PREREQ_LSTAT): Remove.
67394         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
67395         Don't require AC_HEADER_STAT.
67396         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
67397         (gl_PREREQ_RMDIR): Remove.
67398         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
67399         mention stat-macros.h or AC_HEADER_STAT, since we'll make
67400         the stat-macros module a prerequisite.
67401         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
67402         * m4/filemode.m4 (gl_FILEMODE): Likewise.
67403         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
67404         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
67405         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
67406         variable names.
67407         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
67408         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
67409         variable prefixes.
67410         * m4/fcntl-safer.m4: Remove.
67411         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
67412         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
67413         Invoke gl_PREREQ_FD_SAFER.
67414         (gl_PREREQ_FD_SAFER): New macro.
67415         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
67416         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
67417         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
67418         Remove duplicate call to AC_LIBOBJ(readutmp).
67419         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
67420
67421         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
67422         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
67423
67424 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67425
67426         * MODULES.html.sh (Misc): Add byteswap.
67427
67428 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67429
67430         * modules/getcwd (Depends-on): Add extensions.
67431         * modules/openat (Depends-on): Likewise.
67432
67433 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67434
67435         * modules/byteswap: New file.
67436
67437 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67438
67439         * m4/byteswap.m4: New file.
67440
67441 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67442
67443         * lib/byteswap_.h: New file.
67444
67445 2005-04-25  Karl Berry  <karl@gnu.org>
67446
67447         * m4/gettext.m4: Update from GNU gettext 0.14.4.
67448
67449 2005-04-25  Albert Chin  <china@thewrittenword.com>
67450
67451         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
67452         Toolkit C bug.
67453
67454 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
67455
67456         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
67457         (func_ln_if_changed): Remove forcibly for no error message
67458         in case file does not exist.
67459
67460 2005-04-19  Simon Josefsson  <jas@extundo.com>
67461
67462         * gnulib-tool (Options): Make --symlink mean --symbolic.
67463
67464 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
67465
67466         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
67467
67468 2005-04-16  Simon Josefsson  <jas@extundo.com>
67469
67470         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
67471
67472 2005-04-15  Simon Josefsson  <jas@extundo.com>
67473
67474         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
67475
67476 2005-04-15  Simon Josefsson  <jas@extundo.com>
67477
67478         * gnulib-tool: Rename --symlink to --symbolic.
67479
67480 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
67481
67482         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
67483         symbolic links to files instead of copying/moving.  Add --aux-dir,
67484         specifying directory relative --dir where auxiliary build tools
67485         are placed.
67486
67487 2005-04-14  Bruno Haible  <bruno@clisp.org>
67488
67489         * modules/allocsa (License): Change to LGPL.
67490         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
67491
67492 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67493
67494         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
67495         that "UTC +1 second" continues to work.  Problem reported
67496         by Dmitry V. Levin.
67497         (relunit_snumber): New rule.
67498         (relunit): Use it.
67499
67500 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67501
67502         * lib/getdate.y (universal_time_zone_table): New constant.
67503         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
67504         universal_time_zone_table.
67505         (lookup_zone): Prefer universal_time_zone_table to
67506         local_time_zone_table, so that "GMT" time stamps are allowed in
67507         London during the summer.  Problem reported by Ian Abbott.
67508
67509 2005-04-12  Jim Meyering  <jim@meyering.net>
67510
67511         * lib/human.c (humblock): Set *options even when returning due to
67512         xstrtoumax conversion failure.  Thanks to a used-uninitialized
67513         warning from gcc-4.
67514
67515 2005-04-09  Jim Meyering  <jim@meyering.net>
67516
67517         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
67518         -Wuninitialized: initialize tm0.tm_year.
67519
67520 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67521
67522         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
67523         count, since there's no maximum.  All uses changed.
67524         Add member dsts_seen.
67525         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
67526         not being INT_MAX.
67527         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
67528         Use pc_rels_seen to decide whther a date is absolute.
67529
67530         * lib/getdate.y (number): Don't overwrite year.
67531         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
67532         check.
67533
67534 2005-04-02  Simon Josefsson  <jas@extundo.com>
67535
67536         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
67537         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
67538
67539 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
67540
67541         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
67542         where no absolute path name can be longer than PATH_MAX.
67543
67544 2005-03-27  Jim Meyering  <jim@meyering.net>
67545
67546         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
67547
67548 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
67549
67550         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
67551         "one's complement" -> "ones' complement" in comment, as per Knuth.
67552         "value of type" -> "type or expression" in comment.
67553         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
67554
67555 2005-03-26  Jim Meyering  <jim@meyering.net>
67556
67557         Comment nits.
67558         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
67559         Correct typos: s/or/of/.
67560
67561 2005-03-26  Jim Meyering  <jim@meyering.net>
67562
67563         * modules/check-include-files: Move to ../ and rename to...
67564         * check-module: ...this.
67565
67566 2005-03-25  Jim Meyering  <jim@meyering.net>
67567
67568         * modules/xvasprintf (Files): Add xalloc.h.
67569
67570 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67571
67572         * modules/gettext (Files): config/config.rpath ->
67573         build-aux/config.rpath
67574         * modules/iconv (Files): Likewise.
67575         Problem reported by Oskar Liljeblad.
67576
67577 2005-03-23  Jim Meyering  <jim@meyering.net>
67578
67579         * modules/check-include-files: New script to check for
67580         missing dependencies, multiple includes, etc.
67581
67582         * modules/c-strtold (Depends-on): Add xalloc.
67583         * modules/c-strtod (Depends-on): Add xalloc.
67584         * modules/hash (Depends-on): Add xalloc.
67585         (Files): Remove lib/xalloc.h.
67586
67587         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
67588         * modules/userspec (Files): Add lib/inttostr.h.
67589
67590 2005-03-23  Jim Meyering  <jim@meyering.net>
67591
67592         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
67593
67594 2005-03-22  Jim Meyering  <jim@meyering.net>
67595
67596         * modules/stat-macros: New module.
67597         * modules/canonicalize, modules/euidaccess, modules/file-type,
67598         * modules/filemode, modules/lchown, modules/makepath,
67599         * modules/rmdir, modules/stat: Depend on new stat-macros module
67600         rather than listing lib/stat-macros.h manually.
67601         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
67602
67603 2005-03-22  Jim Meyering  <jim@meyering.net>
67604
67605         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
67606
67607 2005-03-22  Bruno Haible  <bruno@clisp.org>
67608
67609         * config/srclist.txt: Replace target directory 'config' with
67610         'build-aux'.
67611         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
67612         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
67613         ../build-aux/.
67614
67615 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
67616
67617         * modules/chdir-long (Depends-on): Add mempcpy.
67618
67619         * modules/acl, modules/backupfile, modules/c-strtod,
67620         modules/c-strtold, modules/canon-host, modules/canonicalize,
67621         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
67622         modules/exclude, modules/exitfail, modules/file-type,
67623         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
67624         modules/getdate, modules/getline, modules/getpagesize,
67625         modules/getpass, modules/getugroups, modules/group-member,
67626         modules/hard-locale, modules/hash, modules/human, modules/idcache,
67627         modules/inttostr, modules/long-options, modules/makepath,
67628         modules/md5, modules/memcasecmp, modules/memcoll,
67629         modules/modechange, modules/mountlist, modules/path-concat,
67630         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
67631         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
67632         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
67633         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
67634         modules/strftime, modules/strndup, modules/strverscmp,
67635         modules/timespec, modules/unlocked-io, modules/userspec,
67636         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
67637         modules/yesno:
67638         Remove lib_SOURCES line from Makefile.am section, as this is now
67639         done automatically by the corresponding Autoconf macro.
67640
67641 2005-03-21  Jim Meyering  <jim@meyering.net>
67642
67643         Changes imported from coreutils.
67644
67645         * lib/cycle-check.c: Don't include xalloc.h.
67646
67647         * lib/path-concat.c: Don't include assert.h.
67648         (path_concat): Remove assertion that would have triggered
67649         for ABASE starting with more than one slash.
67650         Reported by Andreas Schwab.
67651
67652         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
67653         properly when ABASE is an absolute file name.
67654         Correct the description of this function.
67655         Include <assert.h>.
67656         Add an assertion and a test driver.
67657         This fixes a bug introduced on 2004-07-02.
67658         Andreas Schwab reported the resulting failure of cp --parents:
67659         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
67660
67661 2005-03-21  Jim Meyering  <jim@meyering.net>
67662
67663         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
67664         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
67665
67666 2005-03-21  Jim Meyering  <jim@meyering.net>
67667         and  Paul Eggert  <eggert@cs.ucla.edu>
67668
67669         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
67670         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
67671         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
67672         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
67673         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
67674         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
67675         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
67676         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
67677         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
67678         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
67679         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
67680         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
67681         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
67682         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
67683         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
67684         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
67685         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
67686         for these modules.
67687
67688 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
67689
67690         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
67691         (which shouldn't happen), generate nothing instead of returning 0
67692         immediately, so that nstrftime (NULL, ...) doesn't return 0.
67693
67694 2005-03-16  Bruno Haible  <bruno@clisp.org>
67695
67696         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
67697         HAVE_LONGLONG_64BIT.
67698
67699 2005-03-16  Bruno Haible  <bruno@clisp.org>
67700
67701         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
67702         HAVE_LONGLONG_64BIT.
67703
67704 2005-03-16  Bruno Haible  <bruno@clisp.org>
67705
67706         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
67707         HAVE_LONGLONG_64BIT.
67708
67709 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67710
67711         * lib/strftime.c (my_strftime): Prepend space to format so that we can
67712         reliably distinguish strftime failure from empty output on POSIX
67713         hosts.
67714
67715 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67716
67717         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
67718         (iconv_string): Don't guess a size-zero buffer, as that might cause
67719         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
67720         result would be 'too large', where 'too large' is (heuristically)
67721         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
67722         overflow concerns.  This will prevent some unwanted malloc failures
67723         when the inputs are very large.
67724
67725 2005-03-15  Karl Berry  <karl@gnu.org>
67726
67727         * config/srclist.txt (config.rpath): from gettext.
67728         * config/config.rpath: update.
67729
67730 2005-03-15  Bruno Haible  <bruno@clisp.org>
67731
67732         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
67733         to 'negate'.
67734
67735         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
67736         variable.
67737
67738         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
67739         results.
67740
67741 2005-03-14  Simon Josefsson  <jas@extundo.com>
67742
67743         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
67744         <fx@gnu.org>.
67745
67746 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
67747
67748         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
67749         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
67750         intprops.h.
67751         * lib/strtol.c: Likewise.
67752
67753 2005-03-14  Jim Meyering  <jim@meyering.net>
67754
67755         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
67756         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
67757         to be nonzero so that we (and caller) can detect the difference
67758         between a valid zero-length expansion and an error return, even
67759         when the underlying strftime fails before writing anything into
67760         that location.
67761
67762 2005-03-14  Bruno Haible  <bruno@clisp.org>
67763
67764         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
67765         Update from GNU gettext 0.14.3.
67766
67767 2005-03-10  Jim Meyering  <jim@meyering.net>
67768
67769         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
67770
67771 2005-03-10  Jim Meyering  <jim@meyering.net>
67772
67773         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
67774         so that this module works on systems without fchdir.
67775
67776 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67777
67778         Factor int-properties macros into a single file, except for
67779         glibc-related files.
67780         * lib/intprops.h: New file.
67781         * lib/getloadavg.c: Include it instead of limits.h.
67782         (INT_STRLEN_BOUND): Remove.
67783         * lib/human.c: Include intprops.h.
67784         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
67785         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
67786         302/1000.
67787         * lib/inttostr.h: Include intprops.h instead of limits.h.
67788         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
67789         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
67790         for consistency with intprops.h.
67791         (time_t_is_integer, twos_complement_arithmetic): Use them.
67792         * lib/sig2str.h: Include <signal.h>, intprops.h.
67793         (INT_STRLEN_BOUND): Remove.
67794         * lib/strftime.c (TYPE_SIGNED): Remove.
67795         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
67796         * lib/strtol.c: Adjust comments to match intprops.h.
67797         * lib/userspec.c: Include intprops.h.
67798         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
67799         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
67800         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
67801         instead of rolling our own expressions.
67802         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
67803
67804         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
67805         instead of int.
67806         (my_strftime): Do not mishandle years close to INT_MAX, by doing
67807         the right thing even if adding 1900 would overflow.  Similarly
67808         for tm_mon + 1 and tm_yday + 1.
67809         Make %Y always equivalent to %C%y, and similarly for %G and %g.
67810         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
67811         (DO_SIGNED_NUMBER): New macro.
67812         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
67813
67814 2005-03-07  Bruno Haible  <bruno@clisp.org>
67815
67816         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
67817
67818 2005-03-07  Bruno Haible  <bruno@clisp.org>
67819
67820         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
67821
67822 2005-03-04  Derek R. Price  <derek@ximbiot.com>
67823
67824         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
67825         (func_import): Only replace files via --import when they have actually
67826         changed.
67827
67828 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67829
67830         * m4/mmap-anon.m4: New file.
67831         * m4/pagealign_alloc.m4: New file.
67832
67833 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67834             Bruno Haible  <bruno@clisp.org>
67835
67836         * modules/pagealign_alloc: New file.
67837         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
67838
67839 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67840             Bruno Haible  <bruno@clisp.org>
67841
67842         * lib/pagealign_alloc.h: New file.
67843         * lib/pagealign_alloc.c: New file.
67844
67845 2005-03-03  Bruno Haible  <bruno@clisp.org>
67846
67847         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
67848         Use an all-permissive copyright notice, recommended by RMS.
67849
67850 2005-03-02  Bruno Haible  <bruno@clisp.org>
67851
67852         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
67853         of AIX, the replacement has to be done only after <string.h> is
67854         included, therefore not in config.h. stpncpy.h does the replacement,
67855         and stpncpy.c uses it.
67856
67857 2005-03-02  Bruno Haible  <bruno@clisp.org>
67858
67859         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
67860         stpncpy.c uses it.
67861
67862 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67863
67864         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
67865         The workaround isn't strictly needed for POSIX conformance, and
67866         it's too much of a pain to configure and maintain.  We'll ask
67867         people to fix their kernels instead.
67868         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
67869         (NANOSLEEP_BUG_WORKAROUND): Remove.
67870         (xnanosleep): Remove the workaround.
67871
67872 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67873
67874         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
67875         Reported by Derek Price.
67876         (Include): Add "timespec.h".
67877
67878         * modules/xnanosleep (Depends-on): Remove gethrxtime.
67879
67880 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67881
67882         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
67883         to detect nanosleep bug.
67884
67885 2005-03-01  Bruno Haible  <bruno@clisp.org>
67886
67887         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
67888
67889 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67890
67891         * modules/gethrxtime: New file.
67892         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
67893         (Depends-on): Add gethrxtime.
67894         (configure.ac): Add gl_XNANOSLEEP.
67895         (Makefile.am): Remove lib_SOURCES line.
67896
67897 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67898
67899         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
67900         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
67901
67902 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67903
67904         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
67905         * lib/timespec.h (gettime): Return void, since it always
67906         succeeds now.  All uses changed.
67907         * lib/gettime.c (gettime): Likewise.
67908         [HAVE_NANOTIME]: Prefer nanotime.
67909         Assume gettimeofday succeeds, as POSIX requires.
67910         Assime time () succeeds, since other code already does.
67911         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
67912         (timespec_subtract): Remove.
67913         (NANOSLEEP_BUG_WORKAROUND): New constant.
67914         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
67915         things considerably.  Use it only on GNU/Linux hosts, since the
67916         workaround shouldn't be needed elsewhere.
67917
67918 2005-02-24  Bruno Haible  <bruno@clisp.org>
67919
67920         * modules/gettext (Files): Add m4/glibc2.m4.
67921
67922 2005-02-24  Bruno Haible  <bruno@clisp.org>
67923
67924         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
67925         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
67926         * m4/progtest.m4:
67927         Update from GNU gettext 0.14.2.
67928         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
67929
67930 2005-02-24  Bruno Haible  <bruno@clisp.org>
67931
67932         * lib/localcharset.c: Update from GNU gettext 0.14.2.
67933         * lib/config.charset: Update from GNU gettext 0.14.2.
67934
67935 2005-02-24  Bruno Haible  <bruno@clisp.org>
67936
67937         * lib/gettext.h: Update from GNU gettext 0.14.2.
67938
67939 2005-02-23  Simon Josefsson  <jas@extundo.com>
67940
67941         * m4/iconvme.m4: New file.
67942
67943 2005-02-23  Jim Meyering  <jim@meyering.net>
67944
67945         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
67946         change.
67947         Thanks to Bruno Haible for catching it.
67948
67949 2005-02-22  Simon Josefsson  <jas@extundo.com>
67950
67951         * modules/iconvme: New file.
67952
67953         * MODULES.html.sh: Add iconvme.
67954
67955 2005-02-22  Simon Josefsson  <jas@extundo.com>
67956
67957         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
67958
67959 2005-02-22  Simon Josefsson  <jas@extundo.com>
67960
67961         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
67962
67963 2005-02-22  Jim Meyering  <jim@meyering.net>
67964
67965         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
67966         s/ifndef/ifdef/.
67967
67968 2005-02-20  Neil Conway  <neilc@samurai.com>
67969
67970         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
67971         returned by OSX/Darwin if the specified buffer is not large
67972         enough for the hostname.
67973
67974 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67975
67976         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
67977         pass it to _help, otherwise the latter coredumps trying to
67978         dereference state.root_argp.
67979
67980 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67981
67982         * modules/chdir-long (Depends-on): Add memrchr.
67983         * modules/memrchr (Files): Add lib/memrchr.h.
67984         (Include): "memrchr.h".
67985
67986 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67987
67988         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
67989
67990 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67991
67992         * lib/memrchr.h: New file.
67993         * lib/chdir-long.c: Include it.
67994         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
67995         Don't bother including stddef.h.
67996
67997 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67998
67999         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
68000         inclusion.
68001         Include <sys/types.h>, for dev_t.
68002         (ME_DUMMY, ME_REMOTE): Move from here....
68003         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
68004         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
68005         Dmitry V. Levin.
68006         Include mountlist.h first, to test the interface.
68007
68008 2005-01-29  Bruno Haible  <bruno@clisp.org>
68009
68010         * lib/progname.c (program_name): Initialize.
68011         Needed when linking statically on MacOS X.
68012
68013 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68014
68015         Sync from coreutils.
68016         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
68017         (Depends-on): Add c-strtod.
68018         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
68019
68020 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68021
68022         Sync from coreutils.
68023         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
68024
68025         Remove files that are specific to coreutils.
68026         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
68027
68028 2005-01-28  Bruno Haible  <bruno@clisp.org>
68029
68030         * modules/javacomp: New file.
68031         * MODULES.html.sh (Java): Add javacomp.
68032
68033 2005-01-28  Bruno Haible  <bruno@clisp.org>
68034
68035         * m4/javacomp.m4: New file, from GNU gettext.
68036
68037 2005-01-28  Bruno Haible  <bruno@clisp.org>
68038
68039         * lib/javacomp.sh.in: New file, from GNU gettext.
68040         * lib/javacomp.h: New file, from GNU gettext.
68041         * lib/javacomp.c: New file, from GNU gettext.
68042
68043 2005-01-26  Simon Josefsson  <jas@extundo.com>
68044
68045         * lib/gai_strerror.c: Use GPL in header.
68046
68047 2005-01-26  Bruno Haible  <bruno@clisp.org>
68048
68049         * modules/javaexec: New file.
68050         * MODULES.html.sh (Java): Add javaexec.
68051
68052 2005-01-26  Bruno Haible  <bruno@clisp.org>
68053
68054         * m4/javaexec.m4: New file, from GNU gettext.
68055
68056 2005-01-26  Bruno Haible  <bruno@clisp.org>
68057
68058         * lib/javaexec.sh.in: New file, from GNU gettext.
68059         * lib/javaexec.h: New file, from GNU gettext.
68060         * lib/javaexec.c: New file, from GNU gettext.
68061
68062 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68063
68064         * modules/lchown (Depends-on): Remove lchown.h
68065
68066 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68067
68068         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
68069         must be defined if the header file was not found, in order
68070         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
68071
68072 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68073
68074         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
68075         initializers for struct pentry_state.
68076         (__argp_error): Check return value of __asprintf
68077         (__argp_failure): Translate error message
68078
68079         * lib/argp-parse.c: Removed braces around the expansion of N_()
68080
68081 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68082
68083         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
68084         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
68085         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
68086         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
68087         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
68088         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
68089         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
68090         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
68091         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
68092         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
68093         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
68094         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
68095         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
68096         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
68097         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
68098         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
68099         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
68100         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
68101         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
68102         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
68103         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
68104         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
68105         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
68106         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
68107         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
68108         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
68109         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
68110         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
68111         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
68112         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
68113         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
68114         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
68115         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
68116         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
68117         xstrtol.m4, xstrtoumax.m4, yesno.m4:
68118         Use an all-permissive copyright notice, recommended by RMS.
68119
68120 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
68121
68122         * modules/chdir-long (Depends-on): Remove mempcpy.
68123
68124 2005-01-21  Jim Meyering  <jim@meyering.net>
68125
68126         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
68127         same value as for Solaris 9.
68128
68129         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
68130         component length.  This included changing the parameter to be
68131         of type `char *' rather than `char const *'.
68132         * lib/chdir-long.h (chdir_long): Update prototype.
68133
68134         * lib/openat.c (fdopendir, fstatat): New functions.
68135         * lib/openat.h: Include headers required for use of DIR and struct
68136         stat.
68137         [AT_SYMLINK_NOFOLLOW]: Define.
68138         (fdopendir, fstatat): Add prototypes.
68139
68140 2005-01-21  Bruno Haible  <bruno@clisp.org>
68141
68142         * modules/classpath: New file.
68143         * MODULES.html.sh (Java): Add classpath.
68144
68145 2005-01-21  Bruno Haible  <bruno@clisp.org>
68146
68147         * lib/classpath.h: New file, from GNU gettext.
68148         * lib/classpath.c: New file, from GNU gettext.
68149
68150 2005-01-20  Simon Josefsson  <jas@extundo.com>
68151
68152         * modules/version-etc-fsf: New file.
68153
68154 2005-01-20  Simon Josefsson  <jas@extundo.com>
68155
68156         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
68157         * lib/version-etc.c: Remove version_etc_copyright.
68158         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
68159         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
68160
68161 2005-01-20  Simon Josefsson  <jas@extundo.com>
68162
68163         * lib/base64.h (isbase64): Add.
68164
68165         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
68166         using a unsigned prototype, don't inline.
68167         (base64_decode): Use it.
68168
68169 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68170
68171         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
68172         it.
68173
68174 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68175
68176         * lib/save-cwd.c (save_cwd): Remove code to support the case
68177         where fchdir is missing or flaky.
68178
68179 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68180
68181         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
68182
68183 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68184
68185         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
68186         AC_LIBSOURCES now does this.
68187         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
68188         with new ullong_max module.
68189
68190 2005-01-19  Bruno Haible  <bruno@clisp.org>
68191
68192         * modules/sh-quote: New file.
68193         * MODULES.html.sh (Executing programs): Add sh-quote.
68194
68195 2005-01-19  Bruno Haible  <bruno@clisp.org>
68196
68197         * lib/sh-quote.h: New file, from GNU gettext.
68198         * lib/sh-quote.c: New file, from GNU gettext.
68199
68200 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68201
68202         Merge from coreutils.
68203         * m4/ullong_max.m4: New file.
68204         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
68205         (gl_MACROS): Assume localeconv exists.
68206
68207 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68208
68209         Merge changes from coreutils, as described below in several
68210         changelogs dated today.
68211
68212         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
68213         (O_DIRECTORY): Remove; not needed here, since "." must be
68214         a directory.  All uses removed.
68215         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
68216         universal on Suns, and we also need to test for IRIX.
68217         Revamp code to use 'if' rather than '#if'.
68218         Avoid unnecessary comparison of cwd->desc to 0.
68219
68220         * lib/utimens.c (futimens): Robustify the previous patch, by checking
68221         for known valid error numbers rather than observed invalid ones.
68222
68223 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68224
68225         * modules/ullong_max: New file.
68226
68227         * modules/chdir-long, modules/openat: New files.
68228         * modules/save-cwd (Depends-on): Depend on chdir-long.
68229         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
68230
68231 2005-01-18  Jim Meyering  <jim@meyering.net>
68232
68233         Merge from coreutils.
68234         * m4/chdir-long.m4, m4/openat.m4: New files.
68235         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
68236         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
68237         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
68238         is sane and DOES follow symlinks.  Besides, testing 20 different
68239         systems found no broken chown implementations.
68240         Prompted by a change in rsync's copy of this macro.
68241         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
68242
68243         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
68244
68245         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
68246         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
68247         NULL-means-set-to-current-time semantics.
68248         Remove temporary file immediately, rather than waiting
68249         for configure's at-exit trap code to do it.
68250
68251 2005-01-18  Jim Meyering  <jim@meyering.net>
68252
68253         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68254
68255         * lib/utimens.c (futimens): Account for the fact that futimes
68256         can also fail with errno == ENOSYS or errno == ENOENT.
68257         Patch from Dmitry V. Levin.
68258
68259         Change the name of the robust chdir function from chdir to chdir_long.
68260         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
68261         (restore_cwd): Use chdir_long, not chdir.
68262         * lib/chdir-long.c: Renamed from chdir.c.
68263         * lib/chdir-long.h: Renamed from chdir.h.
68264         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
68265         Hurd.
68266
68267 2005-01-18  Bruno Haible  <bruno@clisp.org>
68268
68269         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
68270         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
68271         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
68272         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
68273         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
68274         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
68275         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
68276         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
68277         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
68278         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
68279         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
68280         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
68281         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
68282         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
68283         Use an all-permissive copyright notice, recommended by RMS.
68284
68285 2005-01-18  Bob Proulx  <bob@proulx.com>
68286
68287         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
68288         simplify offsetof() macro construct to avoid compile failure with
68289         native HP-UX 11.0 ANSI C compiler.
68290
68291 2005-01-17  Bruno Haible  <bruno@clisp.org>
68292
68293         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
68294         redundant because stpncpy.m4 takes care of it.
68295
68296 2005-01-17  Bruno Haible  <bruno@clisp.org>
68297
68298         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
68299
68300 2005-01-17  Bruno Haible  <bruno@clisp.org>
68301
68302         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
68303         used.
68304
68305 2005-01-17  Bruno Haible  <bruno@clisp.org>
68306
68307         * lib/fwriteerror.h (fwriteerror): Change specification to include
68308         fclose.
68309         * lib/fwriteerror.c: Include <stdbool.h>.
68310         (fwriteerror): At the end, close the file stream. Record whether
68311         stdout was already closed.
68312
68313 2005-01-17  Bruno Haible  <bruno@clisp.org>
68314
68315         * lib/execute.c (environ): Declare if needed.
68316         * lib/pipe.c (environ): Likewise.
68317         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
68318
68319 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68320
68321         * modules/argp: Depend on vsnprintf
68322
68323 2005-01-10  Jim Meyering  <jim@meyering.net>
68324
68325         * modules/closeout (Depends-on): Add atexit.
68326
68327 2005-01-06  Bruno Haible  <bruno@clisp.org>
68328
68329         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
68330
68331 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68332
68333         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
68334         definitions to be after all include files, to avoid collisions.
68335         Problem reported by Bob Proulx.
68336
68337 2005-01-04  Jim Meyering  <jim@meyering.net>
68338
68339         Changes imported from coreutils.
68340         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
68341         as the mkstemp template, use a temporary directory and an
68342         8.3-friendly template to avoid trouble on systems like DJGPP.
68343         Reported by Juan M. Guerrero via Stepan Kasal.
68344         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
68345         close. Remove the temporary directory right away, rather than waiting
68346         for configure's at-exit trap code to do it.
68347         Suggestion from Stepan Kasal.
68348
68349 2005-01-01  Simon Josefsson  <jas@extundo.com>
68350
68351         * gnulib-tool: Print #include directives when --import'ing.
68352
68353 2004-12-28  Simon Josefsson  <jas@extundo.com>
68354
68355         * tests/test-base64.c: Include required header files.  Remove
68356         unused variables.
68357
68358 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68359
68360         * modules/error (Depends-on): Remove gettext.
68361
68362 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68363
68364         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
68365         not needed.  This removes a dependency on the gettext module.
68366         [defined _LIBC]: Do not include <libintl.h>; not needed.
68367
68368 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68369
68370         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
68371         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
68372
68373 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68374
68375         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
68376         HAVE_DECL_STRTOLD.
68377
68378 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68379
68380         * modules/getdate (Depends-on): Remove alloca-opt.
68381
68382 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68383
68384         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
68385
68386 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68387
68388         * lib/argp-parse.c: Include <stddef.h>.
68389         (alignof, alignto): New macros.
68390         (parser_init): Don't assume that void * is aligned sufficiently
68391         for struct option.
68392
68393         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
68394         need to extend the stack.
68395         (YYINITDEPTH): New macro, so that the initial stack isn't overly
68396         large.
68397
68398 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68399
68400         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
68401
68402 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68403
68404         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
68405         (2004-10-24) change.  Apparently this was a false alarm.
68406
68407         * modules/getdate: Depend on alloca-opt, not alloca.
68408
68409 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68410
68411         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
68412         Remove now-obsolete comment about AIX.
68413         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
68414         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
68415         (YYMAXDEPTH): New macro.
68416
68417 2004-12-18  Simon Josefsson  <jas@extundo.com>
68418
68419         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
68420
68421 2004-12-18  Bruno Haible  <bruno@clisp.org>
68422
68423         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
68424
68425 2004-12-18  Bruno Haible  <bruno@clisp.org>
68426
68427         * lib/fatal-signal.c (fatal_signals): Make non-const.
68428         (init_fatal_signals): New function.
68429         (uninstall_handlers, install_handlers): Ignore signals that were set to
68430         SIG_IGN.
68431         (at_fatal_signal): Call init_fatal_signals.
68432         (init_fatal_signal_set): Likewise. Ignore signals that were set to
68433         SIG_IGN.
68434         Reported by Paul Eggert.
68435
68436 2004-12-18  Bruno Haible  <bruno@clisp.org>
68437
68438         * doc/alloca.texi: New file.
68439         * doc/alloca-opt.texi: New file.
68440
68441 2004-12-17  Jim Meyering  <jim@meyering.net>
68442
68443         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
68444         Otherwise, install-sh could exit with improper exit status when
68445         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
68446
68447 2004-12-16  Simon Josefsson  <jas@extundo.com>
68448
68449         * tests/test-base64.c: Add license.
68450
68451 2004-12-15  Stepan Kasal  <address@hidden>
68452
68453         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
68454
68455 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
68456
68457         * modules/getcwd (Files): Add m4/d-ino.m4.
68458         Suggested by Mark D. Baushke.
68459
68460 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68461
68462         * lib/getdate.y (textint): New member "negative".
68463         (time_zone_hhmm): New function.
68464         Expect 14 shift-reduce conflicts, not 13.
68465         (o_colon_minutes): New rule.
68466         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
68467         (yylex): Set the "negative" member of signed numbers.
68468
68469 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68470
68471         * doc/getdate.texi (Time of day items, Time zone items):
68472         Describe new formats +00:00, UTC+00:00.
68473
68474 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68475
68476         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
68477         spurious "-l"s.  Problem reported by Stepan Kasal.
68478
68479 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
68480
68481         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
68482         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
68483
68484 2004-12-04  Simon Josefsson  <jas@extundo.com>
68485
68486         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
68487         Vandoorselaere <yoann@prelude-ids.org>.
68488
68489 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68490
68491         Changes imported from coreutils.
68492         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
68493         exist.
68494         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
68495
68496 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68497
68498         Changes imported from coreutils.
68499         * lib/hard-locale.c: Assume <locale.h> exists.
68500         Include "strdup.h".
68501         (GLIBC_VERSION): New macro.
68502         (hard_locale): Assume setlocale exists.
68503         Rewrite to avoid #ifdef.
68504         Use strdup rather than malloc + strcpy.
68505         * lib/human.c: Assume <locale.h> exists.
68506         (human_readable): Assume localeconv exists.
68507
68508 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68509
68510         * modules/hard-locale (Depends-on): Add strdup.
68511
68512 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
68513
68514         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
68515         convert T2, not T.  (Imported from libc.)
68516
68517 2004-11-30  Simon Josefsson  <jas@extundo.com>
68518
68519         * modules/restrict (License): Change to LGPL.
68520
68521 2004-11-30  Simon Josefsson  <jas@extundo.com>
68522
68523         * m4/restrict.m4: Add copyright and copying conditions.
68524
68525 2004-11-30  Simon Josefsson  <jas@extundo.com>
68526
68527         * m4/base64.m4: New file.
68528
68529 2004-11-30  Simon Josefsson  <jas@extundo.com>
68530
68531         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
68532         base64.
68533
68534         * tests/test-base64.c: New file.
68535
68536         * modules/base64: New file.
68537
68538 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68539
68540         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
68541         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
68542
68543         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
68544
68545 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68546
68547         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
68548         (__getcwd.c): Don't restore errno; glibc doesn't.
68549         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
68550         first, falling back to our code only if its results look suspicious.
68551         Ensure that the resulting buffer is only as large as necessary.
68552
68553         * lib/readutmp.c: Include readutmp.h first.
68554         Include <errno.h>, since readutmp.h no longer does that.
68555         * lib/readutmp.h: Don't include <errno.h>,
68556         <sys/param.h>, <time.h>; not needed to establish interface.
68557         (errno): Remove decl.
68558         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
68559         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
68560         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
68561
68562 2004-11-28  Simon Josefsson  <jas@extundo.com>
68563
68564         * lib/base64.h, base64.c: New file.
68565
68566 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68567
68568         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
68569
68570 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68571
68572         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
68573         (Depends-on): Remove pathmax, same.  Add mempcpy.
68574         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
68575         (Makefile.am): Append getcwd.h to lib_SOURCES.
68576         (Include): Add getcwd.h.
68577         (Maintainer): Change from Jim Meyering to "all, glibc",
68578         since getdate now uses intended-for-glibc code.
68579         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
68580         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
68581
68582 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68583
68584         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
68585         HP's ANSI C compiler.
68586         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
68587         Declaring int functions causes warnings on some modern systems and
68588         shouldn't be needed to compile on ancient ones.
68589         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
68590         defined.
68591
68592         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
68593         with the following changes.
68594         (__set_errno): Parenthesize properly.
68595         Include <stdbool.h>.
68596         (MIN, MAX, MATCHING_INO): New macros.
68597         (__getcwd): Define with prototype, not K&R form.
68598         Use heuristics to allocate default buffer on stack if possible.
68599         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
68600         behavior, and to avoid the PATH_MAX limit when computing
68601         ../../../../...
68602         Use MATCHING_INO to compare inode number to file.
68603         Check for arithmetic overflow in size calculations.
68604         Fix bug in reallocation of dot array that caused getcwd to fail
68605         on directories nested deeper than 75.
68606         Be more careful about saving errno on error.
68607         Do not use realloc; use only free+malloc, as this is a bit
68608         more flexible and avoids a needless copy operation.
68609         Do not inspect st_dev and st_ino for symbolic links; POSIX
68610         doesn't specify the latter.
68611         Check for closedir errors.
68612         Avoid needless casts.
68613         Use "#ifdef weak_alias" around weak_alias, to be like other
68614         glibc code.
68615         The following changes to getcwd.c have effect only when used in
68616         gnulib; they have no effect inside glibc proper.
68617         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
68618         as alloca isn't used.
68619         (alloca, __alloca): Likewise.
68620         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
68621         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
68622         unconditionally, as gnulib assumes C89 or better.
68623         Do not include <sys/param.h>.
68624         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
68625         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
68626         better.
68627         (NULL) [!defined NULL]: Remove; we assume C89 or better.
68628         Include <dirent.h> in a way that is compatible with modern Autoconf.
68629         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
68630         New macros, if not already defined.
68631         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
68632         Use "_LIBC", not "defined _LIBC", for consistency.
68633         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
68634         a mempcpy module.
68635         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
68636         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
68637         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
68638         credit only to Jim Meyering and adjust the copyright dates.
68639         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
68640         <stdlib.h>, <unistd.h>, "pathmax.h".
68641         Instead, include "xgetcwd.h" (first) and "getcwd.h".
68642         (INITIAL_BUFFER_SIZE): Remove.
68643         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
68644
68645 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68646
68647         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
68648         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
68649         Use the _ONCE methods, for efficiency.
68650         Check for fcntl.h.  In test program, include <errno.h>
68651         and <fcntl.h> if available.  Remove old K&R cruft from
68652         test program.  Check for common errors in GNU/Linux,
68653         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
68654         don't do AC_LIBOBJ, as that's getcwd.m4's job.
68655         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
68656         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
68657         name accordingly.
68658         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
68659         accommodate new getcwd.c.
68660         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
68661         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
68662         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
68663         that's all we need now.
68664
68665 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68666
68667         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
68668         argp-parse.c depends on getopt internals, that means we should
68669         always use our getopt, to be on the safe side.
68670         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
68671         order not to spoil the result of an eventual previous invocation
68672         of gl_GETOPT_SUBSTITUTE.
68673
68674 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68675
68676         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
68677         redefinition warnings. To avoid them, include the defines
68678         in `#if !defined __need_getopt ... #endif'. The only place
68679         where __getopt_argv_const is used is in definitions
68680         of getopt_long and getopt_long_only below, which are as well
68681         protected by `#ifndef __need_getopt'.
68682         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
68683         __need_getopt after including <stdio.h> and <unistd.h> These
68684         headers might have defined it.
68685
68686 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68687
68688         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
68689
68690 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68691
68692         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
68693         (futimens): New function, which uses futimes if available.
68694         (futimens, utimens): Support timespec==NULL, with same semantics
68695         as utime and utimens.
68696         * lib/utimens.h (futimens): New decl.
68697
68698 2004-11-23  Jim Meyering  <jim@meyering.net>
68699
68700         * lib/getopt_.h: Remove trailing blanks.
68701
68702 2004-11-23  Jim Meyering  <jim@meyering.net>
68703
68704         * lib/__fpending.c: Add comment.
68705
68706 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
68707
68708         * modules/canonicalize (Depends-on): Add xreadlink.
68709         Problem reported by James Youngman.
68710
68711 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68712
68713         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
68714         New macros.
68715         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
68716         optopt): Use them instead of invoking ## directly; otherwise, the
68717         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
68718
68719 2004-11-19  Bruno Haible  <bruno@clisp.org>
68720
68721         * lib/strtok_r.c: Move comments from here...
68722         * lib/strtok_r.h: ... to here.
68723
68724 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68725
68726         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
68727         implementations that mishandle size_t overflow.
68728
68729 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68730
68731         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
68732         might fail.  Problem reported by Yoann Vandoorselaere.
68733         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
68734         implementations that mishandle size_t overflow.
68735
68736 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68737
68738         * modules/canon-host (Depends-on): Add strdup.
68739
68740 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68741
68742         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
68743
68744 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68745
68746         * lib/canon-host.c: Include "strdup.h".
68747         (canon_host): Use getaddrinfo if available, so that IPv6 works.
68748         Use strdup instead of malloc/strcpy to duplicate strings.
68749
68750         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
68751         (human_space_before_unit): New constant.
68752         * lib/human.c (human_readable): Support it.
68753
68754         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
68755         (xgetcwd): Set errno correctly when failing.
68756         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
68757         the failure is actually due to a PATH_MAX problem.
68758
68759         Further getopt changes to make it more likely that glibc will
68760         buy the changes back.
68761         * lib/getopt.c (POSIXLY_CORRECT): New constant.
68762         (getopt): Use it, so to preserve glibc semantic
68763         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
68764         when compiling for libc.
68765         * lib/getopt_.h (__getopt_argv_const): Bring it back.
68766         (getopt_long, getopt_long_only): Use it.
68767
68768         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68769         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
68770         (getopt): Argv is now char * const *, as per standard.
68771         (_getopt_internal_r, _getopt_internal): Argv is now char **,
68772         not char *__getopt_argv_const *.
68773         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68774         _getopt_long_only_r): Likewise.
68775         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
68776         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68777         _getopt_long_r, _getopt_long_only_r): Likewise.
68778         * lib/getopt_.h (__getopt_argv_const): Remove.
68779         (getopt): Argv is now char * const *, as per standard.
68780
68781         * lib/getdate.y (tORDINAL): New token.
68782         (day, relunit): Allow it for relative times.
68783         (relative_time_table): Use tORDINAL for ordinals.
68784
68785 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68786
68787         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
68788         Document that "second" isn't allowed as an ordinal number.
68789
68790 2004-11-16  Jim Meyering  <jim@meyering.net>
68791
68792         * modules/closeout (Depends-on): Add fpending.
68793
68794 2004-11-15  Jim Meyering  <jim@meyering.net>
68795
68796         * lib/closeout.c: Include "__fpending.h" once again.
68797         Include <stdbool.h>.
68798         (close_stdout): Don't fail just because stdout was closed initially,
68799         since some programs don't write to stdout in the normal course of
68800         operation (other than --version and --help), and we don't want this
68801         function to make e.g. `touch file >&-' fail.
68802         But do fail if it was closed and someone has tried to write to it.
68803         E.g., `printf foo >&-' must fail.
68804
68805 2004-11-13  Jim Meyering  <jim@meyering.net>
68806
68807         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
68808
68809 2004-11-12  Simon Josefsson  <jas@extundo.com>
68810
68811         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
68812         small doc fix is still pending.
68813
68814 2004-11-11  Simon Josefsson  <jas@extundo.com>
68815
68816         * modules/strtok_r: New file.
68817
68818         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68819         strtok_r.
68820
68821 2004-11-11  Simon Josefsson  <jas@extundo.com>
68822
68823         * m4/strtok_r.m4: New file.
68824
68825         * m4/getopt.m4: Replace opterr.
68826
68827 2004-11-11  Simon Josefsson  <jas@extundo.com>
68828
68829         * lib/strtok_r.h, strtok_r.c: New file.
68830
68831 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68832
68833         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
68834         of replacing opterr, getopt, etc.  This should handle the
68835         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
68836
68837 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68838
68839         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
68840         we can stop lying to compilers about the constness of argv when we
68841         are compiled outside glibc.
68842         (getopt, getopt_long, getopt_long_only): Use it.
68843         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68844         _getopt_internal, getopt): Likewise.
68845         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68846         _getopt_long_only_r): Likewise.
68847         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68848         _getopt_long_r, _getopt_long_only_r): Likewise.
68849
68850         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
68851         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
68852         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
68853         the other external symbols.
68854         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
68855         declaration, since the above renaming now works around collisions.
68856
68857 2004-11-11  Jim Meyering  <jim@meyering.net>
68858
68859         * lib/linebreak.c: Remove trailing blanks.
68860         * lib/alloca_.h: Likewise.
68861         * lib/acosl.c: Likewise.
68862         * lib/euidaccess.c: Likewise.
68863         * lib/allocsa.h: Likewise.
68864
68865 2004-11-10  Simon Josefsson  <jas@extundo.com>
68866
68867         * m4/getaddrinfo.m4: New file.
68868
68869 2004-11-10  Simon Josefsson  <jas@extundo.com>
68870
68871         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
68872
68873 2004-11-10  Simon Josefsson  <jas@extundo.com>
68874
68875         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68876         getaddrinfo.
68877
68878         * modules/getaddrinfo: New file.
68879
68880 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68881
68882         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
68883
68884 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68885
68886         * lib/mktime.c (SHR): New macro, which is a portable
68887         substitute for >> that should work even on Crays.
68888         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
68889         Problem reported by Mark D. Baushke in
68890         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
68891         * lib/getdate.y (SHR): Likewise.
68892         (tm_diff): Use it.
68893         * lib/strftime.c (SHR): Likewise.
68894         (tm_diff): Use it.
68895         * lib/quotearg.c (struct quoting_options): Use unsigned int for
68896         quote_these_too, so that right shifts are well defined.  All uses
68897         changed.
68898
68899 2004-11-10  Jim Meyering  <jim@meyering.net>
68900
68901         Ensure that no close failure goes unreported.
68902         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
68903         return early when it seems there's nothing to flush.
68904         Don't include __fpending.h.
68905
68906 2004-11-10  Jim Meyering  <jim@meyering.net>
68907
68908         * modules/closeout (Depends-on): Remove fpending.
68909
68910 2004-11-10  Jim Meyering  <jim@meyering.net>
68911
68912         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
68913
68914 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68915
68916         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
68917         gl_FUNC_STRFTIME.
68918         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
68919         and AC_REQUIRE when possible, to avoid duplicate checks.
68920         Check for <wchar.h>.
68921
68922 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68923
68924         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
68925
68926 2004-11-09  Bruno Haible  <bruno@clisp.org>
68927
68928         * m4/sockpfaf.m4: New file.
68929
68930 2004-11-05  Bruno Haible  <bruno@clisp.org>
68931
68932         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
68933         Reported by Mark D. Baushke <mdb@cvshome.org>.
68934
68935 2004-11-04  Bruno Haible  <bruno@clisp.org>
68936
68937         2004-09-11  Bruno Haible  <bruno@clisp.org>
68938                 * allocsa.valgrind: New file.
68939         2004-02-06  Bruno Haible  <bruno@clisp.org>
68940                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
68941                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
68942                 Reported by Christopher Seip <chris.seip@hp.com>.
68943
68944 2004-11-04  Bruno Haible  <bruno@clisp.org>
68945
68946         * modules/allocsa (Files): Add lib/allocsa.valgrind.
68947         (Makefile.am): Distribute it.
68948
68949 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68950
68951         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
68952         with errno == ERANGE if the buffer is too small.
68953         Problem reported by Mark D. Baushke.
68954
68955 2004-11-03  Albert Chin  <china@thewrittenword.com>
68956             Paul Eggert  <eggert@cs.ucla.edu>
68957
68958         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
68959         equivalent, substitute $ac_type for equivalent type rather than
68960         blindly using uint32_t *always* which won't work if uint32_t is not
68961         available.  Define _UINT32_T to work around typedef of uint32_t if
68962         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
68963         2.5.1.
68964
68965 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68966
68967         * m4/jm-macros.m4: Sync from coreutils.
68968         (gl_MACROS): Check for mbrlen, for pathchk.
68969         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
68970
68971 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68972
68973         * lib/xreadlink.c (MAXSIZE): New macro.
68974         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
68975         size does not exceed MAXSIZE.  Avoid cast.
68976         As suggested by Mark D. Baushke in
68977         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
68978         if readlink fails with buffer size just under MAXSIZE, try again
68979         with MAXSIZE.
68980
68981 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68982
68983         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
68984
68985 2004-11-02  Derek R. Price  <derek@ximbiot.com>
68986         and  Paul Eggert  <eggert@cs.ucla.edu>
68987
68988         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
68989         (get_date): Overparenthesize to avoid GCC warning.
68990
68991 2004-11-02  Bruno Haible  <bruno@clisp.org>
68992
68993         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
68994         returns void.
68995
68996 2004-11-02  Bruno Haible  <bruno@clisp.org>
68997
68998         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
68999         function returns void.
69000
69001 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69002
69003         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
69004         fflush_unlocked, flockfile, funlockfile, funlockfile,
69005         fputs_unlocked, putc_unlocked.
69006
69007 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69008
69009         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69010         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
69011         already declared.
69012
69013 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69014
69015         * modules/getdate (Files): Add doc/getdate.texi.
69016         (Depends-on): Add setenv, xalloc.
69017
69018 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69019
69020         * lib/getdate.y: Add support for TZ="foo" within a date string.
69021         Fix some bugs near time_t boundaries.  Reject dates with
69022         out-of-range components, e.g., "Sept 31".
69023         Include <stdlib.h>, "setenv.h", "xalloc.h".
69024         (ISDIGIT_LOCALE): Remove; unused.
69025         Note that the TZ and time functions used here are not reentrant.
69026         (mktime_ok, get_tz): New functions.
69027         (TZBUFSIZE): New constant.
69028         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
69029         This requires that we sometimes generate our own TZ="XXX..." setting.
69030
69031 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69032
69033         * doc/getdate.texi: New file, from coreutils with modifications for
69034         the new TZ parsing.
69035
69036 2004-10-27  Derek R. Price  <derek@ximbiot.com>
69037
69038         * lib/mktime.c (not_equal_tm): Remove redundant check.
69039
69040 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69041
69042         * modules/regex (lib_SOURCES): Add regex.c.
69043         Reported by James Youngman in
69044         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
69045
69046 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69047
69048         * lib/getdate.y: Use Bison 1.875 features, and some minor
69049         code cleanups.  This change does not affect semantics.
69050         Don't include <stdlib.h>; no longer needed.
69051         Don't include unlocked-io.h; only the "#if TEST" code uses
69052         stdio, and performance isn't crucial there.
69053         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
69054         Bison 1.875 features as described below.
69055         All uses of "PC." replaced by "pc->".
69056         (YYSTYPE): Add a forward declaration.
69057         (yylex, yyerror): Use full prototypes in forward decls.
69058         Use "%pure-parser" rather than obsolescent "%pure_parser".
69059         Use %parse-param and %lex-param instead of obsolescent
69060         YYPARSE_PARAM and YYLEX_PARAM.
69061         (meridian_table, month_and_day_table, time_units_table,
69062         relative_time_table, time_zone_table, military_table,
69063         lookup_zone, lookup_word, get_date):
69064         Use NULL instead of 0 where appropriate.
69065         (to_hour): Avoid abort (), to avoid a dependency on
69066         stdlib.h.
69067         (yyerror, yylex): Now accepts parser_control * arg.
69068         (main) [TEST]: Use '\0' rather than 0 for char.
69069
69070 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69071
69072         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
69073
69074 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69075
69076         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
69077         It's now the caller's responsibility to handle the case where
69078         !HAVE_GETPAGESIZE && !defined getpagesize.
69079
69080         * lib/mktime.c (leapyear): Arg is long int, not int.
69081
69082 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
69083
69084         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
69085
69086 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69087
69088         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
69089         missing.  Problem reported by James Youngman.
69090
69091 2004-10-16  Simon Josefsson  <jas@extundo.com>
69092
69093         * gnulib-tool: Fix comments.  Fix parse problem.
69094         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
69095
69096 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
69097
69098         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
69099         implementation of getopt_long.  Problem reported by Alexander Taler in:
69100         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
69101
69102 2004-10-15  Bruno Haible  <bruno@clisp.org>
69103
69104         * gnulib-tool: Untabify. Initialize supplied_libname.
69105         (func_usage): More homogenous output.
69106         (func_modules_transitive_closure, func_modules_to_filelist,
69107         func_emit_lib_Makefile_am): New functions.
69108         (func_import): New function, extracted from big case statement. Use
69109         func_get_license, func_modules_transitive_closure,
69110         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
69111         opt_lgpl. Don't use test -a, as it's not portable.
69112         (func_create_testdir): Use func_modules_transitive_closure,
69113         func_modules_to_filelist, func_emit_lib_Makefile_am.
69114
69115 2004-10-15  Bruno Haible  <bruno@clisp.org>
69116
69117         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
69118
69119 2004-10-15  Bruno Haible  <bruno@clisp.org>
69120
69121         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
69122         the portions belonging to each module.
69123         Suggested by Derek Robert Price <derek@ximbiot.com>.
69124
69125 2004-10-12  Simon Josefsson  <jas@extundo.com>
69126
69127         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69128         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
69129         to real functions.
69130
69131 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69132
69133         * modules/vsnprintf: New file.
69134
69135 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69136
69137         * m4/vsnprintf.m4: New file.
69138
69139 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69140
69141         * lib/vsnprintf.h: New file.
69142         * lib/vsnprintf.c: New file.
69143
69144 2004-10-11  Bruno Haible  <bruno@clisp.org>
69145
69146         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
69147         vsnprintf.
69148
69149 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69150
69151         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
69152
69153 2004-10-07  Bruno Haible  <bruno@clisp.org>
69154
69155         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
69156         fits into the provided buffer.
69157
69158 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69159
69160         * lib/diacrit.c, diacrit.h: Add GPL notice.
69161
69162         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
69163         notice.
69164         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
69165         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
69166         This avoids a potential constant-folding bug.
69167
69168 2004-10-05  Bruno Haible  <bruno@clisp.org>
69169
69170         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
69171         for the declaration of strsep.
69172
69173 2004-10-05  Bruno Haible  <bruno@clisp.org>
69174
69175         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
69176
69177 2004-10-04  Simon Josefsson  <jas@extundo.com>
69178
69179         * modules/memmem: New file.
69180         * tests/test-memmem.c: New file.
69181         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
69182
69183 2004-10-04  Simon Josefsson  <jas@extundo.com>
69184
69185         * m4/memmem.m4: New file.
69186
69187 2004-10-04  Simon Josefsson  <jas@extundo.com>
69188
69189         * lib/memmem.h: New file.
69190         * lib/memmem.c: New file, taken from glibc.
69191
69192 2004-10-04  Simon Josefsson  <jas@extundo.com>
69193
69194         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
69195         '#ifdef USE_UNLOCKED_IO'.
69196
69197 2004-10-04  Simon Josefsson  <jas@extundo.com>
69198
69199         * config/srclist.txt: Add memmem from glibc.
69200
69201 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69202
69203         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
69204
69205         * modules/argmatch, modules/argp, modules/closeout, modules/error,
69206         modules/exclude, modules/getdate, modules/getline,
69207         modules/getndelim2, modules/getpass, modules/getpass-gnu,
69208         modules/getusershell, modules/linebuffer, modules/md5,
69209         modules/mountlist, modules/posixtm, modules/readtokens,
69210         modules/readutmp, modules/regex, modules/sha1,
69211         modules/version-etc, modules/yesno:
69212         Remove dependency on unlocked-io.
69213
69214 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69215
69216         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
69217
69218         * m4/unlocked-io.m4: Add copyright notice.
69219         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
69220
69221 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69222
69223         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
69224         * lib/xmalloc.c (xmemdup): Likewise.
69225         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
69226         XFREE): Remove these long-obsolescent macros.
69227         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
69228         * lib/xstrdup.c: Remove.
69229
69230         * lib/regex.c (re_comp): Cast gettext return value to char *,
69231         Problem reported by Martin Neitzel via Mark D. Baushke.
69232
69233 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69234
69235         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
69236         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
69237         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
69238         regex.c, sha1.c, version-etc.c, yesno.c:
69239         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
69240         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
69241         the includer's responsibility.
69242
69243         Sync from coreutils.
69244
69245         * lib/modechange.c (mode_compile): Don't decrement a pointer that
69246         points to the start of a string, as the C Standard says the
69247         resulting behavior is undefined.
69248
69249         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
69250         simple -> simple_backups, numbered_existing ->
69251         numbered_existing_backups, numbered -> numbered_backups
69252         to avoid shadowing problems.  All uses changed.
69253         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
69254         * lib/backupfile.c (check_extension, numbered_backup):
69255         Rename locals to avoid shadowing 'basename'.
69256         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
69257         once.
69258
69259         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
69260         * lib/.cvsignore: Add getopt.h.
69261
69262 2004-10-04  Bruno Haible  <bruno@clisp.org>
69263
69264         * modules/README: New file.
69265         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
69266         not a module.
69267
69268 2004-10-02  Jim Meyering  <jim@meyering.net>
69269
69270         * lib/dirfd.h, getpagesize.h: Add copyright notice.
69271
69272 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69273
69274         * modules/strsep: New file.
69275
69276 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69277
69278         * m4/strsep.m4: New file.
69279
69280 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69281
69282         * lib/strsep.h: New file.
69283         * lib/strsep.c: New file.
69284
69285 2004-10-01  Simon Josefsson  <jas@extundo.com>
69286
69287         * lib/snprintf.c (snprintf): Handle size==0.
69288
69289 2004-10-01  Simon Josefsson  <jas@extundo.com>
69290             Bruno Haible  <bruno@clisp.org>
69291
69292         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
69293         (snprintf): Declare 'args'.
69294
69295 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
69296
69297         * lib/snprintf.c: Remove comments as to why each header is needed.
69298
69299 2004-10-01  Bruno Haible  <bruno@clisp.org>
69300
69301         * MODULES.html.sh: Add strsep.
69302
69303 2004-09-30  Simon Josefsson  <jas@extundo.com>
69304
69305         * modules/snprintf: New file.
69306
69307 2004-09-30  Simon Josefsson  <jas@extundo.com>
69308
69309         * m4/snprintf.m4: New file.
69310
69311 2004-09-30  Simon Josefsson  <jas@extundo.com>
69312
69313         * lib/snprintf.h, lib/snprintf.c: New files.
69314
69315 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69316
69317         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
69318         (hol_entry_help): Never translate an empty string.
69319         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
69320         * lib/argp.h (OPTION_NO_TRANS): New option.
69321
69322 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69323
69324         * modules/argp (Maintainer): Replace Simon Josefsson
69325         by Sergey Poznyakoff.
69326
69327 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69328
69329         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
69330         changes merged back into glibc.
69331
69332 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69333
69334         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
69335
69336 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69337
69338         * lib/xvasprintf.c: Include xalloc.h.
69339         (xvasprintf): Use xalloc_die, not xmalloc_die.
69340
69341 2004-09-29  Bruno Haible  <bruno@clisp.org>
69342
69343         * modules/alloca-opt: New file, derived from modules/alloca.
69344         * modules/allocsa: Depend on alloca-opt instead of alloca.
69345         * modules/setenv: Likewise.
69346         * modules/vasnprintf: Likewise.
69347         * MODULES.html.sh: Add alloca-opt.
69348
69349 2004-09-28  Simon Josefsson  <jas@extundo.com>
69350
69351         * gnulib-tool: New parameter --lgpl, to asseert that modules are
69352         LGPL, and to replace license template from GPL to LGPL.
69353
69354 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69355
69356         * modules/dummy: Change license to LGPL.
69357
69358 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69359
69360         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
69361
69362 2004-09-24  Simon Josefsson  <jas@extundo.com>
69363
69364         * modules/minmax (License): Change from GPL to LGPL.
69365
69366 2004-09-23  Simon Josefsson  <jas@extundo.com>
69367
69368         * gnulib-tool (--import): Typo.
69369
69370 2004-09-23  Simon Josefsson  <jas@extundo.com>
69371
69372         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
69373
69374 2004-09-22  Bruno Haible  <bruno@clisp.org>
69375
69376         * modules/*: Add 'License' field.
69377         * gnulib-tool: Accept --extract-license option.
69378         (func_get_license): New function.
69379
69380 2004-09-21  Bruno Haible  <bruno@clisp.org>
69381
69382         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
69383         Reported by Simon Josefsson.
69384
69385 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69386
69387         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
69388         gl_AC_TYPE_LONG_LONG.
69389
69390 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69391
69392         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
69393
69394 2004-09-18  Simon Josefsson  <jas@extundo.com>
69395         and  Paul Eggert  <eggert@cs.ucla.edu>
69396
69397         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
69398         calls with autoreconf.  Define GL_LIB.
69399
69400 2004-09-14  Karl Berry  <karl@gnu.org>
69401
69402         * config/srclist.txt: unsync setenv.c, sigh.
69403
69404 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69405
69406         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
69407         Problem reported by Bruno Haible in:
69408         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
69409
69410 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69411
69412         * config/srclist.txt: Comment out argp-pvh.c.
69413
69414 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
69415
69416         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
69417         in case some system header has #define'd it.  Problem reported by
69418         Soeren D. Schulze in
69419         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
69420
69421 2004-09-09  Karl Berry  <karl@gnu.org>
69422
69423         * regex.[ch]: delete from the root.  These were supposed to be
69424                 synced with emacs cvs, but this has not happened for about
69425                 a year, and anyway nothing else uses emacs regex.[ch].
69426                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
69427                 lib/regex[.ch] is untouched.
69428
69429 2004-09-09  Bruno Haible  <bruno@clisp.org>
69430
69431         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
69432
69433 2004-09-09  Bruno Haible  <bruno@clisp.org>
69434
69435         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
69436         modifications.
69437         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
69438
69439 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69440
69441         * modules/xvasprintf: New file.
69442         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
69443
69444 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69445
69446         * lib/xvasprintf.h: New file.
69447         * lib/xvasprintf.c: New file.
69448         * lib/xasprintf.c: New file.
69449
69450 2004-09-08  Bruno Haible  <bruno@clisp.org>
69451
69452         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
69453
69454 2004-09-08  Bruno Haible  <bruno@clisp.org>
69455
69456         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
69457         length is > INT_MAX.
69458         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
69459         more.
69460
69461 2004-09-08  Bruno Haible  <bruno@clisp.org>
69462
69463         * lib/stdint_.h: New file, taken from GNU clisp.
69464
69465 2004-09-08  Bruno Haible  <bruno@clisp.org>
69466             Oskar Liljeblad  <oskar@osk.mine.nu>
69467
69468         * modules/stdint: New file.
69469         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
69470
69471 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69472
69473         Import from coreutils.
69474         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
69475         strings on unbounded length.  alloca's performance benefits aren't
69476         that important here.
69477         (V_STRDUP): Remove.
69478         (parse_with_separator): New function, with most of the internals
69479         of the old parse_user_spec.  Allow user to omit both user and group,
69480         for compatibility with FreeBSD.
69481         Clone only the user name, not the entire spec.
69482         Do not set *uid, *gid unless entirely successful.
69483         Avoid memory leak in some failing cases.
69484         Fix regression for USER.GROUP reported by Dmitry V. Levin in
69485         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
69486         (parse_user_spec): Rewrite to use parse_with_separator.
69487
69488 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69489
69490         * modules/userspec: Don't depend on alloca.
69491
69492 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69493
69494         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
69495
69496 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69497
69498         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
69499         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
69500         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
69501
69502 2004-08-16  Simon Josefsson  <jas@extundo.com>
69503
69504         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
69505         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
69506         Add --dry-run for --import.
69507         Let user provided command line parameters override configure.ac
69508         settings.
69509
69510 2004-08-12  Simon Josefsson  <jas@extundo.com>
69511
69512         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
69513         as discussed with Paul Eggert in threads rooted at
69514         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
69515         and
69516         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
69517         Before, the test was empty, and relied on ELIDE_CODE in source
69518         code.)
69519         (gl_PREREQ_GETOPT): New macro.
69520         (gl_GETOPT): Use them.
69521
69522 2004-08-12  Simon Josefsson  <jas@extundo.com>
69523
69524         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
69525         * lib/getopt_.h: Renamed from getopt.h.
69526
69527 2004-08-12  Simon Josefsson  <jas@extundo.com>
69528
69529         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
69530         Change default library name from libfoo to libgnu.
69531         Now, if you have a configure.ac that says:
69532                 gl_SOURCE_BASE(gl)
69533                 gl_M4_BASE(gl/m4)
69534                 gl_MODULES(error getopt etcetera)
69535                 gl_INIT
69536         you can import all you need by running:
69537                 ../gnulib/gnulib-tool --import
69538
69539         * modules/getopt (Files): Rename getopt.h to getopt_.h.
69540         (Makefile.am): Rewrite, use logic from argz.
69541         (Include): Use <getopt.h> instead of "getopt.h".
69542
69543 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69544
69545         * modules/argp (Files): Add m4/unlocked-io.m4.
69546         (Depends-on): Add extensions.
69547
69548 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69549
69550         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
69551         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
69552         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
69553         Check for program_invocation_name, program_invocation_short_name,
69554         flockfile, funlockfile, features.h, _getopt_long_only_r.
69555
69556 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69557
69558         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
69559         its complicated substitute.
69560         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
69561         and program_invocation_name.
69562         (__argp_basename) [!_LIBC]: Remove; the only use was
69563         replaced by its body.
69564         (__argp_short_program_name): Change condition from
69565         !defined __argp_short_program_name to
69566         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
69567         to match argp-namefrob.h.
69568         (__argp_failure): Don't assume strerror_r returns char *.
69569         * lib/argp-parse.c (N_): Define unconditionally.
69570         (argp_default_options): Fill out initializers with 0 to avoid
69571         gcc warnings.
69572
69573 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69574
69575         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
69576         getopt1.c.
69577
69578 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69579
69580         Merge from coreutils.
69581
69582         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
69583
69584         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
69585         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
69586
69587 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69588
69589         Merge from coreutils.
69590
69591         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
69592         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
69593         for Reliant Unix 5.43.
69594
69595         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
69596         (union fooround): Use uintmax_t, not long int.
69597         The rest is a merge from libc:
69598         [defined _LIBC]: Include <shlib-compat.h>.
69599         (_obstack) [defined _LIBC]: Remove after 2.3.4.
69600
69601         * lib/settime.c (settime): Recode to avoid warning with
69602         Sun Forte C 6U2.
69603
69604         * lib/strverscmp.c: Convert to UTF-8.
69605
69606 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69607
69608         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69609         m4/uintmax_t.m4.
69610
69611 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69612
69613         * modules/xalloc-die: New file.
69614         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
69615
69616         * modules/md5 (Files): Add m4/uint32_t.m4.
69617         * modules/sha1: Renamed from modules/sha.
69618         (Files):
69619         Rename lib/sha.h to lib/sha1.h.
69620         Rename lib/sha.c to lib/sha1.c.
69621         Rename m4/sha.m4 to m4/sha1.m4.
69622         (lib_SOURCES): Likewise.
69623         (configure.ac): Rename gl_SHA to gl_SHA1.
69624         (Include): sha.h -> sha1.h.
69625
69626 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69627
69628         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
69629         * m4/sha1.m4: Renamed from sha.m4.
69630         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
69631
69632 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69633
69634         * lib/obstack.h (obstack_empty_p):
69635         Don't assume that chunk->contents is suitably aligned.
69636         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
69637         Likewise. Problem reported by Benno in
69638         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
69639
69640         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
69641         readable.  This could be improved further but it'd take some work.
69642
69643 2004-08-08  Simon Josefsson  <jas@extundo.com>
69644
69645         * modules/xgethostname (Depends-on): Remove exit and error (not
69646         used).
69647
69648         * modules/getpass-gnu: Add getpass.h.
69649         (Depends-on): Add stdbool.
69650         * modules/getpass: Add getpass.h.
69651
69652 2004-08-08  Simon Josefsson  <jas@extundo.com>
69653
69654         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
69655         Check getpass declaration.
69656
69657 2004-08-08  Simon Josefsson  <jas@extundo.com>
69658
69659         * lib/xgethostname.c: Don't include error.h (not used).
69660
69661         * lib/getpass.h: Add.
69662         * lib/getpass.c: Include getpass.h first.
69663
69664 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
69665
69666         * lib/xalloc-die.c: New file.
69667         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
69668         All uses removed.
69669         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
69670         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
69671         xalloc-die.c.
69672         (_, N_, xalloc_die): Move to xalloc-die.c.
69673         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
69674         so that we needn't mess with xalloc_msg_memory_exhausted.
69675
69676         * lib/sha1.h: Renamed from sha.h.
69677         (SHA1_H): Renamed from _SHA_H.
69678         (sha1_ctx): Renamed from sha_ctx.
69679         (sha1_init_ctx): Renamed from sha_init_ctx.
69680         (sha1_process_block): Renamed from sha_process_block.
69681         (sha1_process_bytes): Renamed from sha_process_bytes.
69682         (sha1_finish_ctx): Renamed from sha_finish_ctx.
69683         (sha1_read_ctx): Renamed from sha_read_ctx.
69684         (sha1_stream): Renamed from sha_stream.
69685         (sha1_buffer): Renamed from sha_buffer.
69686         * lib/sha1.c: Likewise; renamed from sha.c.
69687         Do not include <sys/types.h>.
69688         Include <stddef.h> rather than <stdlib.h>.
69689
69690 2004-08-08  Bruno Haible  <bruno@clisp.org>
69691
69692         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
69693         FILESYSTEM_PREFIX_LEN.
69694         * lib/progreloc.c: Likewise.
69695         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
69696
69697 2004-08-06  Simon Josefsson  <jas@extundo.com>
69698
69699         * modules/progname (Depends-on): Don't depend on stdbool.
69700
69701 2004-08-06  Simon Josefsson  <jas@extundo.com>
69702
69703         * modules/getsubopt: New file.
69704         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69705         getsubopt.
69706
69707 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69708
69709         More merge from coreutils.
69710
69711         * m4/utimens.m4, m4/utimecmp.m4: New files.
69712         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
69713         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
69714         prereq.m4, sha.m4: Import changes from coreutils.
69715
69716 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69717
69718         More merge from coreutils.
69719         * modules/raise, modules/readtokens0, modules/utimens:
69720         * modules/utimecmp, module/xnanosleep: New files.
69721         * modules/strftime: Add lib/strftime.h.
69722         Change include from <time.h> to "strftime.h".
69723         * modules/yesno: Add lib/yesno.h.
69724         * modules/backupfile: Remove lib/addext.c.
69725         * modules/euidaccess: Add stat-macros.h.
69726         * modules/canonicalize, modules/euidaccess,
69727         modules/filemode, modules/lchown, modules/makepath,
69728         modules/rmdir, modules/stat: Likewise.
69729
69730 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69731
69732         Merge from tar.
69733         * lib/argp-help.c (make_hol, hol_append): Don't assume that
69734         SIZE_MAX is a valid preprocessor constant.
69735         (__argp_basename): Change from "#ifndef _LIBC"
69736         to "#ifndef __argp_short_program_name", so that
69737         we don't compile these functions for tar.
69738
69739         More merges from coreutils.
69740         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
69741         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
69742         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
69743         * lib/addext.c: Remove; no longer needed.
69744         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
69745         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
69746         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
69747         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
69748         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
69749         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
69750         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
69751         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
69752         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
69753         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69754         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
69755         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
69756         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
69757         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
69758         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
69759         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
69760         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
69761         Import changes from coreutils.
69762
69763 2004-08-05  Simon Josefsson  <jas@extundo.com>
69764
69765         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
69766
69767 2004-08-05  Simon Josefsson  <jas@extundo.com>
69768
69769         * m4/getsubopt.m4: New file.
69770
69771 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69772
69773         Merge from coreutils.
69774
69775         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
69776         * m4/getcwd-path-max.m4: New files.
69777
69778         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
69779         FILESYSTEM_PREFIX_LEN ->
69780         FILE_SYSTEM_PREFIX_LEN.
69781         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
69782         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
69783         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
69784         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
69785
69786         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
69787         prerequisite modules now handle the DOS stuff.
69788         Don't check for unistd.h.
69789
69790 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69791
69792         Merge from coreutils.
69793
69794         * lib/.gdb-history: Remove; this doesn't belong here.
69795
69796         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
69797         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
69798         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
69799         * lib/getcwd.c: New files.
69800
69801         * lib/dirname.h: Include <stdbool.h>.
69802         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
69803         for consistency with POSIX terminology.  All uses changed.
69804         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
69805         (strip_trailing_slashes): Use bool for booleans.
69806         * lib/stripslash.c (strip_trailing_slashes): Likewise.
69807
69808         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
69809         sometimes returns a positive errno value even when it succeeds.
69810         (print_errno_message) [!LIBC]: Fall back on strerror if
69811         __strerror_r fails.
69812
69813         * lib/path-concat.c (mempcpy): Don't define if a system header defines
69814         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
69815         (longest_relative_suffix): New function.
69816         (path_concat): Use it.  Assume first argument is not NULL.
69817         Port to DOS.  Omit redundant separators.
69818         Report an error instead of returning NULL.
69819         Use mempcpy instead of memcpy.
69820         (xpath_concat): Remove: not declared or used.
69821
69822         * lib/same.h: Include <stdbool.h>
69823         (same_name): Return bool, not int.
69824         * lib/same.c (same_name): Likewise.
69825         (errno): Don't declare; we assume C89 or better now.
69826
69827         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
69828         if not already defined.
69829
69830         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
69831         * lib/dup-safer.c (errno): Likewise.
69832
69833 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69834
69835         Merge from coreutils.
69836         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
69837         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
69838         * modules/path-concat: Don't depend on strdup.
69839
69840 2004-08-03  Simon Josefsson  <jas@extundo.com>
69841
69842         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
69843         * lib/progname.h: Don't include stdbool.h.
69844
69845 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69846
69847         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
69848         * MODULES.html.sh (func_all_modules): Remove fatal.
69849
69850 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69851
69852         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
69853
69854 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69855
69856         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
69857         working.
69858
69859 2004-08-02  Simon Josefsson  <jas@extundo.com>
69860
69861         * lib/getsubopt.h: New file, with comments from Bruno Haible.
69862         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
69863         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
69864
69865 2004-08-01  Simon Josefsson  <jas@extundo.com>
69866
69867         * lib/xgetdomainname.c: Include stdlib.h, for free().
69868
69869 2004-07-19  Bruno Haible  <bruno@clisp.org>
69870
69871         * MODULES.html.sh (func_all_modules): Add dummy.
69872
69873 2004-07-16  Simon Josefsson  <jas@extundo.com>
69874
69875         * modules/dummy: New file.
69876
69877 2004-07-16  Simon Josefsson  <jas@extundo.com>
69878
69879         * lib/dummy.c: New file.
69880
69881 2004-07-16  Bruno Haible  <bruno@clisp.org>
69882
69883         * lib/backupfile.h: Add extern "C" for C++.
69884         * lib/closeout.h: Likewise.
69885         * lib/copy-file.h: Likewise.
69886         * lib/findprog.h: Likewise.
69887         * lib/full-write.h: Likewise.
69888         * lib/pathname.h: Likewise.
69889         * lib/progname.h: Likewise.
69890         * lib/stpcpy.h: Likewise.
69891         * lib/stpncpy.h: Likewise.
69892         * lib/strcase.h: Likewise.
69893         * lib/strstr.h: Likewise.
69894         * lib/xalloc.h: Likewise.
69895
69896         * lib/mbswidth.h: Add extern "C" for C++.
69897         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
69898
69899 2004-07-13  Robert Millan  <robertmh@gnu.org>
69900
69901         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
69902
69903 2004-07-09  Simon Josefsson  <jas@extundo.com>
69904
69905         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
69906         failed without this.)
69907
69908 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69909
69910         * modules/chown (Files): Add lib/fchown-stub.c, since
69911         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
69912
69913 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69914
69915         * lib/fchown-stub.c: New file.
69916
69917 2004-06-24  Jim Meyering  <jim@meyering.net>
69918
69919         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
69920
69921 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69922
69923         * modules/argz: Omit "#include".
69924
69925         * MODULES.html.sh (func_all_modules): Add calloc, to match
69926         2004-06-01 addition of calloc module.
69927
69928 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69929
69930         * m4/argz.m4: New file, which is autoupdated from libtool.
69931
69932 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69933
69934         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
69935         libtool.
69936
69937 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69938
69939         * config/srclist-update: Don't insist on "USA." before the
69940         close-comment, as libtool omits the period and puts the */ on a
69941         separate line.
69942         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
69943         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
69944
69945 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
69946
69947         * modules/argz: New file.
69948         * MODULES.html.sh (func_all_modules): Add argz.
69949
69950 2004-06-12  Jim Meyering  <jim@meyering.net>
69951         and  Paul Eggert  <eggert@cs.ucla.edu>
69952
69953         * modules/hash (Files): Add lib/xalloc.h.
69954         * modules/pipe (Depends-on): Add wait-process.
69955         * modules/stat (Depends-on): Add xalloc.
69956         * modules/userspec (Files): Add lib/userspec.h.
69957         * modules/xstrto
69958
69959         Upgrade from gettext-0.13.
69960         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
69961         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
69962         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
69963
69964 2004-06-10  Jim Meyering  <jim@meyering.net>
69965
69966         * lib/calloc.c: New file.
69967
69968 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69969
69970         * lib/getdate.y (yylex): Allow space between sign and number.
69971         Problem reported by Dan Jacobson.
69972
69973 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69974
69975         Merge from coreutils CVS.
69976
69977         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
69978         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
69979         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
69980         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
69981         xstrtol.m4: Fix copyright date and/or serial number.
69982
69983         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
69984         See if we need an fchown replacement.
69985         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
69986         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
69987         and use the replacement function if we detect either defect.
69988
69989         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
69990         gl_UTIMECMP.
69991
69992 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69993         and  Jim Meyering  <jim@meyering.net>
69994
69995         Merge from coreutils CVS.
69996
69997         * lib/stat-macros.h: New file, with contents from file-type.h
69998         and coreutils' system.h.
69999         * lib/file-type.c: Include "stat-macros.h".
70000         * lib/file-type.h (file_type): Move all macro definitions to new file,
70001         stat-macros.h.
70002
70003         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
70004         Wrap old code with this conditional.
70005         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
70006         function that does not dereference symlinks.
70007         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
70008
70009         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
70010         dependency problems.
70011         (xreadlink): Accept new arg SIZE, for efficiency.
70012         All decls and uses changed.
70013         * lib/xreadlink.h: Include <stddef.h>, for size_t.
70014
70015         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
70016         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
70017
70018         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
70019         sysexits.h.
70020
70021 2004-06-01  Jim Meyering  <jim@meyering.net>
70022
70023         * m4/calloc.m4: New file.
70024
70025 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
70026
70027         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
70028         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
70029         Also, fix a typo in a diagnostic.
70030
70031 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70032
70033         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
70034         or AC_FUNC_REALLOC.
70035
70036 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70037
70038         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
70039         macros to be defined.
70040         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
70041         the allocator returns NULL because the requested size is zero.
70042
70043 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70044
70045         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
70046         var.  Add comment explaining why libc still defines it.  This
70047         merges the following patch from glibc:
70048         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
70049
70050 2004-05-20  Andreas Schwab  <schwab@suse.de>
70051
70052         * m4/free.m4: Replace free if it not known to work, not the other
70053         way round.
70054
70055 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70056
70057         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
70058         present in glibc since revision 1.1 of this file.
70059         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
70060         obstack_alignment_mask, obstack_alloc, obstack_base,
70061         obstack_blank, obstack_blank_fast, obstack_chunk_size,
70062         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
70063         obstack_grow0, obstack_init, obstack_int_grow,
70064         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
70065         obstack_next_free, obstack_object_size, obstack_ptr_grow,
70066         obstack_ptr_grow_fast, obstack_room): Remove declarations of
70067         nonexistent functions.
70068
70069 2004-05-18  Karl Berry  <karl@gnu.org>
70070
70071         * config/srclist.txt: break link for vasnprintf.c.
70072
70073 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70074
70075         Port obstack to the AS/400, where pointers are 16 bytes wide and
70076         you cannot cast an integer to a valid pointer.  This patch is
70077         currently waiting to be integrated into glibc; see
70078         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
70079
70080         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
70081         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
70082         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
70083         (struct obstack): temp member is now a union of a pointer and
70084         an integer, instead of an integer.  All integer uses changed.
70085         This does not affect the physical layout of struct obstack,
70086         except on hosts (like the AS/400) where the size or alignment of
70087         void * is greater than that of ptrdiff_t.
70088         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
70089         __STDC__)]: Store temporary in pointer member of union, not
70090         integer member.
70091         * lib/obstack.c: Include <stddef.h>, for offsetof.
70092         (struct fooalign): Remove; it doesn't need a name.
70093         (union fooround): Change double to long double, and add void *.
70094         (DEFAULT_ALIGNMENT): Use offsetof to compute.
70095         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
70096         not a macro.  Hence the values are always int; so remove all
70097         casts-to-int in uses.
70098
70099 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70100
70101         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
70102         we can get this patch merged into glibc.
70103
70104 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70105             Paul Eggert  <eggert@cs.ucla.edu>
70106
70107         * m4/argp: Depend on alloca.
70108
70109 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70110             Paul Eggert  <eggert@cs.ucla.edu>
70111
70112         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
70113         freecoding.
70114
70115 2004-05-17  Bruno Haible  <bruno@clisp.org>
70116
70117         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
70118         precision that consists of a '.' followed by an empty digit string.
70119         Patch by Tor Lillqvist <tml@iki.fi>.
70120
70121 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70122
70123         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
70124         for backward compatibility with older code.  We need our own
70125         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
70126         it under some other name, and our alloca.h will define it.
70127
70128 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70129             Derek Price  <derek@ximbiot.com>
70130
70131         * lib/alloca.c: Include <alloca.h>, to get our interface.
70132         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
70133         include <alloca.h> first.  Use C89 prototype for alloca; this
70134         requires including <stddef.h> for size_t.  Use extern "C" if C++.
70135         Use #elif for simplicity, since we can assume C89 now.
70136         Don't try to source the system alloca.h since it will not be found
70137         and to prevent recursively including its replacement.
70138         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
70139         * lib/regex.c: Likewise.
70140
70141 2004-05-16  Derek Price  <derek@ximbiot.com>
70142             Paul Eggert  <eggert@cs.ucla.edu>
70143
70144         getline cleanup.  This changes the getndelim2 API: both order of
70145         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
70146         no delimiter).
70147
70148         * lib/getline.c: Don't include stddef.h or stdio.h, since our
70149         interface does that.
70150         (getline): Always use getdelim, so that we don't have two
70151         copies of this code.
70152         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
70153         if available.
70154         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
70155         (GETNDELIM2_MAXIMUM): New macro.
70156         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
70157         instead of the old practice of delim2==0.  All callers changed.
70158         Return -1 on overflow, instead of returning junk.
70159         Do not set *linesize unless allocation succeeds.
70160         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
70161         that we include sys/types.h.
70162         * lib/getnline.h: Likewise.
70163         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
70164         (getndelim2): Reorder arguments.
70165         * lib/getnline.c (getnline, getndelim):
70166         Don't discard the NMAX argument.
70167         (getnline): Invoke getndelim, to avoid code duplication.
70168         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
70169         of (size_t) -1 by callers of the getnline family.
70170
70171 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70172
70173         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
70174         Check for gettimeofday.
70175         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
70176         Check for settimeofday, stime.
70177
70178 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70179
70180         * lib/nanosleep.c (suspended): Change its type from int to
70181         sig_atomic_t volatile.
70182         (first_call): Make it private to rpl_nanosleep, and have it
70183         be zero initially as that's a bit faster.
70184         (my_usleep): Round up fractional times instead of truncating them,
70185         as this is the usual meaning for 'sleep'.
70186
70187         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
70188         doesn't work.
70189         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
70190         (ENOSYS): Define if not defined.
70191         (settime): Fall back on stime if it exists and settimeofday fails.
70192         But don't bother with fallbacks if a method fails with errno == EPERM.
70193
70194 2004-05-11  Jim Meyering  <jim@meyering.net>
70195
70196         Prior to this change, the save_cwd caller required read access to the
70197         current directory on most systems (ones with the fchdir function).
70198
70199         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
70200         fails, try write-only, and finally, resort to using xgetcwd.
70201
70202 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70203
70204         * lib/obstack.c, obstack.h: Import changes from libc.
70205
70206 2004-04-28  Bruno Haible  <bruno@clisp.org>
70207
70208         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
70209         also implicitly appends .exe to executables.
70210         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
70211         accepts Windows pathnames.
70212         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70213         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70214         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70215         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70216         Reported by Derek Robert Price <derek@ximbiot.com>.
70217
70218 2004-04-21  Karl Berry  <karl@gnu.org>
70219
70220         * config/srclist.txt (localcharset.c): break sync.
70221
70222 2004-04-20  Paul Eggert  <eggert@twinsun.com>
70223
70224         * m4/host-os.m4: Add a copyright notice.
70225
70226 2004-04-20  Jim Meyering  <jim@meyering.net>
70227
70228         Change UTILS_ to gl_ in AC_DEFINE'd names.
70229         Change utils_- and jm_-prefixed variables, too.
70230         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
70231         UTILS_FUNC_MKDIR_TRAILING_SLASH.
70232         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
70233
70234         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
70235         Don't emit trailing blanks.
70236         Also rename jm_-prefixed variables to have gl_ prefix.
70237
70238         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
70239         Also rename jm_-prefixed variables to have gl_ prefix.
70240
70241         * m4/jm-macros.m4: Reflect the renamings.
70242         * m4/prereq.m4: Likewise.
70243
70244 2004-04-20  Jim Meyering  <jim@meyering.net>
70245
70246         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
70247         memory.
70248
70249 2004-04-20  Jim Meyering  <jim@meyering.net>
70250             Bruno Haible  <bruno@clisp.org>
70251
70252         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
70253         memory when realloc fails.
70254
70255 2004-04-19  Jim Meyering  <jim@meyering.net>
70256
70257         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
70258         now that readutmp.c may call `free (0)'.
70259
70260 2004-04-19  Bruno Haible  <bruno@clisp.org>
70261
70262         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
70263         * m4/inttypes_h.m4: Likewise.
70264         * m4/stdint_h.m4: Likewise.
70265         * m4/intmax_t.m4: Likewise.
70266         * m4/uintmax_t.m4: Likewise.
70267
70268 2004-04-18  Jim Meyering  <jim@meyering.net>
70269
70270         * m4/prereq.m4: Don't forbid jm_ prefix.
70271
70272         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
70273         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
70274         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
70275         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
70276         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
70277         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
70278         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
70279         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
70280         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
70281         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
70282         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
70283         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
70284         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
70285         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
70286         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
70287         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
70288         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
70289         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
70290         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
70291
70292 2004-04-18  Jim Meyering  <jim@meyering.net>
70293
70294         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
70295         failure, don't leak memory and do call END_UTMP_ENT.
70296
70297 2004-04-16  Jim Meyering  <jim@meyering.net>
70298
70299         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
70300         coreutils' stat program.
70301         (gl_PREREQ): Don't require jm_PREREQ_STAT.
70302
70303 2004-04-11  Paul Eggert  <eggert@twinsun.com>
70304
70305         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
70306         C89.
70307         (CHAR_BIT): Remove, since we assume C89.
70308         Include <stdint.h> if available, as per current Autoconf CVS advice.
70309
70310 2004-03-31  Jim Meyering  <jim@meyering.net>
70311
70312         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
70313         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
70314         * m4/xalloc.m4: Likewise.
70315
70316 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70317
70318         Merge from coreutils.
70319
70320         * m4/inttostr.m4: New file.
70321         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
70322         Require AM_STDBOOL_H and gl_TIMESPEC instead.
70323         Require gl_CLOCK_TIME.
70324         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
70325
70326 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70327
70328         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
70329         not bool, to be more consistent with Unix conventions.
70330         Suggested by Bruno Haible.
70331
70332         Merge from coreutils.
70333
70334         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
70335         * lib/umaxtostr.c: New files.
70336
70337         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
70338         the usual <time.h> dance.
70339         (get_date): Change signature to support fractional time stamps.
70340         All callers changed.
70341         * lib/getdate.y: Include "getdate.h" first, as we can now
70342         assume C89 and don't need to worry about 'const'.
70343         Similarly, include "unlocked-io.h" near start, not in middle.
70344         Include <limits.h>.
70345         (textint.value): Use long int rather than int.
70346         (textint.digits): Use size_t rather than int.
70347         (BILLION, LOG10_BILLION): New constants.
70348         (parser_control): New member rel_ns.  Members day_ordinal,
70349         time_zone, month, day, hour, minutes, rel_year, rel_month,
70350         rel_day, rel_hour, rel_minutes, rel_seconds
70351         are now long int, not int.  Member seconds is now struct timespec,
70352         not int.  New member timespec_seen.  Members dates_seen, days_seen,
70353         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
70354         not int.
70355         (%union.intval): Now long int, not int.
70356         New member timespec.
70357         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
70358         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
70359         (spec): Now is a timespec or an item list.
70360         (timespec, items): New nonterminals.
70361         (time, rel, relunit, number, get_date):
70362         Add support for fractional seconds.
70363         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
70364         (gmtime, localtime, mktime): Remove decls; not needed with C89.
70365         (to_hour): First arg is now long int, not int.
70366         (to_year): Returns long int, not int.
70367         Don't treat year -70 like 70.
70368         (tm_diff): Returns long int, not int.
70369         (lookup_word): Use bool instead of int when appropriate.
70370         (yylex): Use size_t for count, not int.
70371         Detect overflow when parsing large integer constants.
70372         Add support for fractions.
70373         (get_date): Make pointers 'const' if possible.
70374         Use more-portable code to detect integer overflow.
70375         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
70376         Don't use ctime; it's not reliable if the year has >4 digits.
70377
70378         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
70379         This is for compatibility with BSD.
70380
70381         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
70382         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
70383         From coreutils' system.h.
70384
70385         * lib/userspec.c: Don't include "posixver.h".
70386         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
70387         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
70388         compatible extension.  Simplify code by removing a boolean int
70389         that was always nonzero if a string was nonnull.
70390
70391 2004-03-30  Jim Meyering  <jim@meyering.net>
70392
70393         Merge from coreutils.
70394
70395         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
70396         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
70397         on some systems one must include <grp.h> before it.
70398         Reported by Christian Krackowizer.
70399
70400 2004-03-30  Jim Meyering  <jim@meyering.net>
70401
70402         Merge from coreutils.
70403
70404         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
70405
70406         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
70407         an empty input stream.
70408
70409         * lib/readtokens.c: Include <stdbool.h>.
70410         (readtoken): Use `size_t' rather than int/long.
70411         All callers adjusted.
70412         Use `bool' rather than `int' where appropriate.
70413         Use memset rather than an explicit loop.
70414         Use x2nrealloc rather than xrealloc.
70415         Allow the use of `\0' as a delimiter.
70416         (readtokens): Likewise.
70417         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
70418
70419 2004-03-30  Jim Meyering  <jim@meyering.net>
70420
70421         * m4/realloc.m4: Remove file, since now it does no more than
70422         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
70423         the `configure.ac' section of module/realloc.
70424         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
70425
70426 2004-03-30  Bruno Haible  <bruno@clisp.org>
70427
70428         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
70429         nonnull.
70430
70431 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70432
70433         Merge changes to getloadavg.c from coreutils and Emacs.
70434
70435         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
70436         Define to an expression, not to the empty string.
70437         Include cloexec.h and xalloc.h.
70438         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
70439         Use set_cloexec_flag rather than rolling our own.
70440         * lib/cloexec.c, lib/cloexec.h: New files.
70441
70442 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70443
70444         * m4/cloexec.m4: New file.
70445
70446 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70447
70448         * lib/getopt.h: Sync with libc CVS.
70449
70450 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70451             Bruno Haible  <bruno@clisp.org>
70452
70453         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
70454         mbswidth.
70455
70456 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70457             Bruno Haible  <bruno@clisp.org>
70458
70459         * lib/mbswidth.h: Include <wchar.h> only if
70460         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
70461         <wchar.h>.
70462         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
70463
70464 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70465
70466         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
70467         Sync with libc CVS.
70468         * lib/getopt_int.h: New file, also synced from libc.
70469
70470 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70471
70472         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
70473         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
70474         Bring back getopt.c, getopt.h, getopt1.c.
70475
70476 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70477
70478         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
70479         All uses changed.  Check for sa_sigaction member; this fixes
70480         a bug first reported by Jason Andrade in
70481         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70482
70483 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70484
70485         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
70486         '#if' expressions.  Unlike the code it replaces, it does not
70487         depend on (defined _SC_PAGESIZE).  However, it does depend on
70488         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
70489         first reported by Jason Andrade in
70490         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70491
70492 2004-02-25  Simon Josefsson  <jas@extundo.com>
70493
70494         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
70495
70496 2004-02-25  Simon Josefsson  <jas@extundo.com>
70497
70498         * lib/strdup.h: New file.
70499         * lib/strdup.c: Include it.
70500         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
70501         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
70502
70503 2004-02-23  Karl Berry  <karl@gnu.org>
70504
70505         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
70506         (from fencepost.gnu.org:/gd/gnuorg).
70507
70508 2004-02-23  Karl Berry  <karl@gnu.org>
70509
70510         * config/srclistvars.sh (GNUORG) [karl]: redefine.
70511         * config/srclist.txt: add maintain/standards documents.
70512
70513 2004-02-18  Bruno Haible  <bruno@clisp.org>
70514
70515         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
70516         Reported by Derek Robert Price <derek@ximbiot.com>.
70517
70518 2004-02-16  Karl Berry  <karl@gnu.org>
70519
70520         * config/mkinstalldirs, install-sh: update from automake.
70521
70522 2004-02-06  Karl Berry  <karl@gnu.org>
70523
70524         * m4/po.m4: update from gettext 0.14.1.
70525
70526 2004-02-06  Karl Berry  <karl@gnu.org>
70527
70528         * lib/config.charset: update from gettext 0.14.1.
70529
70530 2004-02-05  Paul Eggert  <eggert@twinsun.com>
70531
70532         Add comments and code, prompted by suggestions from Bruno Haible
70533         for sh-quote.
70534         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
70535         describing the enum quoting_style values.
70536         * lib/quotearg.c (quotearg_alloc): New function.
70537         (quotearg_buffer_restyled): Treat lone { and } as special.
70538         Treat = as special.  Work around bug with older shells
70539         that "see" a '\' that is really the 2nd byte of a multibyte char.
70540         Quote empty string with shell_quoting_style.
70541
70542 2004-02-03  Bruno Haible  <bruno@clisp.org>
70543
70544         * m4/pipe.m4: New file, from GNU gettext.
70545
70546 2004-02-03  Bruno Haible  <bruno@clisp.org>
70547
70548         * lib/pipe.h: New file, from GNU gettext.
70549         * lib/pipe.c: New file, from GNU gettext.
70550
70551 2004-01-27  Bruno Haible  <bruno@clisp.org>
70552
70553         * m4/execute.m4: New file, from GNU gettext.
70554
70555 2004-01-27  Bruno Haible  <bruno@clisp.org>
70556
70557         * lib/execute.h: New file, from GNU gettext.
70558         * lib/execute.c: New file, from GNU gettext.
70559         * lib/w32spawn.h: New file, from GNU gettext.
70560
70561 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70562
70563         Merge from diffutils.
70564
70565         * lib/file-type.c (file_type): Add typed memory objects.
70566         * lib/file-type.h (S_TYPEISTMO): New macro.
70567
70568         * lib/c-stack.h (c_stack_action): Remove argv argument.
70569         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
70570         (die): Don't calculate message unless segv_action returns.
70571         (get_stack_location, min_address_from_argv, max_address_from_argv,
70572         volatile stack_base, volatile_stack_size): Remove.
70573         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
70574         that every segmentation violation is a stack overflow.  (Ouch!)
70575         See Debian bug 136249 (still outstanding) for more info about why
70576         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
70577
70578 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70579
70580         Exit-status fix from coreutils.
70581
70582         Use exit_failure consistently in place of EXIT_FAILURE,
70583         so that program exit statuses are consistent on failure.
70584
70585         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
70586         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
70587         * lib/argmatch.h: Comment fix to match the above.
70588         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
70589         Now a macro referring to exit_failure, instead of a separate
70590         variable.  Include "exitfail.h" to get it.
70591         * lib/xstrtol.h: Include "exitfail.h".
70592         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
70593
70594         * lib/long-options.c (parse_long_options): Use prototype
70595         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
70596         for clarity.
70597
70598 2004-01-21  Jim Meyering  <jim@meyering.net>
70599
70600         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
70601         so as not to conflict with a different-sized __mktime_internal
70602         function in GNU libc.
70603         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
70604         Problem building statically-linked `ls' reported by Michael Brunnbauer.
70605
70606 2004-01-20  Karl Berry  <karl@gnu.org>
70607
70608         * config/config.guess: update from config.
70609
70610         * config/srclistvars.sh: GNUWWWLICENSES for karl.
70611
70612 2004-01-20  Bruno Haible  <bruno@clisp.org>
70613
70614         Safer stack allocation.
70615         * lib/setenv.c: Include allocsa.h.
70616         (alloca): Remove fallback definition.
70617         (freea): Remove macro.
70618         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
70619         instead of freea.
70620
70621 2004-01-20  Bruno Haible  <bruno@clisp.org>
70622
70623         * m4/eealloc.m4: New file, from GNU gettext.
70624
70625 2004-01-20  Bruno Haible  <bruno@clisp.org>
70626
70627         * m4/allocsa.m4: New file, from GNU gettext.
70628
70629 2004-01-20  Bruno Haible  <bruno@clisp.org>
70630
70631         * lib/xallocsa.h: New file, from GNU gettext.
70632         * lib/xallocsa.c: New file, from GNU gettext.
70633
70634 2004-01-20  Bruno Haible  <bruno@clisp.org>
70635
70636         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
70637
70638 2004-01-20  Bruno Haible  <bruno@clisp.org>
70639
70640         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
70641         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
70642         specially.
70643
70644 2004-01-20  Bruno Haible  <bruno@clisp.org>
70645
70646         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
70647         patch.
70648
70649 2004-01-20  Bruno Haible  <bruno@clisp.org>
70650
70651         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
70652
70653 2004-01-20  Bruno Haible  <bruno@clisp.org>
70654
70655         * lib/eealloc.h: New file.
70656
70657 2004-01-20  Bruno Haible  <bruno@clisp.org>
70658
70659         * lib/binary-io.h: Avoid warnings on Cygwin.
70660
70661 2004-01-20  Bruno Haible  <bruno@clisp.org>
70662
70663         * lib/allocsa.h: New file, from GNU gettext.
70664         * lib/allocsa.c: New file, from GNU gettext.
70665
70666 2004-01-18  Karl Berry  <karl@gnu.org>
70667
70668         * doc/gpl.texi, doc/lgpl.texi: new files.
70669
70670 2004-01-18  Karl Berry  <karl@gnu.org>
70671
70672         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
70673         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
70674
70675 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70676
70677         Merge from coreutils.
70678
70679         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
70680         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
70681         (gl_DEFAULT_POSIX2_VERSION): Move
70682         the documentation from 'configure' into 'config.hin',
70683         so that 'configure --help' isn't burdened by it and
70684         we don't have to worry about its formatting there.
70685         Reword the documentation so that it's more succinct
70686         and can be run together into a single paragraph.
70687         * m4/same.m4 (gl_SAME): Check for pathconf.
70688
70689 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70690
70691         Merge from coreutils.
70692
70693         * lib/posixver.c: Include posixver.h.
70694
70695         * lib/same.c: Include <stdbool.h>, <limits.h>.
70696         (_POSIX_NAME_MAX): Define if not defined.
70697         (MIN): New macro.
70698         (same_name): If file names are silently truncated, report
70699         that the file names are the same if they are the same after
70700         the silent truncation.
70701
70702         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
70703         conversion function.
70704         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
70705         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
70706         longer needed.
70707
70708 2004-01-15  Jim Meyering  <jim@meyering.net>
70709
70710         Merge from coreutils.
70711
70712         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
70713         if no library is required.
70714         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
70715         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
70716         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
70717         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
70718         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
70719         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
70720         value, $ac_cv_search_crypt, if it's "none required".
70721         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
70722         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
70723         not gl_FUNC_GETLOADAVG.
70724         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
70725         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
70726
70727 2004-01-15  Jim Meyering  <jim@meyering.net>
70728
70729         Merge from coreutils.
70730
70731         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
70732         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
70733         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
70734
70735         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
70736         optional configure-time default.
70737
70738         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70739
70740         * lib/xreadlink.c (xreadlink): Correct outdated comment.
70741
70742 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
70743
70744         Merge from coreutils.
70745
70746         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
70747         value, $ac_cv_search_nanosleep, if it's "none required".
70748
70749 2004-01-14  Paul Eggert  <eggert@twinsun.com>
70750
70751         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
70752         with like-named macro in fnmatch.c.
70753         (EXT): Use an internal constant instead.
70754
70755         Merge fnmatch patches from glibc.
70756         * lib/fnmatch.c (mbsinit): Remove define.
70757         Add libc_hidden_ver (__fnmatch, fnmatch).
70758         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
70759         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
70760
70761 2004-01-14  Karl Berry  <karl@gnu.org>
70762
70763         * config/install-sh: update from automake.
70764
70765 2004-01-13  Karl Berry  <karl@gnu.org>
70766
70767         * config/install-sh: update from automake.
70768
70769 2004-01-09  Karl Berry  <karl@gnu.org>
70770
70771         * config/install-sh: update from automake.
70772
70773 2004-01-05  Karl Berry  <karl@gnu.org>
70774
70775         * config/config.{sub,guess}: update from config.
70776
70777 2003-12-31  Karl Berry  <karl@gnu.org>
70778
70779         * config/depcomp: update from automake.
70780
70781 2003-12-14  Karl Berry  <karl@gnu.org>
70782
70783         * lib/config.charset: update from gettext-runtime.
70784
70785 2003-12-03  Paul Eggert  <eggert@twinsun.com>
70786
70787         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
70788         Bug reported by Alfred M. Szmidt.
70789
70790 2003-12-03  Bruno Haible  <bruno@clisp.org>
70791
70792         * m4/gettext.m4: Upgrade from gettext-0.13.
70793         * m4/po.m4: Upgrade from gettext-0.13.
70794         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
70795         * m4/intmax.m4: New file, from gettext-0.13.
70796         * m4/printf-posix.m4: New file, from gettext-0.13.
70797
70798 2003-11-29  Karl Berry  <karl@gnu.org>
70799
70800         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
70801
70802 2003-11-25  Paul Eggert  <eggert@twinsun.com>
70803             Bruno Haible  <bruno@clisp.org>
70804
70805         * lib/printf-parse.h: Don't include sys/types.h.
70806         (ARG_NONE): New macro.
70807         (char_directive): Change type of *arg_index fields to size_t.
70808         * lib/printf-parse.c: Don't include sys/types.h.
70809         (SSIZE_MAX): Remove macro.
70810         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
70811         Remove unnecessary overflow check.
70812         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
70813         fields.
70814
70815 2003-11-25  Bruno Haible  <bruno@clisp.org>
70816
70817         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
70818
70819 2003-11-25  Bruno Haible  <bruno@clisp.org>
70820
70821         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
70822         gt_TYPE_SSIZE_T.
70823
70824 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70825
70826         * modules/alloca: Remove dependency on xalloc.
70827
70828 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70829
70830         * lib/alloca.c: Remove dependency on xalloc module.
70831         (xalloc_die): Remove.
70832         (memory_full) [!defined emacs]: New macro.
70833         [!defined emacs]: Don't include xalloc.h.
70834         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
70835         address arithmetic overflows.  Change datatypes a bit to avoid
70836         unnecessary casts.
70837
70838 2003-11-22  Jim Meyering  <jim@meyering.net>
70839
70840         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
70841         s/size/size_t/.
70842
70843 2003-11-21  Karl Berry  <karl@gnu.org>
70844
70845         * config/config.{sub,guess}: update from config.
70846
70847 2003-11-18  Karl Berry  <karl@gnu.org>
70848
70849         * config/config.{sub,guess}: update from config.
70850
70851         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
70852
70853 2003-11-17  Paul Eggert  <eggert@twinsun.com>
70854
70855         * README: Mention that S+T cannot overflow if S is the size of
70856         an existing object and T is sufficiently small.
70857
70858 2003-11-17  Jim Meyering  <jim@meyering.net>
70859
70860         On systems without utime and without a utimes function capable of
70861         dealing with a NULL struct utimbuf* argument, this utime replacement
70862         could -- in unusual circumstances -- leak a file descriptor.
70863         * lib/utime.c: Include <unistd.h> and <errno.h>.
70864         (utime_null): Be sure to close `fd' and to preserve errno.
70865         Reported by Geoff Collyer via Arnold Robbins.
70866
70867 2003-11-17  Bruno Haible  <bruno@clisp.org>
70868
70869         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
70870         (Depends-on): Add xsize.
70871
70872 2003-11-17  Bruno Haible  <bruno@clisp.org>
70873
70874         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
70875
70876 2003-11-17  Bruno Haible  <bruno@clisp.org>
70877
70878         * lib/vasnprintf.c (alloca): Remove fallback definition.
70879         (freea): Remove definition.
70880         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
70881         Reported by Paul Eggert.
70882
70883 2003-11-16  Paul Eggert  <eggert@twinsun.com>
70884             Bruno Haible  <bruno@clisp.org>
70885
70886         Protect against address arithmetic overflow.
70887         * lib/printf-args.h: Include stddef.h.
70888         (arguments): Change type of field 'count' to size_t.
70889         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
70890         'unsigned int' where appropriate.
70891         * lib/printf-parse.h: Include sys/types.h.
70892         (char_directive): Change type of *arg_index fields to ssize_t.
70893         (char_directives): Change type of fields 'count', max_*_length to
70894         size_t.
70895         * lib/printf-parse.c: Include sys/types.h and xsize.h.
70896         (SSIZE_MAX): Define fallback value.
70897         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
70898         instead of 'int' where appropriate. Check a_allocated, d_allocated
70899         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
70900         * lib/vasnprintf.c: Include xsize.h.
70901         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
70902         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
70903         overflow. Avoid wraparound when converting a width or precision from
70904         decimal to binary.
70905
70906 2003-11-16  Bruno Haible  <bruno@clisp.org>
70907
70908         Update from GNU gettext.
70909         * lib/printf-parse.c: Generalize to it can be compiled for wide
70910         strings.
70911         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
70912         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
70913         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
70914         SNPRINTF): New macros.
70915         Don't include <alloca.h> if the file is used inside libintl.
70916         (local_wcslen): New function, for Solaris 2.5.1.
70917         (VASNPRINTF): Use it instead of wcslen.
70918
70919 2003-11-16  Bruno Haible  <bruno@clisp.org>
70920
70921         * lib/xsize.h (xmax): New function.
70922         (xsum, xsum3, xsum4): Declare as "pure" functions.
70923
70924 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70925
70926         * modules/xalloc (Files): Undo latest change, since xalloc.h
70927         no longer needs SIZE_MAX or PTRDIFF_MAX.
70928
70929 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70930
70931         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
70932         gl_PTRDIFF_MAX.
70933
70934 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70935
70936         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
70937         "return", to pacify some unknown compiler.  Problem reported
70938         by Joerg Schilling.
70939
70940 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70941
70942         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
70943         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
70944         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
70945         heuristic is just as accurate as far as we know, and it removes a
70946         dependency on size_max.m4 and ptrdiff_max.m4.
70947
70948 2003-11-11  Bruno Haible  <bruno@clisp.org>
70949
70950         * modules/xsize (Files): Add m4/size_max.m4.
70951         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
70952
70953 2003-11-11  Bruno Haible  <bruno@clisp.org>
70954
70955         * m4/size_max.m4: New file.
70956         * m4/ptrdiff_max.m4: New file.
70957         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
70958         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
70959         (gl_XALLOC): Invoke it.
70960
70961 2003-11-11  Bruno Haible  <bruno@clisp.org>
70962
70963         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
70964         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
70965         defined.
70966
70967 2003-11-10  Paul Eggert  <eggert@twinsun.com>
70968
70969         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
70970         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
70971         rejected some allocations of exactly SIZE_MAX - 2 bytes.
70972         From Bruno Haible.
70973         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
70974         not (size_t) -1, since it's defined here.
70975
70976 2003-11-09  Karl Berry  <karl@gnu.org>
70977
70978         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
70979
70980 2003-11-06  Paul Eggert  <eggert@twinsun.com>
70981
70982         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
70983         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
70984         Reject sizes of exactly SIZE_MAX bytes.
70985         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
70986         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
70987
70988 2003-11-05  Bruno Haible  <bruno@clisp.org>
70989
70990         * lib/xsize.h: Include limits.h, to avoid a possible collision with
70991         SIZE_MAX defined in <limits.h> on Solaris.
70992
70993 2003-11-04  Jim Meyering  <jim@meyering.net>
70994
70995         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
70996         variable names, rather than @VAR@.
70997         * modules/poll: Likewise.
70998
70999 2003-11-04  Bruno Haible  <bruno@clisp.org>
71000
71001         * modules/xsize: New file.
71002         * modules/linebreak: Depend on xsize.
71003         * MODULES.html.sh (func_all_modules): Add xsize.
71004
71005 2003-11-04  Bruno Haible  <bruno@clisp.org>
71006
71007         * m4/xsize.m4: New file.
71008
71009 2003-11-04  Bruno Haible  <bruno@clisp.org>
71010
71011         * lib/xsize.h: New file.
71012         * lib/linebreak.c: Include xsize.h.
71013         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
71014         argument for overflow.
71015         Suggested by Paul Eggert.
71016
71017 2003-11-03  Karl Berry  <karl@gnu.org>
71018
71019         * config/config.{guess,sub}: update from config.
71020
71021 2003-11-03  Jim Meyering  <jim@meyering.net>
71022
71023         * modules/userspec (lib_SOURCES): Add userspec.h.
71024         (Include): Add "userspec.h".
71025         Improve description.
71026
71027 2003-11-03  Jim Meyering  <jim@meyering.net>
71028
71029         * lib/userspec.c: Include "userspec.h".
71030         * lib/userspec.h: New file.
71031
71032 2003-11-03  Bruno Haible  <bruno@clisp.org>
71033
71034         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
71035
71036 2003-11-03  Bruno Haible  <bruno@clisp.org>
71037
71038         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
71039         available, to avoid (extremely rare) race condition.
71040         Suggested by Paul Eggert.
71041
71042 2003-11-02  Karl Berry  <karl@gnu.org>
71043
71044         * config/srclist.txt (vasprintf.c): sync broken, sigh.
71045
71046 2003-10-31  Paul Eggert  <eggert@twinsun.com>
71047
71048         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
71049         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
71050         (read_filesystem_list): Set and use me_type_malloced.
71051         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
71052         whatever the type happens to be), for brevity and consistency.
71053         Check for size calculation overflow on Alphas running OSF/1.
71054
71055 2003-10-31  Jim Meyering  <jim@meyering.net>
71056
71057         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
71058
71059         * lib/linebuffer.c: Include <string.h> for declaration of memset.
71060
71061 2003-10-30  Paul Eggert  <eggert@twinsun.com>
71062             Bruno Haible  <bruno@clisp.org>
71063
71064         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
71065         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
71066
71067 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71068
71069         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
71070         netbsd*-gnu*.  Suggested by Robert Millan.
71071
71072 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71073
71074         * modules/group-member: Depend on stdbool.
71075
71076 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71077
71078         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
71079
71080 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71081
71082         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
71083         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
71084         after the 'gnu' in these cases.  This fixes some bugs in the
71085         previous change, and is based on suggestions by Robert Millan.
71086
71087 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71088
71089         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
71090         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
71091         no longer needed.
71092         * lib/quotearg.c (quotearg_n_options): Use it.
71093         * lib/group-member.c: Include <stdbool.h>.
71094         (free_group_info): Arg is now const *; don't free arg.
71095         (get_group_info): Now returns bool and accepts struct group_info *,
71096         rather than returning a malloc'ed struct group_info *.
71097         All uses changed.  Check for overflow in internal size calculation.
71098
71099         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
71100         rather than xmalloc/xrealloc.
71101         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
71102         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
71103         conformance bug: the old code used a pointer after freeing the
71104         storage that it addressed.
71105         * lib/hash.c (hash_initialize): Simplify the code by using
71106         xalloc_oversized rather than doing it by hand.
71107         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
71108         the buffer preserved.  Use free and xmalloc instead.
71109         * lib/quotearg.c (quotearg_n_options): Likewise.
71110         Use a simpler test for size overflow.  Don't use xalloc_oversized
71111         because unsigned int might be wider than size_t (!); this suggests
71112         that we should switch from unsigned int to size_t for slot numbers.
71113
71114 2003-10-28  Paul Eggert  <eggert@twinsun.com>
71115
71116         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
71117         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
71118         NetBSD kernels.  Requested by Richard Stallman.
71119
71120 2003-10-27  Paul Eggert  <eggert@twinsun.com>
71121
71122         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
71123         to allocate the returned structure.  Do not allocate a subarray,
71124         as x2nrealloc will do that.
71125         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
71126         instead of xnrealloc.
71127         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
71128
71129 2003-10-27  Bruno Haible  <bruno@clisp.org>
71130
71131         * lib/stdbool_.h: Better support for BeOS.
71132
71133 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71134
71135         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
71136         now uses inline.
71137
71138 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71139
71140         * lib/xalloc.h (xalloc_oversized): New static inline function, for
71141         callers that want to do their own size-overflow checking.  Include
71142         <stdbool.h>, since xalloc_oversized returns bool.
71143         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
71144         to use xalloc_oversized.
71145
71146         Add two functions x2realloc, x2nrealloc, for programs that grow
71147         arrays dynamically by doubling their sizes.
71148         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
71149         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
71150         New functions.
71151
71152         Port to C99 semantics for 'inline' of external functions.
71153         Bug reported by Bruno Haible.
71154         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
71155         with the old contents of xnmalloc.
71156         (xnmalloc, xmalloc): Use it.
71157         (xnrealloc_inline): New static inline function,
71158         with the old contents of xnrealloc.
71159         (xnrealloc, xrealloc): Use it.
71160
71161         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
71162         that.
71163
71164 2003-10-26  Karl Berry  <karl@gnu.org>
71165
71166         * config/srclist.txt (COPYING.DOC): no longer available from
71167         /gd/gnuorg; don't know where the ultimate source is.
71168
71169 2003-10-25  Paul Eggert  <eggert@twinsun.com>
71170
71171         Fix several address-calculation bugs in the hash modules,
71172         plus some minor code cleanup.
71173
71174         * lib/hash.h: Include <stdbool.h>, for bool.
71175         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
71176         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
71177         hash_get_n_entries, hash_get_max_bucket_length,
71178         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
71179         hash_rehash): Use size_t rather than unsigned.
71180         * lib/hash.c (struct hash_table, hash_get_n_buckets,
71181         hash_get_n_buckets_used, hash_get_n_entries,
71182         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
71183         hash_get_entries, hash_do_for_each, hash_string, is_prime,
71184         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
71185         Likewise.
71186         (SIZE_MAX): Define if not defined.
71187         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
71188         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
71189         hash_print):
71190         Use const * when possible.
71191         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
71192         (check_tuning): Fix bug: if tuning parameters were very close to
71193         0 or 1, rounding errors could have caused subscript violations.
71194         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
71195         (hash_initialize): Add 'fail:' label
71196         to free table and return NULL, and use it to simplify code.
71197         Use calloc rather than clearing the storage ourself.
71198         (hash_initialize, hash_rehash): Check for arithmetic overflow in
71199         buffer size calculations.
71200         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
71201         Include <stddef.h>, for size_t.
71202         * lib/hash-pjw.c (hash_pjw): Likewise.
71203         Switch to method described by Bruno Haible.
71204         Include <limits.h>, for CHAR_BIT.
71205         (SIZE_BITS): New macro.
71206
71207 2003-10-23  Paul Eggert  <eggert@twinsun.com>
71208
71209         * m4/getline.m4 (AM_FUNC_GETLINE):
71210         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
71211         hosts.  Problem reported by Derek Robert Price in
71212         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
71213         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
71214         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
71215
71216 2003-10-21  Paul Eggert  <eggert@twinsun.com>
71217
71218         * lib/getndelim2.c (getndelim2): When size calculation overflows,
71219         ceiling the allocation at NMAX bytes rather than silently
71220         discarding input bytes before NMAX is reached.  This makes
71221         a difference only if NMAX exceeds SIZE_MAX / 2.
71222
71223         * lib/obstack.c: Merge from glibc.
71224         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
71225         Add libc_hidden_def (_obstack_newchunk).
71226         (_obstack_free) [! defined _LIBC]: Remove.
71227         [defined _LIBC]: Make a strong alias from obstack_free, rather than
71228         a clone of the function body.
71229         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
71230         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
71231
71232         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
71233         glibc.
71234         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
71235         arg to memcpy.
71236
71237         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
71238         (obstack_ptr_grow_fast, obstack_int_grow_fast):
71239         Don't use lvalue casts, as GCC plans to remove support for them
71240         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
71241         was also present in the non-GCC version, indicating that this
71242         code had always been buggy and had never been widely used.
71243         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
71244         Use the fast variant of each macro, rather than copying the
71245         definiens of the fast variant; that way, we'll be more likely to
71246         catch future bugs in the fast variants.
71247
71248 2003-10-20  Bruno Haible  <bruno@clisp.org>
71249
71250         * modules/wait-process: New file.
71251         * MODULES.html.sh (func_all_modules): Add wait-process.
71252
71253 2003-10-20  Bruno Haible  <bruno@clisp.org>
71254
71255         * m4/wait-process.m4: New file.
71256
71257 2003-10-20  Bruno Haible  <bruno@clisp.org>
71258
71259         * lib/wait-process.h: New file, from GNU gettext.
71260         * lib/wait-process.c: New file, from GNU gettext.
71261
71262 2003-10-19  Jim Meyering  <jim@meyering.net>
71263
71264         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
71265         HPUX 10.20.
71266
71267 2003-10-18  Karl Berry  <karl@gnu.org>
71268
71269         * config/config.guess: update from config.
71270
71271 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71272
71273         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
71274         (getgroups): First arg is int, not size_t.
71275         Don't let 'free' mangle errno.
71276
71277 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71278
71279         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
71280
71281 2003-10-16  Karl Berry  <karl@gnu.org>
71282
71283         * config/config.{guess,sub}: update from config.
71284
71285 2003-10-16  Jim Meyering  <jim@meyering.net>
71286
71287         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
71288         memcpy.
71289
71290 2003-10-15  Paul Eggert  <eggert@twinsun.com>
71291
71292         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
71293         (SIZE_MAX): Remove.
71294         (new_exclude, add_exclude_file): Initial size no longer needs to
71295         be a power of 2.
71296         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
71297         our own address arithmetic overflow checking.
71298
71299         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
71300         (fnmatch): Do not alloca more than 2000 wide characters;
71301         instead, use malloc for large buffers.
71302         Check for address arithmetic overflow, and return -1
71303         with errno set to ENOMEM in that case.
71304         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
71305         (NEW_PATTERN): Do not alloca more than 8000 bytes;
71306         instead, return -1.  Check for address arithmetic overflow.
71307
71308 2003-10-14  Paul Eggert  <eggert@twinsun.com>
71309
71310         Handle invalid suffixes and overflow independently, so that
71311         callers can treat them independently as needed.  Fix some bugs in
71312         suffix handling, e.g., "100k@" was not diagnosed as an invalid
71313         suffix for a human-readable blocksize.  The major caller-visible
71314         change is the addition of a new
71315         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
71316         that both overflow and suffix chars were found.
71317
71318         * lib/human.c (humblock): Don't check separately for invalid suffix
71319         char; that is xstrtoumax's job (now that its bug is fixed).
71320         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
71321         INTMAX_MAX]: New macros.
71322         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
71323         TYPE_MAXIMUM): New macros.
71324         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
71325         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
71326         if overflow occurs, as it's what __strtol does and it's more useful
71327         in practice.
71328         (__xstrtol): If __strtol reports some error other than ERANGE,
71329         reflect it to the caller as LONGINT_INVALID.  If it reports
71330         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
71331         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
71332         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
71333         value.
71334         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
71335         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
71336         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
71337         [defined UINTMAX_MAX]: New macros.
71338
71339 2003-10-14  Bruno Haible  <bruno@clisp.org>
71340
71341         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
71342
71343 2003-10-14  Bruno Haible  <bruno@clisp.org>
71344
71345         * m4/sig_atomic_t: New file, from GNU gettext.
71346         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
71347
71348 2003-10-14  Bruno Haible  <bruno@clisp.org>
71349
71350         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
71351         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
71352         Also use volatile where needed.
71353
71354 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71355
71356         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
71357         Change maintainer from Bruno Haible to 'all'.
71358
71359 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71360
71361         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
71362
71363 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71364
71365         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
71366         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
71367         and define in terms of the other primitives.
71368         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
71369         (SIZE_MAX): Define if not already defined.
71370         (array_size_overflow): New function.
71371         (xalloc_die): Abort instead of exiting if 'error' returns.
71372         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
71373         (xmalloc, xrealloc): Use them.
71374         (xcalloc): Check for address arithmetic overflow.
71375         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
71376         a bit faster than strcpy.
71377
71378 2003-10-10  Simon Josefsson  <jas@extundo.com>
71379
71380         * modules/argp (Depends-on): Add restrict and strcase.
71381
71382 2003-10-10  Simon Josefsson  <jas@extundo.com>
71383
71384         * m4/argp.m4: Add AC_C_INLINE.
71385
71386 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71387
71388         Merge getpass from libc, plus a few fixes.
71389
71390         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
71391         Include <stdbool.h>.
71392         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
71393         __fsetlocking to empty.
71394         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
71395         do include <bits/libc-lock.h>.
71396         Do not include <fcntl.h>; not needed.
71397         [_LIBC]: Include <wchar.h>.
71398         (NOTCANCEL_MODE): New macro.
71399         (flockfile, funlockfile) [_LIBC]: New macros.
71400         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
71401         [!_LIBC]: New macros.
71402         (call_fclose): New function.
71403         (getpass): Use it.  Save tty stream separately; this simplifies the
71404         code and makes it more reliable if stdin happens to equal stdout.
71405         Invoke __fsetlocking on tty.
71406         Handle thread cancellation if needed.
71407         Namespace cleanup (use __tcgetattr, __getline).
71408         Use bool for Booleans.
71409         [USE_IN_LIBIO]: Handle wide streams.
71410         [!_LIBC]: Unconditionally do the fseek, since we don't know what
71411         stream might go where.
71412
71413         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
71414         doesn't have to include <stdio.h> before us.
71415         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
71416         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
71417         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
71418         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
71419         if not declared, so that we can use getpass.c code from libc without
71420         rewriting it.
71421         (flockfile, ftrylockfile, funlockfile): New macros.
71422
71423 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71424
71425         * modules/getpass: Depend on stdbool.
71426
71427 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71428
71429         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
71430
71431 2003-10-07  Karl Berry  <karl@gnu.org>
71432
71433         * config/config.{guess,sub}: update from config.
71434
71435 2003-10-06  Jim Meyering  <jim@meyering.net>
71436             Bruno Haible  <bruno@clisp.org>
71437
71438         This lets translators provide better translations for the
71439         "Written by ..." part of --version output.
71440         * lib/version-etc.h: Include stdarg.h.
71441         (version_etc_copyright): Declare as readonly.
71442         (version_etc): Make this function variadic with a NULL-terminated list
71443         of author name strings.
71444         (version_etc_va): New declaration.
71445         * lib/version-etc.c: Include stdarg.h, stdlib.h.
71446         (version_etc_copyright): Declare as readonly.
71447         (version_etc_va): New function. Provide a different translatable string
71448         for each possible number of authors < 10. Abbreviate when there are 10
71449         authors or more.
71450         (version_etc): Make this function variadic. Call version_etc_va.
71451         Suggestion from Gary V. Vaughan.
71452
71453         * lib/long-options.h (parse_long_options): Change prototype: the
71454         authors string is moved to the end and becomes variadic.
71455         * lib/long-options.c: Include stdarg.h.
71456         (parse_long_options): Make this function variadic, too.
71457         Call version_etc_va, not version_etc.
71458
71459 2003-10-06  Bruno Haible  <bruno@clisp.org>
71460
71461         * modules/version-etc-2: Remove file.
71462         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
71463
71464 2003-10-06  Bruno Haible  <bruno@clisp.org>
71465
71466         * modules/fatal-signal: New file.
71467         * MODULES.html.sh (func_all_modules): Add fatal-signal.
71468
71469 2003-10-06  Bruno Haible  <bruno@clisp.org>
71470
71471         * m4/fatal-signal.m4: New file.
71472         * m4/signalblocking.m4: New file, from GNU gettext.
71473
71474 2003-10-06  Bruno Haible  <bruno@clisp.org>
71475
71476         * lib/version-etc-2.h: Remove file.
71477         * lib/version-etc-2.c: Remove file.
71478
71479 2003-10-06  Bruno Haible  <bruno@clisp.org>
71480
71481         * lib/fatal-signal.h: New file, from GNU gettext.
71482         * lib/fatal-signal.c: New file, from GNU gettext.
71483
71484 2003-10-05  Paul Eggert  <eggert@twinsun.com>
71485
71486         * README: Rework advice for preventing empty .o files.
71487         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
71488         not <sys/types.h>.
71489
71490 2003-10-04  Karl Berry  <karl@gnu.org>
71491
71492         * lib/argp*: update from libc.
71493
71494 2003-10-04  Karl Berry  <karl@gnu.org>
71495
71496         * config/config.{guess,sub}: update from config.
71497
71498 2003-10-02  Bruno Haible  <bruno@clisp.org>
71499
71500         * modules/lchown (Include): Add lchown.h.
71501         * modules/time_r (Include): Use "..." syntax.
71502         * modules/xgetdomainname (Include): Add xgetdomainname.h.
71503
71504 2003-10-01  Simon Josefsson  <jas@extundo.com>
71505
71506         * MODULES.html.sh (func_all_modules): Move gethostname from section
71507         'based on' to section 'lacking' POSIX:2001.
71508
71509 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
71510
71511         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
71512         to output mode on the same stream.
71513
71514 2003-09-29  Paul Eggert  <eggert@twinsun.com>
71515
71516         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
71517         Fix arg typo in previous patch.
71518
71519 2003-09-28  Jim Meyering  <jim@meyering.net>
71520
71521         * lib/error.c: Correct cpp indentation.
71522
71523 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71524
71525         * modules/free: New file.
71526
71527 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71528
71529         * m4/free.m4: New file.
71530
71531 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71532
71533         * lib/minmax.h (MIN, MAX)
71534         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
71535         Omit the special code that used __typeof__, since we worry that
71536         it could be more trouble than it's worth.  See:
71537         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
71538         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
71539
71540         * lib/free.c: New file.
71541
71542 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
71543
71544         Trivial fixes to Makefile.am parts of module listings.
71545         * modules/strstr: Append strstr.h to lib_SOURCES.
71546         * modules/strcase: Likewise, for strcase.h.
71547
71548 2003-09-27  Karl Berry  <karl@gnu.org>
71549
71550         * config/mkinstalldirs: update from automake.
71551
71552 2003-09-26  Paul Eggert  <eggert@twinsun.com>
71553
71554         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
71555         (error_tail): Do not loop, reallocating temporary buffer, since
71556         the output cannot contain more wide characters than the input
71557         contains bytes, the size must be big enough already.  This avoids
71558         one potential size overflow calculation.  Check for size overflow
71559         when calculating temporary buffer size.  Free temporary buffer
71560         when done, if it was allocated with malloc; this plugs a memory
71561         leak.  Remove casts from void * to pointers, that are no longer
71562         needed now that we're assuming C89 or better.
71563
71564         Merge error changes from glibc.
71565
71566         * lib/error.c, error.h: Update copyright notice header to match glibc.
71567         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
71568         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
71569         Disable cancellation while printing error.
71570         * lib/error.h: Prepend __ to parameter names.
71571
71572 2003-09-26  Jim Meyering  <jim@meyering.net>
71573
71574         * lib/error.c (error_tail): Move some declarations
71575         into inner scope where the local variables are used.
71576
71577 2003-09-26  Bruno Haible  <bruno@clisp.org>
71578
71579         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
71580         stpncpy().
71581         Don't define stpncpy through config.h; it's now done through stpncpy.h.
71582
71583 2003-09-26  Bruno Haible  <bruno@clisp.org>
71584
71585         * lib/stpncpy.h (gnu_stpncpy): New declaration.
71586         (stpncpy): Define as alias for gnu_stpncpy.
71587         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
71588
71589 2003-09-25  Simon Josefsson  <jas@extundo.com>
71590
71591         * lib/xgetdomainname.h: New file.
71592         * lib/xgetdomainname.c: New file.
71593
71594 2003-09-25  Simon Josefsson  <jas@extundo.com>
71595             Bruno Haible  <bruno@clisp.org>
71596
71597         * modules/getdomainname: New file.
71598         * modules/xgetdomainname: New file.
71599         * MODULES.html.sh (func_all_modules): Add getdomainname,
71600         xgetdomainname.
71601
71602 2003-09-25  Simon Josefsson  <jas@extundo.com>
71603             Bruno Haible  <bruno@clisp.org>
71604
71605         * m4/getdomainname.m4: New file.
71606
71607 2003-09-25  Simon Josefsson  <jas@extundo.com>
71608             Bruno Haible  <bruno@clisp.org>
71609
71610         * lib/getdomainname.h: New file.
71611         * lib/getdomainname.c: New file.
71612
71613 2003-09-25  Karl Berry  <karl@gnu.org>
71614
71615         * lib/argp-fmtstream.c, argp-help.c: update from libc.
71616
71617 2003-09-25  Karl Berry  <karl@gnu.org>
71618
71619         * config/install-sh: update from automake.
71620
71621 2003-09-25  Bruno Haible  <bruno@clisp.org>
71622
71623         * modules/version-etc-2: New file, from modules/version-etc with
71624         modifications.
71625         * MODULES.html.sh (func_all_modules): Add version-etc-2.
71626
71627 2003-09-25  Bruno Haible  <bruno@clisp.org>
71628
71629         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
71630         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
71631
71632 2003-09-24  Simon Josefsson  <jas@extundo.com>
71633
71634         * modules/xgethostname: Add xgethostname.h.
71635
71636 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71637
71638         * lib/linebuffer.c (freebuffer): Don't free the argument, just
71639         the buffer associated with the argument.  Bug reported by
71640         Simon Josefsson.
71641
71642 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71643
71644         * README: Document assumptions that 'int' is at least 32 bits
71645         wide, that integer arithmetic is 2's complement without overflow,
71646         that there are no holes in integer values, that adding sizes of
71647         two nonoverlapping objects can't overflow, and that all-bits-zero
71648         yields scalar zero.  Fix spelling and capitalization typos.
71649
71650 2003-09-19  Karl Berry  <karl@gnu.org>
71651
71652         * lib/argp.h: update from libc.
71653
71654 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71655
71656         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
71657         to avoid spurious warnings like "AC_RUN_IFELSE was called before
71658         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
71659
71660 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71661
71662         * gnulib-tool: Use "test -h", not "test -L", for portability
71663         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
71664         (tags_regexp): Remove, since \| doesn't conform to POSIX.
71665         (sed_extract_prog): Issue s commands one-by-one, rather than
71666         using \| in one s command.
71667
71668 2003-09-16  Paul Eggert  <eggert@twinsun.com>
71669
71670         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
71671         input error, instead of returning NULL the next time we are called
71672         (and therefore losing track of errno).
71673
71674 2003-09-16  Bruno Haible  <bruno@clisp.org>
71675
71676         * gnulib-tool (func_create_testdir): Warn about duplicated
71677         dependencies.
71678
71679 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71680
71681         * modules/argmatch, modules/fatal, modules/obstack,
71682         modules/xalloc, modules/xgethostname: Sort dependencies by
71683         importance, not alphabetically.
71684
71685 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71686
71687         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
71688         fails, so that the caller gets the proper errno.
71689
71690         * lib/readutmp.c (read_utmp): Likewise.
71691         Check for fstat error.  Close stream and free storage
71692         when failing.
71693
71694 2003-09-14  Karl Berry  <karl@gnu.org>
71695
71696         * config/srclist.txt (strdup.c): disable for c89 changes.
71697
71698 2003-09-14  Jim Meyering  <jim@meyering.net>
71699
71700         * lib/getloadavg.c: Correct cpp indentation.
71701         * lib/strdup.c: Likewise.
71702         * lib/vasnprintf.c: Likewise.
71703
71704 2003-09-14  Bruno Haible  <bruno@clisp.org>
71705
71706         * modules/fwriteerror: New file.
71707         * MODULES.html.sh (func_all_modules): Add fwriteerror.
71708
71709 2003-09-14  Bruno Haible  <bruno@clisp.org>
71710
71711         * lib/fwriteerror.h: New file.
71712         * lib/fwriteerror.c: New file.
71713
71714 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71715
71716         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
71717         modules/xgethostname, modules/xalloc: Depend on exit.
71718
71719 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71720
71721         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
71722
71723         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
71724         and AC_MINIX, too, so that their extensions are available.
71725
71726         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
71727         This macro has been superseded by gl_BACKUPFILE.
71728
71729         More patches to assume C89 or better.
71730
71731         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
71732
71733         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
71734         unconditionally.
71735         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
71736         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
71737         Include <string.h>, <stdlib.h> unconditionally.
71738         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
71739         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
71740         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
71741         headers or for string.h.
71742         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
71743         or strtoul.
71744
71745         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
71746         headers.
71747         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
71748         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71749         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
71750         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
71751         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71752         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
71753         memcpy, memset.
71754         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
71755         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
71756         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
71757         strtol.
71758         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
71759         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
71760         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
71761         strtoul.
71762
71763 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71764
71765         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
71766         * lib/obstack.c [!defined _LIBC]: Likewise.
71767         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
71768         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
71769         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
71770
71771         More changes to assume C89 or better.
71772
71773         * lib/error.c (error_tail): Assume vprintf.
71774
71775         * lib/argmatch.c (getenv): Remove decl.
71776         * lib/progreloc.c (get_full_program_name): Define via prototype.
71777         * lib/setenv.c (clearenv): Likewise.
71778         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
71779         needed.
71780         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
71781         (malloc, memcpy): Remove decls.
71782         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
71783         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
71784         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71785         (memcpy): Remove macro.
71786         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
71787         (__P): Remove.  All uses removed.
71788         (PTR): Remove.  All uses changed to void *.
71789         (CHAR_BIT, NULL): Remove.
71790         (spaces, zeros, memset_space, memset_zero)
71791         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
71792         Remove.
71793         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
71794         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
71795         Define with prototype.
71796         Remove now-unnecessary prototype decl.
71797         (extra_args_spec): Assume ANSI C.  All uses changed.
71798         (extra_args_spec_iso): Remove.
71799         (my_strftime, emacs_strftimeu): Define via prototype.
71800         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
71801         unconditionally.
71802         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
71803         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
71804         (strtoul, strtol): Remove decls.
71805         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
71806         LONG_MAX): Remove.
71807         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71808         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
71809         (LOCALE_PARAM_PROTO): New macro.
71810         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
71811         (INTERNAL (strtol), strtol): Define with a prototype.
71812         (PARAMS): Remove.  All uses removed.
71813         * lib/tempname.c: Include <string.h> unconditionally.
71814         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
71815         * lib/xgethostname.c (main): Define with a prototype.
71816         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
71817         Include <stdlib.h> unconditionally.
71818         (calloc, malloc, realloc, free): Remove decls.
71819         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
71820         Include <stdlib.h> unconditionally.  Sort include file names.
71821         (strtod): Remove.
71822         (xstrtod): Define with a prototype.
71823         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
71824         (strtol, strtoul): Remove decls.
71825
71826 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71827
71828         More patches to assume C89 or better.
71829         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
71830         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
71831         string.h, memchr, STDC_HEADERS.
71832
71833 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71834
71835         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
71836         Include <stdlib.h>, <string.h> unconditionally.
71837         Remove now-unnecessary cast to char *.
71838         * lib/strnlen.c: Include <string.h> unconditionally.
71839         * lib/yesno.c (yesno): Define with a prototype.
71840
71841 2003-09-11  Bruno Haible  <bruno@clisp.org>
71842
71843         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
71844
71845 2003-09-10  Jim Meyering  <jim@meyering.net>
71846
71847         * lib/error.c: Correct indentation of cpp directives.
71848
71849 2003-09-10  Bruno Haible  <bruno@clisp.org>
71850
71851         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
71852         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
71853         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
71854         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
71855         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
71856         <stdlib.h> and <string.h> checks.
71857         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
71858         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
71859
71860 2003-09-10  Bruno Haible  <bruno@clisp.org>
71861
71862         * lib/strcspn.c: Include <string.h> unconditionally.
71863         * lib/strpbrk.c: Include <string.h> unconditionally.
71864         * lib/strstr.c: Include <string.h> unconditionally.
71865         * lib/unicodeio.c: Include <string.h> unconditionally.
71866         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
71867         * lib/unsetenv.c: Likewise.
71868         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
71869         * lib/yesno.c: Include <stdlib.h> unconditionally.
71870         (rpmatch): Add prototype.
71871
71872 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71873
71874         More patches to assume C89 or better.
71875         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
71876         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
71877         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
71878         or for string.h.
71879         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
71880         stdlib.h.
71881         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
71882         C headers.
71883         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
71884         string.h.
71885         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
71886         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
71887         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
71888         or for string.h.
71889         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
71890         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
71891         C headers.
71892         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
71893         memcpy.
71894         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
71895         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
71896         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
71897         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
71898         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
71899         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
71900         string.h, free.
71901         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
71902         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
71903         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
71904         C headers, or for string.h.
71905         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
71906         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
71907         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
71908         headers, memory.h, stdlib.h, string.h, strings.h.
71909         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
71910         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
71911         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
71912         strchr.
71913         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
71914         headers, memory.h, string.h.
71915         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
71916         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
71917         free.
71918         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
71919         headers.
71920         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
71921         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
71922         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
71923         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
71924         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
71925
71926 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71927
71928         More K&R removal.
71929
71930         * lib/acosl.c (main): Use a prototype.
71931         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
71932         tanl.c: Likewise.
71933
71934         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
71935
71936         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
71937         (getopt, etopt_long, getopt_long_only, _getopt_internal)
71938         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
71939         with a prototype.
71940         * lib/getopt.c (const): Remove macro.
71941         Include <string.h> unconditionally.
71942         (my_index): Remove; all uses changed to strchr.
71943         (strlen): Remove decl.
71944         (exchange): Remove forward decl; no longer needed.
71945         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
71946         Define with prototype.
71947         * lib/getopt1.c (const): Remove macro.
71948         (getopt_long, getopt_long_only, main): Define with prototype.
71949
71950         * lib/getugroups.c: Include <string.h> unconditionally.
71951
71952         * lib/getusershell.c: Include <stdlib.h> unconditionally.
71953         (getusershell, setusershell, endusershell, readname, main):
71954         Define with prototypes.
71955
71956         * lib/group-member.c: Include group-member.h first.
71957         Include <stdlib.h> unconditionally.
71958
71959         * lib/hard-locale.c: Include hard-locale.h first.
71960         Include <stdlib.h>, <string.h> unconditionally.
71961
71962         * lib/hash.c (free, malloc): Remove decls.
71963         Include <stdlib.h> unconditionally.
71964
71965         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
71966         (getenv): Do not declare.
71967
71968         * lib/idcache.c: Include <string.h> unconditionally.
71969
71970         * lib/long-options.c: Include long-options.h first, to test interface.
71971         Include <stdlib.h> unconditionally.
71972
71973         * lib/makepath.c: Include makepath.h first, to test interface.
71974         Include <stdlib.h> and <string.h> unconditionally.
71975
71976         * lib/linebuffer.c: Include <stdlib.h>.
71977         (free): Remove decl.
71978
71979         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
71980         stddef.h. rpl_malloc returns void *, not char *.
71981         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
71982         prototype.
71983
71984         * lib/md5.h: Include <limits.h> unconditionally.
71985         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
71986         (__P): Remove; all uses removed.
71987         * lib/md5.c: Include "md5.h" first.
71988         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
71989         md5_buffer, md5_process_bytes, md5_process_block):
71990         Define with prototypes.
71991         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
71992         * lib/sha.c: Include "sha.h" first.
71993         Include <stdlib.h>, <string.h> unconditionally.
71994
71995         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
71996         * lib/memcmp.c (__ptr_t): Likewise.
71997         * lib/memrchr.c (__ptr_t): Likewise.
71998         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
71999         Include <string.h> unconditionally.
72000         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
72001         * lib/memchr.c: Include <stdlib.h> unconditionally.
72002         * lib/memchr.c (LONG_MAX): Remove.
72003         * lib/memrchr.c (LONG_MAX): Likewise.
72004         * lib/memchr.c (__memchr): Define via a prototype.
72005         * lib/memrchr.c (__memrchr): Likewise.
72006         * lib/memcmp.c (__P): Remove, and remove all uses.
72007         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
72008         Remove forward decls; no longer needed.
72009         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
72010         Use types required by C89 in prototype.
72011
72012         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
72013         * lib/savedir.c: Likewise.
72014         * lib/mkdir.c (free): Remove decl.
72015         * lib/rmdir.c (rmdir): Define with a prototype.
72016         * lib/savedir.c: Include savedir.h first, to test interface.
72017
72018         * lib/mktime.c (STDC_HEADERS): Remove.
72019         Include <stdlib.h>, <string.h> unconditionally.
72020
72021         * lib/modechange.c: Include <stdlib.h> unconditionally.
72022         (malloc): Remove decl.
72023
72024         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
72025         (free): Remove decl.
72026
72027         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
72028         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
72029         (This type really should be intptr_t, but that's a C99ism.)
72030         (_obstack_memcpy): Remove: all uses changed to memcpy.
72031         Include <string.h> unconditionally.
72032         (struct obstack): Assume __STDC__ for types of members
72033         chunkfun, freefun, extra_arg.
72034         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
72035         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
72036         obstack_begin, obstack_specify_allocation,
72037         obstack_specify_allocation_with_arg, obstack_chunkfun,
72038         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
72039         Remove unprototyped decls and the macros that use them.
72040         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
72041         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
72042         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
72043         (defined __STDC__ && __STDC__)]:
72044         Remove nonprototyped code.
72045         Include <stdlib.h> unconditionally.
72046         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
72047         _obstack_allocated_p, _obstack_free, obstack_free,
72048         _obstack_memory_used, print_and_abort):
72049         Define using prototypes.
72050         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
72051         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
72052         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
72053         obstack_next_free, obstack_object_size, obstack_room) [0]:
72054         Remove unused, unprototyped code.
72055
72056         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
72057
72058         * lib/physmem.c (physmem_total, physmem_available, main): Define
72059         with prototypes.
72060
72061         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
72062         (main): Define with a prototype.
72063
72064         * lib/posixver.c (getenv): Remove decl.
72065
72066         * lib/putenv.c (malloc): Returns void *, not char *.
72067         Include <string.h> unconditionally.
72068         (strchr, memcpy, NULL): Do not define.
72069
72070         * lib/readtokens.c: Include readtokens.h first, to test interface.
72071         Include <stdlib.h>, <string.h> unconditionally.
72072         (init_tokenbuffer): Define with a prototype.
72073
72074         * lib/regex.c (PARAMS): Remove.  All uses removed.
72075         All uses of _RE_ARGS removed, too.
72076         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72077         unconditionally.
72078         (bzero): Assume memset exists.
72079         (memcmp, memcpy, NULL): Remove.
72080         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
72081         char, or assignments to local vars of type signed char.
72082         (init_syntax_once, PREFIX(extract_number_and_incr),
72083         PREFIX(print_partial_compiled_pattern),
72084         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
72085         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
72086         PREFIX(regex_grow_registers), PREFIX(regex_compile),
72087         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
72088         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
72089         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
72090         wcs_compile_range, byte_compile_range, truncate_wchar,
72091         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
72092         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
72093         count_mbs_length, wcs_re_match_2_internal,
72094         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
72095         PREFIX(alt_match_null_string_p),
72096         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
72097         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
72098         regfree, PREFIX(extract_number)): Define with prototype.  Remove
72099         now-unnecessary declaration, if any.
72100         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
72101         regcomp, regexec):
72102         Remove now-unnecessary casts among pointer types.
72103         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
72104
72105         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
72106         (free): Remove decl.
72107
72108         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
72109
72110         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
72111         (free): Remove decl.
72112
72113         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
72114         * lib/xgetcwd.c: Likewise.
72115
72116         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
72117         (free): Remove decl.
72118
72119         * lib/strchrnul.c (strchrnul): Define with a prototype.
72120         Fix bug: c_in was not converted to char before searching.
72121
72122         The following changes are not K&R related:
72123
72124         * lib/group-member.h: Include <sys/types.h>, so that this file is
72125         self-contained.
72126         * lib/makepath.h: Likewise.
72127
72128         * lib/getusershell.c (readname, default_index, line_size, readname):
72129         Use size_t, not int, for sizes.
72130         (readname): If the size overflows, report an error instead of
72131         looping forever.
72132
72133 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72134
72135         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
72136         libc.
72137
72138 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72139
72140         * README: New section: portability guidelines.
72141
72142 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72143
72144         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
72145         C89 spec.
72146
72147 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72148
72149         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
72150
72151 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72152
72153         Assume C89 or better; remove K&R cruft.
72154         A few of these changes were first proposed by Derek Robert Price
72155         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
72156
72157         * lib/addext.c: Include <string.h> unconditionally.
72158         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
72159         Don't declare getenv or malloc.
72160
72161         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
72162         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
72163         (NULL): Remove.
72164         (find_stack_direction, alloca): Use prototypes.
72165
72166         * lib/atexit.c (atexit): Define using a prototype.
72167
72168         * lib/basename.c, dirname.c, stripslash.c:
72169         Include <string.h> unconditionally.
72170
72171         * lib/bcopy.c: Include <stddef.h>.
72172         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
72173
72174         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
72175
72176         * lib/error.h (error, error_at_line, error_print_progname)
72177         [! (defined (__STDC__) && __STDC__)]: Remove decls.
72178         * lib/error.c: Include error.h first, to check interface.
72179         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72180         (VA_START): Remove; all uses changeed to va_start.
72181         (exit, strerror): Remove decls.
72182         (error_print_progname): Prototype uncondionally.
72183         Don't include <errno.h>; no longer needed.
72184         (private_strerror): Remove.
72185         (error_tail): Always define.
72186         (error, error_at_line): Assume C89 or better; always use prototypes.
72187         * lib/fatal.c: Include "fatal.h" first, to test interface.
72188         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72189         (VA_START): Remove; all uses changed to va_start.
72190         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
72191         this case.
72192         (exit): Remove decl.
72193         (fatal): Prototype unconditionally.  Assume va_start works.
72194         Abort at end, to pacify gcc.
72195
72196         * lib/euidaccess.c (main): Define with a prototype.
72197
72198         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
72199
72200         * lib/exitfail.c: Include <stdlib.h> unconditionally.
72201
72202         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
72203         prototypes.
72204         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
72205         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
72206         (getenv): Remove decl.
72207         (fnmatch): Define using a prototype.
72208         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
72209         (FCT): Define using a prototype.
72210
72211         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
72212
72213         * lib/gethostname.c: Include <stddef.h>.
72214         (gethostname): Define with prototype.  Length is size_t, not int.
72215
72216 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72217
72218         Assume C89 or better; remove K&R cruft.
72219         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
72220         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
72221         string.h, getenv, malloc.
72222         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
72223         headers.
72224         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
72225         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
72226         do not check for strerror.
72227         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
72228         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
72229         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
72230         do not check for doprnt or vprintf.
72231         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
72232         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
72233
72234 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72235
72236         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
72237         getversion.c should have been removed then, but was accidentally
72238         preserved.
72239
72240         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
72241         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
72242
72243 2003-09-08  Karl Berry  <karl@gnu.org>
72244
72245         * config/config.sub, config.guess, srclistvars.sh: update from savannah
72246                 config, forget about prep.
72247
72248         * config/depcomp, missing: update from automake.
72249
72250 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72251
72252         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
72253         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72254
72255 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72256
72257         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
72258         copy_tm_result.  Bug reported by Simon Josefsson in
72259         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72260
72261 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72262
72263         * m4/time_r.m4: New file.
72264         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
72265         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
72266         is. Check for timegm declaration.
72267         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
72268         Do not check for gmtime_r.
72269         Replace mktime if __mktime_internal does not exist and if mktime
72270         hasn't been replaced already.
72271
72272 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72273
72274         * lib/time_r.c, lib/time_r.h: New files.
72275
72276         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
72277         __localtime_r.
72278         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
72279         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
72280
72281         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
72282         __gmtime_r.
72283         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
72284         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
72285         Include <time_r.h>.
72286
72287         * lib/timegm.c: Switch to glibc implementation, with the following
72288         changes:
72289         [defined HAVE_CONFIG_H]: Include <config.h>.
72290         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
72291         (__mktime_internal) [!defined _LIBC]: New decl.
72292         (__gmtime_r) [!defined _LIBC]: New macro and function.
72293         (timegm): Use a prototype, since gnulib assumes C89.
72294         Do not bother declaring tmp to be const, as it's not really usefu.
72295         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
72296         (timegm): Declare only if HAVE_DECL_TIMEGM.
72297
72298 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72299
72300         * MODULES.html.sh (func_all_modules): Add time_r.
72301         * modules/time_r: New file.
72302         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
72303         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
72304
72305 2003-09-03  Paul Eggert  <eggert@twinsun.com>
72306
72307         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
72308         Bug reported by Lute Kamstra in
72309         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
72310
72311         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
72312         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
72313         course with correspondingly smaller numbers for tomorrow and
72314         yesterday.  From Tadayoshi Funaba.  Originally installed into
72315         sh-utils on 1999-08-07, but the patch got lost (I guess during the
72316         coreutils merge?).
72317
72318 2003-08-31  Simon Josefsson  <jas@extundo.com>
72319
72320         * modules/timegm: New file.
72321         * MODULES.html.sh (func_all_modules): Add timegm.
72322
72323 2003-08-31  Simon Josefsson  <jas@extundo.com>
72324
72325         * m4/timegm.m4: New file.
72326
72327 2003-08-31  Simon Josefsson  <jas@extundo.com>
72328
72329         * lib/timegm.h: New file.
72330         * lib/timegm.c: New file.  Based on
72331         wget-1.8.2/src/http.c:mktime_from_utc.
72332
72333 2003-08-31  Karl Berry  <karl@gnu.org>
72334
72335         * lib/argp.h: update from libc.
72336
72337 2003-08-28  Bruno Haible  <bruno@clisp.org>
72338
72339         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
72340         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
72341         followed by '#define fnmatch fnmatch_posix' gives an error.
72342
72343 2003-08-28  Bruno Haible  <bruno@clisp.org>
72344
72345         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
72346         warning on QNX, which defines O_BINARY to 000000.
72347
72348 2003-08-27  Jim Meyering  <jim@meyering.net>
72349
72350         * m4/mkstemp.m4: Require that the system mkstemp be able to create
72351         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
72352         would fail after 32.  Reported by Danny Levinson.  Details here:
72353         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
72354
72355 2003-08-24  Bruno Haible  <bruno@clisp.org>
72356
72357         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
72358         MSVC7 <stdio.h> is included later.
72359
72360 2003-08-22  Simon Josefsson  <jas@extundo.com>
72361
72362         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
72363
72364 2003-08-20  Karl Berry  <karl@gnu.org>
72365
72366         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
72367
72368 2003-08-20  Bruno Haible  <bruno@clisp.org>
72369
72370         * modules/progname: New file.
72371         * MODULES.html.sh (func_all_modules): Add progname.
72372
72373 2003-08-20  Bruno Haible  <bruno@clisp.org>
72374
72375         * lib/progname.h: New file, from GNU gettext.
72376         * lib/progname.c: New file, from GNU gettext.
72377         * lib/progreloc.c: New file, from GNU gettext.
72378
72379 2003-08-19  Jim Meyering  <jim@meyering.net>
72380
72381         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
72382         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
72383
72384 2003-08-19  Bruno Haible  <bruno@clisp.org>
72385
72386         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
72387         more.
72388
72389 2003-08-19  Bruno Haible  <bruno@clisp.org>
72390
72391         * lib/xstrdup.c: Assume <string.h> exists.
72392
72393 2003-08-18  Paul Eggert  <eggert@twinsun.com>
72394
72395         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
72396         in makefile rules.
72397
72398 2003-08-18  Jim Meyering  <jim@meyering.net>
72399
72400         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
72401         * m4/lib-ld.m4: Likewise.
72402
72403 2003-08-18  Jim Meyering  <jim@meyering.net>
72404
72405         * lib/setenv.h: Indent nested cpp directive.
72406         * lib/vasnprintf.c: Remove trailing blanks.
72407
72408 2003-08-17  Simon Josefsson  <jas@extundo.com>
72409
72410         * modules/xstrndup: New file.
72411         * MODULES.html.sh (func_all_modules): Add xstrndup.
72412
72413 2003-08-17  Simon Josefsson  <jas@extundo.com>
72414
72415         * modules/argp: Fix autoconf macro name. Add more dependencies.
72416
72417 2003-08-17  Simon Josefsson  <jas@extundo.com>
72418
72419         * m4/xstrndup.m4: New file.
72420
72421 2003-08-17  Simon Josefsson  <jas@extundo.com>
72422
72423         * m4/argp.m4: New file.
72424
72425 2003-08-17  Simon Josefsson  <jas@extundo.com>
72426             Bruno Haible  <bruno@clisp.org>
72427
72428         * lib/xstrndup.h: New file.
72429         * lib/xstrndup.c: New file.
72430
72431 2003-08-17  Bruno Haible  <bruno@clisp.org>
72432
72433         * modules/strndup (Files, Include): Add lib/strndup.h.
72434
72435 2003-08-17  Bruno Haible  <bruno@clisp.org>
72436
72437         * modules/euidaccess (Files): Add lib/euidaccess.h.
72438
72439 2003-08-17  Bruno Haible  <bruno@clisp.org>
72440
72441         * lib/strndup.h: New file.
72442
72443 2003-08-17  Bruno Haible  <bruno@clisp.org>
72444
72445         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
72446         like AC_GNU_SOURCE.
72447         * modules/extensions (configure.ac): Comment out the invocation of
72448         gl_USE_SYSTEM_EXTENSIONS.
72449
72450 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72451
72452         Merges from coreutils, etc.
72453         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
72454         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
72455         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
72456         fixing a typo.
72457         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
72458         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
72459
72460 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72461
72462         Document merge from coreutils.
72463         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
72464         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
72465         * modules/utime: Add m4/utimes-null.m4.
72466
72467 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72468
72469         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
72470         space, undoing this 2003-08-12 change:
72471         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72472
72473 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72474
72475         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
72476         strtoul.c from libc, undoing this 2003-08-12 change:
72477         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72478
72479 2003-08-16  Jim Meyering  <jim@meyering.net>
72480
72481         Merges from coreutils.
72482         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
72483         prefix.  Adjust cache variables similarly.  Create 500 rather than
72484         just 300 files, to exercise bug on Darwin6.5, too.
72485         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
72486         $missing_dir.
72487         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
72488         AM_SYS_POSIX_TERMIOS.
72489         Reported by mkc@mathdogs.com.
72490         Also change use of $am_cv_sys_posix_termios
72491         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
72492         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
72493         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
72494         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
72495         in /proc/mounts until it finds one with matching device number.  This
72496         is unnecessary when the FILE argument *is* a mount point.  No stat call
72497         is necessary in that case.  So, disable the statvfs-testing code on
72498         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
72499         as RedHat bug# 84846.
72500         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72501         to 1MB, so as not to render systems with no stack size limit (e.g.,
72502         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72503         Include <unistd.h>.  On some systems,
72504         it is required for the definition of _SC_PAGESIZE.
72505
72506 2003-08-16  Jim Meyering  <jim@meyering.net>
72507
72508         Merge from coreutils.
72509         * lib/xstrtoimax.c: #else #if -> #elif.
72510         * lib/xstrtoumax.c: Likewise.
72511
72512 2003-08-16  Jim Meyering  <jim@meyering.net>
72513
72514         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
72515         * m4/utimes.m4: Removed.
72516         * m4/utimes-null.m4: Renamed from utimes.m4.
72517
72518         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72519         to 1MB, so as not to render systems with no stack size limit (e.g.,
72520         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72521         Include <unistd.h>.  On some systems,
72522         it is required for the definition of _SC_PAGESIZE.
72523
72524 2003-08-16  Jim Meyering  <jim@meyering.net>
72525         and Paul Eggert  <eggert@cs.ucla.edu>
72526
72527         Merges from coreutils, etc.
72528
72529         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
72530         using the latest version from cvs.  This avoids problems with #line
72531         directives using a vendor (Sun) compiler.
72532         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
72533         Don't set GETGROUPS_LIB here; now it's
72534         done via getgroups.m4's wrapper function.
72535         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
72536         rather than just in sh-util/configure.in, so that the
72537         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
72538         same.
72539         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
72540         AC_FUNC_GETLOADAVG where to find getloadavg.c.
72541         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
72542         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
72543         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
72544         Remove code that is now done by the newly-required macros.
72545         Append $(EXEEXT) to DF_PROG.
72546         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
72547         Do not invoke or require the following here,
72548         since prereq.m4 or some gnulib .m4 now does this for us:
72549         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
72550         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
72551         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
72552         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
72553         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
72554         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
72555         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
72556         AC_FUNC_OBSTACK.
72557         Do not replace the following functions, as this is now the job
72558         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
72559         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
72560         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
72561         atexit getpass, strdup, getpagesize.
72562         Replace 'raise'.
72563         Do not check for the following functions, as this is now the job
72564         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
72565         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
72566         setregid.
72567         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
72568         Check for sys/sysctl.h.
72569         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
72570         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
72571         of checking for ssize_t ourselves.
72572
72573         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
72574         Require every macro that gnulib/modules/* suggests for us.
72575         (jm_PREREQ_ADDEXT): New macro.
72576         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
72577         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
72578
72579         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
72580         (gl_PHYSMEM): Use it.
72581         Also check for `table' function.
72582         Check for new headers and functions.
72583         Add check for sys/sysmp.h.
72584         With suggestions from Kaveh Ghazi.
72585         Ignore headers that are present but cannot be compiled.  This
72586         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
72587         C 5.4.
72588
72589 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72590
72591         Document merge from coreutils.
72592         * modules/userspec: Depend on posixver.
72593         * modules/strftime: Depend on tzset.
72594
72595 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72596
72597         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
72598         rather than tab, after '#' in shell-script copyright notices.
72599         Suggested by Bruno Haible.
72600
72601 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72602
72603         * config/srclist-update: Use three spaces, rather than tab, after '#'
72604         in shell-script copyright notices.  Suggested by Bruno Haible.
72605         Remove unnecessary parenthesization in regular expression.
72606
72607 2003-08-15  Jim Meyering  <jim@meyering.net>
72608
72609         Merge from coreutils.
72610         * lib/xgethostname.c: Include <stdlib.h>.
72611         (xghostname): Don't exit for anything other than memory-related
72612         failure; just return NULL.
72613         * lib/userspec.c: Include "posixver.h".
72614         (parse_user_spec): Accept `.' as a separator only
72615         in pre-POSIX-200112 mode.
72616         * lib/strtoimax.c: Use #elif rather than #else #if.
72617         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
72618         Remove function, now that we can rely on a working tzset function.
72619         [!_LIBC]: Ensure that the required autoconf test has been run.
72620         [!defined _NL_CURRENT && HAVE_STRFTIME]:
72621         Use underlying_strftime for %r.
72622         * lib/sha.c: Merge in some clean-up and optimization changes from
72623         glibc.
72624         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
72625         Ensure that it is a multiple of 64.
72626         Rearrange loop exit tests so as to avoid performing an
72627         additional fread after encountering an error or EOF.
72628         * lib/realloc.c: Update copyright date.
72629
72630 2003-08-15  Jim Meyering  <jim@meyering.net>
72631         and Paul Eggert  <eggert@twinsun.com>
72632
72633         Merge from coreutils.
72634         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
72635         member but strut utmpx does not.  Needed for AIX 4.3.3.
72636         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
72637
72638 2003-08-15  Jim Meyering  <jim@meyering.net>
72639         and Paul Eggert  <eggert@cs.ucla.edu>
72640
72641         Merges from coreutils, etc.
72642         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
72643         Require gl_FUNC_TZSET_CLOBBER.
72644         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
72645         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
72646         members.
72647
72648 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72649
72650         Help the merge from coreutils.
72651         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
72652         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
72653         * m4/tzset.m4: Use it too.
72654
72655 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72656
72657         * modules/tzset: New file.
72658
72659 2003-08-14  Jim Meyering  <jim@meyering.net>
72660
72661         Merges from coreutils.
72662         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
72663         variable names, rather than @FNMATCH_H@.
72664         * modules/alloca: Likewise for $(ALLOCA_H).
72665
72666         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
72667         the three copies of the literal target, `fnmatch.h'.
72668         * modules/alloca (alloca.h): Likewise.
72669
72670 2003-08-14  Jim Meyering  <jim@meyering.net>
72671
72672         Merge from coreutils.
72673         * m4/tzset.m4: New file.
72674         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
72675         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
72676         otherwise, AIX 5.1 systems would end up using the latter.
72677         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
72678         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
72679         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
72680         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
72681
72682 2003-08-14  Jim Meyering  <jim@meyering.net>
72683
72684         Merge from coreutils.
72685         * lib/obstack.h: Whitespace changes.
72686         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
72687         and xcalloc return values.
72688         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
72689         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
72690         hang on OSF/1 5.1 for DIR on both local and remote file systems.
72691         Reported by (and fix confirmed by) Nelson H. F. Beebe.
72692         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72693         error from mntctl.
72694         Use mntctl's return value to drive the entry-processing loop, since
72695         we can't rely on the value of the vmt_length member in the last
72696         entry.  On some systems doing so could result in exhausting
72697         virtual memory.  Based in part on a patch from Mike Jetzer.
72698
72699 2003-08-14  Jim Meyering  <jim@meyering.net>
72700         and Paul Eggert  <eggert@twinsun.com>
72701
72702         Merges from coreutils, plus other fixes.
72703         * lib/physmem.c: Merge in portability changes from gcc/libiberty
72704         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
72705         for credits and details.  Thanks to Kaveh Ghazi for helping
72706         to keep these files in sync.
72707         (ARRAY_SIZE): Define it.
72708         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
72709         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
72710         (memcasecmp): Don't assume size_t fits in unsigned int.
72711         Remove casts and duplicate code.
72712         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
72713         (memcpy): Remove definition.
72714         Merge in some clean-up and optimization changes from glibc.
72715         [BLOCKSIZE]: Move definition to top of file.
72716         Ensure that it is a multiple of 64.
72717         Rearrange loop exit tests so as to avoid performing an
72718         additional fread after encountering an error or EOF.
72719         * lib/md5.h (md5_uintptr): Define.
72720         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
72721         return to the initial working directory.  Preserve errno
72722         for caller.
72723         * lib/idcache.c: Include "xalloc.h".
72724         (xmalloc, xrealloc): Remove decls.
72725         (getuser): Remove casts no longer required in C89.
72726         * lib/human.c: Include stdio.h, for sprintf.
72727         * lib/group-member.c: Include "xalloc.h".
72728         (xmalloc, xrealloc): Remove decls.
72729         (get_group_info): Remove casts no longer required in C89.
72730         * lib/getusershell.c (readname): Remove casts no longer required in
72731         C89.
72732         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
72733         * lib/getline.c: Whitespace fix, from coreutils.
72734
72735 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72736
72737         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
72738         Check for isascii.
72739
72740         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72741         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72742         Undo previous (whitespace-only) change.
72743
72744 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72745
72746         * lib/exclude.c: Include <ctype.h>
72747         (IN_CTYPE_DOMAIN): New macro.
72748         (is_space): New fn.
72749         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
72750         and empty lines.
72751
72752         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72753         Undo previous (whitespace-only) change.
72754
72755 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72756
72757         * config/srclist-update: Change update back to the old behavior,
72758         leaving whitespace alone.  Use one 'sed' command rather than a
72759         pipeline.
72760         (fixlicense): Now a variable, not a function.
72761         (remove_trailing_blanks): Remove.
72762         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
72763         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72764         Undo previous (whitespace-only) change.
72765
72766 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72767
72768         Merge from coreutils.
72769         * modules/euidaccess: Add lib_SOURCES, include for new
72770         file euidaccess.h
72771
72772 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72773
72774         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72775         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72776         Normalize leading white space and remove trailing white space.
72777
72778         Merge from coreutils
72779         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
72780
72781         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
72782         0.12.1.  These files are now being upgraded automatically by
72783         ../config/srclist-update.
72784
72785 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72786
72787         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72788         Normalize leading white space and remove trailing white space.
72789         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
72790         notice, as per ../config/srclist-update.
72791
72792         Merge from coreutils.
72793         * lib/euidaccess.h: New file.
72794         * lib/euidaccess.c: Include it.
72795         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
72796         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
72797         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
72798
72799 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72800
72801         * config/srclist-update: Add copyright notice.
72802         (remove_id_lines, remove_trailing_blanks): New constants.
72803         (fixfile): Use them to normalize spacing a bit in copied files.
72804         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72805         Normalize leading white space and remove trailing white space.
72806
72807         * config/texinfo.tex: Sync with texinfo.
72808
72809         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
72810         strtoul.c from libc, to merge coreutils whitespace changes.
72811
72812         * config/srclist.txt: Get the following m4 files from gettext:
72813         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
72814         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
72815         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
72816         wint_t.m4.
72817
72818 2003-08-12  Karl Berry  <karl@gnu.org>
72819
72820         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
72821         been made.
72822
72823 2003-08-11  Paul Eggert  <eggert@twinsun.com>
72824
72825         * modules/gnu-source, m4/gnu-source.m4:
72826         Remove; we're assuming Autoconf 2.54 or later now.
72827         Suggested by Bruno Haible.
72828         * MODULES.html.sh (func_all_modules): Remove gnu-source.
72829
72830 2003-08-11  Bruno Haible  <bruno@clisp.org>
72831
72832         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
72833
72834 2003-08-11  Bruno Haible  <bruno@clisp.org>
72835
72836         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
72837         (vasnprintf): Use it instead of wcslen.
72838
72839 2003-08-11  Bruno Haible  <bruno@clisp.org>
72840
72841         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
72842         value to ensure that _Bool promotes to int. Use #define for _Bool when
72843         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
72844
72845 2003-08-10  Karl Berry  <karl@gnu.org>
72846
72847         * lib/regex.h: update from libc (whitespace fix).
72848
72849 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72850
72851         Merge some files from coreutils.  These changes were
72852         originally made by Jim Meyering.
72853         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
72854         many older Unixes require this.
72855         * lib/alloca.c (alloca): Remove cast to argument of free;
72856         no longer needed in C89.
72857         * lib/alloca_.h, regex.h: Fix white space to match
72858         what GNU indent does.
72859
72860 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72861
72862         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
72863         apparently Emacs's Unicode mode got confused before my 2003-08-05
72864         checkin.
72865
72866 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72867
72868         * m4/extensions.m4: New file.
72869         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
72870         Require gl_USE_SYSTEM_EXTENSIONS.
72871         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
72872         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
72873
72874 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72875
72876         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
72877         * modules/extensions, modules/gnu-source: New files.
72878         * modules/timespec, modules/unlocked-io: Depend on extensions.
72879
72880 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72881
72882         * modules/restrict: New file.
72883         * MODULES.html.sh (func_all_modules): Add restrict.
72884         * modules/regex: Depend on restrict.
72885
72886 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72887
72888         * m4/restrict.m4: New file.
72889         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
72890
72891 2003-08-07  Bruno Haible  <bruno@clisp.org>
72892
72893         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
72894         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
72895
72896 2003-08-07  Bruno Haible  <bruno@clisp.org>
72897
72898         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
72899         makes the module 'getndelim2' compatible with the module 'getline'.
72900
72901 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72902
72903         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
72904         byte with "\201" to avoid glitches when editing that source file
72905         with multi-gnome-terminal.
72906
72907 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72908
72909         * lib/bumpalloc.h: Remove.
72910
72911 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72912
72913         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
72914         * modules/bumpalloc: Remove.
72915
72916 2003-08-04  Paul Eggert  <eggert@twinsun.com>
72917
72918         * lib/getloadavg.c: Change copyright notice and spacing to conform to
72919         GNU coding style.
72920
72921         Merge from coreutils.
72922         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
72923         1. From glibc.
72924         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
72925         from Karl Berry, implemented by Jim Meyering.
72926         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
72927         from Dmitry V. Levin.
72928         Remove anachronistic cast of xrealloc.
72929         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
72930         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
72931         type. Otherwise, it wouldn't compile with at least /bin/cc on
72932         ymp-cray-unicos9.0.2.X.
72933         Combine two mostly-identical uses of alloca into one.
72934         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
72935
72936 2003-08-04  Dave Love  <d.love@dl.ac.uk>
72937
72938         [From Emacs.]
72939
72940         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
72941         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
72942         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
72943         obsolete NLIST_NAME_UNION.
72944         [__GNU__]: Undef BSD and FSCALE.
72945         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
72946
72947 2003-08-03  Paul Eggert  <eggert@twinsun.com>
72948
72949         * lib/stdbool_.h (_Bool): Make it signed char, instead of
72950         an enum type, so that it's guaranteed to promote to int.  See:
72951         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
72952
72953 2003-08-03  Karl Berry  <karl@gnu.org>
72954
72955         * config/depcomp: update from automake.
72956
72957 2003-07-31  Paul Eggert  <eggert@twinsun.com>
72958
72959         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
72960         (strerror): Don't assume that a printable int fits in 14 bytes.
72961
72962 2003-07-31  Bruno Haible  <bruno@clisp.org>
72963
72964         * modules/getpass-gnu: New file.
72965         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
72966
72967 2003-07-31  Bruno Haible  <bruno@clisp.org>
72968
72969         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
72970
72971 2003-07-24  Karl Berry  <karl@gnu.org>
72972
72973         * config/missing: update from automake.
72974
72975 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
72976             Bruno Haible  <bruno@clisp.org>
72977
72978         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
72979         * lib/getline.c (getline, getdelim): Likewise.
72980         Remove _GNU_SOURCE define; now it's defined in config.h through
72981         m4/getline.m4.
72982
72983 2003-07-23  Karl Berry  <karl@gnu.org>
72984
72985         * config/config.sub: update from prep.
72986
72987 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72988
72989         * modules/xalloc (Depends-on): Add exitfail.
72990         * modules/xmemcoll: Likewise.
72991
72992 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72993
72994         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
72995         over-parenthesization in macros.
72996
72997         Sync with coreutils.
72998
72999         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
73000         required by C99.
73001
73002         Use `exit_failure' for xalloc and xmemcoll instead of their own
73003         private exit-failure variables.
73004         * lib/xalloc.h (xalloc_exit_failure): Remove.
73005         * lib/xmalloc.c: Likewise.  Include exitfail.h.
73006         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
73007         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
73008         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
73009         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
73010
73011 2003-07-20  Jim Meyering  <jim@meyering.net>
73012
73013         * modules/closeout (Depends-on): Add exitfail.
73014         Suggestion from Bruno Haible.
73015
73016 2003-07-19  Karl Berry  <karl@gnu.org>
73017
73018         * config/config.sub: update from prep.
73019
73020 2003-07-18  Paul Eggert  <eggert@twinsun.com>
73021
73022         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
73023         Remove.
73024         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
73025         to test that it can stand by itself.  Include "exitfail.h".
73026         Clients should set exit_failure instead.
73027         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
73028
73029 2003-07-18  Bruno Haible  <bruno@clisp.org>
73030
73031         * modules/getndelim2: New file.
73032         * modules/getline: Share files with module getndelim2.
73033         * modules/getnline: Depend on getndelim2 instead of sharing files with
73034         it. Add getnline.c to lib_SOURCES.
73035         * MODULES.html.sh (func_all_modules): Add getndelim2.
73036
73037 2003-07-18  Bruno Haible  <bruno@clisp.org>
73038
73039         * m4/getndelim2.m4: New file.
73040         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
73041         invoke gl_PREREQ_GETNDELIM2.
73042         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
73043         gl_PREREQ_GETNDELIM2.
73044         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
73045         gl_GETNDELIM2.
73046
73047 2003-07-18  Bruno Haible  <bruno@clisp.org>
73048
73049         * lib/getndelim2.h: New file.
73050         * lib/getndelim2.c: Make into a module of its own. Include config.h,
73051         getndelim2.h.
73052         (getndelim2): Make non-static. Change return type to ssize_t.
73053         * lib/getline.h: Change argument names.
73054         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
73055         * lib/getnline.c: Include getndelim2.h.
73056
73057 2003-07-18  Andreas Schwab  <schwab@suse.de>
73058
73059         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
73060
73061 2003-07-17  Karl Berry  <karl@gnu.org>
73062
73063         * config/config.sub: update from prep.
73064
73065 2003-07-17  Bruno Haible  <bruno@clisp.org>
73066
73067         * modules/getnline: New file.
73068         * modules/getline: Add lib/getndelim2.c to source file list.
73069         * MODULES.html.sh (func_all_modules): Add getnline.
73070
73071 2003-07-17  Bruno Haible  <bruno@clisp.org>
73072
73073         * m4/getnline.m4: New file.
73074
73075 2003-07-17  Bruno Haible  <bruno@clisp.org>
73076
73077         * m4/Makefile.am.in: Remove file.
73078         * m4/Makefile.am: Remove file.
73079         * m4/Makefile.in: Remove file.
73080
73081 2003-07-17  Bruno Haible  <bruno@clisp.org>
73082
73083         * lib/getnline.h: New file.
73084         * lib/getnline.c: New file.
73085         * lib/getndelim2.c: New file, extracted from getline.c.
73086         (getndelim2): Renamed from getdelim2, with added nmax argument.
73087         * lib/getline.c: Include getndelim2.c.
73088         (getdelim2): Moved out to getndelim2.c.
73089         (getline, getdelim): Update.
73090
73091 2003-07-17  Bruno Haible  <bruno@clisp.org>
73092
73093         * lib/Makefile.am: Remove file.
73094         * lib/Makefile.in: Remove file.
73095
73096 2003-07-17  Bruno Haible  <bruno@clisp.org>
73097
73098         * configure.in: Remove file.
73099         * Makefile.in: Remove file.
73100
73101 2003-07-17  Bruno Haible  <bruno@clisp.org>
73102
73103         * MODULES.html.sh: Put the </BODY> right before </HTML>.
73104
73105 2003-07-16  Karl Berry  <karl@gnu.org>
73106
73107         * config/srclist-update: was running fixlicense twice, which caused
73108                 texinfo.tex to be nullified for some reason.  Simplify,
73109                 $gplsrc is no longer needed as far as I can see?
73110
73111 2003-07-16  Jim Meyering  <jim@meyering.net>
73112
73113         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
73114
73115 2003-07-15  Paul Eggert  <eggert@twinsun.com>
73116
73117         * config/srclist.txt: Get the following files from gettext-runtime/intl
73118         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
73119         ref-del.sin.  From Bruno Haible.
73120         * config/srclist-update (fixfile): Change grep pattern again, since the
73121         previous fix didn't work (there was another trailing $).  Use
73122         '[$]' to escape the $s.
73123
73124 2003-07-15  Karl Berry  <karl@gnu.org>
73125
73126         * lib/vasnprintf.c: update from gettext.
73127
73128 2003-07-15  Karl Berry  <karl@gnu.org>
73129
73130         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
73131         gets expanded when surrounded by '$'.
73132
73133 2003-07-15  Jim Meyering  <jim@meyering.net>
73134
73135         * modules/save-cwd: Don't depend on error.  From Derek Price.
73136
73137 2003-07-15  Jim Meyering  <jim@meyering.net>
73138
73139         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
73140
73141 2003-07-14  Simon Josefsson  <jas@extundo.com>
73142
73143         * modules/mempcpy: New file.
73144         * MODULES.html.sh (func_all_modules): Add mempcpy.
73145
73146 2003-07-14  Simon Josefsson  <jas@extundo.com>
73147
73148         * m4/mempcpy.m4: New file.
73149
73150 2003-07-14  Simon Josefsson  <jas@extundo.com>
73151
73152         * lib/mempcpy.h: New file.
73153         * lib/mempcpy.c: New file.
73154
73155 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73156
73157         * modules/getdate, modules/posixtm: Depend on mktime.
73158
73159 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73160
73161         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
73162         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
73163         unicodeio.c, unicodeio.h, unlocked-io.h:
73164         Switch from LGPL to GPL.
73165
73166 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73167
73168         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
73169         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
73170         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
73171         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
73172         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
73173         updated automatically by ../config/srclist-update.  This changes
73174         their license from LPGL to GPL.
73175
73176 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73177
73178         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
73179         assumed to refer to the root of the most recent stable gettext version.
73180         * config/srclistvars.sh: Add defaults for eggert.
73181         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
73182         Match "This program" as well as "The program".  This is needed
73183         for gettext.
73184
73185 2003-07-14  Jim Meyering  <jim@meyering.net>
73186
73187         Don't emit diagnostics.  Let callers do that.
73188         * lib/save-cwd.c: Don't include "error.h".
73189         (save_cwd): Don't call error.  Ensure that errno is valid
73190         when returning nonzero.
73191
73192         * lib/save-cwd.h (restore_cwd): Update prototype.
73193         * lib/save-cwd.c (restore_cwd): Remove two parameters.
73194         Simplify.  Don't call error upon failure.  Let callers do that.
73195         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
73196         when auditing is enabled.  But don't bother updating the #if.
73197
73198 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
73199
73200         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
73201         it breaks C++ compilation.
73202         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
73203
73204 2003-07-10  Simon Josefsson  <jas@extundo.com>
73205
73206         * modules/strchrnul (Makefile.am): Add strchrnul.h.
73207
73208 2003-07-10  Jim Meyering  <jim@meyering.net>
73209
73210         * m4/clock_time.m4: Remove trailing blank.
73211         * m4/intmax_t.m4: Likewise.
73212
73213 2003-07-10  Jim Meyering  <jim@meyering.net>
73214
73215         * lib/vasnprintf.c: Remove trailing blanks.
73216         Make cpp indentation consistent.
73217
73218 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73219
73220         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
73221         posixver.c, strftime.c, strnlen.c, strverscmp.c:
73222         Switch from LGPL to GPL.
73223
73224 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73225
73226         * config/srclist.txt: Sort sublists.  Add
73227         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
73228         that differ from gnulib for one reason or another; we'd like this list
73229         to be smaller but for now let's document what we have.
73230
73231 2003-07-08  Paul Eggert  <eggert@twinsun.com>
73232
73233         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
73234         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
73235         and sweeter "eval x=$x".
73236         * config/srclist.txt: Get lib/argp* from glibc.
73237
73238 2003-07-07  Paul Eggert  <eggert@twinsun.com>
73239
73240         * lib/mktime.c: Fix some boundary cases and remove need for floating
73241         point.
73242
73243         Issue a compile-time diagnostic if time_t is floating point, or if
73244         two's complement arithmetic is not in effect, or if arithmetic
73245         right shift does not propagate the sign.  These assumptions were
73246         all in the original code but they weren't checked.
73247
73248         (TIME_T_MIDPOINT, verify): New macros.
73249         (__isleap): Remove; it has integer overflow problems.
73250         (leapyear): New function, without those problems.
73251         (ydhms_tm_diff): Remove; splitting into two parts.
73252         (ydhms_diff): New function, containing the arithmetic part of
73253         the old ydhms_tm_diff function.  Issue a compile-time
73254         diagnostic if we are not using C99 integer division.
73255         Avoid casts when possible.
73256         (guess_time_tm): New function, containing the checking part of
73257         the old ydhms_tm_diff function.  Return the new value, rather than
73258         the difference between it and the old.  Accept a new argument T
73259         so that *T specifies the old value.  Check for overflow in the result.
73260
73261         (__mktime_internal): Use a time_t offset, not a long int offset.
73262         This undoes the 2003-06-04 change, which is no longer needed now
73263         that we have better overflow checking.
73264         (localtime_offset): Likewise.
73265
73266         (__mktime_internal): Avoid harmful overflow on hosts where time_t
73267         and long are 64-bit but int is only 32-bit.
73268         (ydhms_diff): Use long int to store year1 and yday1.
73269         Issue a compile-time diagnostic if long int is not wide enough.
73270
73271         (__mktime_internal): Use long int to store adjusted year and yday.
73272         Use plain C rather than preprocessor commands, if that doesn't
73273         affect efficiency.
73274         Check for overflow (and try to repair) after each probe
73275         rather than checking only at the very end.  This avoids some bugs
73276         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
73277         does not equal GMT offset at maximum time).
73278         Use integer to check for overflow rather than floating point; this
73279         is more portable to non-IEEE hosts, and is a tad faster.
73280         When we detect that we are oscillating between two values,
73281         don't check whether tm_isdst has the requested value, since
73282         we already know the answer.  When tm_isdst has the wrong value,
73283         use a different heuristic to find the right one, based on the
73284         extreme values actually observed in practice in tz2003a,
73285         rather than the (overly optimistic) "previous 3 calendar quarters".
73286
73287         (not_equal_tm, print_tm, check_result): Use "const T" rather than
73288         "T const" to accommodate glibc style.
73289         (check_result): Use less-confusing report format.  "long" -> "long int.
73290         (main): Likewise.
73291         Don't loop if the iteration overflows time_t.
73292         Allow a negative step in the iteration.
73293
73294 2003-07-06  Karl Berry  <karl@gnu.org>
73295
73296         * config/depcomp: update from automake.
73297         * config/config.sub: update from prep.
73298
73299 2003-07-03  Karl Berry  <karl@gnu.org>
73300
73301         * config/config.guess: update from prep.
73302
73303 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73304
73305         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
73306         xreadlink.c now includes it unconditionally.
73307
73308 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73309
73310         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
73311         having it depend on HAVE_SYS_TYPES_H.
73312
73313 2003-07-01  Bruno Haible  <bruno@clisp.org>
73314
73315         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
73316         <sys/types.h> should be sufficient.
73317         Reported by Paul Eggert.
73318
73319 2003-06-26  Karl Berry  <karl@gnu.org>
73320
73321         * config/depcomp: update from automake.
73322
73323 2003-06-26  Bruno Haible  <bruno@clisp.org>
73324
73325         * modules/human: Depend on module stdbool.
73326
73327 2003-06-25  Bruno Haible  <bruno@clisp.org>
73328
73329         * modules/readlink: New file.
73330         * modules/xreadlink: Depend on it.
73331         * MODULES.html.sh (func_all_modules): Add readlink.
73332
73333 2003-06-25  Bruno Haible  <bruno@clisp.org>
73334
73335         * m4/readlink.m4: New file.
73336
73337 2003-06-25  Bruno Haible  <bruno@clisp.org>
73338
73339         * lib/readlink.c: New file.
73340
73341 2003-06-22  Karl Berry  <karl@gnu.org>
73342
73343         * config/srclist.txt: update mkinstalldirs from automake.
73344         * config/mkinstalldirs: update.
73345
73346 2003-06-22  Bruno Haible  <bruno@clisp.org>
73347
73348         Portability to mingw32.
73349         * m4/ssize_t.m4: New file, from GNU gettext.
73350         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
73351         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
73352
73353 2003-06-22  Bruno Haible  <bruno@clisp.org>
73354
73355         * modules/safe-read: Add m4/ssize_t.m4.
73356         * modules/xreadlink: Add m4/ssize_t.m4.
73357
73358 2003-06-20  Bruno Haible  <bruno@clisp.org>
73359
73360         Assume C89, so PARAMS isn't needed.
73361         * lib/unicodeio.h (PARAMS): Remove.
73362         * lib/unicodeio.c: Don't use PARAMS.
73363
73364 2003-06-18  Karl Berry  <karl@gnu.org>
73365
73366         * config/config.{guess,sub}: update from prep.
73367
73368 2003-06-18  Jim Meyering  <jim@meyering.net>
73369
73370         Merge changes from coreutils.
73371         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
73372         Remove explicit declarations of xmalloc and realloc.
73373         Include xalloc.h.
73374         (read_utmp): Remove anachronistic cast of xmalloc.
73375
73376 2003-06-17  Paul Eggert  <eggert@twinsun.com>
73377
73378         Assume C89, so PARAMS isn't needed.
73379         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
73380         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
73381         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
73382         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
73383         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
73384         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
73385         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
73386         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
73387         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
73388         lib/xstrtod.h, lib/xstrtol.h: Likewise.
73389         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
73390         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
73391         no longer needed. Anyway, config.h should always be included before any
73392         other file.
73393
73394 2003-06-11  Simon Josefsson  <jas@extundo.com>
73395
73396         * modules/sysexits: New file.
73397         * MODULES.html.sh (func_all_modules): Add sysexits.
73398
73399 2003-06-11  Simon Josefsson  <jas@extundo.com>
73400
73401         * lib/sysexit_.h: New file.
73402
73403 2003-06-11  Derek Price  <derek@ximbiot.com>
73404
73405         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
73406         necessary.
73407
73408 2003-06-11  Bruno Haible  <bruno@clisp.org>
73409
73410         * m4/sysexits.m4: New file.
73411
73412 2003-06-10  Simon Josefsson  <jas@extundo.com>
73413
73414         * lib/argp.h: New file, from glibc.
73415         * lib/argp-ba.c: New file, from glibc.
73416         * lib/argp-eexst.c: New file, from glibc.
73417         * lib/argp-fmtstream.c: New file, from glibc.
73418         * lib/argp-fmtstream.h: New file, from glibc.
73419         * lib/argp-fs-xinl.c: New file, from glibc.
73420         * lib/argp-help.c: New file, from glibc.
73421         * lib/argp-namefrob.h: New file, from glibc.
73422         * lib/argp-parse.c: New file, from glibc.
73423         * lib/argp-pv.c: New file, from glibc.
73424         * lib/argp-pvh.c: New file, from glibc.
73425         * lib/argp-xinl.c: New file, from glibc.
73426
73427 2003-06-10  Simon Josefsson  <jas@extundo.com>
73428
73429         * modules/strchrnul: New file.
73430
73431 2003-06-10  Simon Josefsson  <jas@extundo.com>
73432
73433         * modules/argp: New file.
73434
73435 2003-06-10  Simon Josefsson  <jas@extundo.com>
73436
73437         * m4/strchrnul.m4: New file.
73438
73439 2003-06-10  Simon Josefsson  <jas@extundo.com>
73440
73441         * lib/strchrnul.h: New file.
73442         * lib/strchrnul.c: New file.
73443
73444 2003-06-10  Bruno Haible  <bruno@clisp.org>
73445
73446         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
73447
73448 2003-06-07  Karl Berry  <karl@gnu.org>
73449
73450         * config/config.{guess,sub}: update from prep.
73451
73452 2003-06-07  Jim Meyering  <jim@meyering.net>
73453
73454         * modules/strtod: Use $(...) notation, not @...@ for
73455         AC_REPLACE'd variables.
73456         * modules/localcharset: Likewise.
73457
73458 2003-06-07  Jim Meyering  <jim@meyering.net>
73459
73460         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
73461         in place of my name in the copyright comment.
73462         Remove definition and uses of __P.
73463
73464         From coreutils.
73465         * lib/stat.c: Don't declare xmalloc explicitly.
73466         Instead, include "xalloc.h".
73467         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
73468         xrealloc, and xcalloc return values.
73469         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
73470         Improve comment.
73471         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
73472
73473 2003-06-07  Bruno Haible  <bruno@clisp.org>
73474
73475         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
73476         avoid AC_CONFIG_LINKS.
73477         * modules/fnmatch (Makefile.am): Use explicit creation rule for
73478         fnmatch.h, to avoid AC_CONFIG_LINKS.
73479         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
73480
73481 2003-06-07  Bruno Haible  <bruno@clisp.org>
73482
73483         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
73484         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
73485         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73486         directory.
73487         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
73488         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73489         directory.
73490
73491 2003-06-06  Jim Meyering  <jim@meyering.net>
73492
73493         Merge from coreutils.
73494         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
73495         Consolidate declarations and initializations of *_base* locals.
73496
73497         Merge from coreutils.
73498         This avoids a core dump on systems without GNU putenv,
73499         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
73500         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
73501         (unsetenv): New static function, from GNU libc.
73502         (rpl_putenv): Use it.
73503
73504         * lib/modechange.c: Remove trailing blanks.
73505
73506         Merge from coreutils.
73507         * lib/fsusage.c: Remove declaration of statfs.
73508         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
73509
73510         * lib/posixtm.c: Include <stdbool.h> unconditionally.
73511
73512 2003-06-06  Jim Meyering  <jim@meyering.net>
73513
73514         * lib/stdbool_.h: Renamed from stdbool.h.in.
73515
73516 2003-06-06  Jim Meyering  <jim@meyering.net>
73517             Bruno Haible  <bruno@clisp.org>
73518
73519         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
73520         Adjust Makefile.am snippet not to redirect directly to target.
73521         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
73522
73523 2003-06-05  Paul Eggert  <eggert@twinsun.com>
73524
73525         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
73526         mismatch, look in future quarters as well as past.  This fixes a
73527         bug when processing fall-backwards gaps immediately after a long
73528         period of daylight-saving time.
73529
73530         * lib/mktime.c: Assume freestanding C89 or better.
73531         (HAVE_LIMITS_H): Remove.  Assume it's 1.
73532         (__P): Remove; not used.
73533         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
73534         (mktime, not_equal_tm, print_tm, check_result,
73535         main): Use prototypes.  Use const * where appropriate.
73536         (main): Fix typo in testing code that uncovered by above changes.
73537         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
73538
73539 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73540
73541         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
73542         locale.h, localeconv.  This merges changes from coreutils.
73543
73544         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
73545         It can be removed after the next Autoconf is released.
73546         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
73547         needed.
73548
73549 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73550
73551         * lib/mktime.c: Fix Debian bug 177940
73552         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
73553         (localtime_offset): Now long int, not time_t, because we want it
73554         to be guaranteed to be signed.  All uses changed.
73555         (__mktime_internal): If overflow would occur when adding offset,
73556         don't add it.
73557
73558         Merge 'human' changes from coreutils.  Rewrite to support
73559         locale-specific notations like thousands separators.
73560         * lib/human.c: Simplify authorship notice.
73561         Include human.h immediately after config.h.
73562         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
73563         <limits.h>: Do not include, since human.h does.
73564         (SIZE_MAX, UINTMAX_MAX): New macros.
73565         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
73566         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
73567         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
73568         (power_letter): Renamed from suffixes.
73569         (generate_suffix_backwards): Remove.
73570         (adjust_value): Now takes int style (because of human.h changes)
73571         and long double value (for greater precision on some platforms).
73572         (group_number): New function.
73573         (human_readable): Use it.  Use integer options, not enum.
73574         Put the options before the sizes in the arg list.
73575         Support all the new options.
73576         The old human_readable function has been removed;
73577         use inttostr.h instead.
73578         (human_readable, default_block_size, humblock):
73579         Use uintmax_t, not int, for block sizes.
73580         (human_readable_inexact, block_size_types): Remove.
73581         (block_size_opts): New constant.
73582         (human_options): Renamed from human_block_size, with new signature
73583         that allows block sizes up to UINTMAX_MAX.  All callers changed.
73584         * lib/human.h: Add copyright and authorship notice.
73585         Include <limits.h> and <stdbool.h> unconditionally.
73586         (PARAMS): Remove.  All uses removed.
73587         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
73588         (enum human_inexact_style): Remove tag; now a nameless enum.
73589         (human_floor, human_ceiling, human_round_to_even): Now have
73590         values 2, 0, 1 rather than -1, 1, 0.
73591         (human_group_digits, human_suppress_point_zero, human_autoscale,
73592         human_base_1024, human_SI, human_B): New constants.
73593         (human_readable_inexact, human_block_size): Remove.
73594         (human_readable): Size args are now uintmax_t, not int.
73595         (human_options): New decl.
73596
73597         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
73598         unnecessary now that we assume C89 or better.  This change
73599         imported from coreutils.
73600
73601         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73602         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
73603         in the 2003-05-30 sync from glibc.
73604
73605         .h files should stand alone, but we shouldn't include <sys/types.h>
73606         if we can get away with just <stddef.h>.
73607
73608         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
73609         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
73610         rather than <sys/types.h>, as we merely need size_t.
73611         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
73612         to get size_t.
73613         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
73614         Include <stdio.h>, to get FILE.
73615         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
73616         memcasecmp.h has included <stddef.h> and all we need is size_t.
73617         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
73618         our interface, instead of including <sys/types.h>
73619
73620 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73621
73622         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
73623         now, as glibc mktime is buggy on non-glibc systems.
73624
73625 2003-06-03  Karl Berry  <karl@gnu.org>
73626
73627         * config/config.sub: update from prep.
73628
73629 2003-06-02  Paul Eggert  <eggert@twinsun.com>
73630
73631         [from coreutils]
73632         Fix some minor time-related bugs with POSIX time arguments.
73633         Some valid time stamps were being rejected (notably -1, and
73634         time stamps before 1900 on 64-bit hosts).  And some invalid
73635         time stamps were being accepted, e.g. September 31.
73636
73637         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
73638         that we can return (time_t) -1 successfully.
73639         * lib/posixtm.c: Likewise.
73640         [HAVE_STDBOOL_H]: Include <stdbool.h>.
73641         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
73642         (t): Remove static var.
73643         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
73644         of static var.  All uses changed.
73645         (year): Do not reject years before 1900; they can occur with
73646         64-bit time_t.
73647         (posix_time_parse): Do not check for out-of-range components;
73648         that is now the caller's responsibility, since our checks were
73649         only approximations.
73650         (posixtime): Use mktime to check for out-of-range components,
73651         since it knows them exactly.
73652         If mktime returns (time_t) -1, check whether an error actually occurred
73653         by invoking localtime on -1.
73654         (main) [TEST_POSIXTIME]: Check for input data errors, and report
73655         posixtime failures better.
73656         Improve the test data (in comments only).
73657
73658 2003-06-02  Karl Berry  <karl@gnu.org>
73659
73660         * config/mkinstalldirs (version): new variable.
73661         (--version): new option.
73662         (usage): improve message.
73663
73664 2003-05-30  Karl Berry  <karl@gnu.org>
73665
73666         * lib/mktime.c: update from libc.
73667
73668 2003-05-30  Bruno Haible  <bruno@clisp.org>
73669
73670         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
73671         * config/config.rpath: Upgrade to gettext-0.12.1.
73672
73673 2003-05-30  Bruno Haible  <bruno@clisp.org>
73674
73675         * m4/gettext.m4: Upgrade to gettext-0.12.1.
73676         * m4/nls.m4: New file, from gettext-0.12.1.
73677         * m4/po.m4: New file, from gettext-0.12.1.
73678         * m4/progtest.m4: Upgrade to gettext-0.12.1.
73679
73680 2003-05-30  Bruno Haible  <bruno@clisp.org>
73681
73682         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
73683         * lib/localcharset.h: Likewise.
73684         * lib/localcharset.c: Likewise.
73685
73686 2003-05-29  Karl Berry  <karl@gnu.org>
73687
73688         * config/config.rpath: update from gettext.
73689
73690 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73691
73692         Assume the headers required for C89 freestanding compilers.
73693         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
73694         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
73695         * m4/human.m4 (gl_HUMAN): Likewise.
73696         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
73697         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
73698         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73699         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
73700         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73701         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
73702
73703 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73704
73705         Assume the headers required for C89 freestanding compilers.
73706         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
73707         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
73708         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
73709         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
73710         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
73711         define, since <limits.h> is guaranteed to do that.
73712         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
73713         * lib/exclude.c: Include <stdbool.h> unconditionally.
73714         * lib/tempname.c: Include <stddef.h> unconditionally.
73715         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
73716         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
73717         <stddef.h> does that.
73718         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
73719         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
73720         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
73721         needed.
73722         * lib/xstrtol.c: Likewise.
73723         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
73724         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
73725
73726         * lib/addext.c (addext): Use assignment rather than cast, to avoid
73727         warnings on some platforms.
73728
73729         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73730         arbitrarily.
73731
73732 2003-05-26  Jim Meyering  <jim@meyering.net>
73733
73734         Merge in a change from coreutils:
73735         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
73736         that is guaranteed to be `no'.  Use `no_such_member' to indicate
73737         that condition, rather than `-1' which is slightly misleading.
73738         Change the name of the cache variable to have the gl_ prefix.
73739         Prompted by a patch from Richard Dawe for DJGPP.
73740
73741 2003-05-24  Karl Berry  <karl@gnu.org>
73742
73743         * config/config.guess: update from prep.
73744
73745 2003-05-22  Karl Berry  <karl@gnu.org>
73746
73747         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
73748
73749 2003-05-20  Karl Berry  <karl@gnu.org>
73750
73751         * config/config.guess: update from prep.
73752
73753 2003-05-18  Karl Berry  <karl@gnu.org>
73754
73755         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
73756         might actually be set by the user.
73757
73758         * config/depcomp, install-sh, mdate-sh: update from automake.
73759
73760 2003-05-17  Bruno Haible  <bruno@clisp.org>
73761
73762         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
73763         invalid expansion for AC_EGREP_CPP.
73764         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
73765         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
73766         Suggested by Akim Demaille <akim@epita.fr> in
73767         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
73768
73769 2003-05-12  Jim Meyering  <jim@meyering.net>
73770
73771         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
73772         the space-padded-by-default conversion specifiers, %e, %k, %l.
73773
73774 2003-05-12  Bruno Haible  <bruno@clisp.org>
73775
73776         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
73777         the string is longer than 4 KB.
73778
73779 2003-05-11  Karl Berry  <karl@gnu.org>
73780
73781         * config/config.{guess,sub}: update from prep.
73782
73783 2003-05-09  Bruno Haible  <bruno@clisp.org>
73784
73785         * modules/error: Add m4/strerror_r.m4 to file list.
73786
73787 2003-05-03  Bruno Haible  <bruno@clisp.org>
73788
73789         Upgrade to Unicode-4.0.
73790         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
73791         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
73792         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
73793         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
73794         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
73795         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
73796         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
73797         Change width of U+E0100..U+E01EF from 1 to 0.
73798
73799 2003-04-25  Jim Meyering  <jim@meyering.net>
73800
73801         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
73802         of type size_t, not int.
73803
73804 2003-04-25  Bruno Haible  <bruno@clisp.org>
73805
73806         * lib/copy-file.c: Include <stddef.h>, for size_t.
73807
73808 2003-04-21  Paul Eggert  <eggert@twinsun.com>
73809
73810         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
73811         code which expansion is under static control.  Patch imported from
73812         Akim Demaille's patch to Bison; see
73813         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
73814
73815 2003-04-14  Bruno Haible  <bruno@clisp.org>
73816
73817         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
73818
73819 2003-04-11  Jim Meyering  <jim@meyering.net>
73820
73821         Merge changes from Coreutils.
73822
73823         2003-03-22  Jim Meyering  <jim@meyering.net>
73824
73825         * lib/strftime.c (widen): Cast alloca return value to proper type.
73826
73827         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
73828
73829         From GNU libc.
73830         * lib/strftime.c (my_strftime): Handle very large width
73831         specifications for numeric values correctly.  Improve checks for
73832         overflow.
73833
73834         2003-01-19  Jim Meyering  <jim@meyering.net>
73835
73836         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
73837         definitions.
73838         (nl_get_alt_digit) [! defined my_strftime]: Define.
73839         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
73840         _nl_get_alt_digit and _nl_get_walt_digit.
73841
73842         * lib/strftime.c (my_strftime): Merge in locale-related changes from
73843         libc. These changes have no effect outside of _LIBC.
73844
73845 2003-04-10  Bruno Haible  <bruno@clisp.org>
73846
73847         * modules/findprog: New file.
73848         * MODULES.html.sh (func_all_modules): Add it.
73849
73850 2003-04-10  Bruno Haible  <bruno@clisp.org>
73851
73852         * m4/findprog.m4: New file.
73853         * m4/eaccess.m4: New file.
73854
73855 2003-04-10  Bruno Haible  <bruno@clisp.org>
73856
73857         * lib/findprog.h: New file, from GNU gettext.
73858         * lib/findprog.c: New file, from GNU gettext.
73859
73860 2003-04-05  Jim Meyering  <jim@meyering.net>
73861
73862         Merge changes from Coreutils.
73863
73864         * lib/exclude.h (PARAMS): Remove definition and uses.
73865         * lib/exclude.c: Remove uses of `PARAMS'.
73866
73867         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
73868         Add test-cases for DOS filenames. Declare program_name.
73869         (main): Set up program_name.  Patch by Rich Dawe.
73870
73871         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73872         error from mntctl.
73873         Use mntctl's return value to drive the entry-processing loop, since
73874         we can't rely on the value of the vmt_length member in the last
73875         entry.  On some systems doing so could result in exhausting
73876         virtual memory.  Based in part on a patch from Mike Jetzer.
73877
73878 2003-04-04  Bruno Haible  <bruno@clisp.org>
73879
73880         * modules/linebreak: New file.
73881         * MODULES.html.sh (func_all_modules): Add it.
73882
73883 2003-04-04  Bruno Haible  <bruno@clisp.org>
73884
73885         * m4/linebreak.m4: New file.
73886
73887 2003-04-04  Bruno Haible  <bruno@clisp.org>
73888
73889         * lib/linebreak.h: New file, from GNU gettext.
73890         * lib/linebreak.c: New file, from GNU gettext with slight
73891         modifications.
73892         * lib/lbrkprop.h: New file, from GNU gettext.
73893
73894 2003-04-03  Bruno Haible  <bruno@clisp.org>
73895
73896         * modules/utf8-ucs4: New file.
73897         * modules/utf16-ucs4: New file.
73898         * modules/ucs4-utf8: New file.
73899         * modules/ucs4-utf16: New file.
73900         * MODULES.html.sh (func_all_modules): Add them.
73901
73902 2003-04-03  Bruno Haible  <bruno@clisp.org>
73903
73904         * m4/utf-ucs4.m4: New file.
73905         * m4/ucs4-utf.m4: New file.
73906
73907 2003-04-03  Bruno Haible  <bruno@clisp.org>
73908
73909         * lib/utf8-ucs4.h: New file, from GNU gettext.
73910         * lib/utf16-ucs4.h: New file, from GNU gettext.
73911         * lib/ucs4-utf8.h: New file, from GNU gettext.
73912         * lib/ucs4-utf16.h: New file, from GNU gettext.
73913
73914 2003-04-02  Bruno Haible  <bruno@clisp.org>
73915
73916         * modules/binary-io: New file.
73917         * MODULES.html.sh (func_all_modules): Add it.
73918
73919 2003-04-02  Bruno Haible  <bruno@clisp.org>
73920
73921         * lib/binary-io.h: New file, from GNU gettext.
73922
73923 2003-04-01  Bruno Haible  <bruno@clisp.org>
73924
73925         * modules/pathname: New file.
73926         * MODULES.html.sh (func_all_modules): Add it.
73927
73928 2003-04-01  Bruno Haible  <bruno@clisp.org>
73929
73930         * lib/pathname.h: New file, from GNU gettext.
73931         * lib/concatpath.c: New file, from GNU gettext.
73932
73933 2003-03-30  Bruno Haible  <bruno@clisp.org>
73934
73935         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
73936
73937 2003-03-30  Bruno Haible  <bruno@clisp.org>
73938
73939         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
73940         function chown() doesn't exist.
73941
73942 2003-03-28  Bruno Haible  <bruno@clisp.org>
73943
73944         * modules/copy-file: New file.
73945         * MODULES.html.sh (func_all_modules): Add it.
73946
73947 2003-03-28  Bruno Haible  <bruno@clisp.org>
73948
73949         * m4/copy-file.m4: New file.
73950
73951 2003-03-28  Bruno Haible  <bruno@clisp.org>
73952
73953         * lib/copy-file.h: New file, from GNU gettext.
73954         * lib/copy-file.c: New file, from GNU gettext.
73955
73956 2003-03-18  Jim Meyering  <jim@meyering.net>
73957
73958         * lib/quote.c (quote_n): Fix typo in comment.
73959
73960 2003-03-18  Bruno Haible  <bruno@clisp.org>
73961
73962         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
73963         checking.
73964         * m4/onceonly_2_57.m4: Likewise.
73965
73966 2003-03-17  Bruno Haible  <bruno@clisp.org>
73967
73968         * m4/onceonly.m4: Require autoconf 2.54 or newer.
73969         (m4_quote): Remove macro.
73970         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
73971
73972 2003-03-14  Jim Meyering  <jim@meyering.net>
73973
73974         Merge changes from Coreutils.
73975         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
73976         to be const, in order to avoid warnings.
73977         (obstack_room): Likewise.
73978         (obstack_empty_p): Likewise.
73979
73980 2003-03-14  Bruno Haible  <bruno@clisp.org>
73981
73982         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
73983         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
73984
73985 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73986
73987         Merge changes from Bison.
73988         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
73989         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
73990         when compiling Bison 1.875's `bitset bset = obstack_alloc
73991         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
73992         * lib/hash.c: Include <stdbool.h> unconditionally.
73993
73994 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73995
73996         * m4/onceonly.m4 (m4_quote): New macro.
73997         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
73998         Quote AC_FOREACH variable-expansions properly.
73999
74000 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74001
74002         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
74003
74004 2003-03-09  Paul Eggert  <eggert@twinsun.com>
74005
74006         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
74007         Reported by Bruce Becker; see:
74008         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
74009
74010 2003-03-03  Paul Eggert  <eggert@twinsun.com>
74011             Bruno Haible  <bruno@clisp.org>
74012
74013         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
74014         Reported by John Hughes, see
74015         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
74016
74017 2003-02-20  Bruno Haible  <bruno@clisp.org>
74018
74019         * MODULES.html.sh (func_all_modules): Add poll.
74020
74021 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74022
74023         * modules/poll: New file.
74024
74025 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74026
74027         * lib/poll_.h: New file.
74028         * lib/poll.c: New file.
74029
74030 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74031
74032         * m4/poll.m4: New file.
74033
74034 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74035
74036         * modules/mathl: New file.
74037
74038 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74039
74040         * lib/mathl.h: New file.
74041         * lib/acosl.c: New file.
74042         * lib/asinl.c: New file.
74043         * lib/atanl.c: New file.
74044         * lib/ceill.c: New file.
74045         * lib/cosl.c: New file.
74046         * lib/expl.c: New file.
74047         * lib/floorl.c: New file.
74048         * lib/frexpl.c: New file.
74049         * lib/ldexpl.c: New file.
74050         * lib/logl.c: New file.
74051         * lib/sincosl.c: New file.
74052         * lib/sinl.c: New file.
74053         * lib/sqrtl.c: New file.
74054         * lib/tanl.c: New file.
74055         * lib/trigl.c: New file.
74056         * lib/trigl.h: New file.
74057
74058 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74059
74060         * m4/mathl.m4: New file.
74061
74062 2003-02-18  Bruno Haible  <bruno@clisp.org>
74063
74064         * MODULES.html.sh (func_all_modules): Add mathl.
74065
74066 2003-02-17  Bruno Haible  <bruno@clisp.org>
74067
74068         * modules/mkdtemp: New module.
74069         * MODULES.html.sh (func_all_modules): Add it.
74070
74071 2003-02-17  Bruno Haible  <bruno@clisp.org>
74072
74073         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
74074
74075 2003-02-17  Bruno Haible  <bruno@clisp.org>
74076
74077         * lib/mkdtemp.h: New file, from GNU gettext.
74078         * lib/mkdtemp.c: New file, from GNU gettext.
74079
74080 2003-02-02  Jim Meyering  <jim@meyering.net>
74081
74082         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
74083         e.g. glibc-2.2.93.
74084
74085 2003-01-31  Bruno Haible  <bruno@clisp.org>
74086
74087         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
74088         'rpl_rename'.
74089         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
74090         'rpl_strnlen'.
74091         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
74092         'rpl_strtod'.
74093         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
74094         'rpl_utime'.
74095
74096 2003-01-31  Bruno Haible  <bruno@clisp.org>
74097
74098         * lib/rename.c: #undef rename before defining rpl_rename.
74099         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
74100
74101 2003-01-30  Bruno Haible  <bruno@clisp.org>
74102
74103         * modules/vasnprintf, modules/vasprintf: New modules.
74104         * MODULES.html.sh (func_all_modules): Add them.
74105
74106 2003-01-30  Bruno Haible  <bruno@clisp.org>
74107
74108         * m4/signed.m4: New file, from GNU gettext.
74109         * m4/longdouble.m4: New file, from GNU gettext.
74110         * m4/wchar_t.m4: New file, from GNU gettext.
74111         * m4/wint_t.m4: New file, from GNU gettext.
74112         * m4/vasnprintf.m4: New file.
74113         * m4/vasprintf.m4: New file.
74114
74115 2003-01-30  Bruno Haible  <bruno@clisp.org>
74116
74117         * lib/printf-args.h: New file, from GNU gettext.
74118         * lib/printf-args.c: New file, from GNU gettext.
74119         * lib/printf-parse.h: New file, from GNU gettext.
74120         * lib/printf-parse.c: New file, from GNU gettext.
74121         * lib/vasnprintf.h: New file, from GNU gettext.
74122         * lib/vasnprintf.c: New file, from GNU gettext.
74123         * lib/asnprintf.c: New file, from GNU gettext.
74124         * lib/vasprintf.h: New file, from GNU gettext with modifications.
74125         * lib/vasprintf.c: New file, from GNU gettext.
74126         * lib/asprintf.c: New file, from GNU gettext.
74127
74128 2003-01-29  Bruno Haible  <bruno@clisp.org>
74129
74130         * modules/stpncpy: New module.
74131         * MODULES.html.sh (func_all_modules): Add it.
74132
74133 2003-01-29  Bruno Haible  <bruno@clisp.org>
74134
74135         * m4/stpncpy.m4: New file.
74136
74137 2003-01-29  Bruno Haible  <bruno@clisp.org>
74138
74139         * lib/stpncpy.h: New file, from GNU gettext with modifications.
74140         * lib/stpncpy.c: New file, from GNU gettext with modifications.
74141
74142 2003-01-28  Bruno Haible  <bruno@clisp.org>
74143
74144         * modules/c-ctype: New module.
74145         * MODULES.html.sh (func_all_modules): Add it.
74146
74147 2003-01-28  Bruno Haible  <bruno@clisp.org>
74148
74149         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
74150         Paul Eggert.
74151         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
74152         Paul Eggert.
74153
74154 2003-01-27  Bruno Haible  <bruno@clisp.org>
74155
74156         * modules/xsetenv: New module.
74157         * MODULES.html.sh (func_all_modules): Add it.
74158
74159 2003-01-27  Bruno Haible  <bruno@clisp.org>
74160
74161         * lib/xsetenv.h: New file, from GNU gettext.
74162         * lib/xsetenv.c: New file, from GNU gettext.
74163
74164 2003-01-23  Jim Meyering  <jim@meyering.net>
74165
74166         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
74167         from working on systems without dirfd (at least Irix and OSF1/Tru64).
74168
74169 2003-01-23  Bruno Haible  <bruno@clisp.org>
74170
74171         * modules/minmax: New module.
74172         * MODULES.html.sh (func_all_modules): Add it.
74173
74174 2003-01-23  Bruno Haible  <bruno@clisp.org>
74175
74176         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
74177         Eggert.
74178
74179 2003-01-22  Bruno Haible  <bruno@clisp.org>
74180
74181         * modules/exit: New module.
74182         * MODULES.html.sh (func_all_modules): Add it.
74183
74184 2003-01-22  Bruno Haible  <bruno@clisp.org>
74185
74186         * lib/exit.h: New file, from GNU gettext.
74187
74188 2003-01-19  Bruno Haible  <bruno@clisp.org>
74189
74190         * gnulib-tool: Recognize option --extract-maintainer.
74191         (func_get_maintainer): New function.
74192         * modules/*: Add Maintainer entry.
74193
74194 2003-01-16  Jim Meyering  <jim@meyering.net>
74195
74196         * m4/regex.m4: The `regex' struct is both input and output.
74197         Initialize it before each use.  Patch by Tim Waugh.
74198
74199 2003-01-16  Bruno Haible  <bruno@clisp.org>
74200
74201         * MODULES.html.sh: Add a table of contents. Add the module name as
74202         leftmost column. Add hyperlinks.
74203
74204 2003-01-15  Bruno Haible  <bruno@clisp.org>
74205
74206         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
74207
74208 2003-01-15  Bruno Haible  <bruno@clisp.org>
74209
74210         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
74211         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
74212         suffix.
74213
74214 2003-01-15  Bruno Haible  <bruno@clisp.org>
74215
74216         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
74217
74218 2003-01-15  Bruno Haible  <bruno@clisp.org>
74219
74220         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
74221         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
74222
74223 2003-01-14  Jim Meyering  <jim@meyering.net>
74224
74225         * lib/same.c (same_name): Tweak a comment.
74226
74227 2003-01-14  Bruno Haible  <bruno@clisp.org>
74228
74229         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
74230         when a string comparison is sufficient.
74231
74232 2003-01-14  Bruno Haible  <bruno@clisp.org>
74233
74234         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
74235         'unsigned int'.
74236
74237 2003-01-14  Bruno Haible  <bruno@clisp.org>
74238
74239         * lib/hash-pjw.c: Add comment about low quality of this function.
74240
74241 2003-01-13  Bruno Haible  <bruno@clisp.org>
74242
74243         * modules/stpcpy: Distribute lib/stpcpy.h.
74244         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
74245
74246 2003-01-13  Bruno Haible  <bruno@clisp.org>
74247
74248         * modules/*: Add a description.
74249         * modules/strpbrk: Fix Makefile.am snippet.
74250         * modules/strtoimax: Fix dependencies.
74251         * modules/strtoumax: Likewise.
74252
74253 2003-01-13  Bruno Haible  <bruno@clisp.org>
74254
74255         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
74256         * modules/alloca (Makefile.am): All object files depend on alloca.h.
74257         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
74258
74259 2003-01-13  Bruno Haible  <bruno@clisp.org>
74260
74261         * gnulib-tool (func_create_testdir): Store config/* files in the main
74262         directory.
74263         * config.rpath: Move to ...
74264         * config/config.rpath: ... here.
74265         * modules/gettext: Contains config/config.rpath, not config.rpath.
74266         * modules/iconv: Likewise.
74267
74268 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74269
74270         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74271         to avoid collisions with libcurses and libreadline.
74272
74273         * m4/getstr.m4: Remove.
74274         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
74275
74276 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74277
74278         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74279         to avoid collisions with libcurses and libreadline.
74280
74281         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
74282         * lib/getstr.h, getstr.c: Remove.
74283         * lib/getline.c: Include "getline.h", to check interface.
74284         Move body of old getstr.c here: this defines MIN_CHUNK and
74285         declares getdelim2, which is renamed from getstr.
74286         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
74287
74288         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
74289         All uses changed.
74290         * lib/linebuffer.h: Likewise.
74291         (readline): Remove backward-compatibility macro.
74292
74293 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74294
74295         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74296         to avoid collisions with libcurses and libreadline.
74297         * getstr: Remove.
74298         * MODULES.html.sh: Remove getstr.
74299         * modules/getline: Depend on unlocked-io, not getstr.
74300
74301 2003-01-12  Jim Meyering  <jim@meyering.net>
74302
74303         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
74304
74305 2003-01-10  Bruno Haible  <bruno@clisp.org>
74306
74307         * modules/alloca: Change Makefile.am requirements. Simplify Include
74308         requirements. Add lib/alloca_.h to file list.
74309
74310 2003-01-10  Bruno Haible  <bruno@clisp.org>
74311
74312         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
74313
74314 2003-01-10  Bruno Haible  <bruno@clisp.org>
74315
74316         * lib/alloca_.h: New file.
74317         * lib/getdate.y: Unconditionally include alloca.h.
74318         * lib/makepath.c: Likewise.
74319         * lib/setenv.c: Likewise.
74320         * lib/userspec.c: Likewise.
74321
74322 2003-01-09  Karl Berry  <karl@gnu.org>
74323
74324         * MODULES.html.sh: include `dirname $0` in PATH, to find
74325         gnulib-tool.
74326
74327 2003-01-09  Bruno Haible  <bruno@clisp.org>
74328
74329         * modules/stdbool: Change configure.ac, Makefile.am requirements.
74330         Simplify Include requirements. Add lib/stdbool.h.in to file list.
74331
74332 2003-01-09  Bruno Haible  <bruno@clisp.org>
74333
74334         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
74335
74336 2003-01-09  Bruno Haible  <bruno@clisp.org>
74337
74338         * lib/stdbool.h.in: New file.
74339
74340 2003-01-09  Bruno Haible  <bruno@clisp.org>
74341
74342         * gnulib-tool (func_all_modules): Ignore files ending in ~.
74343         * MODULES.html.sh: Likewise.
74344
74345 2003-01-08  Jim Meyering  <jim@meyering.net>
74346
74347         * lib/full-write.c: Undefine and define-away `const' after inclusion
74348         of errno.h, not before.  Suggestion from Bruno Haible.
74349
74350 2003-01-08  Bruno Haible  <bruno@clisp.org>
74351
74352         * modules/full-read: Depend on full-write.
74353
74354 2003-01-08  Bruno Haible  <bruno@clisp.org>
74355
74356         * lib/safe-read.c: Include specification header first, to ensure its
74357         selfcontainedness.
74358         * lib/full-write.c: Likewise.
74359
74360 2003-01-07  Jim Meyering  <jim@meyering.net>
74361
74362         * lib/full-write.c: Rework so that it may serve to define full_read,
74363         too.
74364         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
74365
74366 2003-01-07  Bruno Haible  <bruno@clisp.org>
74367
74368         * lib/strtoimax.c: Include <stdint.h> as an alternative to
74369         <inttypes.h>.
74370         * lib/xstrtol.h: Likewise.
74371         * lib/xstrtoimax.c: Likewise.
74372         * lib/xstrtoumax.c: Likewise.
74373         * lib/human.h: Likewise.
74374
74375         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
74376         on systems that have <inttypes.h> but not <stdint.h>.
74377
74378 2003-01-07  Bruno Haible  <bruno@clisp.org>
74379
74380         * MODULES.html.sh: Add copyright notice.
74381         (missed_files): Omit CVS directory entries.
74382         (func_module): Make it work with sed-3.02.
74383         * MODULES.txt: Remove file.
74384
74385 2003-01-06  Jim Meyering  <jim@meyering.net>
74386
74387         * lib/version-etc.c: Update year in translatable copyright string.
74388
74389 2003-01-03  Karl Berry  <karl@gnu.org>
74390
74391         * config/config.{guess,sub}: update from prep.
74392
74393 2003-01-02  Karl Berry  <karl@gnu.org>
74394
74395         * doc/COPYING.DOC: belatedly updated to 1.2.
74396
74397 2003-01-01  Karl Berry  <karl@gnu.org>
74398
74399         * gnulib-tool (func_verify_module): report module name $module in
74400         error message, not $1.
74401         * gnulib-tool (create-testdir): don't complain if destdir couldn't
74402         be created, only if it doesn't exist.
74403         * gnulib-tool (last_checkin_date): don't expand the $Date here.
74404
74405 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74406
74407         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
74408
74409 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74410
74411         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
74412         memcmp if strcoll doesn't work.
74413
74414 2002-12-31  Bruno Haible  <bruno@clisp.org>
74415
74416         * lib/utime.c (utime_null): No need to call ftruncate if the file was
74417         nonempty.
74418
74419 2002-12-31  Bruno Haible  <bruno@clisp.org>
74420
74421         * lib/memcoll.c (STRCOLL): New macro.
74422         (memcoll): Use it.
74423
74424 2002-12-31  Bruno Haible  <bruno@clisp.org>
74425
74426         * lib/localcharset.h: New file.
74427         * lib/localcharset.c: Include it.
74428         * lib/unicodeio.c: Likewise.
74429
74430 2002-12-31  Bruno Haible  <bruno@clisp.org>
74431
74432         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
74433         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
74434
74435 2002-12-31  Bruno Haible  <bruno@clisp.org>
74436
74437         * lib/getline.h: Include <stddef.h>, for size_t.
74438
74439         * lib/unicodeio.h: Include <stddef.h>, for size_t.
74440         * lib/unicodeio.c: Don't include <stddef.h>.
74441
74442 2002-12-31  Bruno Haible  <bruno@clisp.org>
74443
74444         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
74445         HAVE_TM_ZONE.
74446
74447 2002-12-24  Karl Berry  <karl@gnu.org>
74448
74449         * config/config.guess: update from prep.
74450
74451 2002-12-24  Bruno Haible  <bruno@clisp.org>
74452
74453         General infrasructure.
74454         * m4/README: Rewritten.
74455         * m4/onceonly.m4: New file.
74456         * m4/onceonly_2_57.m4: New file.
74457
74458         Module atexit.
74459         * m4/atexit.m4: New file.
74460
74461         Module strtod.
74462         * m4/strtod.m4: New file.
74463
74464         Module strtol.
74465         * m4/strtol.m4: New file.
74466
74467         Module strtoul.
74468         * m4/strtoul.m4: New file.
74469
74470         Module memchr.
74471         * m4/memchr.m4: New file.
74472
74473         Module memcmp.
74474         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
74475         (jm_FUNC_MEMCMP): Invoke it.
74476
74477         Module memcpy.
74478         * m4/memcpy.m4: New file.
74479
74480         Module memmove.
74481         * m4/memmove.m4: New file.
74482
74483         Module memset.
74484         * m4/memset.m4: New file.
74485
74486         Module strcspn.
74487         * m4/strcspn.m4: New file.
74488
74489         Module strpbrk.
74490         * m4/strpbrk.m4: New file.
74491
74492         Module strstr.
74493         * m4/strstr.m4: New file.
74494
74495         Module strerror.
74496         * m4/strerror.m4: New file.
74497
74498         Module mktime.
74499         * m4/mktime.m4: Renamed from jm-mktime.m4.
74500         (gl_PREREQ_MKTIME): New macro.
74501         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
74502
74503         Module malloc.
74504         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
74505         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
74506         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
74507
74508         Module realloc.
74509         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
74510         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
74511         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
74512
74513         Module strftime.
74514         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
74515         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
74516         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
74517         gl_TM_GMTOFF.
74518         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
74519
74520         Module xalloc.
74521         * m4/xalloc.m4: New file.
74522
74523         Module alloca.
74524         * m4/alloca.m4: New file.
74525
74526         Module putenv.
74527         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
74528         (jm_FUNC_PUTENV): Invoke it.
74529
74530         Module setenv.
74531         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
74532         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
74533         when invoked twice.
74534         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
74535         gt_FUNC_SETENV.
74536
74537         Module memrchr.
74538         * m4/memrchr.m4: New file.
74539
74540         Module stpcpy.
74541         * m4/stpcpy.m4: New file.
74542
74543         Module strcase.
74544         * m4/strcase.m4: New file.
74545
74546         Module strdup.
74547         * m4/strdup.m4: New file.
74548
74549         Module strnlen.
74550         * m4/strnlen.m4: New file.
74551
74552         Module strndup.
74553         * m4/strndup.m4: New file.
74554
74555         Module xstrtod.
74556         * m4/xstrtod.m4: New file.
74557
74558         Module xstrtol.
74559         * m4/xstrtol.m4: New file.
74560
74561         Module getdate.
74562         * m4/getdate.m4: New file.
74563
74564         Module unlocked-io.
74565         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
74566         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
74567         * m4/jm-glibc-io.m4n: Remove file.
74568
74569         Module long-options.
74570         * m4/long-options.m4: New file.
74571
74572         Module md5.
74573         * m4/md5.m4: New file.
74574
74575         Module sha.
74576         * m4/sha.m4: New file.
74577
74578         Module getstr.
74579         * m4/getstr.m4: New file.
74580
74581         Module getline.
74582         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
74583         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
74584         <sys/types.h>, for size_t. Use the function name gnu_getline, not
74585         simply getline. Infoke gl_PREREQ_GETLINE.
74586
74587         Module obstack.
74588         * m4/obstack.m4: New file.
74589
74590         Module hash.
74591         * m4/hash.m4: New file.
74592
74593         Module readtokens.
74594         * m4/readtokens.m4: New file.
74595
74596         Module strverscmp.
74597         * m4/strverscmp.m4: New file.
74598
74599         Module stdbool.
74600         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
74601         OSF/1.
74602
74603         Module strtoll.
74604         * m4/strtoll.m4: New file.
74605
74606         Module strtoull.
74607         * m4/strtoull.m4: New file.
74608
74609         Module strtoimax.
74610         * m4/strtoimax.m4: New file.
74611
74612         Module strtoumax.
74613         * m4/strtoumax.m4: New file.
74614
74615         Module xstrtoimax.
74616         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
74617         jm_AC_PREREQ_XSTRTOIMAX.
74618         Moved the strtol prerequisites to strtol.m4.
74619         Moved the strtoll prerequisites to strtoll.m4.
74620         Moved the strtoimax prerequisites to strtoimax.m4.
74621
74622         Module xstrtoumax.
74623         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
74624         jm_AC_PREREQ_XSTRTOUMAX.
74625         Moved the strtoul prerequisites to strtoul.m4.
74626         Moved the strtoull prerequisites to strtoull.m4.
74627         Moved the strtoumax prerequisites to strtoumax.m4.
74628
74629         Module chown.
74630         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
74631         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
74632
74633         Module dup2.
74634         * m4/dup2.m4: New file.
74635
74636         Module ftruncate.
74637         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
74638         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
74639
74640         Module getgroups.
74641         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
74642         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
74643
74644         Module gettimeofday.
74645         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
74646         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
74647         gl_PREREQ_GETTIMEOFDAY.
74648
74649         Module mkdir.
74650         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
74651         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
74652
74653         Module mkstemp.
74654         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
74655         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
74656         jm_AC_TYPE_UINTMAX_T.
74657         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
74658
74659         Module stat.
74660         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
74661         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
74662
74663         Module lstat.
74664         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
74665         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
74666
74667         Module timespec.
74668         * m4/timespec.m4 (gl_TIMESPEC): New macro.
74669         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
74670         * m4/st_mtim.m4: Indentation.
74671
74672         Module nanosleep.
74673         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
74674         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
74675         gl_PREREQ_NANOSLEEP.
74676
74677         Module regex.
74678         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
74679         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
74680         (gl_REGEX): New macro.
74681
74682         Module rename.
74683         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
74684         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
74685
74686         Module rmdir.
74687         * m4/rmdir.m4: New file.
74688
74689         Module utime.
74690         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
74691         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
74692         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
74693
74694         Module dirname.
74695         * m4/dirname.m4: New file.
74696
74697         Module getopt.
74698         * m4/getopt.m4: New file.
74699
74700         Module unistd-safer.
74701         * m4/unistd-safer.m4: New file.
74702
74703         Module fnmatch.
74704         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
74705         declaration.
74706         (gl_PREREQ_FNMATCH_EXTRA): New macro.
74707         (gl_FUNC_FNMATCH_POSIX): New macro.
74708         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
74709         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
74710         simply fnmatch.
74711
74712         Module exclude.
74713         * m4/exclude.m4: New file.
74714
74715         Module human.
74716         * m4/human.m4: New file.
74717
74718         Module acl.
74719         * m4/acl.m4: Nop.
74720
74721         Module backupfile.
74722         * m4/backupfile.m4: New file.
74723         * m4/d-ino.m4: Indentation.
74724
74725         Module fsusage.
74726         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
74727         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
74728         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
74729
74730         Module dirfd.
74731         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
74732         requirements.
74733
74734         Module euidaccess.
74735         * m4/euidaccess.m4: New file.
74736
74737         Module file-type.
74738         * m4/file-type.m4: New file.
74739
74740         Module fileblocks.
74741         * m4/fileblocks.m4: New file.
74742
74743         Module filemode.
74744         * m4/filemode.m4: New file.
74745
74746         Module isdir.
74747         * m4/isdir.m4: New file.
74748
74749         Module lchown.
74750         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
74751         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
74752
74753         Module makepath.
74754         * m4/makepath.m4: New file.
74755
74756         Module modechange.
74757         * m4/modechange.m4: New file.
74758
74759         Module mountlist.
74760         * m4/mountlist.m4: New file.
74761         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
74762         Indentation.
74763
74764         Module path-concat.
74765         * m4/path-concat.m4: New file.
74766
74767         Module pathmax.
74768         * m4/pathmax.m4: New file.
74769
74770         Module same.
74771         * m4/same.m4: New file.
74772
74773         Module save-cwd.
74774         * m4/save-cwd.m4: New file.
74775
74776         Module savedir.
74777         * m4/savedir.m4: New file.
74778
74779         Module xgetcwd.
74780         * m4/xgetcwd.m4: New file.
74781         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
74782
74783         Module xreadlink.
74784         * m4/xreadlink.m4: New file.
74785
74786         Module safe-read.
74787         * m4/safe-read.m4: New file.
74788
74789         Module safe-write.
74790         * m4/safe-write.m4: New file.
74791
74792         Module closeout.
74793         * m4/closeout.m4: New file.
74794
74795         Module stdio-safer.
74796         * m4/stdio-safer.m4: New file.
74797
74798         Module getpass.
74799         * m4/getpass.m4: New file.
74800
74801         Module getugroups.
74802         * m4/getugroups.m4: New file.
74803
74804         Module group-member.
74805         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
74806         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
74807
74808         Module idcache.
74809         * m4/idcache.m4: New file.
74810
74811         Module userspec.
74812         * m4/userspec.m4: New file.
74813
74814         Module gettime.
74815         * m4/clock_time.m4: New file.
74816         * m4/gettime.m4: New file.
74817
74818         Module settime.
74819         * m4/settime.m4: New file.
74820
74821         Module posixtm.
74822         * m4/posixtm.m4: New file.
74823
74824         Module gethostname.
74825         * m4/gethostname.m4: New file.
74826
74827         Module canon-host.
74828         * m4/canon-host.m4: New file.
74829
74830         Module gettext.
74831         * m4/codeset.m4: New file, from gettext-0.11.5.
74832         * m4/gettext.m4: New file, from gettext-0.11.5.
74833         * m4/glibc21.m4: New file, from gettext-0.11.5.
74834         * m4/iconv.m4: New file, from gettext-0.11.5.
74835         * m4/intdiv0.m4: New file, from gettext-0.11.5.
74836         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
74837         * m4/inttypes.m4: New file, from gettext-0.11.5.
74838         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
74839         * m4/isc-posix.m4: New file, from gettext-0.11.5.
74840         * m4/lcmessage.m4: New file, from gettext-0.11.5.
74841         * m4/lib-ld.m4: New file, from gettext-0.11.5.
74842         * m4/lib-link.m4: New file, from gettext-0.11.5.
74843         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
74844         * m4/progtest.m4: New file, from gettext-0.11.5.
74845         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
74846         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
74847         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
74848
74849         Module localcharset.
74850         * m4/localcharset.m4: New file.
74851
74852         Module hard-locale.
74853         * m4/hard-locale.m4: New file.
74854
74855         Module mbswidth.
74856         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
74857         onceonly macros.
74858         * m4/mbrtowc.m4: Add comment.
74859
74860         Module memcasecmp.
74861         * m4/memcasecmp.m4: New file.
74862
74863         Module memcoll.
74864         * m4/memcoll.m4: New file.
74865
74866         Module unicodeio.
74867         * m4/unicodeio.m4: New file.
74868
74869         Module rpmatch.
74870         * m4/rpmatch.m4: New file.
74871
74872         Module yesno.
74873         * m4/yesno.m4: New file.
74874
74875         Module exitfail.
74876         * m4/exitfail.m4: New file.
74877
74878         Module c-stack.
74879         * m4/c-stack.m4 (gl_C_STACK): New macro.
74880         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
74881
74882         Module error.
74883         * m4/error.m4 (gl_ERROR): New macro.
74884         (jm_PREREQ_ERROR): Use onceonly macros.
74885
74886         Module fatal.
74887         * m4/fatal.m4: New file.
74888
74889         Module getloadavg.
74890         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
74891         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
74892
74893         Module getpagesize.
74894         * m4/getpagesize.m4: New file.
74895
74896         Module getusershell.
74897         * m4/getusershell.m4: New file.
74898
74899         Module physmem.
74900         * m4/physmem.m4: New file.
74901
74902         Module posixver.
74903         * m4/posixver.m4: New file.
74904
74905         Module quotearg.
74906         * m4/quotearg.m4: New file.
74907
74908         Module quote.
74909         * m4/quote.m4: New file.
74910
74911         Module readutmp.
74912         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
74913
74914         Module sig2str.
74915         * m4/sig2str.m4: New file.
74916
74917         Other.
74918         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
74919         ulonglong.m4.
74920         * m4/intmax_t.m4: New file.
74921         * m4/d-type.m4: Indentation.
74922         * m4/jm-macros.m4: Update.
74923         * m4/prereq.m4 (jm_PREREQ): Update.
74924         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
74925         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
74926         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
74927         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
74928         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
74929         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
74930         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
74931         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
74932         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
74933         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
74934         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
74935         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
74936         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
74937         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
74938         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
74939         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
74940         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
74941         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
74942         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
74943
74944 2002-12-24  Bruno Haible  <bruno@clisp.org>
74945
74946         * MODULES.txt: Update according to m4/ changes.
74947
74948         Module gettext.
74949         * config.rpath: New file, from gettext-0.11.5.
74950
74951         * modules/*: New module descriptions.
74952         * gnulib-tool: New file.
74953         * MODULES.html.sh: New file.
74954
74955 2002-12-21  Karl Berry  <karl@gnu.org>
74956
74957         * doc/fdl.texi: update to version 1.2.
74958
74959 2002-12-19  Karl Berry  <karl@gnu.org>
74960
74961         * config/config.guess: update from prep.
74962
74963 2002-12-18  Bruno Haible  <bruno@clisp.org>
74964
74965         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
74966         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
74967
74968 2002-12-17  Bruno Haible  <bruno@clisp.org>
74969
74970         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
74971         stdlib.h, string.h.
74972
74973 2002-12-17  Bruno Haible  <bruno@clisp.org>
74974
74975         * lib/canon-host.c (strdup): Remove unused declaration.
74976
74977         * lib/fsusage.c: Include full_read.h.
74978         (get_fs_usage): Use full_read instead of safe_read.
74979
74980         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
74981
74982 2002-12-12  Karl Berry  <karl@gnu.org>
74983
74984         * config/config.guess: update from prep.
74985
74986 2002-12-11  Bruno Haible  <bruno@clisp.org>
74987
74988         * m4/setenv.m4: New file, from gettext-0.11.5.
74989
74990 2002-12-11  Bruno Haible  <bruno@clisp.org>
74991
74992         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
74993         not unsetenv().
74994         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
74995         modifications:
74996
74997         2002-12-11  Bruno Haible  <bruno@clisp.org>
74998
74999                 * setenv.c (alloca): Fall back to malloc.
75000                 (freea): New macro.
75001                 (setenv): Use freea() to free memory allocated with alloca().
75002
75003         2002-11-13  Bruno Haible  <bruno@clisp.org>
75004
75005                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
75006                 function declarations.
75007                 * unsetenv.c (unsetenv): Likewise.
75008
75009         2002-03-04  Bruno Haible  <bruno@clisp.org>
75010
75011                 Portability to AIX 4.3.3.
75012                 * unsetenv.c: New file, extracted from setenv.c.
75013                 * setenv.c: Move the unsetenv() function to unsetenv.c.
75014
75015         2001-12-20  Bruno Haible  <bruno@clisp.org>
75016
75017                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
75018                 use malloc instead. For SunOS 4.
75019
75020         2001-12-11  Bruno Haible  <bruno@clisp.org>
75021
75022                 * setenv.c: Declare alloca.
75023                 (compar_fn_t): New typedef.
75024                 (KNOWN_VALUE, STORE_VALUE): Use it.
75025
75026         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
75027         setenv.h.
75028
75029 2002-12-10  Paul Eggert  <eggert@twinsun.com>
75030
75031         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
75032         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
75033         Choose values that are less likely to collide with system fnmatch
75034         options.
75035         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
75036         defined (e.g., a pure POSIX system).
75037         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
75038         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
75039
75040 2002-12-06  Paul Eggert  <eggert@twinsun.com>
75041
75042         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
75043         a pain in practice to deal with generated m4 files.  This change
75044         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
75045
75046         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
75047         and jm-glibc-io.m4, as they are no longer a special case.
75048         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
75049         kludge and the auto-generation stuff.  Check only whether the
75050         functions are declared, not whether they exist, since older hosts
75051         that don't declare the functions can't use the optimization anyway.
75052
75053 2002-12-06  Jim Meyering  <jim@meyering.net>
75054
75055         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
75056
75057         Merge in changes from libc's misc/error.c, in preparation
75058         for the merge of gnulib's changes back into libc.
75059
75060         * lib/error.c (_): Define only if not already defined.
75061         Move definition to follow all #include directives.
75062         Include unlocked-io.h only if !_LIBC.
75063         [_LIBC]: Include <libio/libioP.h>.
75064         [USE_IN_LIBIO]: Include <libio/iolibio.h>
75065         (fflush): Tweak definition to use INTUSE.
75066         (putc): Define.
75067
75068 2002-12-05  Paul Eggert  <eggert@twinsun.com>
75069
75070         * lib/alloca.c [defined emacs]: Include "lisp.h".
75071         (xalloc_die) [defined emacs]: New macro.
75072         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
75073         [! defined emacs]: Include <xalloc.h>.
75074         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
75075         (pointer): Typedef to POINTER_TYPE *.
75076         (malloc): Remove decl; we now always use xmalloc.
75077         (alloca): Use old-style definition, since Emacs needs this.
75078         Check for arithmetic overflow when computing combined size.
75079
75080 2002-12-04  Paul Eggert  <eggert@twinsun.com>
75081
75082         Do not generate unlocked-io.h automatically, since it's easier to
75083         maintain it by hand.
75084
75085         * lib/unlocked-io.h: New file, from GNU diffutils,
75086         but with proper copyright notice and attribution.
75087         * lib/gen-uio: Remove.
75088         * lib/Makefile.am: Add copyright notice.
75089         (libfetish_a_SOURCES): Add unlocked-io.h.
75090         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
75091         (DISTCLEANFILES, io_functions): Remove macros.
75092         (EXTRA_DIST): Remove gen_uio.
75093         (unlocked-io.h): Remove rule.
75094
75095 2002-12-04  Jim Meyering  <jim@meyering.net>
75096
75097         Reflect the fact that stat.c and lstat.c are no longer generated.
75098         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
75099         (DISTCLEANFILES): Likewise.
75100         (EXTRA_DIST): Likewise.
75101         (all_local): Don't depend on stat.c or lstat.c.
75102         (stat.c, lstat.c): Remove rules.
75103         (EXTRA_DIST): Remove xstat.in.
75104
75105         * lib/xstat.in: Remove file.  Contents moved into stat.c.
75106         * lib/stat.c: New file.  Contents mostly from xstat.in.
75107         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
75108         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
75109
75110         * lib/safe-read.c: Rework so that it may serve to define safe_write,
75111         too.
75112         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
75113
75114 2002-12-03  Jim Meyering  <jim@meyering.net>
75115
75116         * lib/safe-read.c, safe-write.c: Change variable names and comments,
75117         but not semantics, to minimize the differences between these two files.
75118         (safe_read): Change comment to mention SAFE_READ_ERROR.
75119
75120         * lib/safe-read.c (IS_EINTR): Define.
75121         (safe_read): Use IS_EINTR in place of in-function cpp directives.
75122
75123 2002-12-02  Jim Meyering  <jim@meyering.net>
75124
75125         * lib/safe-read.c (EINTR): Define.
75126         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75127         (INT_MAX): Provide fallback.
75128         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
75129
75130         * lib/safe-read.h (SAFE_READ_ERROR): Define.
75131
75132 2002-12-02  Bruno Haible  <bruno@clisp.org>
75133
75134         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
75135         Define, taken from safe-read.c.
75136         (INT_MAX): Provide fallback.
75137         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
75138         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
75139
75140         * lib/safe-read.c (EINTR): Remove definition.
75141         (safe_read): Don't use EINTR if it is absent.
75142
75143 2002-12-01  Jim Meyering  <jim@meyering.net>
75144
75145         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
75146         zero.
75147         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
75148
75149 2002-11-27  Paul Eggert  <eggert@twinsun.com>
75150
75151         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
75152         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
75153         with `if (! (value < limit)) abort ();', for readability.
75154
75155 2002-11-26  Karl Berry  <karl@gnu.org>
75156
75157         * lib/strdup.c: copy from libc again, with jim's ok.
75158         * lib/.cppi-disable: re-add strdup.c
75159
75160 2002-11-25  Karl Berry  <karl@gnu.org>
75161
75162         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
75163         instead of "strtol.c".
75164
75165 2002-11-25  Karl Berry  <karl@gnu.org>
75166
75167         * config/install-sh: update from automake for variable quoting, $0 in
75168         error msgs, etc.
75169
75170         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
75171         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
75172         entry.
75173
75174 2002-11-25  Jim Meyering  <jim@meyering.net>
75175
75176         * lib/mktime.c: Sync from libc, now that it has the latest fix.
75177
75178 2002-11-24  Karl Berry  <karl@gnu.org>
75179
75180         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
75181         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
75182
75183 2002-11-24  Jim Meyering  <jim@meyering.net>
75184
75185         Update from coreutils:
75186
75187         * lib/mktime.c: Merge in changes from libc.
75188
75189         Avoid a link-time failure on some Linux systems.
75190         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
75191         (otherwise).
75192         (__mon_yday): Declare with the STATIC attribute.
75193         (__mktime_internal): Likewise.
75194         Based on a report from Greg Schafer.
75195
75196 2002-11-23  Jim Meyering  <jim@meyering.net>
75197
75198         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
75199         Use `unsigned', not `int', as type of index.
75200
75201         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
75202
75203         * lib/fsusage.c: Remove unneeded parentheses around operands of
75204         `defined'.
75205
75206 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75207
75208         * lib/quotearg.h: Allow multiple inclusion by surrounding with
75209         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
75210         so that we can be included first.
75211         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
75212         * lib/quotearg.c: Include quotearg.h immediately after config.h.
75213         No need to include stddef.h or sys/types.h any more.
75214         Surround local include files with "", not "<>".
75215         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
75216         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
75217         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
75218         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
75219         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
75220         (ISPRINT): Remove; no longer needed now that we assume C89.
75221
75222         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
75223         Preserve errno.
75224
75225         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
75226         quotearg_char): Use SIZE_MAX rather than
75227         (size_t) -1 when we are talking about "infinity".
75228
75229         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
75230
75231 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75232
75233         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
75234         hint that one should use `if (! x) abort ();' rather than `assert
75235         (x);', and anyway it's one less thing to worry about configuring.
75236         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
75237         hash_rehash, hash_insert): Use abort rather than assert.
75238
75239 2002-11-22  Bruno Haible  <bruno@clisp.org>
75240
75241         * lib/safe-read.h: Assume C89. Add comments.
75242         (safe_read): Change return type to size_t.
75243         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
75244         byte counts > SSIZE_MAX correctly.
75245         * lib/safe-write.h: New file.
75246         * lib/safe-write.c: New file.
75247         * lib/full-read.h: New file.
75248         * lib/full-read.c: New file.
75249         * lib/full-write.h: Assume C89. Add comments.
75250         * lib/full-write.c: Include safe-write.h.
75251         (full_write): Rewritten to use safe_write.
75252         Suggested by Jim Meyering and Paul Eggert.
75253
75254 2002-11-21  Jim Meyering  <jim@meyering.net>
75255
75256         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
75257
75258         Merge in changes from the coreutils.
75259
75260         2002-09-25  Paul Eggert  <eggert@twinsun.com>
75261         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
75262         <stdint.h>.
75263         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
75264         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
75265         int.  Work more efficiently if X is the same width as uintmax_t.
75266         Do not compare X to -1, to avoid bogus compiler warning.
75267         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
75268         Don't assume that f_frsize and f_bsize are the same type.
75269
75270         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
75271         warning on FreeBSD.
75272
75273         * lib/makepath.c (make_path): Restore umask *before* creating the final
75274         component.
75275         (make_path): Minor reformatting.
75276
75277         * lib/xmalloc.c: Adjust to work with new autoconf macros,
75278         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
75279         HAVE_MALLOC/HAVE_REALLOC.
75280
75281         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
75282         dummy ones.  At least on GNU/Linux systems, `auto' means something
75283         else.
75284         From Michael Stone.
75285
75286 2002-11-21  Bruno Haible  <bruno@clisp.org>
75287
75288         Remove case insensitive option matching.
75289         * lib/argmatch.h (argcasematch): Remove declaration.
75290         (ARGCASEMATCH): Remove macro.
75291         (__xargmatch_internal): Remove case_sensitive argument.
75292         (XARGMATCH): Update.
75293         (XARGCASEMATCH): Remove macro.
75294         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
75295         case_sensitive argument.
75296         (argcasematch): Remove function.
75297         (__xargmatch_internal): Remove case_sensitive argument.
75298         (main): Use XARGMATCH instead of XARGCASEMATCH.
75299
75300         * lib/xmalloc.c: Change compile-time error message. Add comment about
75301         required autoconf version.
75302
75303 2002-11-20  Paul Eggert  <eggert@twinsun.com>
75304
75305         Merge argmatch cleanups from Bison.  Assume C89.
75306
75307         * lib/argmatch.c: Include config.h here, not in argmatch.h.
75308         Include stdlib.h, for EXIT_FAILURE.
75309         Always include <string.h>, since we assume C89.
75310         (EXIT_FAILURE): Remove pre-C89 bug workaround.
75311         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
75312         Include <stddef.h> instead, since it's all we need for size_t.
75313         (PARAMS): Remove.  All uses removed.
75314         (ARRAY_CARDINALITY): Do not bother to #undef.
75315         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
75316         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75317         Remove unnecessary parentheses.
75318         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75319         Insert necessary parentheses.
75320         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
75321         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
75322
75323 2002-11-19  Bruno Haible  <bruno@clisp.org>
75324
75325         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
75326         * lib/mbswidth.h: Include <stddef.h>, for size_t.
75327
75328         * lib/mbswidth.h (PARAMS): Remove macro.
75329         (mbswidth, mbsnwidth): Use ANSI C function declarations.
75330         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
75331
75332         * lib/gcd.h (PARAMS): Remove macro.
75333         (gcd): Use ANSI C function declarations.
75334         * lib/gcd.c (gcd): Likewise.
75335
75336 2002-11-15  Bruno Haible  <bruno@clisp.org>
75337
75338         * lib/strcspn.c: Include <stddef.h>.
75339         (strcspn): Use ANSI C function declaration. Change return type to
75340         size_t. Use NULL.
75341         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
75342         (strpbrk): Use NULL.
75343         * lib/strpbrk.h (PARAMS): Remove macro.
75344         (strpbrk): Use ANSI C function declaration.
75345         * lib/strstr.c: Don't include <sys/types.h>.
75346         * lib/strstr.h (PARAMS): Remove macro.
75347         (strstr): Use ANSI C function declarations.
75348
75349 2002-11-14  Karl Berry  <karl@gnu.org>
75350
75351         * config/mkinstalldirs: `do' on separate line, instead of
75352         `for var; do'.
75353
75354 2002-11-06  Bruno Haible  <bruno@clisp.org>
75355
75356         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
75357         * lib/gcd.c (gcd): Likewise.
75358
75359 2002-11-05  Bruno Haible  <bruno@clisp.org>
75360
75361         * lib/gcd.h: New file, from gettext-0.11.5.
75362         * lib/gcd.c: New file, from gettext-0.11.5.
75363
75364 2002-11-05  Bruno Haible  <bruno@clisp.org>
75365
75366         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75367         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75368         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75369         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75370
75371         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
75372         <libintl.h>.
75373         * lib/makepath.c: Include gettext.h instead of <locale.h> and
75374         <libintl.h>.
75375
75376         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
75377         * lib/human.c: Include gettext.h instead of <libintl.h>.
75378         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
75379         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
75380         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
75381         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
75382         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
75383         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
75384         (textdomain): Remove definition.
75385         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
75386
75387         * lib/long-options.c: Remove include of <libintl.h> and definition of
75388         _.
75389         * lib/same.c: Remove include of <libintl.h> and definition of _.
75390
75391 2002-11-04  Owen Taylor  <otaylor@redhat.com>
75392
75393         * lib/config.charset: A few additions for Solaris.
75394
75395 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75396
75397         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
75398         * lib/localcharset.c (locale_charset): Declare as extern "C".
75399
75400 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75401
75402         * lib/config.charset: msdos in uk_UA uses CP1125.
75403
75404 2002-11-04  Bruno Haible  <bruno@clisp.org>
75405
75406         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
75407         * lib/strcase.h: New file, from GNU gettext-0.11.5.
75408         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
75409         * lib/strstr.h: New file, from GNU gettext-0.11.5.
75410         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
75411
75412 2002-11-04  Bruno Haible  <bruno@clisp.org>
75413
75414         * lib/localcharset.c (locale_charset): Don't return an empty string.
75415
75416 2002-11-04  Bruno Haible  <bruno@clisp.org>
75417
75418         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
75419         aliases.
75420
75421 2002-11-04  Bruno Haible  <bruno@clisp.org>
75422
75423         * lib/config.charset: Update for newest glibc. Add canonical names
75424         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
75425
75426 2002-11-04  Bruno Haible  <bruno@clisp.org>
75427
75428         * lib/config.charset: Add support for NetBSD.
75429
75430 2002-11-04  Bruno Haible  <bruno@clisp.org>
75431
75432         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
75433
75434 2002-11-01  Bruno Haible  <bruno@clisp.org>
75435
75436         * configure.in: Add AC_CONFIG_AUX_DIR call.
75437         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
75438         test/Makefile.
75439         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
75440
75441 2002-09-28  Karl Berry  <karl@gnu.org>
75442
75443         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
75444         installed automake until the next release, since changes have been
75445         made.
75446
75447 2002-09-25  Karl Berry  <karl@gnu.org>
75448
75449         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
75450         * lib/getopt*: copy from libc/posix.
75451         * lib/gettext.h: copy from gettext.
75452         * lib/.cppi-disable: add strdup.c, gettext.h.
75453
75454 2002-09-25  Karl Berry  <karl@gnu.org>
75455
75456         * config/srclist.txt: enable gettext.h check.
75457         * config/config.{guess,sub}: update from prep.
75458         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
75459                 from automake 1.6.3.
75460         See srclist*.
75461
75462 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
75463
75464         * regex.c (PATFETCH): Remove the translating fetch.
75465         (PATFETCH_RAW): Rename to PATFETCH.
75466         (set_image_of_range): New fun.
75467         (SET_RANGE_TABLE_WORK_AREA): Use it.
75468         (regex_compile): Don't translate the pattern chars so eagerly.
75469         Only do it when inserting an `exactn' bytecode or when handling
75470         a char-range.
75471         (mutually_exclusive_p): Avoid empty statement.
75472
75473 2002-07-06  Jim Meyering  <meyering@lucent.com>
75474
75475         * m4/README: Don't mention Makefile.am.in.
75476         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
75477
75478 2002-07-01  Jim Meyering  <meyering@lucent.com>
75479
75480         * lib/c-stack.c: Include sys/time.h.
75481         From Volker Borchert.
75482
75483 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75484
75485         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
75486
75487 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75488
75489         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
75490         New macro.  Use it uniformly instead of
75491         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
75492         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
75493         reported by Vin Shelton.
75494
75495 2002-06-22  Paul Eggert  <eggert@twinsun.com>
75496
75497         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
75498         Do not assume SA_SIGINFO behavior.
75499         Bug reported by Jim Meyering on NetBSD 1.5.2.
75500
75501 2002-06-22  Jim Meyering  <meyering@lucent.com>
75502
75503         * m4/c-stack.m4: New file, from diffutils-2.8.2.
75504         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
75505
75506         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
75507         now that configure.ac uses AC_GNU_SOURCE.
75508         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
75509         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
75510
75511         Update to latest tools.  Suggestions from Paul Eggert.
75512         * m4/stdbool.m4: New file, from diffutils-2.8.2.
75513         * m4/gnu-source.m4: Update from diffutils-2.8.2.
75514         * m4/fnmatch.m4: Likewise.
75515         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
75516         to AC_HEADER_STDBOOL
75517
75518 2002-06-22  Jim Meyering  <meyering@lucent.com>
75519
75520         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
75521         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
75522
75523 2002-06-22  Jim Meyering  <meyering@lucent.com>
75524
75525         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
75526
75527         * lib/exitfail.c, exitfail.h: Likewise.
75528         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
75529
75530         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
75531         of fnmatch.h.
75532         (EXTRA_DIST): Add fnmatch_loop.c.
75533         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
75534
75535         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
75536         * lib/fnmatch.c: Update from diffutils-2.8.2.
75537         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
75538         * lib/fnmatch.h: Remove file.
75539
75540 2002-06-21  Jim Meyering  <meyering@lucent.com>
75541
75542         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
75543         * m4/mbrtowc.m4: Likewise.
75544
75545         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
75546         * m4/mbswidth.m4: Reflect name change:
75547         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
75548         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75549
75550         * m4/lib-link.m4: Update from gettext-0.11.2.
75551         * m4/gettext.m4: Likewise.
75552
75553         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
75554         From Alfred M. Szmidt.
75555
75556 2002-06-18  Paul Eggert  <eggert@twinsun.com>
75557
75558         * lib/file-type.h: Report an error if neither S_ISREG nor
75559         S_IFREG is defined, instead of using a test specific to glibc
75560         2.2.  This should be safe, since POSIX requires S_ISREG and
75561         Unix Version 7 had S_IFREG.  We don't need to check for
75562         <sys/types.h> since we don't use any symbols that it defines.
75563
75564 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
75565
75566         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
75567         $@-t, so that each temporary file name is unique and valid in the first
75568         8 characters, for operation under DOS.
75569
75570 2002-06-15  Paul Eggert  <eggert@twinsun.com>
75571
75572         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
75573
75574 2002-06-15  Jim Meyering  <meyering@lucent.com>
75575
75576         Work even with DJGPP 2.03, which lacks support for symlinks.
75577         From Richard Dawe.
75578         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
75579         is defined.
75580         * lib/lchown.c (S_ISLNK): Likewise.
75581
75582 2002-06-15  Jim Meyering  <meyering@lucent.com>
75583
75584         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
75585         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
75586         have been included before this file.
75587
75588 2002-06-14  Jim Meyering  <meyering@lucent.com>
75589
75590         * lib/file-type.h: Use the version from diffutils-2.8.2.
75591         * lib/file-type.c: Likewise.
75592
75593 2002-06-07  Jim Meyering  <meyering@lucent.com>
75594
75595         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
75596         They're needed at least for NetBSD 1.5.2.
75597         ($statxfs_includes): Include those same headers.
75598         ($statxfs_includes): Include sys/vfs.h if available.
75599         ($statxfs_includes): Likewise for sys/statvfs.h.
75600         Check for the following members in both structs statfs and statvfs:
75601         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
75602
75603 2002-06-01  Jim Meyering  <meyering@lucent.com>
75604
75605         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
75606         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
75607
75608 2002-05-28  Jim Meyering  <meyering@lucent.com>
75609
75610         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
75611         Reported by Volker Borchert.
75612
75613 2002-05-27  Jim Meyering  <meyering@lucent.com>
75614
75615         Fix a problem seen only on nonconforming systems whereby ls.c's
75616         use of localtime, and then of gettimeofday would cause trouble:
75617         the localtime call used to initialize rpl_gettimeofday's save
75618         mechanism would clobber ls's current local time information so
75619         that in any long listing the first file would always be listed
75620         with date 1970-01-01.  Analysis by Volker Borchert.
75621
75622         * lib/gettimeofday.c (localtime): Undefine.
75623         (rpl_localtime): New function.
75624
75625 2002-05-27  Jim Meyering  <meyering@lucent.com>
75626
75627         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
75628         localtime.
75629
75630         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
75631         use the replacement function; it wouldn't resolve at link time.
75632         Reported by Volker Borchert.
75633
75634 2002-05-22  Jim Meyering  <meyering@lucent.com>
75635
75636         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
75637         file-type.h.
75638         * lib/file-type.h: New file.
75639         * lib/file-type.c (file_type): New file/function.  Extracted from
75640         diffutils.
75641
75642 2002-04-30  Jim Meyering  <meyering@lucent.com>
75643
75644         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
75645
75646 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75647
75648         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
75649
75650 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75651
75652         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
75653         Do not check for alloca.h (no longer used) or stdbool.h (was never
75654         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
75655
75656 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75657
75658         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
75659
75660 2002-04-29  Jim Meyering  <meyering@lucent.com>
75661
75662         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
75663         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
75664         Use AC_FUNC_STRNLEN here instead.
75665
75666         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
75667         With autoconf-2.53a, it's part of AC_PROG_CC.
75668
75669 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75670
75671         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
75672         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
75673
75674 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75675
75676         * lib/sig2str.h, lib/sig2str.c: New files.
75677         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
75678
75679 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75680
75681         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
75682         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
75683         of 127, since 64 is the largest conceivable number for ancient
75684         nonstandard hosts.
75685         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
75686
75687 2002-04-28  Jim Meyering  <meyering@lucent.com>
75688
75689         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
75690
75691 2002-04-24  Jim Meyering  <meyering@lucent.com>
75692
75693         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
75694         (jm_PREREQ): Use it.
75695
75696         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
75697         mach/mach.h fcntl.h.
75698         Check for this function: setlocale.
75699
75700 2002-04-24  Jim Meyering  <meyering@lucent.com>
75701
75702         * lib/gettext.h: New file, from Gettext.
75703         * lib/Makefile.am (INCLUDES): Remove -I../intl.
75704         (libfetish_a_SOURCES): Add gettext.h.
75705
75706 2002-04-16  Jim Meyering  <meyering@lucent.com>
75707
75708         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
75709         ut_pid, ut_id, ut_exit.
75710
75711 2002-04-16  Jim Meyering  <meyering@lucent.com>
75712
75713         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
75714         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
75715         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
75716
75717 2002-04-12  Jim Meyering  <meyering@lucent.com>
75718
75719         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
75720         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
75721         existence of the getmntinfo function.  Needed for Darwin 5.3.
75722
75723         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
75724         This is necessary at least on Darwin 5.3.
75725
75726         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
75727         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
75728         strnlen.o in the library, and that makes some versions of ranlib
75729         object.
75730
75731 2002-04-12  Jim Meyering  <meyering@lucent.com>
75732
75733         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
75734
75735 2002-04-09  Jim Meyering  <meyering@lucent.com>
75736
75737         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
75738         to be more precise.  Rather than saying we're checking whether the
75739         function `works', say what we're testing.
75740         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
75741         Reported by Bruno Haible.
75742
75743 2002-03-10  Jim Meyering  <meyering@lucent.com>
75744
75745         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
75746         Suggestion from Santiago Vila.
75747
75748 2002-03-08  Jim Meyering  <meyering@lucent.com>
75749
75750         * lib/rename.c: Mention that this wrapper is needed also on
75751         mips-dec-ultrix4.4 systems.
75752
75753 2002-03-02  Jim Meyering  <meyering@lucent.com>
75754
75755         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
75756         not HAVE_CLOCK_SETTIME.
75757
75758 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75759
75760         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
75761         Check for clock_settime.
75762
75763 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75764
75765         * lib/nanosleep.h: Rename to....
75766         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
75767
75768         * lib/gettime.c: New file.
75769         * lib/settime.c: New file.
75770         * lib/stime.c: Remove.
75771
75772         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
75773         timespec.h.  Remove nanosleep.h.
75774
75775 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75776
75777         * m4/acl.m4: New file.
75778         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
75779         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
75780
75781 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75782
75783         * lib/acl.c, lib/acl.h: New files.
75784         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
75785
75786 2002-02-24  Jim Meyering  <meyering@lucent.com>
75787
75788         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
75789         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
75790         cause trouble.  Reported by Nelson Beebe.
75791
75792 2002-02-23  Paul Eggert  <eggert@twinsun.com>
75793
75794         * lib/path-concat.c (xpath_concat): Reorder code to pacify
75795         compilers that don't know that xalloc_die never returns.
75796
75797 2002-02-20  Jim Meyering  <meyering@lucent.com>
75798
75799         * lib/getdate.c: Regenerate using bison-1.33.
75800
75801 2002-02-17  Jim Meyering  <meyering@lucent.com>
75802
75803         * config/config.guess (main): Don't use `head -1'; it's no longer
75804         portable. Use `sed 1q' instead.
75805
75806 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
75807
75808         * m4/codeset.m4: Upgrade to gettext-0.11.
75809         * m4/gettext.m4: Upgrade to gettext-0.11.
75810         * m4/glibc21.m4: Upgrade to gettext-0.11.
75811         * m4/iconv.m4: Upgrade to gettext-0.11.
75812         * m4/isc-posix.m4: Upgrade to gettext-0.11.
75813         * m4/lcmessage.m4: Upgrade to gettext-0.11.
75814         * m4/lib-ld.m4: New file, from gettext-0.11.
75815         * m4/lib-link.m4: New file, from gettext-0.11.
75816         * m4/lib-prefix.m4: New file, from gettext-0.11.
75817         * m4/progtest.m4: Upgrade to gettext-0.11.
75818
75819 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75820
75821         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
75822         (jm_PREREQ): Use it.
75823
75824 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75825
75826         * lib/posixver.c, lib/posixver.h: New files.
75827         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75828
75829 2002-02-02  Paul Eggert  <eggert@twinsun.com>
75830             Bruno Haible  <bruno@clisp.org>
75831
75832         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
75833         (fwrite_success_callback): New declaration.
75834         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
75835         print_unicode_char. Call failure callback instead of error.
75836         (fwrite_success_callback): New function.
75837         (exit_failure_callback): New function.
75838         (fallback_failure_callback): New function.
75839         (print_unicode_char): Call unicode_to_mb.
75840
75841 2002-01-26  Jim Meyering  <meyering@lucent.com>
75842
75843         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
75844         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
75845
75846 2002-01-26  Jim Meyering  <meyering@lucent.com>
75847
75848         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
75849
75850 2002-01-22  Paul Eggert  <eggert@twinsun.com>
75851
75852         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
75853
75854 2002-01-22  Jim Meyering  <meyering@lucent.com>
75855
75856         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
75857         Otherwise, some versions of automake would omit the rule that makes
75858         Makefile from Makefile.in.
75859
75860 2002-01-21  Paul Eggert  <eggert@twinsun.com>
75861
75862         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
75863         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75864         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
75865         (memcoll): Set errno to zero if there is no error.
75866
75867         * lib/quotearg.c (quotearg_buffer_restyled):
75868         Fix bug with quoting buffers containing NUL when backslashing escapes.
75869         This bug was exposed by the other changes in this patch.
75870         (quotearg_n_options): New arg ARGSIZE.
75871         All callers changed.
75872         (quoting_options_from_style): New function.
75873         (quotearg_n_style): Use it.
75874         (quotearg_n_style_mem): New function.
75875
75876         * lib/quotearg.h (quotearg_n_style_mem): New function.
75877
75878 2002-01-19  Jim Meyering  <meyering@lucent.com>
75879
75880         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
75881         Remove useless quotes: DF_PROG="df".
75882         * m4/strnlen.m4: New file.
75883
75884 2002-01-16  Paul Eggert  <eggert@twinsun.com>
75885
75886         * lib/backupfile.c (ISDIGIT): Comment fix.
75887         * lib/getdate.y (ISDIGIT): Likewise.
75888         * lib/posixtm.c (ISDIGIT, year): Likewise.
75889         * lib/strverscmp.c (ISDIGIT): Likewise.
75890         * lib/userspec.c (ISDIGIT): Likewise.
75891
75892 2002-01-16  Jim Meyering  <meyering@lucent.com>
75893
75894         * lib/getdate.y: Add three semicolons, each just before a closing
75895         brace. Bison (as of version 1.31) no longer papers over that mistake.
75896
75897 2002-01-05  Jim Meyering  <meyering@lucent.com>
75898
75899         * lib/version-etc.c (version_etc_copyright): Update copyright year.
75900
75901 2001-12-19  Paul Eggert  <eggert@twinsun.com>
75902
75903         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
75904         not silently exit merely because the output buffer happens to
75905         have nothing pending.
75906
75907 2001-12-18  Paul Eggert  <eggert@twinsun.com>
75908
75909         See the big note in ../ChangeLog.
75910         * lib/human.c (suffixes): Prefer K to k for 1024.
75911         (generate_suffix_backwards): New function.
75912         (human_readable_inexact): Use it.
75913         * lib/xstrtol.c (__xstrtol): If there is no number but there
75914         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
75915         Accept 'K' as well as 'k'.
75916
75917 2001-12-15  Jim Meyering  <meyering@lucent.com>
75918
75919         * lib/regex.h (__restrict_arr): Update from libc.
75920
75921         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
75922         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
75923         (STREQ): Define.
75924
75925 2001-12-14  Jim Meyering  <meyering@lucent.com>
75926
75927         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
75928         Suggestion from Bruno Haible.
75929
75930 2001-12-10  Jim Meyering  <meyering@lucent.com>
75931
75932         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
75933         xrealloc, Instead, include "xalloc.h".
75934         (initbuffer): Don't cast xmalloc return value to char*.
75935         (readline): Reword comment.
75936         Don't cast xrealloc return value to char*
75937         Return NULL, not 0.
75938
75939 2001-12-09  Jim Meyering  <meyering@lucent.com>
75940
75941         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
75942         about `signed and unsigned type in conditional expression'.
75943         * lib/posixtm.c (posix_time_parse): Likewise.
75944
75945         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
75946
75947         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
75948         to avoid a pedantic warning.
75949
75950         * lib/getstr.c: Don't include assert.h.
75951         (getstr): Remove warning-evoking assertions.
75952         Return -1 if offset parameter is out of bounds.
75953         Change the type of a local from int to size_t.
75954
75955         * lib/strftime.c (my_strftime_localtime_r): Include this function
75956         definition in the `#if ! HAVE_TM_GMTOFF' block.
75957
75958         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
75959         Include xalloc.h instead.
75960
75961 2001-12-02  Jim Meyering  <meyering@lucent.com>
75962
75963         * lib/tempname.c: Don't declare getenv, thus reverting the change of
75964         2001-11-18.  It's no longer necessary, now that stdlib.h is always
75965         included.
75966
75967         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
75968         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
75969
75970 2001-11-30  Akim Demaille  <akim@epita.fr>
75971
75972         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
75973         before being defined.
75974
75975 2001-11-27  Paul Eggert  <eggert@twinsun.com>
75976
75977         * lib/quotearg.h (quotearg_n, quotearg_n_style):
75978         First arg is int, not unsigned.
75979         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
75980         (SIZE_MAX, UINT_MAX): New macros.
75981         (quotearg_n_options): Abort if N is negative.
75982         Avoid overflow check on hosts where size_t is 64 bits and int
75983         is 32 bits, as overflow is impossible there.
75984         Fix off-by-one typo that caused unnecessary reallocation.
75985
75986 2001-11-27  Jim Meyering  <meyering@lucent.com>
75987
75988         * lib/tempname.c: Merge with version from libc.
75989         * lib/regex.c: Likewise.
75990
75991         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
75992         systems for which STDC_HEADERS is 0, it was not included, resulting in
75993         a warning about an integer-to-pointer conversion problem with getenv.
75994         Reported by Volker Borchert.
75995
75996 2001-11-26  Jim Meyering  <meyering@lucent.com>
75997
75998         * lib/gtod.h: Remove file.
75999         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
76000         * lib/gettimeofday.c: Don't include gtod.h.
76001         (GTOD_init): Remove function.
76002         (rpl_gettimeofday): Do its job here instead, rather than aborting.
76003         Suggestion from Volker Borchert.
76004
76005 2001-11-23  Jim Meyering  <meyering@lucent.com>
76006
76007         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
76008         it.
76009         * lib/hash.c (struct hash_table): Define it here instead.
76010
76011 2001-11-22  Jim Meyering  <meyering@lucent.com>
76012
76013         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
76014
76015 2001-11-20  Jim Meyering  <meyering@lucent.com>
76016
76017         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
76018         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
76019
76020 2001-11-19  Jim Meyering  <meyering@lucent.com>
76021
76022         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
76023         directory.  Use "conftestXXXXXX" as the template.
76024         Suggestion from Paul Eggert.
76025
76026         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
76027         immediately, so the test doesn't mistakenly hit the max-open-files
76028         limit.
76029
76030 2001-11-18  Paul Eggert  <eggert@twinsun.com>
76031
76032         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
76033         (TEMPORARIES): New macro.
76034         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
76035         removes an artificial limitation (e.g. HP-UX 10.20, where
76036         TMP_MAX is 17576).
76037
76038 2001-11-18  Jim Meyering  <meyering@lucent.com>
76039
76040         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
76041
76042 2001-11-18  Jim Meyering  <meyering@lucent.com>
76043
76044         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
76045         on SunOS 4.
76046
76047         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
76048         files will be created before anything else.
76049
76050 2001-11-17  Paul Eggert  <eggert@twinsun.com>
76051
76052         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
76053         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
76054
76055 2001-11-17  Jim Meyering  <meyering@lucent.com>
76056
76057         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
76058         Prompted by a report from Bob Proulx.
76059
76060         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
76061         Instead, require UTILS_FUNC_MKSTEMP.
76062
76063 2001-11-17  Jim Meyering  <meyering@lucent.com>
76064
76065         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
76066         Now, that's done as part of AC_FUNC_STRTOD.
76067
76068 2001-11-17  Jim Meyering  <meyering@lucent.com>
76069
76070         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
76071         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
76072         rather than group writable.  Patch by Juan F. Codagnone.
76073
76074         * lib/readtokens.c: Remove explicit declarations of xmalloc and
76075         xrealloc, Instead, include "xalloc.h".
76076
76077         * lib/mountlist.c: Include unlocked-io.h after all system headers.
76078         Remove explicit declarations of xmalloc, xrealloc,
76079         and xstrdup.  Instead, include "xalloc.h".
76080
76081         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
76082         unlocked-io.h.
76083         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
76084         Likewise.
76085         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
76086
76087         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
76088         Reported by Padraig Brady.
76089
76090         * lib/mkstemp.c: #undef mkstemp.
76091         Include config.h.
76092         (rpl_mkstemp): Rename from mkstemp.
76093         Protoize.
76094
76095 2001-11-16  Jim Meyering  <meyering@lucent.com>
76096
76097         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
76098         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
76099         determine the amount of total physical memory, use pstat_getstatic.
76100         HPUX-11 doesn't define _SC_PHYS_PAGES.
76101         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
76102         If sysconf couldn't be used to determine the amount of available
76103         physical memory, use both pstat_getstatic and pstat_getdynamic.
76104         Based on a patch from Bob Proulx.
76105
76106 2001-11-10  Jim Meyering  <meyering@lucent.com>
76107
76108         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
76109         (jm_PREREQ): Use it.
76110
76111 2001-11-09  Jim Meyering  <meyering@lucent.com>
76112
76113         * m4/jm-macros.m4: Require autoconf-2.52f.
76114         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
76115         Use these AC_-prefixed names, not the AM_-prefixed ones.
76116
76117         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
76118
76119 2001-11-05  Jim Meyering  <meyering@lucent.com>
76120
76121         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
76122
76123 2001-11-04  Jim Meyering  <meyering@lucent.com>
76124
76125         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
76126         $DEFS.
76127
76128 2001-11-03  Jim Meyering  <meyering@lucent.com>
76129
76130         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
76131         of AC_DEFUN.
76132
76133         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
76134         know the name of the variable in the macro definition.
76135
76136 2001-11-03  Jim Meyering  <meyering@lucent.com>
76137
76138         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
76139         in argmatch_to_argument call.
76140
76141         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
76142         argument.
76143
76144         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
76145         e.g., a fault due to an attempt to free a NULL pointer.
76146
76147 2001-11-01  Jim Meyering  <meyering@lucent.com>
76148
76149         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
76150         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
76151
76152 2001-11-01  Jim Meyering  <meyering@lucent.com>
76153
76154         * lib/dirfd.c, lib/dirfd.h: New files.
76155         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
76156
76157         * lib/hash.c (hash_print) [TESTING]: Clean up.
76158
76159 2001-10-22  Paul Eggert  <eggert@twinsun.com>
76160
76161         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
76162         to avoid a warning if -Wall.
76163
76164 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
76165
76166         * README: New file
76167         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
76168         (per RMS's instructions, this is now the canonical source)
76169         * lgpl/, gpl/: New directories.
76170
76171 2001-10-21  Paul Eggert  <eggert@twinsun.com>
76172
76173         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
76174
76175 2001-10-21  Jim Meyering  <meyering@lucent.com>
76176
76177         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
76178         this code would end up calling gettext even in packages built
76179         with --disable-nls.
76180         * lib/getopt.c (_): Likewise.
76181         * lib/regex.c (_): Likewise.
76182
76183 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76184
76185         * m4/error.m4 (jm_PREREQ_ERROR):
76186         Do not invoke AC_CHECK_FUNCS with strerror_r, as
76187         AC_FUNC_STRERROR_R does that.
76188         Check for strerror declaration.
76189
76190         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
76191         are supposed to have them these days.
76192         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
76193         Merge changes from latest Autoconf CVS.
76194         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
76195         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
76196         POSIX decided to standardize on the int flavor of strerror_r.
76197
76198 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76199
76200         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
76201         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
76202         Use strerror_r that is only a macro, even if it is not a function.
76203         (strerror): Check for HAVE_DECL_STRERROR before declaring.
76204         (private_strerror): Use prototypes, not old-style function definition.
76205         (print_errno_message): New function.
76206         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
76207         char*-flavored one.
76208         (error_tail, error, error_at_line): Use it.
76209
76210 2001-10-11  Jim Meyering  <meyering@lucent.com>
76211
76212         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
76213         and quote_n (1, ... to avoid clobbering a buffer.
76214
76215 2001-10-05  Jim Meyering  <meyering@lucent.com>
76216
76217         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
76218         hash-pjw.h.
76219         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
76220         * lib/hash-pjw.h: New file.
76221
76222 2001-09-30  Jim Meyering  <meyering@lucent.com>
76223
76224         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
76225         `struct fsstat' has the `f_fstypename' member.
76226         Use that to define FS_TYPE, which is now used to make
76227         the getfsstat link test tighter.
76228
76229 2001-09-30  Jim Meyering  <meyering@lucent.com>
76230
76231         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
76232         Include <sys/ucred.h>, for Apple Darwin.
76233         Include sys/mount.h and sys/fs_types.h only if available.
76234         (FS_TYPE): Define.
76235         (read_filesystem_list): Use FS_TYPE.
76236
76237 2001-09-29  Paul Eggert  <eggert@twinsun.com>
76238
76239         * lib/exclude.c (excluded_filename): 0 -> false, since it's
76240         a boolean context.
76241
76242 2001-09-29  Jim Meyering  <meyering@lucent.com>
76243
76244         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76245         [one-argument getmntent function]): Include stdio.h before mntent.h.
76246         SunOS 4.1.x needs it for the declaration of `FILE'.
76247         Patch by Volker Borchert.
76248
76249         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76250         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
76251         sys/fs_types.h, and make the link-test for getfsstat guard #include
76252         directives with appropriate #if HAVE_*_H tests so that we can
76253         detect getfsstat on Apple Darwin1.3.7 systems.
76254         Reported by Nelson Beebe.
76255         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
76256
76257 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76258
76259         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76260         #defines strtoimax.  Also treat the other strto* functions
76261         like strtoimax.
76262
76263         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76264         Check for strtoul and strtoumax,
76265         as those declarations are made even in the signed case.
76266         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
76267         Likewise, for strtol and strtoimax.
76268
76269 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76270
76271         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76272         #defines strtoimax.  Also treat the other strto* functions
76273         like strtoimax.
76274
76275         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
76276         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
76277         (strtoimax, strtoumax): Do not declare if already defined as a macro.
76278
76279 2001-09-26  Jim Meyering  <meyering@lucent.com>
76280
76281         Most macros in unlocked-io.h had the wrong number of arguments.
76282         * lib/gen-uio: New script.
76283         (USE_UNLOCKED_IO): Define to 1 if not already defined.
76284         * lib/unlocked-io.hin: Remove file.
76285         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
76286         rather than trying to embed it here.
76287         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
76288         Reported by Padraig Brady.
76289
76290 2001-09-25  Volker Borchert  <bt@teknon.de>
76291
76292         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
76293         `result'.
76294
76295 2001-09-24  Jim Meyering  <meyering@lucent.com>
76296
76297         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
76298
76299 2001-09-23  Jim Meyering  <meyering@lucent.com>
76300
76301         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
76302         instead of the mere test for existence of mntent.h.  The latter
76303         would get a false-positive on AIX 3.4 systems.
76304         In the outer getmntent if-block, don't die if neither of the getmntent
76305         tests succeeds.  Instead, just fall through and continue with the
76306         remaining tests.
76307
76308 2001-09-23  Jim Meyering  <meyering@lucent.com>
76309
76310         * lib/mountlist.c: Remove useless parentheses in #if directives.
76311         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
76312         the deprecated MOUNTED symbol is no longer defined in mntent.h.
76313
76314 2001-09-22  Jim Meyering  <meyering@lucent.com>
76315
76316         * m4/gettext.m4: New file.  From gettext.
76317         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
76318         * m4/progtest.m4: Likewise
76319         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
76320         * m4/glibc21.m4: Likewise.
76321
76322         * m4/libintl.m4: Remove.  No longer used.
76323
76324 2001-09-22  Jim Meyering  <meyering@lucent.com>
76325
76326         * lib/localcharset.c: Update from latest gettext.
76327         * lib/config.charset: Likewise.
76328
76329 2001-09-20  Jim Meyering  <meyering@lucent.com>
76330
76331         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
76332         strtoimax.
76333         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
76334         strtoumax.
76335
76336 2001-09-20  Jim Meyering  <meyering@lucent.com>
76337
76338         * lib/xstrtol.c (strtoimax): Guard declaration with
76339         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
76340         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
76341         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
76342         (strtoumax): Likewise, for completeness (it wasn't necessary).
76343
76344 2001-09-17  Paul Eggert  <eggert@twinsun.com>
76345
76346         * lib/strtoimax.c (HAVE_LONG_LONG):
76347         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
76348         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
76349         to work around bug in IBM C compiler.
76350
76351 2001-09-17  Jim Meyering  <meyering@lucent.com>
76352
76353         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
76354         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
76355         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
76356         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
76357         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
76358         whenever the right hand side need not be expanded by the shell.
76359
76360 2001-09-16  Paul Eggert  <eggert@twinsun.com>
76361
76362         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
76363         library.  It's not correct, as some older glibcs are buggy.
76364         fnmatch wasn't fixed until glibc 2.2.
76365
76366         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
76367         special shell magic here.
76368
76369 2001-09-16  Jim Meyering  <meyering@lucent.com>
76370
76371         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
76372         * m4/jm-macros.m4: Require it.
76373
76374 2001-09-16  Jim Meyering  <meyering@lucent.com>
76375
76376         * lib/mkdir.c: New file.
76377
76378 2001-09-15  Jim Meyering  <meyering@lucent.com>
76379
76380         * m4/jm-macros.m4: Check for help2man.
76381
76382 2001-09-11  Jim Meyering  <meyering@lucent.com>
76383
76384         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
76385         The body, by Paul Eggert, was moved here from configure.in.
76386         * m4/jm-macros.m4: Require UTILS_HOST_OS.
76387
76388 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76389
76390         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
76391         (jm_PREREQ): Use it.
76392
76393 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76394
76395         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
76396         Use ssize_t, not int, to store result of readlink.
76397         Check for ssize_t overflow as well as size_t overflow,
76398         as POSIX says the result of readlink is implementation-defined
76399         when ssize_t overflows.
76400         Remove unnecessary cast to char*.
76401         Use free+malloc instead of realloc, as the storage doesn't need
76402         to be preserved and it's clearer and can be more efficient that way.
76403         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
76404         * lib/xreadlink.h (xreadlink): Update prototype.
76405
76406 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76407
76408         * lib/xgetcwd.c: Revert some of the previous change; intead,
76409         fix the HAVE_GETCWD_NULL code to behave more like the
76410         !HAVE_GETCWD_NULL code used to.
76411
76412         Include "xalloc.h".
76413         (xgetcwd): Do not return NULL when memory is exhausted; instead,
76414         invoke xalloc_die.
76415
76416 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76417
76418         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
76419         sys/param.h, as pathmax.h includes them.
76420
76421 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76422
76423         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
76424         (jm_PREREQ_XGETCWD): New macro.
76425
76426         * m4/getcwd.m4: New file.
76427
76428 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76429
76430         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
76431         like the HAVE_GETCWD_NULL code.
76432         Include pathmax.h if not HAVE_GETCWD.
76433         Do not include xalloc.h.
76434         (INITIAL_BUFFER_SIZE): New symbol.
76435         Do not use xmalloc / xrealloc, since the caller is responsible for
76436         handling errors.  Preserve errno around `free' during failure.
76437         Do not overrun buffer when using getwd.
76438
76439 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76440
76441         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
76442         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
76443         getcwd (NULL, 0).
76444
76445 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76446
76447         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
76448         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
76449         spotted by Jim Meyering.
76450
76451 2001-09-03  Jim Meyering  <meyering@lucent.com>
76452
76453         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
76454         failure.
76455
76456 2001-09-02  Jim Meyering  <meyering@lucent.com>
76457
76458         * lib/error.c: Update from GNU libc.
76459
76460 2001-09-01  Jim Meyering  <meyering@lucent.com>
76461
76462         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
76463         Used by df.
76464
76465 2001-09-01  Jim Meyering  <meyering@lucent.com>
76466
76467         * lib/xreadlink.c: New file.
76468         * lib/xreadlink.h: New file.
76469         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
76470         xreadlink.h.
76471
76472         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
76473         doesn't conflict with sparc Solaris 7's definition in
76474         /usr/include/sys/int_types.h.
76475
76476         * lib/exclude.c: Use `""', not `<>' to #include non-system header
76477         files.
76478         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
76479         and strncasecmp as r-values.  Unixware didn't have declarations.
76480
76481 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76482
76483         * lib/xstrtol.h: Add copyright notice.
76484         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
76485         LONGINT_INVALID_SUFFIX_CHAR.
76486
76487 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76488
76489         * lib/xstrtol.c (strtoimax): New decl.
76490
76491 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76492
76493         * lib/xgetcwd.c: Don't include pathmax.h.
76494         Include stdlib.h and unistd.h if available.
76495         Include xalloc.h.
76496         (xmalloc, xstrdup, free): Remove decls.
76497         (xgetcwd): Don't assume sizes fit in unsigned.
76498         Check for overflow when computing sizes.
76499         Simplify reallocation code.
76500
76501 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76502
76503         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
76504         a directory's st_size can have an arbitrary value, so the old
76505         usage could waste an arbitrary amount of memory.  All uses
76506         changed.
76507         * lib/savedir.h: Update prototype.
76508
76509 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76510
76511         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
76512
76513         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
76514         old strtoimax.c.
76515
76516         Also, make the following further changes to make this file's
76517         configuration more similar to that of strtol.c:
76518         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
76519         (strtoumax, uintmax_t, strtoull, strtol): Remove.
76520         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
76521         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
76522         changed to signed values.
76523
76524         And make the following changes as well:
76525         Fix copyright notice, as 1999 was missing.
76526         (verify): New macro.
76527         (strtoimax): Check sizes at compile-time, not run-time.
76528         Prefer strtol to strtoll if both work.
76529         (main): Remove; it was not that useful and was a pain to maintain.
76530
76531         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
76532
76533 2001-08-31  Jim Meyering  <meyering@lucent.com>
76534
76535         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
76536         Use an initial, malloc'd, buffer of length 128 rather than
76537         a statically allocated one of length 1024.
76538
76539 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76540
76541         Simplify code, partly by assuming autoconf 2.52 semantics.
76542
76543         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
76544
76545         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
76546         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
76547         All uses removed.
76548         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
76549         Move AC_REQUIRE to next-to-top level, to avoid confusion.
76550         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
76551         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
76552         jm_AC_HEADER_INTTYPES_H.
76553         * m4/jm-macros.m4 (jm_MACROS): Likewise.
76554
76555         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
76556
76557         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76558         Quote first arg of AC_DEFUN.
76559         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
76560         since they are needed to parse the include file even if we need
76561         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
76562         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
76563         but with opposite signedness.
76564
76565 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76566
76567         Merge 'exclude' changes from tar 1.13.22.
76568         This fixes one or two unlikely storage allocation overflow bugs,
76569         but doesn't change user-visible behavior otherwise.
76570
76571 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76572
76573         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
76574         (jm_PREREQ_EXCLUDE): New macro.
76575
76576 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76577
76578         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
76579         tm to be declared.
76580
76581 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76582
76583         * lib/hash.c: Remove '2001' from copyright notice.
76584
76585 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76586
76587         * lib/full-write.h: New file.
76588         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
76589         * lib/full-write.c: Correct credits, as cccp.c no longer
76590         exists and anyway it was so heavily changed from the old cccp
76591         code as to be unrecognizable.  Include full-write.h.
76592         (full_write): Return size_t, with short writes meaning failure.
76593         All callers changed.  This fixes a bug with large buffers
76594         on 64-bit hosts.
76595         * lib/utime.c: Include full-write.h.
76596
76597 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76598
76599         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
76600         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
76601         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
76602         Include if available.
76603         (<xalloc.h>): Include
76604         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
76605         (verify): New macro.  Use it to verify that EXCLUDE macros do not
76606         collide with FNM macros.
76607         (struct patopts): New struct.
76608         (struct exclude): Use it, as exclude patterns now come with options.
76609         (new_exclude): Support above changes.
76610         (new_exclude, add_exclude_file):
76611         Initial size must now be a power of two to simplify overflow checking.
76612         (free_exclude, fnmatch_no_wildcards): New function.
76613         (excluded_filename): No longer requires options arg, as the options
76614         are determined by add_exclude.  Now returns bool, not int.
76615         (excluded_filename, add_exclude):
76616         Add support for the fancy new exclusion options.
76617         (add_exclude, add_exclude_file): Now takes int options arg.
76618         Check for arithmetic overflow when computing sizes.
76619         (add_exclude_file): xrealloc might modify errno, so don't
76620         realloc until after errno might be used.
76621
76622         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
76623         New macros.
76624         (free_exclude): New decl.
76625         (add_exclude, add_exclude_file): Now takes int options arg.
76626         (excluded_filename): No longer requires options arg, as the options
76627         are determined by add_exclude.  Now returns bool, not int.
76628
76629 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76630
76631         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
76632
76633 2001-08-27  Jim Meyering  <meyering@lucent.com>
76634
76635         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
76636
76637         * lib/version-etc.c (N_): Remove definition.
76638         Revert most of last change.
76639         Instead, simply don't mark the `Copyright...' string for translation.
76640         Based on advice from Paul Eggert.
76641
76642         * lib/strtoxmax.c: Tweak comment.
76643
76644 2001-08-26  Jim Meyering  <meyering@lucent.com>
76645
76646         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
76647
76648         * m4/xstrtoimax.m4: New file.
76649         * m4/xstrtoumax.m4: Add comments explaining why we
76650         AC_REPLACE_FUNCS(strtol).
76651
76652 2001-08-26  Jim Meyering  <meyering@lucent.com>
76653
76654         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
76655         of copyright with `%s' so translators don't get an untranslated
76656         message in 2002.
76657         (COPYRIGHT_YEAR): Define.
76658         (version_etc): Use fprintf rather than fputs.
76659         Suggestion from Ulrich Drepper.
76660
76661         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
76662
76663         * lib/strtoll.c: New file, from GNU libc.
76664         * lib/xstrtoimax.c: New file.
76665
76666         * lib/xstrtol.h: Add xstrtoimax.
76667         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
76668         * lib/strtoimax.c: New file.  Likewise, but first define
76669         STRTOUXMAX_SIGNED.
76670
76671         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
76672         ...
76673         * lib/strtoxmax.c: ... then renamed to this.
76674
76675 2001-08-18  Paul Eggert  <eggert@twinsun.com>
76676
76677         * m4/inttypes.m4: Add AC_PREREQ(2.13).
76678         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
76679         (jm_AC_TYPE_INTMAX_T): New macro.
76680         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
76681
76682         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
76683
76684         * m4/longlong.m4: Renamed from ulonglong.m4.
76685         * m4/inttypes.m4: Renamed from inttypes_h.m4.
76686         * m4/uintmax_t.m4: Removed.
76687
76688 2001-08-13  Paul Eggert  <eggert@twinsun.com>
76689
76690         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
76691         Port to Solaris 8, where 'sed' requires a space after the 'r'
76692         command, and where sh dislikes "$/".  Clean up the spacing a bit.
76693         Redirect output to $tmp just once.
76694
76695 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
76696
76697         * lib/addext.c (<errno.h>): Include.
76698         (errno): Declare if not defined.
76699         (addext): Work correctly when pathconf returns -1 and leaves
76700         errno alone because there is no limit.  Also, work even if
76701         pathconf returns a value greater than SIZE_MAX.
76702
76703 2001-08-12  Jim Meyering  <meyering@lucent.com>
76704
76705         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
76706         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
76707         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
76708         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
76709         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
76710         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
76711         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
76712         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
76713         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
76714         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
76715         utime.m4, utimes.m4, xstrtoumax.m4:
76716         Quote the first argument in each use of AC_DEFUN.
76717
76718 2001-08-12  Jim Meyering  <meyering@lucent.com>
76719
76720         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
76721         Simply `return getcwd (NULL, 0);'.
76722         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
76723         Use 1300 as initial value for length, not PATH_MAX.
76724
76725         * lib/pathmax.h: Clean up cpp syntax.
76726
76727 2001-08-12  Jim Meyering  <meyering@lucent.com>
76728
76729         * lib/gettimeofday.c: New file.
76730         * lib/gtod.h: New file.
76731         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
76732
76733 2001-08-05  Jim Meyering  <meyering@lucent.com>
76734
76735         * m4/jm-macros.m4: Require autoconf-2.52.
76736
76737 2001-08-04  Jim Meyering  <meyering@lucent.com>
76738
76739         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
76740         stmt, to get in sync with glibc.
76741
76742 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76743
76744         The following changes are from gettext 0.10.39 as maintained by
76745         Bruno Haible.
76746
76747         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
76748         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
76749         with inverted sense.  All uses changed.
76750
76751         * lib/mbswidth.c: Don't include <limits.h>.
76752         Include <stdlib.h> and <string.h> unconditionally.
76753         (iswcntrl, mbsinit, ISCNTRL): New macros.
76754         (mbsnwidth): Use K&R style function declarations.
76755         Don't bother checking for MB_LEN_MAX == 1, since the compiler
76756         can optimize it when MB_CUR_MAX == 1.
76757         The width of control characters is zero, not 1.
76758
76759 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76760
76761         The following changes are from gettext 0.10.39 as maintained by
76762         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
76763
76764         * m4/codeset.m4: Upgrade to serial AM1.
76765         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
76766         all uses changed.  Quote first arg of AC_DEFUN.
76767         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
76768
76769         * m4/iconv.m4: Upgrade to serial AM2.
76770         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
76771         Add --with-libconv-prefix.
76772         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
76773         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
76774         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
76775         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
76776         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
76777
76778         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
76779         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
76780         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
76781         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
76782         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
76783         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
76784         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
76785         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
76786         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76787
76788         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
76789         string.h any more.
76790
76791         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
76792         not the default value.
76793
76794         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
76795         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
76796         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
76797         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
76798         Also check for iswcntrl, used for wcwidth fallback.
76799         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
76800         to Autoconf 2.13.
76801
76802 2001-08-03  Jim Meyering  <meyering@lucent.com>
76803
76804         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
76805         as it was in the original.  Reported by Paul Eggert.
76806
76807 2001-07-16  Jim Meyering  <meyering@lucent.com>
76808
76809         * m4/gettimeofday.m4: New file.
76810         Prompted by a report from Bernhard Baehr.
76811
76812 2001-07-15  Jim Meyering  <meyering@lucent.com>
76813
76814         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
76815         stuff. Now it's in ../Makefile.cfg.
76816
76817 2001-07-15  Jim Meyering  <meyering@lucent.com>
76818
76819         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
76820         (BUILT_SOURCES): Add unlocked-io.h.
76821         (io_functions): Define.
76822         (unlocked-io.h): New rule.
76823         (DISTCLEANFILES): Add unlocked-io.h.
76824         (all-local): Depend on unlocked-io.h, to ensure it is created.
76825
76826         * lib/unlocked-io.hin: New file
76827
76828         * lib/regex.c: Update from glibc.
76829
76830 2001-07-05  Jim Meyering  <meyering@lucent.com>
76831
76832         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
76833         recommendation.
76834         (libfetish_a_SOURCES): Put all .h files here instead.
76835         Remove a thus-exposed (better checks in automake) duplicate and
76836         two unnecessary .h files.
76837
76838 2001-07-04  Jim Meyering  <meyering@lucent.com>
76839
76840         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
76841         that generates jm-glibc-io.m4 so that it doesn't trigger any make
76842         distcheck failure.
76843
76844 2001-07-02  Jim Meyering  <meyering@lucent.com>
76845
76846         The following changes were prompted by suggestions from Bruno Haible.
76847
76848         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
76849         is now generated.
76850         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
76851         definition of EXTRA_DIST.
76852         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
76853         ensure that the generated file is created/updated whenever the list
76854         of $(unlocked_functions) is changed.
76855         (jm-glibc-io.m4): New rule.
76856         (unlocked-io.h): New rule -- currently unused.
76857
76858 2001-06-24  Jim Meyering  <meyering@lucent.com>
76859
76860         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
76861         unmatched right bracket, rather than kludging it with an extra,
76862         falsely-matching quote in a comment.  Patch by Akim Demaille.
76863
76864 2001-06-11  Jim Meyering  <meyering@lucent.com>
76865
76866         * lib/regex.c: Update from GNU libc.
76867
76868 2001-05-27  Jim Meyering  <meyering@lucent.com>
76869
76870         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
76871         Check for ut_type in struct utmp.
76872
76873 2001-05-27  Jim Meyering  <meyering@lucent.com>
76874
76875         * lib/readutmp.h (UT_TYPE): Define.
76876
76877 2001-05-24  Jim Meyering  <meyering@lucent.com>
76878
76879         * lib/argmatch.c: Include "quote.h".
76880         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
76881         quote function.  Reported by Göran Uddeborg.
76882
76883 2001-05-22  Jim Meyering  <meyering@lucent.com>
76884
76885         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
76886         now that we use the package-supplied version unconditionally.
76887         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
76888
76889 2001-05-21  Jim Meyering  <meyering@lucent.com>
76890
76891         * m4/regex.m4: Change a couple backticks to single quotes to avoid
76892         shell syntax errors.
76893
76894 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76895
76896         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
76897
76898 2001-05-20  Paul Eggert  <eggert@twinsun.com>
76899
76900         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
76901         Don't bother to check library strftime, since
76902         we'll be using our own my_strftime function anyway.
76903         Define my_strftime instead of strftime.
76904
76905 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
76906
76907         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
76908         which is not yet declared.
76909
76910 2001-05-15  Jim Meyering  <meyering@lucent.com>
76911
76912         * m4/regex.m4: Use proper quoting so brackets appear in the test
76913         program.
76914         Reported by, and with help from, Bruno Haible.
76915
76916 2001-05-13  Jim Meyering  <meyering@lucent.com>
76917
76918         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
76919         undefined.
76920
76921 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76922
76923         dirname code cleanup.  base_name now behaves more compatibly
76924         with POSIX basename when given file names that have trailing
76925         slashes, and similarly for dir_name.  Add new primitives
76926         base_len and dir_len.  Put the directory-name-related decls
76927         into dirname.h.
76928
76929         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
76930         * lib/backupfile.c (base_name): Likewise.
76931         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
76932         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
76933         * lib/makepath.c (strip_trailing_slashes): Likewise.
76934         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
76935         ISSLASH): Likewise.
76936         * lib/rename.c (strip_trailing_slashes): Likewise.
76937         * lib/same.c (base_name): Likewise.
76938         * lib/stripslash.c (ISSLASH): Likewise.
76939
76940         * lib/addext.c: Include <dirname.h> after size_t is defined.
76941         * lib/backupfile.c: Likewise.
76942
76943         * lib/addext.c (addext): Use base_len to trim redundant
76944         trailing slashes instead of doing it ourselves.
76945         But do not trim the last slash if it is not redundant.
76946
76947         * lib/backupfile.c (find_backup_file_name,
76948         max_backup_version): Use base_len instead of rolling it ourselves.
76949         Handle the case of "" and (on DOS) "C:" correctly.
76950
76951         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
76952         needed. Include <string.h>, <dirname.h>.
76953         (base_name): Allow file names ending in slashes, other than names
76954         that are all slashes.  In this case, return the basename followed
76955         by the slashes.  This is more general, and can be used in places
76956         where the original base_name purposely had an assertion failure.
76957         (base_len): New function.
76958
76959         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
76960         Do not include <assert.h>; no longer needed.
76961         Include xalloc.h.
76962         (memrchr): Remove decl.
76963         (dir_name_r): Remove.
76964         (dir_len): Renamed from dirlen.  All callers changed.
76965         Rewrite in terms of base_name, for simplicity and consistency.
76966         (dir_name): Never return NULL.  All callers changed.
76967         Do not include <stdlib.h> in test program; no longer needed.
76968         return 0; is fine for test program.
76969
76970         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
76971         New macros.
76972         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
76973
76974         * lib/path-concat.c (path_concat): Use base_len to compute
76975         base length, not strlen; this means we cannot rely on memcpy
76976         to null-terminate.
76977
76978         * lib/same.c (STREQ): Remove.
76979         (same_name): Handle the case where the basename ends in trailing '/'.
76980
76981         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
76982         a slash was stripped.  Do not strip the last slash after a
76983         file system prefix.
76984
76985 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76986
76987         * lib/Makefile.am (libfetish_a_SOURCES):
76988         Add strftime.c, since we now compile it on all hosts.
76989
76990         * lib/strftime.c (my_strftime):
76991         Define to nstrftime if emacs, but only if my_strftime is not defined.
76992         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
76993         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
76994         Add one more extra argument: a nanoseconds value.
76995         All uses changed.
76996         (ns): New macro.
76997         (my_strftime function): Add %N format.
76998         (emacs_strftimeu): Renamed from emacs_strftime,
76999         with extra ut argument.
77000
77001 2001-05-09  Paul Eggert  <eggert@twinsun.com>
77002
77003         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
77004
77005 2001-04-21  Jim Meyering  <meyering@lucent.com>
77006
77007         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
77008         doesn't interfere.
77009
77010 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77011
77012         * m4/ftruncate.m4: Check for chsize.
77013         Link with ftruncate.o unconditionally if ftruncate is missing.
77014         This was required when cross-compiling to i586-mingw32msvc.
77015
77016 2001-04-08  Jim Meyering  <meyering@lucent.com>
77017
77018         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
77019         recomputed; that's necessary when the offset spans a DST transition.
77020         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
77021
77022 2001-04-02  Jim Meyering  <meyering@lucent.com>
77023
77024         * lib/regex.h, regex.c: Update from GNU libc.
77025
77026 2001-03-24  Jim Meyering  <meyering@lucent.com>
77027
77028         * m4/jm-macros.m4: Require autoconf-2.49d.
77029
77030 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
77031
77032         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
77033
77034 2001-03-19  Paul Eggert  <eggert@twinsun.com>
77035
77036         * lib/version-etc.c (version_etc_copyright): Update to 2001.
77037
77038 2001-03-17  Jim Meyering  <meyering@lucent.com>
77039
77040         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
77041         now that the version in autoconf is equivalent.
77042         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
77043
77044         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
77045         Suggestion from Akim Demaille.
77046
77047         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
77048         (jm_PREREQ_TEMPNAME): New function.
77049
77050 2001-03-16  Paul Eggert  <eggert@twinsun.com>
77051
77052         * lib/tempname.c (uint64_t): Define to uintmax_t if
77053         not defined, and if UINT64_MAX is not defined.
77054         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
77055         Reported by John David Anglin.
77056
77057 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
77058
77059         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
77060         resolve alias if codeset is empty.
77061         * lib/config.charset (BeOS): Use wildcard syntax.
77062
77063 2001-03-13  Jim Meyering  <meyering@lucent.com>
77064
77065         * lib/path-concat.c (path_concat)
77066         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
77067         concatenating e.g., `C:' and `foo'.
77068         From Bruno Haible.
77069
77070 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77071
77072         * lib/localcharset.c (locale_charset): Don't use
77073         setlocale(LC_CTYPE,NULL). Don't return NULL.
77074         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
77075
77076 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77077
77078         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
77079         support for DOS/DJGPP.
77080
77081 2001-03-01  Paul Eggert  <eggert@twinsun.com>
77082
77083         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
77084         lacks mkstemp.  Compile our own tempname.c if we compile our own
77085         mkstemp.c, as mkstemp relies on tempname.
77086
77087 2001-03-01  Jim Meyering  <meyering@lucent.com>
77088
77089         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
77090         AH_VERBATIM really does output its argument verbatim.
77091
77092 2001-02-28  Paul Eggert  <eggert@twinsun.com>
77093
77094         * lib/Makefile.am (libfetish_a_SOURCES):
77095         Add dup-safer.c, fopen-safer.c.
77096         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
77097
77098         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
77099         * lib/unistd-safer.h: New files.
77100
77101 2001-02-25  Paul Eggert  <eggert@twinsun.com>
77102
77103         The mkstemp replacement is taken from glibc 2.2.2, with some
77104         portability fixes for use outside glibc, as follows:
77105
77106         * lib/tempname.c (struct_stat64): New macro.
77107         (direxists, __gen_tempname): Use it.
77108         This avoids a portability problem with Solaris 8.
77109
77110         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
77111         (<stddef.h>, <stdint.h>, <string.h>):
77112         Include only if STDC_HEADERS || _LIBC.
77113         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
77114         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
77115         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
77116         (__set_errno): Define this macro if <errno.h> doesn't.
77117         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
77118         Define these macros if <stdio.h> doesn't.
77119         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
77120         Define these macros if <sys/stat.h>
77121         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
77122         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
77123         __xstat64): Define if not _LIBC.
77124         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
77125         (__gen_tempname): Invoke gettimeofday only if
77126         HAVE_GETTIMEOFDAY || _LIBC;
77127         otherwise, fall back on plain "time".
77128         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
77129
77130         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
77131
77132         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
77133
77134 2001-02-18  Paul Eggert  <eggert@twinsun.com>
77135
77136         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
77137
77138 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77139
77140         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
77141         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
77142         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
77143         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77144
77145 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77146
77147         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
77148         Remove workaround macros for hosts that have mbrtowc but not
77149         mbstate_t, as we now insist on proper declarations for both
77150         before using mbrtowc.
77151
77152 2001-02-17  Jim Meyering  <meyering@lucent.com>
77153
77154         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
77155         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
77156         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
77157         UnixWare 7.1.1.
77158
77159         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
77160         rather than AC_CACHE_VAL.
77161
77162 2001-02-17  Jim Meyering  <meyering@lucent.com>
77163
77164         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
77165         around included file name.
77166
77167         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
77168
77169         * lib/strftime.c: Update from GNU libc (the only changes were to
77170         comments).
77171
77172 2001-02-17  Jim Meyering  <meyering@lucent.com>
77173
77174         * lib/regex.c: Update from libc.
77175
77176 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
77177
77178         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
77179         clash.
77180
77181 2001-02-16  Paul Eggert  <eggert@twinsun.com>
77182
77183         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
77184         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
77185         Reported by Mark Hounschell via Paul Eggert.
77186
77187 2001-02-07  Jim Meyering  <meyering@lucent.com>
77188
77189         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
77190
77191 2001-02-05  Jim Meyering  <meyering@lucent.com>
77192
77193         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
77194         it includes the patch required for `large file' support with at least
77195         HP-UX's 10.20 /bin/cc.
77196
77197 2001-02-03  Jim Meyering  <meyering@lucent.com>
77198
77199         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
77200         AS_IF, now that it works once again (mysteriously).
77201         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77202
77203 2001-01-30  Jim Meyering  <meyering@lucent.com>
77204
77205         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
77206         * m4/chown.m4: Rename conftestchown to conftest.chown.
77207         * m4/rename.m4: s/conftestdir/conftest.d1/ and
77208         s/conftestdir2/conftest.d2/.
77209         * m4/utimes.m4: s/conftestdata/conftest.data/
77210         Inspired by Pavel Roskin's change in autoconf.
77211
77212 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
77213
77214         * lib/config.charset: Update for FreeBSD 4.2.
77215
77216 2001-01-27  Jim Meyering  <meyering@lucent.com>
77217
77218         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
77219         a use of AS_IF.
77220         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77221
77222 2001-01-26  Jim Meyering  <meyering@lucent.com>
77223
77224         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
77225         quotearg.c includes it.
77226
77227 2001-01-26  Jim Meyering  <meyering@lucent.com>
77228
77229         * lib/quotearg.c: Include stddef.h.
77230         * lib/quote.c: Include stddef.h.
77231         Reported by Axel Kittenberger.
77232
77233         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
77234         line in double quotes so that it evokes a better diagnostic.
77235         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
77236         Reported by Axel Kittenberger.
77237
77238 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
77239
77240         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
77241         as if it was a `charset'.
77242
77243 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77244
77245         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
77246         has const.
77247
77248 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77249
77250         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
77251         to avoid a warning.  Add back 'const' to inptr.
77252
77253 2001-01-20  Jim Meyering  <meyering@lucent.com>
77254
77255         Be sure that headers are checked before used in code compiled
77256         for the type checks.
77257         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
77258         In place of that, invoke jm_CHECK_ALL_TYPES.
77259         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
77260         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
77261         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
77262         The check for ssize_t was mistakenly run before the test for unistd.h.
77263
77264         The configure-time check for stdbool.h was missing.
77265         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
77266         (jm_PREREQ_HASH): New function.
77267
77268 2001-01-17  Jim Meyering  <meyering@lucent.com>
77269
77270         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
77271         for autoconf-2.49c.
77272         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
77273
77274 2001-01-16  Jim Meyering  <meyering@lucent.com>
77275
77276         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
77277         From Bruno Haible.
77278
77279 2001-01-14  Jim Meyering  <meyering@lucent.com>
77280
77281         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
77282         foo and bar.  Create conftestdir/ in the script, not in the C code.
77283         Remove directories in the script, not in the C code.
77284         Remove conftestdir{,2} before trying to create the directory.
77285         Make the entire configure script fail if the mkdir fails.
77286
77287 2001-01-14  Jim Meyering  <meyering@lucent.com>
77288
77289         * lib/rename.c: New file.  From Volker Borchert.
77290         Include stdlib.h, string.h or strings.h, and xalloc.h.
77291         Use strip_trailing_slashes rather than open-coding it.
77292
77293 2001-01-03  Paul Eggert  <eggert@twinsun.com>
77294
77295         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
77296
77297 2001-01-03  Jim Meyering  <meyering@lucent.com>
77298
77299         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
77300         of local `inptr' to avoid warning with some system declarations of
77301         iconv.
77302
77303 2001-01-02  Volker Borchert  <bt@teknon.de>
77304
77305         * m4/rename.m4: New file.
77306         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
77307
77308 2001-01-01  Jim Meyering  <meyering@lucent.com>
77309
77310         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
77311         even on systems with utmpx.h.  It's necessary for the declaration of
77312         utmp's ut_user member.  Reported by Andreas Jaeger.
77313
77314         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
77315         available. They are required for the declarations of getgrgid and
77316         getpwuid resp.
77317         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
77318         Reported by Andreas Jaeger.
77319
77320 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
77321
77322         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
77323         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
77324         so `make install' also works in VPATH builds.
77325
77326 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
77327
77328         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
77329         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
77330         can be used in subdirectories.
77331
77332 2000-12-29  Paul Eggert  <eggert@twinsun.com>
77333
77334         * lib/modechange.c: Do not assume that mode_t uses the
77335         traditional octal encoding.  E.g. "chmod 1 FOO" should set
77336         the other-execute bit of FOO even if S_IXOTH != 1.
77337
77338         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
77339         WOTH, XOTH, ALLM): New macros.
77340         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
77341          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
77342         Use them.
77343         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
77344         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
77345         (mode_compile):
77346         No need to use uintmax_t; unsigned long is long enough.
77347         Don't bother to get suffix since we don't use it.
77348
77349 2000-12-26  Jim Meyering  <meyering@lucent.com>
77350
77351         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
77352         better with autoheader.
77353
77354 2000-12-24  Jim Meyering  <meyering@lucent.com>
77355
77356         * lib/hash.c (is_prime): Return explicit boolean values.
77357         (hash_get_first): Return NULL to appease Irix5.6's 89.
77358         Reported by Nelson Beebe.
77359
77360 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
77361
77362         * lib/localcharset.c (locale_charset): Add support for Win32.
77363
77364 2000-12-18  Paul Eggert  <eggert@twinsun.com>
77365
77366         * lib/physmem.h, lib/physmem.c: New files.
77367
77368         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
77369         (noinst_HEADERS): Add physmem.h.
77370
77371         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
77372         't' for compatibility with Solaris 8 sort.
77373
77374 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
77375
77376         * lib/config.charset: Add support for BeOS.
77377
77378 2000-12-17  Jim Meyering  <meyering@lucent.com>
77379
77380         * m4/dos.m4 (jm_AC_DOS): New file and macro.
77381         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
77382
77383 2000-12-16  Jim Meyering  <meyering@lucent.com>
77384
77385         This bug had a serious impact on chown: `chown N:M FILE' (for integer
77386         N and M) would have treated it like `chown N:N FILE'.
77387
77388         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
77389
77390 2000-12-16  Jim Meyering  <meyering@lucent.com>
77391
77392         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
77393         SHELLS_FILE to a file name that's useful on djgpp systems.
77394         Include stdlib.h.
77395         (ADDITIONAL_DEFAULT_SHELLS): Define.
77396         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
77397         Based mostly on a patch from Prashant TR.
77398
77399 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
77400
77401         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
77402         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
77403         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
77404
77405 2000-12-08  Andreas Schwab  <schwab@suse.de>
77406
77407         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
77408         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
77409
77410 2000-12-07  Jim Meyering  <meyering@lucent.com>
77411
77412         * lib/stripslash.c (ISSLASH): Define.
77413         (strip_trailing_slashes): Use ISSLASH rather than comparing against
77414         `/'.
77415         From Prashant TR.
77416
77417         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
77418         (dir_name_r): Declare this function as static.
77419         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
77420         manifest itself on a name containing a mix of slashes and
77421         backslashes.
77422         Make this function work with names starting with a DOS-style
77423         drive letter and colon prefix.
77424         (dir_name): Append `.' if necessary.
77425         Based mostly on patches from Prashant TR and Eli Zaretskii.
77426
77427         * lib/dirname.h (dir_name_r): Remove prototype.
77428
77429 2000-12-06  Paul Eggert  <eggert@twinsun.com>
77430
77431         * m4/off_t-format.m4: Remove this file.
77432         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
77433
77434 2000-12-06  Jim Meyering  <meyering@lucent.com>
77435
77436         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
77437         replacement strtoull, we may well need the replacement strtoul, too.
77438         Check for declarations of strtoul and strtoull.
77439         Check for strtol.  Mainly as a cue to cause automake to include
77440         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
77441         Check for limits.h -- strtol.c needs it.
77442
77443 2000-12-05  Jim Meyering  <meyering@lucent.com>
77444
77445         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
77446
77447 2000-12-04  Jim Meyering  <meyering@lucent.com>
77448
77449         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
77450         Also include memory.h, stdlib.h, unistd.h if appropriate.
77451         Reported by Andreas Jaeger (conflicting declaration of malloc).
77452
77453 2000-12-02  Jim Meyering  <meyering@lucent.com>
77454
77455         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
77456         * m4/jm-macros.m4 (jm_MACROS): require it.
77457
77458 2000-12-02  Jim Meyering  <meyering@lucent.com>
77459
77460         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
77461
77462 2000-12-01  Paul Eggert  <eggert@twinsun.com>
77463
77464         * lib/memrchr.c: Include <config.h> before any system include file.
77465
77466 2000-11-30  Jim Meyering  <meyering@lucent.com>
77467
77468         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
77469
77470 2000-11-30  Jim Meyering  <meyering@lucent.com>
77471
77472         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
77473
77474 2000-11-29  Paul Eggert  <eggert@twinsun.com>
77475
77476         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
77477
77478 2000-11-26  Jim Meyering  <meyering@lucent.com>
77479
77480         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
77481
77482 2000-11-22  Paul Eggert  <eggert@twinsun.com>
77483
77484         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
77485         size of (size_t) -1; it's not portable.
77486
77487 2000-11-17  Jim Meyering  <meyering@lucent.com>
77488
77489         * lib/strstr.c: Update from GNU libc.
77490
77491 2000-11-17  Akim Demaille  <akim@epita.fr>
77492
77493         * lib/obstack.h: Formatting changes.
77494         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
77495         prevent type checking.
77496         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
77497         cast the value to (void *): assigning a `foo *' to a `void *'
77498         variable is valid.
77499         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
77500
77501 2000-11-16  Jim Meyering  <meyering@lucent.com>
77502
77503         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
77504
77505 2000-11-11  Jim Meyering  <meyering@lucent.com>
77506
77507         * lib/error.c: Add a couple #includes, merging from GNU libc version.
77508
77509 2000-11-10  Jim Meyering  <meyering@lucent.com>
77510
77511         * lib/obstack.h: Update from GNU libc.
77512         * lib/obstack.c: Likewise.
77513
77514 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
77515
77516         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
77517
77518 2000-11-06  Paul Eggert  <eggert@twinsun.com>
77519
77520         * lib/getusershell.c (setusershell): Use rewind rather than
77521         fseek/fseeko, to avoid configuration hassles with fseeko.
77522         Don't bother opening SHELLS_FILE if shellstream is NULL;
77523         it's not necessary.
77524
77525 2000-11-05  Jim Meyering  <meyering@lucent.com>
77526
77527         * lib/makepath.h (make_dir): Declare.
77528         * lib/makepath.c (make_dir): Remove `static' attribute.
77529         Tweak a comment.
77530
77531 2000-11-04  Jim Meyering  <meyering@lucent.com>
77532
77533         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
77534
77535 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
77536
77537         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
77538         last one in a bucket, advance to the next bucket.
77539
77540 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
77541
77542         * lib/fnmatch.c: Do not comment out all the code if we are using
77543         the GNU C library, because in some cases we are replacing buggy
77544         code in the GNU C library itself.
77545
77546 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
77547
77548         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
77549         (regex_compile): Catch bogus \(\1\).
77550
77551 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77552
77553         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
77554         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
77555         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
77556
77557 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77558
77559         * lib/error.h, getline.h, modechange.h:
77560         Remove "2000" from Copyright line, as the file hasn't been
77561         changed this year other than in the copyright notice.
77562
77563         * lib/xalloc.h: Add "2000" to Copyright line, as this file
77564         was changed this year.
77565
77566 2000-10-29  Jim Meyering  <meyering@lucent.com>
77567
77568         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
77569         renaming.
77570         * m4/ls-mntd-fs.m4: Likewise
77571
77572 2000-10-29  Jim Meyering  <meyering@lucent.com>
77573
77574         * lib/xstat.in: Fix grammar in comment.
77575
77576 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
77577
77578         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
77579         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
77580         doesn't define __restrict_arr.
77581
77582 2000-10-28  Jim Meyering  <meyering@lucent.com>
77583
77584         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
77585         (jm_PREREQ_MEMCHR): New function.
77586
77587 2000-10-28  Jim Meyering  <meyering@lucent.com>
77588
77589         * lib/memchr.c: Update from libc.
77590         Adjust for portability:
77591         [HAVE_STDLIB_H]: Include stdlib.h.
77592         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
77593         Undef __memchr, too.
77594         [!weak_alias]: Define __memchr to memchr.
77595
77596         * lib/regex.c: Update from libc.
77597         * lib/regex.h: Likewise.
77598         * lib/getopt1.c: Likewise.
77599         * lib/memcmp.c: Likewise.
77600
77601         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
77602         Avoid using fseek, when possible -- it's broken by design.
77603         Patch by Ulrich Drepper.
77604
77605 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
77606
77607         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
77608         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
77609         Giving in to popular pressure to shut up the compiler with casts.
77610
77611 2000-10-26  Jim Meyering  <meyering@lucent.com>
77612
77613         * lib/strftime.c: Update from libc.
77614
77615 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
77616
77617         * regex.c: More `unsigned char' -> `re_char' changes.
77618         Also change several `int' into `re_wchar_t'.
77619         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
77620         (PUSH_FAILURE_POINTER): Don't cast any more.
77621         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
77622         We want GCC to complain, since this piece of code makes
77623         re_match non-reentrant, which *should* be fixed.
77624         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
77625         (EXTEND_BUFFER): Use RETALLOC.
77626         (SET_LIST_BIT): Don't cast.
77627         (re_wchar_t): New type.
77628         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
77629         that those two functions will always properly return.
77630         (IMMEDIATE_QUIT_CHECK): Cast to void.
77631         (analyse_first): Use recursion rather than an explicit stack.
77632         (re_compile_fastmap): Can't fail anymore.
77633         (re_search_2): Don't check re_compile_fastmap for failure.
77634         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
77635         Now also sets the new value (passed in a new argument).
77636         (re_match_2_internal): Use it.
77637         Also, use a new var `reg' of type size_t when looping through regs
77638         rather than reuse the inappropriate `mcnt'.
77639
77640 2000-10-25  Jim Meyering  <meyering@lucent.com>
77641
77642         * lib/obstack.c: Update from libc.
77643
77644 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
77645
77646         * regex.c (regex_compile): Change the way of handling a range from
77647         a char less than 256 to a char not less than 256.
77648
77649 2000-10-24  Andrew Innes  <andrewi@gnu.org>
77650
77651         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
77652         NT-Emacs only.
77653         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
77654         so that re_search functions only quit when callers expect them to.
77655
77656 2000-10-23  Jim Meyering  <meyering@lucent.com>
77657
77658         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
77659         wrong.  That set_locale call must not have any side effects.
77660         From Paul Eggert.
77661
77662 2000-10-22  Jim Meyering  <meyering@lucent.com>
77663
77664         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
77665         [CYCLIC]: Remove now-unused definition.
77666
77667         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
77668         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
77669         Suggestion from Ulrich Drepper.
77670
77671 2000-10-21  Jim Meyering  <meyering@lucent.com>
77672
77673         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
77674         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
77675         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
77676
77677 2000-10-21  Jim Meyering  <meyering@lucent.com>
77678
77679         * lib/dirname.c (memrchr): Declare if necessary.
77680         (dir_name): Remove the restriction that there be no
77681         trailing slashes.  Now, this code skips past them, effectively
77682         ignoring them.
77683         [TEST_DIRNAME] (main): New unit tests.
77684
77685         * lib/memrchr.c: New file from GNU libc.
77686         Undef __memrchr, too.
77687         [!weak_alias]: Define __memrchr to memrchr.
77688         Guard weak_alias use with `#ifdef weak_alias'.
77689
77690 2000-10-21  Jim Meyering  <meyering@lucent.com>
77691
77692         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
77693         (dir_name): Use dir_name_r.
77694         * lib/dirname.h (dir_name_r): Declare it.
77695
77696 2000-10-17  Jim Meyering  <meyering@lucent.com>
77697
77698         * lib/quote.h (PARAMS): Define and use.
77699         Reported by Akim Demaille.
77700
77701         * lib/getopt.c: Update from libc.
77702
77703 2000-10-16  Jim Meyering  <meyering@lucent.com>
77704
77705         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
77706         setlocale.
77707         From Jan Fedak.
77708
77709 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
77710
77711         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
77712
77713 2000-09-25  Jim Meyering  <meyering@lucent.com>
77714
77715         * lib/md5.h (rol): Define (from GnuPG).
77716
77717         * lib/sha.c: Give credit (GnuPG) where due.
77718         (M): Use rol rather than open-coding it.
77719         Add a FIXME comment.
77720
77721 2000-09-21  Jim Meyering  <meyering@lucent.com>
77722
77723         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
77724         Reported by Michael Stone.
77725
77726 2000-09-20  Jim Meyering  <meyering@lucent.com>
77727
77728         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
77729         (noinst_HEADERS): Add sha.h.
77730         Based on code from Scott G. Miller and from GnuPG.
77731
77732 2000-09-18  Jim Meyering  <meyering@lucent.com>
77733
77734         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
77735         LIBS. Otherwise, everyone ends up linking with -lelf for some
77736         configurations.
77737         Reported by Mike Stone.
77738
77739 2000-09-15  Jim Meyering  <meyering@lucent.com>
77740
77741         * lib/regex.c: Update from libc.
77742
77743 2000-09-10  Jim Meyering  <meyering@lucent.com>
77744
77745         * lib/getopt.c (_getopt_internal): Update from glibc.
77746
77747 2000-09-09  Jim Meyering  <meyering@lucent.com>
77748
77749         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
77750         think it should be used as a general replacement for isascii.
77751         * lib/fnmatch.c: Likewise.
77752         * lib/mbswidth.c: Likewise
77753         * lib/regex.c: Likewise.
77754
77755         Don't use atoi.
77756         * lib/userspec.c: Include sys/param.h and limits.h.
77757         Include xstrtol.h.
77758         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77759         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
77760         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
77761         UID, GID.  Check range.
77762
77763 2000-09-06  Jim Meyering  <meyering@lucent.com>
77764
77765         * lib/getopt.c (_getopt_internal): Update from glibc.
77766
77767 2000-08-30  Jim Meyering  <meyering@lucent.com>
77768
77769         * lib/strftime.c: Merge in changes from GNU libc.
77770
77771 2000-08-26  Jim Meyering  <meyering@lucent.com>
77772
77773         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
77774         * m4/fpending.m4: New file.
77775
77776 2000-08-26  Jim Meyering  <meyering@lucent.com>
77777
77778         * lib/closeout.c: Include "__fpending.h".
77779         (close_stdout_status): Return right away if there's nothing to flush.
77780
77781         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
77782         * lib/__fpending.c: New file.
77783         * lib/__fpending.h: New file.
77784
77785 2000-08-20  Jim Meyering  <meyering@lucent.com>
77786
77787         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
77788         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
77789         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
77790
77791 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
77792
77793         Improve fileutils installation on systems where running
77794         programs (like install) can't be unlinked.
77795         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
77796         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
77797
77798 2000-08-07  Paul Eggert  <eggert@twinsun.com>
77799
77800         Standardize on "memory exhausted" instead of "Memory exhausted"
77801         or "virtual memory exhausted".
77802         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
77803         "virtual memory exhausted".
77804         * lib/same.c (same_name): Invoke xalloc_die instead of printing
77805         our own message.
77806         * lib/userspec.c (parse_user_spec): Likewise.
77807         * lib/bumpalloc.h: comment fix
77808         * lib/same.c, userspec.c: Include xalloc.h.
77809
77810         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
77811         not char *const and pointing to a constant array.
77812         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
77813         (xrealloc): Comment fix.
77814
77815         * lib/userspec.c (parse_user_spec):
77816         Don't translate a message until just before returning,
77817         to avoid unnecessary translation.
77818
77819 2000-08-07  Jim Meyering  <meyering@lucent.com>
77820
77821         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
77822         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
77823         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
77824         getgroups.c, gethostname.c, getopt.h, group-member.c,
77825         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
77826         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
77827         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
77828         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
77829         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
77830         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
77831         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
77832         yesno.c: Back out Copyright date changes for each file with no change
77833         this year.  This eases coordination with other programs using the same
77834         source code modules.  From Paul Eggert.
77835
77836 2000-08-06  Paul Eggert  <eggert@twinsun.com>
77837
77838         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
77839         not char, for compatibility with glibc 2.1.3 strftime.c.
77840
77841 2000-08-03  Greg McGary  <greg@mcgary.org>
77842
77843         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
77844         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
77845         (EXTEND_BUFFER): Use them.
77846
77847 2000-08-01  Jim Meyering  <meyering@lucent.com>
77848
77849         * lib/dirname.c (ISSLASH): Define.
77850         (BACKSLASH_IS_PATH_SEPARATOR): Define.
77851         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
77852         both `\' and `/' may be use as path separators.
77853         Based on a patch from Prashant TR.
77854
77855 2000-07-31  Paul Eggert  <eggert@twinsun.com>
77856
77857         * lib/quotearg.c (quotearg_n_options): Don't make the initial
77858         slot vector a constant, since it might get modified.
77859
77860 2000-07-31  Jim Meyering  <meyering@lucent.com>
77861
77862         * lib/xmalloc.c: Use `virtual memory exhausted', not
77863         `Memory exhausted'.
77864         * lib/obstack.c (print_and_abort): Likewise.
77865
77866 2000-07-30  Paul Eggert  <eggert@twinsun.com>
77867
77868         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
77869         buffer, so that the caller can always quote one small
77870         component of a "memory exhausted" message in slot 0.
77871         From a suggestion by Jim Meyering.
77872
77873 2000-07-30  Jim Meyering  <meyering@lucent.com>
77874
77875         * lib/makepath.c (make_path): Quote the other instance, too.
77876
77877         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
77878         (STATIC_BUF_SIZE): Define.
77879         (quotearg_n_options): Use only statically allocated storage when
77880         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
77881         than STATIC_BUF_SIZE.
77882
77883 2000-07-29  Jim Meyering  <meyering@lucent.com>
77884
77885         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
77886         * lib/dirname.c (dir_name): Likewise.
77887
77888         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
77889         `/'.
77890
77891         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
77892         (dir_name): Assert that there are no trailing slashes.
77893
77894 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
77895
77896         * lib/mbswidth.h (mbswidth): Add a flags argument.
77897         (mbswidth): New declaration.
77898         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
77899         * lib/mbswidth.c (mbswidth): Add a flags argument.
77900         (mbsnwidth): New function.
77901
77902 2000-07-24  Jim Meyering  <meyering@lucent.com>
77903
77904         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
77905
77906 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77907
77908         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
77909
77910 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77911
77912         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
77913         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
77914         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
77915         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
77916         invoke multibyte primitives.
77917
77918 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77919
77920         * lib/quotearg.c:
77921         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
77922         so that mbstate_t is always defined.
77923
77924         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
77925         be 1 in at least one GCC installation, and this configuration
77926         error is likely to be common.  Ignoring MB_LEN_MAX hurts
77927         performance on hosts that have mbrtowc but have only unibyte
77928         locales, but I assume these hosts are rare.
77929
77930 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77931
77932         * lib/mbswidth.c (_XOPEN_SOURCE):
77933         Don't define; this causes problems on Solaris 7.
77934         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
77935
77936 2000-07-23  Jim Meyering  <meyering@lucent.com>
77937
77938         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
77939         too: getgrgid, getpwuid, getuid.
77940
77941 2000-07-23  Jim Meyering  <meyering@lucent.com>
77942
77943         * lib/basename.c (base_name): Add an assertion.
77944
77945 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
77946
77947         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
77948         shadow its mbsinit function.
77949
77950 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77951
77952         * lib/mbswidth.h: New file.
77953         * lib/mbswidth.c: New file.
77954         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
77955         (noinst_HEADERS): Add mbswidth.h.
77956
77957 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77958
77959         * lib/config.charset: Add support for FreeBSD. Improve support for
77960         HP-UX and IRIX 6.
77961
77962 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
77963
77964         * m4/mbswidth.m4: New file.
77965         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
77966
77967 2000-07-15  Jim Meyering  <meyering@lucent.com>
77968
77969         * lib/makepath.c: Include quote.h.
77970         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
77971         corresponding argument in a `quote (...)' call.
77972         Give better diagnostics.
77973
77974         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
77975         (noinst_HEADERS): Add quote.h.
77976
77977         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
77978         from tar's src/misc.c.
77979         * lib/quote.h: New file.  Prototypes for same.
77980
77981 2000-07-14  Paul Eggert  <eggert@twinsun.com>
77982
77983         From a suggestion by Bruno Haible.
77984         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
77985         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
77986         to decide whether to define the BeOS workaround macro;
77987         this adjusts to the change to AC_MBSTATE_T.
77988
77989 2000-07-14  Jim Meyering  <meyering@lucent.com>
77990
77991         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
77992         jm_AC_TYPE_UINTMAX_T.
77993
77994 2000-07-13  Paul Eggert  <eggert@twinsun.com>
77995
77996         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
77997
77998         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
77999         quotearg_buffer_restyled): Add support for
78000         clocale_quoting_style.  Undo previous change to
78001         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
78002         and "{RIGHT QUOTATION MARK}" msgids.
78003
78004 2000-07-10  Paul Eggert  <eggert@twinsun.com>
78005
78006         From a suggestion by Bruno Haible.
78007         * m4/mbstate_t.m4 (AC_MBSTATE_T):
78008         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
78009         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
78010         and mbstate_t, to a single-part test that simply defines mbstate_t.
78011         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
78012         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
78013
78014 2000-07-10  Jim Meyering  <meyering@lucent.com>
78015
78016         * m4/strerror_r.m4: Mirror the correction made in autoconf.
78017
78018         * m4/gnu-source.m4: Output to confdefs.h directly.
78019         Suggestion from Akim Demaille.
78020
78021 2000-07-09  Paul Eggert  <eggert@twinsun.com>
78022
78023         The old behavior of quoting `like this' doesn't look good with
78024         newer, ISO-style fonts.  See:
78025         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
78026
78027         Instead, quote "like this" by default.  Let the translator
78028         tailor the locale-specific quoting behavior by providing
78029         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
78030
78031         * lib/quotearg.c (N_): New macro.
78032         (gettext_default): New function.
78033         (quotearg_buffer_restyled): Use
78034         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
78035         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
78036
78037 2000-07-09  Jim Meyering  <meyering@lucent.com>
78038
78039         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
78040         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
78041
78042         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
78043         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
78044
78045 2000-07-09  Jim Meyering  <meyering@lucent.com>
78046
78047         * lib/Most files: Update copyright dates to include 2000.
78048
78049 2000-07-08  Jim Meyering  <meyering@lucent.com>
78050
78051         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
78052         if not defined.
78053         (xgethostname): Remove now-unnecessary #ifdef.
78054         Move declaration of `err' into loop where it's used.
78055
78056 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78057         and Bruno Haible  <haible@clisp.cons.org>
78058
78059         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
78060         only if the test for an object-type mbstate_t fails.  This
78061         prevents us from mistakenly reporting that mbstate_t is a
78062         system object type after we "#define mbstate_t int" to work
78063         around its lack.
78064
78065 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78066         and Bruno Haible  <haible@clisp.cons.org>
78067
78068         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
78069
78070 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78071
78072         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
78073         to strerror_r.
78074         Include <ctype.h> for use of isalpha.
78075
78076 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78077
78078         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
78079         by allocating a larger buffer. Test the gethostname return value for
78080         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
78081         returns an error and ENAMETOOLONG isn't defined.
78082
78083 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78084
78085         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
78086         dimension.
78087
78088 2000-07-04  Jim Meyering  <meyering@lucent.com>
78089
78090         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
78091         of the deprecated AC_CHECKING.
78092
78093 2000-07-04  Jim Meyering  <meyering@lucent.com>
78094
78095         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
78096         Reported by Bruno Haible.
78097
78098 2000-07-04  Jim Meyering  <meyering@lucent.com>
78099
78100         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
78101         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
78102         lacks mbrtowc.
78103
78104 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78105
78106         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
78107         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
78108
78109 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78110         and Bruno Haible  <haible@clisp.cons.org>
78111
78112         * lib/quotearg.c (mbrtowc):
78113         Assign to *pwc, and return 1 only if result is nonzero.
78114         (iswprint): Use ISPRINT when substituting our own mbrtowc.
78115
78116 2000-07-03  Jim Meyering  <meyering@lucent.com>
78117
78118         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
78119
78120 2000-07-03  Jim Meyering  <meyering@lucent.com>
78121
78122         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
78123         This is necessary to get a definition of e.g., UTMP_FILE on
78124         HP-UX 10.20.
78125         From Bob Proulx.
78126
78127 2000-07-02  Jim Meyering  <meyering@lucent.com>
78128
78129         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
78130
78131         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
78132         AC_LIBOBJ(function_name).
78133         * m4/chown.m4: Likewise.
78134         * m4/fnmatch.m4: Likewise.
78135         * m4/ftruncate.m4: Likewise.
78136         * m4/getgroups.m4: Likewise.
78137         * m4/getline.m4: Likewise.
78138         * m4/group-member.m4: Likewise.
78139         * m4/jm-macros.m4: Likewise.
78140         * m4/lstat.m4: Likewise.
78141         * m4/malloc.m4: Likewise.
78142         * m4/memcmp.m4: Likewise.
78143         * m4/nanosleep.m4: Likewise.
78144         * m4/putenv.m4: Likewise.
78145         * m4/realloc.m4: Likewise.
78146         * m4/regex.m4: Likewise.
78147         * m4/stat.m4: Likewise.
78148         * m4/strftime.m4: Likewise.
78149
78150 2000-07-02  Jim Meyering  <meyering@lucent.com>
78151
78152         * lib/quotearg.c (mbstate_t): Don't define here.
78153
78154 2000-07-02  Jim Meyering  <meyering@lucent.com>
78155
78156         * lib/nanosleep.c (SIGCONT): Define if not already defined.
78157
78158 2000-07-01  Jim Meyering  <meyering@lucent.com>
78159
78160         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
78161
78162 2000-07-01  Jim Meyering  <meyering@lucent.com>
78163
78164         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
78165         problem.
78166
78167 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78168
78169         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
78170         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
78171
78172 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78173
78174         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
78175         per change in ../m4/ls-mntd-fs.m4.
78176         (read_filesystem_list): Ignore symbolic links.
78177
78178 2000-06-29  Jim Meyering  <meyering@lucent.com>
78179
78180         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
78181         for declaration of strcmp.
78182
78183         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
78184
78185         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
78186         Avoid warning by casting result to `char *' to remove `const'.
78187
78188 2000-06-28  Jim Meyering  <meyering@lucent.com>
78189
78190         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
78191         included by quotearg.c, for which we perform this test.  From
78192         Bruno Haible.
78193
78194 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78195
78196         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
78197         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
78198         <utmpx.h> exists, put readutmp.o into LIBOBJS.
78199
78200 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78201
78202         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
78203
78204 2000-06-26  Paul Eggert  <eggert@twinsun.com>
78205
78206         savedir now sets errno on failure and invokes xmalloc to get memory.
78207         Fix a couple of other minor bugs while we're at it.
78208
78209         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
78210         (NAMLEN): Remove macro.
78211         (malloc, realloc): Remove decls.
78212         (stpcpy): Likewise.
78213         ("xalloc.h"): Include.
78214         (NAME_SIZE_DEFAULT): New macro.
78215         (savedir): Use xmalloc / xrealloc to allocate memory.
78216         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
78217         Skip "" directory entries.
78218         Use strlen to calculate directory entry length, since the old method
78219         is rarely used these days and isn't worth supporting.
78220         Don't use a pointer after freeing it.
78221         Check for integer overflow when calculating allocation size.
78222         Use memcpy to copy entries, instead of stpcpy.
78223         Set errno properly when returning NULL.
78224         Check for readdir error.
78225
78226 2000-06-26  Jim Meyering  <meyering@lucent.com>
78227
78228         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
78229
78230 2000-06-25  Jim Meyering  <meyering@lucent.com>
78231
78232         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
78233         Linux header bug when _XOPEN_SOURCE is defined to 500.
78234
78235 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78236
78237         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
78238         deficiency.
78239
78240 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78241
78242         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
78243         Include xalloc.h.
78244         Don't include <stdlib.h>.  Don't declare malloc, realloc.
78245
78246 2000-06-24  Jim Meyering  <meyering@lucent.com>
78247
78248         * m4/strerror_r.m4: Revive this file -- to try out an experimental
78249         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
78250         for which strerror does return char*, but which lacks a conveniently
78251         accessible declaration of the function.  If the compile-test says
78252         strerror_r doesn't work, then resort to a `run'-test that works on
78253         BeOS and segfaults on DEC Unix.
78254
78255 2000-06-24  Jim Meyering  <meyering@lucent.com>
78256
78257         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
78258
78259 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78260
78261         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
78262         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
78263
78264 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78265
78266         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
78267         (mbrtowc, mbstate_t): Define substitutes if
78268         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
78269         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
78270         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
78271
78272 2000-06-23  Jim Meyering  <meyering@lucent.com>
78273
78274         * m4/afs.m4: Add missing AC_MSG_RESULT.
78275         Reported by Bruno Haible.
78276
78277         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
78278         Suggestion from Bruno Haible.
78279
78280 2000-06-23  Jim Meyering  <meyering@lucent.com>
78281
78282         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
78283
78284 2000-06-21  Jim Meyering  <meyering@lucent.com>
78285
78286         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
78287
78288 2000-06-21  Jim Meyering  <meyering@lucent.com>
78289
78290         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
78291         (noinst_HEADERS): Add getstr.h.
78292
78293         * lib/getline.c (getstr): Move into a separate file.
78294         * lib/getstr.c (getstr): New file, extracted from getline.c, with
78295         the following changes: new parameter, delim2; both delim[12]
78296         parameters have type `int', not `char'.  The latter would lose
78297         with 8-bit delimiters.
78298         * lib/getstr.h: New file.
78299
78300 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78301
78302         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
78303         than 1024, return a memory chunk of least possible size, instead
78304         of size PATH_MAX + 2. In the loop, increment the size proportionally.
78305         Use free/xmalloc instead of xrealloc to avoid copying for very long
78306         paths.
78307
78308 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78309
78310         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
78311         the empty string.
78312
78313 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78314
78315         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
78316         address, not strdup.  Include <stdlib.h> and don't declare free().
78317
78318 2000-06-19  Jim Meyering  <meyering@lucent.com>
78319
78320         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
78321
78322 2000-06-18  Jim Meyering  <meyering@lucent.com>
78323
78324         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
78325
78326         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
78327         `checking whether...' message to be consistent with that of the
78328         lstat test.
78329
78330 2000-06-18  Jim Meyering  <meyering@lucent.com>
78331
78332         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
78333         Besides, these days every porting target provides a mkdir function.
78334
78335         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
78336         needed. (this snippet comes from src/system.h).
78337
78338 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
78339
78340         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
78341
78342 2000-06-15  Paul Eggert  <eggert@twinsun.com>
78343
78344         * lib/human.c (adjust_value): New function.
78345         (human_readable_inexact): Apply rounding style even when
78346         printing approximate values.
78347
78348 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78349
78350         * lib/human.c (human_readable_inexact): Allow an input block
78351         size that is not a multiple of the output block size, and vice versa.
78352         Reported by Piergiorgio Sartor.
78353
78354 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78355
78356         * lib/getdate.y (get_date): Apply relative times after time
78357         zone indicator, not before.  Reported by Todd A. Jacobs.
78358
78359 2000-06-13  Jim Meyering  <meyering@lucent.com>
78360
78361         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
78362
78363         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
78364
78365 2000-06-12  Paul Eggert  <eggert@twinsun.com>
78366
78367         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
78368
78369 2000-06-12  Jim Meyering  <meyering@lucent.com>
78370
78371         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
78372         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
78373         optional argument.
78374         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
78375         the optional argument, `lib'.
78376
78377 2000-06-08  Jim Meyering  <meyering@lucent.com>
78378
78379         * m4/largefile.m4: Remove file (now that it's part of autoconf).
78380
78381 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78382
78383         Rewrite largefile configuration so that we don't need to run
78384         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
78385         AC_CANONICAL_HOST in configure.in -- jmm]
78386
78387         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
78388         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
78389         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
78390         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
78391         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
78392         All uses changed.
78393         Instead of inspecting the output of getconf, try to compile the
78394         test program without and with the macro definition.
78395         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
78396         for getconf.  Instead, check for the needed flags by compiling
78397         test programs.
78398
78399 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78400
78401         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
78402
78403 2000-06-04  Jim Meyering  <meyering@lucent.com>
78404
78405         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
78406         SunOS 4.1.4 for which gid_t is an unsigned type.
78407
78408 2000-06-03  Jim Meyering  <meyering@lucent.com>
78409
78410         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
78411         now that autoconf requires that.
78412
78413         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
78414         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
78415         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
78416
78417 2000-06-03  Jim Meyering  <meyering@lucent.com>
78418
78419         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
78420
78421 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78422
78423         * m4/glibc21.m4: New file.
78424         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
78425
78426 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78427
78428         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
78429         newer, don't install charset.alias.
78430         * lib/config.charset: Change the Linux/glibc rules so they become empty
78431         on glibc-2.1 or newer.
78432
78433 2000-06-02  Jim Meyering  <meyering@lucent.com>
78434
78435         * lib/mountlist.c: Back out last change.  Instead, do this...
78436         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
78437         me_dummy member using the same `ignore'-testing code.
78438         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
78439         fs_type strings.
78440         From Mark D. Roth.
78441
78442 2000-05-29  Jim Meyering  <meyering@lucent.com>
78443
78444         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
78445         mounts with the `ignore' attribute.  Based on a patch from
78446         Mark D. Roth.
78447
78448 2000-05-28  Jim Meyering  <meyering@lucent.com>
78449
78450         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
78451         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78452         * m4/stat.m4: Likewise.
78453         * m4/lstat.m4: Likewise.
78454         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
78455
78456         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
78457         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
78458
78459 2000-05-26  Jim Meyering  <meyering@lucent.com>
78460
78461         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
78462
78463 2000-05-24  Jim Meyering  <meyering@lucent.com>
78464
78465         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
78466         autoconf requires that.
78467         * m4/lib-check.m4: Likewise.
78468         * m4/jm-macros.m4: Likewise.
78469         * m4/strftime.m4: Likewise.
78470
78471         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
78472         AC_CHECK_DECLS, now that autoconf requires that.
78473
78474 2000-05-22  Jim Meyering  <meyering@lucent.com>
78475
78476         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78477         * m4/lstat.m4: Likewise.
78478
78479 2000-05-22  Jim Meyering  <meyering@lucent.com>
78480
78481         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
78482
78483 2000-05-20  Jim Meyering  <meyering@lucent.com>
78484
78485         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
78486         (jm_PREREQ): Use it.
78487
78488 2000-05-18  Jim Meyering  <meyering@lucent.com>
78489
78490         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
78491         back, too, since it may have been modified by allocate_entry.
78492         (hash_delete): Rewrite to use neither the assignment operator
78493         nor the comma operator in an if-expression.
78494
78495 2000-05-15  Paul Eggert  <eggert@twinsun.com>
78496
78497         * lib/closeout.c:
78498         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
78499         Remove; no longer needed.
78500         "quotearg.h": Add include.
78501         (file_name): Do not bother to explicitly initialize to NULL; it's less
78502         efficient on some hosts.
78503         (close_stdout_status): Remove test as to whether stdout was already
78504         closed; it breaks for the case "echo x | sort >&-".
78505         Quote file name colons.
78506         Do not assume that _("write error") lacks format strings.
78507
78508 2000-05-15  Jim Meyering  <meyering@lucent.com>
78509
78510         * lib/version-etc.c (version_etc_copyright): Update the copyright
78511         string used in all --version output.
78512
78513 2000-05-14  Jim Meyering  <meyering@lucent.com>
78514
78515         * lib/closeout.c (close_stdout_set_file_name): New function.
78516         (close_stdout_status): Use new file-scoped global.
78517         Return right away if fstat says the stdout file descriptor is invalid.
78518         * lib/closeout.h (close_stdout_set_file_name): Declare.
78519
78520 2000-05-10  Jim Meyering  <meyering@lucent.com>
78521
78522         * lib/closeout.c [default_exit_status]: New file-scoped variable.
78523         (close_stdout_set_status): New function.
78524         * lib/closeout.h (close_stdout_set_status): Declare.
78525
78526 2000-05-09  Jim Meyering  <meyering@lucent.com>
78527
78528         * m4/gettext.m4: Rename this...
78529         * m4/libintl.m4: ...to this.
78530
78531 2000-05-08  Jim Meyering  <meyering@lucent.com>
78532
78533         * lib/long-options.c: Don't include closeout.h.
78534         (parse_long_options): Don't call close_stdout for --version.
78535
78536 2000-05-06  Paul Eggert  <eggert@twinsun.com>
78537
78538         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
78539         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
78540         2.1.3 bug.  This avoids a clash when files like regex.c define
78541         _GNU_SOURCE.
78542
78543 2000-05-06  Jim Meyering  <meyering@lucent.com>
78544
78545         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
78546         (AC_REPLACE_FUNCS): Add strnlen.
78547
78548         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
78549         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
78550
78551         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
78552         AC_SEARCH_LIBS call for nanosleep.
78553         (LIB_NANOSLEEP): Set and AC_SUBST.
78554
78555 2000-05-06  Jim Meyering  <meyering@lucent.com>
78556
78557         * lib/strnlen.c: Undefine __strnlen and strnlen.
78558         [!weak_alias]: Define __strnlen to strnlen.
78559
78560         * lib/atexit.c: New file, from libiberty.
78561
78562 2000-05-06  Jim Meyering  <meyering@lucent.com>
78563
78564         * lib/closeout.c (close_stdout_status): Also check for errors on the
78565         stderr stream.
78566
78567 2000-05-05  Jim Meyering  <meyering@lucent.com>
78568
78569         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
78570         AC_SEARCH_LIBS call for clock_gettime.
78571         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
78572
78573         * m4/search-libs.m4: Update from autoconf.
78574
78575         su doesn't work on Solaris 2.6.
78576         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
78577         <shadow.h>.  Reported by Dragos Harabor.
78578
78579 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
78580
78581         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
78582         memcpy instead of xmalloc, xrealloc, path_concat.
78583         (locale_charset): Treat empty environment variables as absent.
78584         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
78585
78586 2000-05-04  Jim Meyering  <meyering@lucent.com>
78587
78588         * lib/getopt.c: Update from glibc.
78589         * lib/obstack.c: Likewise.
78590         * lib/obstack.h: Likewise.
78591         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
78592         file
78593
78594         * lib/regex.h: Likewise.
78595         * lib/strndup.c: Likewise.
78596         * lib/strnlen.c: New file, from glibc.
78597
78598 2000-05-03  Jim Meyering  <meyering@lucent.com>
78599
78600         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
78601
78602 2000-05-02  Paul Eggert  <eggert@twinsun.com>
78603
78604         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
78605         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
78606         compile-time test, rather than inspecting host and OS, to
78607         decide whether to define _LARGEFILE_SOURCE.
78608
78609 2000-05-01  Jim Meyering  <meyering@lucent.com>
78610
78611         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
78612
78613         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
78614         Based on a patch from Bruno Haible.
78615
78616 2000-05-01  Jim Meyering  <meyering@lucent.com>
78617
78618         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
78619
78620 2000-04-29  Jim Meyering  <meyering@lucent.com>
78621
78622         * lib/path-concat.c: Declare strdup only if it's not defined.
78623         * lib/canon-host.c: Likewise.
78624
78625 2000-04-28  Jim Meyering  <meyering@lucent.com>
78626
78627         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
78628         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
78629         is included first, then limits.h is included by locale.h by libintl.h.
78630         From John David Anglin.
78631
78632 2000-04-25  Jim Meyering  <meyering@lucent.com>
78633
78634         * lib/makepath.c (S_IRWXUGO): Define.
78635         (make_path): Always perform explicit chmod if MODE specifies any
78636         of the `special' permission bits.  Prompted by a bug report against
78637         install from Mate Wierdl and Joost van Baal.
78638
78639 2000-04-18  Jim Meyering  <meyering@lucent.com>
78640
78641         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
78642         (jm_PREREQ): Use it.
78643
78644 2000-04-18  Jim Meyering  <meyering@lucent.com>
78645
78646         * lib/README: New file.
78647
78648         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
78649         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
78650
78651 2000-04-17  Jim Meyering  <meyering@lucent.com>
78652
78653         Get it right :-)
78654         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
78655         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
78656         Suggestion from Akim Demaille.
78657
78658 2000-04-17  Jim Meyering  <meyering@lucent.com>
78659
78660         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
78661         the definition of it to rpl_strftime also defined-away the system's
78662         declaration.
78663
78664 2000-04-15  Jim Meyering  <meyering@lucent.com>
78665
78666         Use `C' to denote so-called `contiguous' files, the same way
78667         that tar does.
78668         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
78669         (ftypelet): Use S_ISCTG.
78670         From Michael Deutschmann.
78671
78672 2000-04-14  Jim Meyering  <meyering@lucent.com>
78673
78674         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
78675         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
78676         clobbered.
78677
78678 2000-04-14  Jim Meyering  <meyering@lucent.com>
78679
78680         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
78681
78682 2000-04-13  Jim Meyering  <meyering@lucent.com>
78683
78684         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
78685         AH_VERBATIM to insert required #ifndef into config.h.in.
78686         Suggestion from Akim Demaille.
78687
78688 2000-04-12  Jim Meyering  <meyering@lucent.com>
78689
78690         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
78691         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
78692         Christian Krackowizer.
78693
78694         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
78695         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
78696         (AC_SYS_LARGEFILE): Require.
78697         (AM_C_PROTOTYPES): Require.
78698
78699 2000-04-08  Jim Meyering  <meyering@lucent.com>
78700
78701         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
78702         names don't conflict.  Reported by Eli Zaretskii.
78703
78704 2000-04-07  Jim Meyering  <meyering@lucent.com>
78705
78706         * lib/putenv.c: Move inclusion of errno.h so it follows that of
78707         sys/types.h, to work around system header problems on AIX 3.2.5.
78708         From Bruno Haible.
78709
78710 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
78711
78712         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
78713         bug.  Deal with the different error behavior of Irix iconv.
78714
78715 2000-04-05  Paul Eggert  <eggert@twinsun.com>
78716
78717         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
78718         IRIX if the installer said otherwise.
78719
78720 2000-04-05  Jim Meyering  <meyering@lucent.com>
78721
78722         Portability tweaks required for ultrix4.3.
78723         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
78724         (jm_CHECK_DECLS): Add getutent to the list of functions.
78725         (_jm_DECL_HEADERS): Add utmpx.h.
78726         From John David Anglin.
78727
78728         * m4/strftime.m4: Back out the 2000-04-02 change.
78729         Instead of that change, simply undefine putenv in the test program.
78730
78731 2000-04-05  Jim Meyering  <meyering@lucent.com>
78732
78733         Portability tweaks required for ultrix4.3.
78734         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
78735         getutent.
78736         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
78737         * lib/canon-host.c: Declare strdup.
78738         * lib/path-concat.c: Likewise.
78739         From John David Anglin.
78740
78741 2000-04-04  Jim Meyering  <meyering@lucent.com>
78742
78743         Be more DOS 8.3-friendly.
78744         * lib/ref-add.sin: Renamed from ref-add.sed.in.
78745         * lib/ref-del.sin: Renamed from ref-del.sed.in.
78746         * lib/Makefile.am: Reflect renaming.
78747         Reported by Eli Zaretskii.
78748
78749         Use a temporary file name that won't clash with `charset.alias'
78750         in the DOS 8.3 name space.
78751         * lib/Makefile.am (charset_tmp): Define.
78752         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
78753         (uninstall-local): Likewise.
78754         Reported by Eli Zaretskii.
78755
78756 2000-04-03  Jim Meyering  <meyering@lucent.com>
78757
78758         * m4/gettext.m4: Fix typo in comment.
78759
78760         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
78761         textutils/configure.in).  Suggestion from Paul Eggert.
78762         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
78763
78764 2000-04-02  Paul Eggert  <eggert@twinsun.com>
78765
78766         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
78767         variable in the shell rather than using putenv, which isn't
78768         portable.  This avoids the configure-time inter-test dependency
78769         on the potentially-renamed putenv function.
78770
78771 2000-03-30  Paul Eggert  <eggert@twinsun.com>
78772
78773         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
78774         before checking struct stat.st_blksize, so that
78775         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
78776
78777 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78778
78779         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
78780         since strftime.c uses HAVE_STRFTIME to decide whether to use
78781         the underlying strftime.
78782
78783 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78784
78785         * lib/time/strftime.c (my_strftime): Make sure we call the system
78786         strftime, not ourselves, when invoking the underlying strftime.
78787
78788 2000-03-24  Jim Meyering  <meyering@lucent.com>
78789
78790         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
78791         (charset_alias): Define.
78792         (install-exec-local): Factor out common code.
78793         (uninstall-local): Split lines longer than 80.
78794         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
78795         (SUFFIXES): Define.
78796         (.sed.in.sed): New rule.  Don't redirect directly to $@.
78797         (CLEANFILES): Add ref-add.sed and ref-del.sed.
78798
78799 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
78800
78801         * lib/config.charset: Output a line containing "Packages using this
78802         file".
78803         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
78804         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
78805         ref-del.sed): New rules.
78806
78807 2000-03-17  Jim Meyering  <meyering@lucent.com>
78808
78809         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
78810         Otherwise, include <strings.h>
78811
78812 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
78813
78814         * lib/unicodeio.c (utf8_wctomb): New function.
78815         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
78816         format instead of in UCS-4 with platform dependent endianness.
78817
78818 2000-03-10  Jim Meyering  <meyering@lucent.com>
78819
78820         * m4/lib-check.m4: Look for getspnam in -lgen, too.
78821         From Marco Franzen.
78822
78823 2000-03-07  Paul Eggert  <eggert@twinsun.com>
78824
78825         * lib/savedir.c (savedir): Work even if directory size is
78826         negative; this can happen with some screwy NFS configurations.
78827
78828 2000-03-06  Jim Meyering  <meyering@lucent.com>
78829
78830         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
78831         if it's NULL (because we ran out of memory).  From Bruno Haible.
78832
78833 2000-03-05  Jim Meyering  <meyering@lucent.com>
78834
78835         * lib/localcharset.c ("path-concat.h"): Include.
78836         (get_charset_aliases): Use path_concat instead of ANSI string
78837         concatenation.
78838
78839         * lib/unicodeio.h (PARAMS): Define.
78840         Use it to guard prototype.
78841
78842 2000-03-04  Jim Meyering  <meyering@lucent.com>
78843
78844         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
78845         for lib/localcharset.c.
78846
78847 2000-03-04  Jim Meyering  <meyering@lucent.com>
78848
78849         * lib/Makefile.am (install-exec-local): Create $(libdir) before
78850         installing into it.
78851         (uninstall-local): Uncomment this rule so `make distcheck' works
78852         once again.
78853
78854         * lib/unicodeio.c (<errno.h>): Include it.
78855         (errno): Declare if not defined.
78856
78857         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
78858
78859         * lib/config.charset: New version, incorporating remarks from a linux
78860         i18n mailing list.  From Bruno Haible.
78861
78862 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
78863
78864         * m4/codeset.m4: New file.
78865         * m4/iconv.m4: New file.
78866         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
78867
78868 2000-03-03  Jim Meyering  <meyering@lucent.com>
78869
78870         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
78871
78872 2000-03-02  Jim Meyering  <meyering@lucent.com>
78873
78874         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
78875         the messages come out on separate lines.
78876
78877         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
78878         rather than jm_CHECK_DECLARATIONS.
78879         * m4/decl.m4: Remove now-unused file.
78880
78881         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
78882         geteuid.
78883
78884 2000-03-02  Jim Meyering  <meyering@lucent.com>
78885
78886         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
78887
78888 2000-03-01  Jim Meyering  <meyering@lucent.com>
78889
78890         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
78891         * lib/unicodeio.c: Likewise.
78892
78893 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
78894
78895         * lib/config.charset: New file.
78896         * lib/localcharset.c: New file.
78897         * lib/unicodeio.h, lib/unicodeio.c: New files.
78898         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
78899         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
78900         (noinst_HEADERS): Add unicodeio.h.
78901         (all-local, install-exec-local, charset.alias): New targets.
78902
78903 2000-02-28  Paul Eggert  <eggert@twinsun.com>
78904
78905         * lib/quotearg.c (ALERT_CHAR): New macro.
78906         (quotearg_buffer_restyled): Use it.
78907
78908 2000-02-27  Jim Meyering  <meyering@lucent.com>
78909
78910         * m4/check-decl.m4: Add getenv to the list.
78911
78912 2000-02-27  Jim Meyering  <meyering@lucent.com>
78913
78914         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
78915         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
78916
78917         * lib/backupfile.c: Guard inclusion of stdlib.h with
78918         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
78919         Declare malloc if needed.
78920
78921         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
78922         `#ifndef HAVE_DECL..'
78923         now that autoconf always defines the HAVE_DECL_ symbols.
78924         * lib/human.c: Likewise.
78925         * lib/same.c: Likewise.
78926         * lib/strtoumax.c: Likewise.
78927
78928         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
78929         declaration check was not run.
78930         * lib/hash.c: Likewise.
78931         * lib/human.c: Likewise.
78932         * lib/same.c: Likewise.
78933         * lib/strtoumax.c: Likewise.
78934
78935         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
78936         `.', then first look up the entire `.'-containing string as a login
78937         name.
78938
78939 2000-02-23  Jim Meyering  <meyering@lucent.com>
78940
78941         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
78942         in place of my hack.
78943
78944 2000-02-18  Paul Eggert  <eggert@twinsun.com>
78945
78946         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
78947         (textint): New typedef.
78948         (parser_control): Member year changed from int to textint.
78949         All uses changed.
78950         (YYSTYPE): Removed; replaced by %union with int and textint members.
78951         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
78952         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
78953         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
78954         (tSNUMBER, tUNUMBER): Now of type <textintval>.
78955         (date, number, to_year): Use width of number in digits, not its value,
78956         to determine whether it's a 2-digit year, or a 2-digit time.
78957         (yylex): Store number of digits of numeric tokens.
78958         Reported by John Kendall.
78959
78960         (parser_control): Changed from struct parser_control to typedef (for
78961         consistency).  All uses changed.
78962
78963         (tID): Removed; not used.
78964         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
78965
78966 2000-02-14  Paul Eggert  <eggert@twinsun.com>
78967
78968         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
78969         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
78970
78971 2000-02-12  Jim Meyering  <meyering@lucent.com>
78972
78973         * lib/userspec.c (ISDIGIT): Define it.
78974         (isdigit): Remove definition.
78975         (is_number): Use ISDIGIT, not isdigit.
78976         <libintl.h>: Include.
78977         (_ and N_): Define.
78978         (parse_user_spec): Mark translatable strings.
78979
78980 2000-02-10  Jim Meyering  <meyering@lucent.com>
78981
78982         With these changes, nanosleep.[ch] are finally enough like the other
78983         lib/* replacement files to compile on a few more losing systems.
78984
78985         * lib/nanosleep.h: Don't include config.h.
78986         Remove prototype from declaration of nanosleep.
78987         (PARAMS): Remove now-unneeded definition.
78988         * lib/nanosleep.c: #undef nanosleep.
78989         (rpl_nanosleep): Rename from nanosleep.
78990
78991 2000-02-10  Jim Meyering  <meyering@lucent.com>
78992
78993         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
78994         gnu_nanosleep to rpl_nanosleep.
78995
78996 2000-02-09  Jim Meyering  <meyering@lucent.com>
78997
78998         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
78999         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
79000
79001 2000-02-08  Akim Demaille  <akim@epita.fr>
79002
79003         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
79004         `[' and `]' and remove uses of `changequote'.
79005         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
79006         (AC_SYS_LARGEFILE): Likewise.
79007         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
79008         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
79009         of changequote.
79010         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
79011         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
79012         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
79013         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
79014
79015 2000-02-05  Jim Meyering  <meyering@lucent.com>
79016
79017         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
79018         Remove explicit use of AC_HEADER_TIME.  It is required by
79019         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
79020         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
79021         in autoconf whereby the expansion of the latter ended up preceding
79022         the expansion of its prerequisite, AC_HEADER_TIME.
79023         Reported by Volker Borchert.
79024
79025 2000-02-03  Jim Meyering  <meyering@lucent.com>
79026
79027         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
79028
79029 2000-02-03  Jim Meyering  <meyering@lucent.com>
79030
79031         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
79032         rather than with `#if HAVE_UTMPNAME'.
79033
79034 2000-02-02  Jim Meyering  <meyering@lucent.com>
79035
79036         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
79037         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
79038         Reported by Eli Zaretskii.
79039
79040 2000-02-01  Jim Meyering  <meyering@lucent.com>
79041
79042         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
79043
79044 2000-01-31  Jim Meyering  <meyering@lucent.com>
79045
79046         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
79047         functions.  Add the time.h and sys/time.h headers along with the
79048         AC_REQUIRE'ment of AC_HEADER_TIME.
79049
79050 2000-01-31  Jim Meyering  <meyering@lucent.com>
79051
79052         * lib/nanosleep.h (nanosleep): Guard declaration with
79053         `#if ! HAVE_DECL_NANOSLEEP'.
79054         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
79055         the declaration in that vendor's sys/timers.h.
79056         Reported by Christian Krackowizer.
79057
79058         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
79059         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
79060         (ISPRINT): Likewise.
79061         Reported by Tom Tromey.
79062
79063 2000-01-30  Jim Meyering  <meyering@lucent.com>
79064
79065         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
79066
79067         * m4/prereq.m4 (utmp_includes): Define.
79068         Check for ut_user and ut_name members in both struct utmpx
79069         and struct utmp.
79070
79071 2000-01-30  Jim Meyering  <meyering@lucent.com>
79072
79073         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
79074         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
79075         header files where only utmpx.ut_user is declared.
79076
79077         * lib/readutmp.h (UT_USER): Define.
79078
79079 2000-01-29  Jim Meyering  <meyering@lucent.com>
79080
79081         * m4/lib-check.m4: New file containing library-related checks from
79082         fileutils and sh-utils (textutils had none).
79083
79084 2000-01-28  Jim Meyering  <meyering@lucent.com>
79085
79086         * m4/perl.m4: Change format of warning message to look more like that
79087         from the missing script.  Suggestion from François Pinard.
79088
79089 2000-01-25  Jim Meyering  <meyering@lucent.com>
79090
79091         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
79092         well as time.h in the compile check.
79093         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
79094         Fix typo in cross-compiling case: s/yes/no/.
79095
79096 2000-01-23  Jim Meyering  <meyering@lucent.com>
79097
79098         * m4/jm-macros.m4: Move df-related tests here from
79099         fileutils/configure.in
79100
79101         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
79102         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
79103
79104         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
79105         s/space/ac_fsusage_space/.
79106         (jm_FILE_SYSTEM_USAGE): Take two parameters.
79107
79108         * m4/ftruncate.m4: New file (derived from part of
79109         fileutils/configure.in).
79110         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
79111         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
79112
79113         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
79114         AC_SUBST these here, rather than just in sh-util/configure.in, so
79115         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
79116         all the same.
79117         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
79118         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
79119         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
79120         (AC_SUBST(POW_LIBM)): Likewise.
79121         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
79122
79123 2000-01-23  Jim Meyering  <meyering@lucent.com>
79124
79125         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
79126         obstack.c.
79127
79128 2000-01-22  Jim Meyering  <meyering@lucent.com>
79129
79130         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
79131
79132         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
79133
79134         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
79135         configure.in
79136         (AC_CHECK_HEADERS): Likewise for sh-utils.
79137         (AC_CHECK_HEADERS): Likewise for textutils.
79138         Merge the three lists of headers.
79139
79140         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
79141         from fileutils' configure.in.
79142
79143         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
79144         code. Moved tests into their own function (_jm_DECL_HEADERS) in
79145         check-decl.m4.
79146
79147         * m4/check-decl.m4: Use #if rather than #ifdef.
79148         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
79149         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
79150         (_jm_DECL_HEADERS): Define new function.
79151         (jm_CHECK_DECLARATIONS): Require it.
79152
79153 2000-01-22  Jim Meyering  <meyering@lucent.com>
79154
79155         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
79156         [! HAVE_DECL_STRTOULL]: Declare strtoull.
79157         Required for some AIX systems.  Reported by Christian Krackowizer.
79158         [TESTING] (main): New function.
79159
79160         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
79161         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
79162         letters.
79163
79164         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
79165         iswprint.
79166
79167         * lib/strverscmp.c (ISDIGIT): Define.
79168         (strverscmp): Use ISDIGIT, not isdigit.
79169
79170 2000-01-19  Jim Meyering  <meyering@lucent.com>
79171
79172         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
79173         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
79174         defines `struct timespec' in <sys/time.h>
79175
79176         * m4/c-bs-a.m4: Remove uses of changequote altogether.
79177         Thanks to Akim for explaining.
79178
79179 2000-01-17  Paul Eggert  <eggert@twinsun.com>
79180
79181         * lib/nanosleep.c (nanosleep):
79182         Don't use SA_INTERRUPT to decide whether to call sigaction, as
79183         POSIX.1 doesn't require SA_INTERRUPT and some systems
79184         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
79185         it's been part of POSIX.1 since day 1 (in 1988).
79186
79187 2000-01-17  Jim Meyering  <meyering@lucent.com>
79188
79189         * lib/interlock: Remove unused file.  Reported by François Pinard.
79190
79191 2000-01-16  Paul Eggert  <eggert@twinsun.com>
79192
79193         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
79194         alert, backslash, formfeed, and vertical tab unnecessarily in
79195         shell quoting style.
79196
79197 2000-01-16  Jim Meyering  <meyering@lucent.com>
79198
79199         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
79200         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
79201         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
79202         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
79203
79204 2000-01-16  Jim Meyering  <meyering@lucent.com>
79205
79206         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
79207         because the latter didn't work.
79208
79209 2000-01-15  Jim Meyering  <meyering@lucent.com>
79210
79211         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
79212         (AC_REPLACE_FUNCS): Add memcpy and memset.
79213         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
79214         Add strpbrk.
79215         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
79216
79217 2000-01-12  Jim Meyering  <meyering@lucent.com>
79218
79219         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
79220         (jm_PREREQ): Use it.
79221         (jm_PREREQ_READUTMP): New macro.
79222         (jm_PREREQ): Use it.
79223
79224 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79225
79226         Quote multibyte characters correctly.
79227         * m4/c-bs-a.m4: New file.
79228         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
79229         (jm_PREREQ): Use it.
79230
79231 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79232
79233         * m4/uintmax_t.m4: Port to autoconf 2.13.
79234
79235 2000-01-08  Jim Meyering  <meyering@ascend.com>
79236
79237         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
79238         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
79239
79240 2000-01-04  Jim Meyering  <meyering@ascend.com>
79241
79242         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
79243         jm_STRUCT_DIRENT_D_TYPE.
79244         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
79245         jm_STRUCT_DIRENT_D_INO.
79246         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
79247         jm_STRUCT_UTIMBUF.
79248         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
79249         renamings.
79250         * m4/utime.m4: Likewise.
79251
79252         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
79253         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
79254
79255 2000-01-03  Paul Eggert  <eggert@twinsun.com>
79256
79257         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
79258         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
79259
79260 2000-01-02  Jim Meyering  <meyering@ascend.com>
79261
79262         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
79263         remember if this is necessary.
79264
79265 1999-12-26  Jim Meyering  <meyering@ascend.com>
79266
79267         * m4/jm-macros.m4: Use it here.
79268         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
79269
79270 1999-12-23  Jim Meyering  <meyering@ascend.com>
79271
79272         * m4/jm-macros.m4: Check for clock_gettime (moved from
79273         fileutils/configure.in)
79274         Check for gettimeofday.
79275
79276 1999-12-20  Jim Meyering  <meyering@ascend.com>
79277
79278         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
79279         autoconf-2.14a-1999-12-20.
79280
79281 1999-12-19  Jim Meyering  <meyering@ascend.com>
79282
79283         * m4/lstat-slash.m4: New file.
79284         * m4/jm-macros.m4: Use the new macro:
79285         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79286
79287 1999-12-07  Jim Meyering  <meyering@ascend.com>
79288
79289         * m4/perl.m4: Require that File::Compare be available, too.
79290         Too many systems seem to lack it.
79291
79292         * m4/strftime.m4: Add checks for most of the cpp macros tested in
79293         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
79294
79295 1999-11-18  Paul Eggert  <eggert@twinsun.com>
79296
79297         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
79298         problem with the QNX 4.25 shell, which doesn't propagate exit
79299         status of failed commands inside shell assignments.
79300
79301 1999-11-17  Jim Meyering  <meyering@ascend.com>
79302
79303         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
79304
79305 1999-11-07  Jim Meyering  <meyering@ascend.com>
79306
79307         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
79308
79309 1999-11-06  Jim Meyering  <meyering@ascend.com>
79310
79311         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
79312         * m4/jm-macros.m4 (jm_MACROS): Use it here.
79313
79314 1999-11-05  Jim Meyering  <meyering@ascend.com>
79315
79316         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
79317         configure.in of textutils, fileutils, and sh-utils into this one
79318         (shared between those packages) file.
79319         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
79320         AC_STRUCT_ST_BLKSIZE.
79321
79322 1999-11-03  Jim Meyering  <meyering@ascend.com>
79323
79324         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
79325         of AC_CHECK_TYPE checks includes unistd.h.
79326         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
79327         Suggestion from Akim Demaille.
79328
79329 1999-10-30  Jim Meyering  <meyering@ascend.com>
79330
79331         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
79332         m4-quoted string.
79333         * m4/ls-mntd-fs.m4: Likewise.
79334         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
79335         * m4/jm-winsz1.m4: Likewise.
79336
79337         * m4/const.m4: Remove file, since the fix made it into the experimental
79338         version of autoconf.
79339         * m4/mktime.m4: Likewise.
79340
79341         * m4/check-type.m4: Remove file, now that the latest version of
79342         AC_CHECK_TYPE takes a third arg to specify additional #includes.
79343
79344         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
79345         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
79346         AC_CHECK_TYPE.
79347
79348 1999-10-04  Jim Meyering  <meyering@ascend.com>
79349
79350         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
79351
79352 1999-09-22  Paul Eggert  <eggert@twinsun.com>
79353
79354         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
79355         2.95.1 bug with HP-UX 10.20.
79356
79357 1999-09-17  Jim Meyering  <meyering@ascend.com>
79358
79359         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
79360         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
79361         due to missing strdup (against sh-utils-2.0).
79362
79363 1999-08-29  Jim Meyering  <meyering@ascend.com>
79364
79365         * m4/jm-macros.m4: Require jm_BISON.
79366         * m4/bison.m4: New file.
79367
79368 1999-08-17  Paul Eggert  <eggert@twinsun.com>
79369
79370         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
79371         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
79372
79373 1999-08-05  Jim Meyering  <meyering@ascend.com>
79374
79375         * m4/getline.m4: Rename test file from conftestdata to conftest.data
79376         to avoid conflicts with `conftest' on 8+3 filesystems.
79377         Suggestion from Eli Zaretskii.
79378
79379 1999-08-04  Jim Meyering  <meyering@ascend.com>
79380
79381         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
79382         fileutils and sh-utils (textutils's getline test was inadequate).
79383         (AM_FUNC_GETLINE): Run this test.
79384         (AC_CHECK_FUNCS): Check for getdelim.
79385         Reported by Bob Proulx.
79386
79387 1999-08-02  Jim Meyering  <meyering@ascend.com>
79388
79389         * m4/jm-macros.m4: Add a comment.
79390
79391 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79392
79393         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
79394         <inttypes.h> defines strtoumax as a macro (and not as a
79395         function).
79396
79397 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79398
79399         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
79400         that we can shift, multiply and divide unsigned long long
79401         values; Ultrix cc can't do it.
79402
79403 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79404
79405         * m4/mktime.m4: New file, which is a preview of what should appear
79406         in the next public autoconf release.
79407
79408 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79409
79410         * m4/lfs.m4: Remove this file.
79411         * m4/largefile.m4: New file.  It contains the old contents of
79412         lfs.m4, except that all names with prefix AC_LFS have been
79413         changed to use the prefix AC_SYS_LARGEFILE instead, to be
79414         compatible with future autoconf versions.  Also, some minor m4
79415         quoting problems have been fixed.
79416
79417 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79418
79419         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
79420         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
79421         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
79422         and simplify the shell code.
79423
79424 1999-08-01  Jim Meyering  <meyering@ascend.com>
79425
79426         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
79427         m4.
79428
79429 1999-07-20  Jim Meyering  <meyering@ascend.com>
79430
79431         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
79432
79433 1999-07-15  Jim Meyering  <meyering@ascend.com>
79434
79435         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
79436
79437 1999-05-22  Jim Meyering  <meyering@ascend.com>
79438
79439         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
79440
79441 1999-05-20  Jim Meyering  <meyering@ascend.com>
79442
79443         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
79444         Add a colon after each `then' in case $4 is empty.
79445
79446 1999-05-16  Jim Meyering  <meyering@ascend.com>
79447
79448         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
79449
79450 1999-05-10  Jim Meyering  <meyering@ascend.com>
79451
79452         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
79453
79454         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
79455         AC_FUNC_MKTIME.
79456
79457 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
79458
79459         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
79460
79461 1999-05-04  Paul Eggert  <eggert@twinsun.com>
79462
79463         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
79464         not CPPFLAGS, so that linking works correctly in IRIX.
79465
79466 1999-04-30  Paul Eggert  <eggert@twinsun.com>
79467
79468         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
79469
79470 1999-04-20  Paul Eggert  <eggert@twinsun.com>
79471
79472         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
79473         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
79474         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
79475         jm_AC_TYPE_UNSIGNED_LONG_LONG.
79476         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
79477
79478         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
79479
79480 1999-04-20  Jim Meyering  <meyering@ascend.com>
79481
79482         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
79483         AC_REPLACE xstroull if necessary.  From Paul Eggert.
79484         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
79485
79486 1999-04-18  Jim Meyering  <meyering@ascend.com>
79487
79488         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
79489         * m4/jm-macros.m4: Use it.
79490
79491 1999-04-06  Jim Meyering  <meyering@ascend.com>
79492
79493         * m4/strftime.m4: Remove test for %f.
79494
79495 1999-03-29  Jim Meyering  <meyering@ascend.com>
79496
79497         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
79498         superset of the AC_TYPE_* checks in the textutils, fileutils,
79499         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
79500         AC_TYPE_PID_T.
79501
79502 1999-03-28  Jim Meyering  <meyering@ascend.com>
79503
79504         * m4/jm-macros.m4: Define GNU_PACKAGE here.
79505         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
79506         replaced e.g., in the *.sh files of the sh-utils.
79507
79508 1999-03-20  Jim Meyering  <meyering@ascend.com>
79509
79510         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
79511         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
79512         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
79513
79514 1999-03-19  Jim Meyering  <meyering@ascend.com>
79515
79516         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
79517
79518 1999-03-12  Jim Meyering  <meyering@ascend.com>
79519
79520         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
79521
79522 1999-03-07  Jim Meyering  <meyering@ascend.com>
79523
79524         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
79525         declared.
79526
79527 1999-02-17  Jim Meyering  <meyering@ascend.com>
79528
79529         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
79530         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
79531
79532 1999-02-07  Jim Meyering  <meyering@ascend.com>
79533
79534         * m4/group-member.m4: New file -- extracted from sh-utils'
79535         configure.in.
79536
79537         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
79538         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
79539
79540 1999-02-06  Jim Meyering  <meyering@ascend.com>
79541
79542         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
79543         * m4/fnmatch.m4: Likewise.
79544         * m4/getgroups.m4: Likewise.
79545         * m4/lstat.m4: Likewise.
79546         * m4/malloc.m4: Likewise.
79547         * m4/putenv.m4: Likewise.
79548         * m4/realloc.m4: Likewise.
79549         * m4/regex.m4: Likewise.
79550         * m4/stat.m4: Likewise.
79551         * m4/strftime.m4: Likewise.
79552         Suggestion from Alain Magloire.
79553
79554         * m4/chown.m4: Use `.$ac_objext', not `.o'.
79555         * m4/fnmatch.m4: Likewise.
79556         * m4/getgroups.m4: Likewise.
79557         * m4/getline.m4: Likewise.
79558         * m4/lstat.m4: Likewise.
79559         * m4/malloc.m4: Likewise.
79560         * m4/memcmp.m4: Likewise.
79561         * m4/putenv.m4: Likewise.
79562         * m4/realloc.m4: Likewise.
79563         * m4/regex.m4: Likewise.
79564         * m4/stat.m4: Likewise.
79565         * m4/strftime.m4: Likewise.
79566         Suggestion from Alain Magloire.
79567
79568         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
79569         an argument.
79570
79571         * m4/regex.m4: Add a run-time Test for proper operation of
79572         re_compile_pattern.
79573
79574 1999-01-31  Jim Meyering  <meyering@ascend.com>
79575
79576         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
79577
79578 1999-01-30  Jim Meyering  <meyering@ascend.com>
79579
79580         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
79581
79582         * m4/jm-mktime.m4: Make this a wrapper around the official
79583         AM_FUNC_MKTIME rather than my private copy, now that the official one
79584         is up to date.
79585         * m4/mktime.m4: Remove file.
79586
79587         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
79588         * m4/uptime.m4: Likewise.
79589         * m4/uintmax_t.m4: Likewise.
79590
79591 1999-01-28  Jim Meyering  <meyering@ascend.com>
79592
79593         * m4/jm-macros.m4: Use jm_AFS.
79594         * m4/afs.m4: New file (from fileutils' configure.in).
79595
79596         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
79597         * m4/chown.m4: Likewise.
79598         * m4/d-ino.m4: Likewise.
79599         * m4/d-type.m4: Likewise.
79600         * m4/fnmatch.m4: Likewise.
79601         * m4/getgroups.m4: Likewise.
79602         * m4/gettext.m4: Likewise.
79603         * m4/jm-mktime.m4: Likewise.
79604         * m4/jm-winsz2.m4: Likewise.
79605         * m4/lcmessage.m4: Likewise.
79606         * m4/ls-mntd-fs.m4: Likewise.
79607         * m4/malloc.m4: Likewise.
79608         * m4/memcmp.m4: Likewise.
79609         * m4/putenv.m4: Likewise.
79610         * m4/realloc.m4: Likewise.
79611         * m4/st_mtim.m4: Likewise.
79612         * m4/strftime.m4: Likewise.
79613
79614 1999-01-16  Jim Meyering  <meyering@ascend.com>
79615
79616         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
79617         (ARGMATCH_DIE_DECL): Define.
79618
79619 1999-01-12  Jim Meyering  <meyering@ascend.com>
79620
79621         * m4/Makefile.am.in: Rewrite to avoid using fmt.
79622         Reported by Lars Hecking.
79623
79624 1999-01-10  Jim Meyering  <meyering@ascend.com>
79625
79626         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
79627         gross kludge.
79628         * m4/inttypes_h.m4: Likewise.
79629         * m4/lstat.m4: Likewise.
79630         * m4/malloc.m4: Likewise.
79631         * m4/readdir.m4: Likewise.
79632         * m4/realloc.m4: Likewise.
79633         * m4/st_dm_mode.m4: Likewise.
79634         * m4/stat.m4: Likewise.
79635         * m4/utimbuf.m4: Likewise.
79636         * m4/utimes.m4: Likewise.
79637
79638         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
79639         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
79640         comments in config.h.in are meaningful.
79641
79642         * m4/jm-macros.m4: Require autoconf-2.13 here.
79643
79644         * m4/regex.m4: By default, don't use the included regex.c on systems
79645         with glibc 2.  Suggestion from Uli Drepper.
79646
79647 1999-01-02  Jim Meyering  <meyering@ascend.com>
79648
79649         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
79650
79651 1998-12-18  Jim Meyering  <meyering@ascend.com>
79652
79653         * m4/Makefile.am.in (Makefile.am): Simplify rule.
79654         Based on a suggestion from Lars Hecking.
79655
79656 1998-11-16  Paul Eggert  <eggert@twinsun.com>
79657
79658         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
79659
79660 1998-11-16  Jim Meyering  <meyering@ascend.com>
79661
79662         * m4/lfs.m4: Double-quote the `uname...` expression.
79663
79664 1998-11-14  Jim Meyering  <meyering@ascend.com>
79665
79666         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
79667         * m4/stat.m4: Likewise.
79668
79669 1998-11-03  Jim Meyering  <meyering@ascend.com>
79670
79671         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
79672         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
79673
79674 1998-10-18  Jim Meyering  <meyering@ascend.com>
79675
79676         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
79677
79678 1998-10-17  Jim Meyering  <meyering@ascend.com>
79679
79680         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
79681         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
79682         calls for those previously hard-coded headers.  Instead, take a new
79683         parameter.
79684         (jm_CHECK_DECLARATIONS): Reflect interface change.
79685         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
79686         (jm_CHECK_DECL_LOCALTIME_R): New macro.
79687
79688         * m4/mktime.m4: Test for spring-forward gap before long-running test.
79689
79690 1998-10-14  Jim Meyering  <meyering@ascend.com>
79691
79692         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
79693         instead of "TZ=America/Vancouver".  From Paul Eggert.
79694
79695 1998-10-11  Jim Meyering  <meyering@ascend.com>
79696
79697         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
79698         This adds a test for a recently added compatibility fix for mktime.c.
79699         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
79700
79701 1998-09-27  Jim Meyering  <meyering@ascend.com>
79702
79703         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
79704
79705         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
79706         ../configure.in, including a change from Gordon Matzigkeit to allow
79707         cross-compiling for the Hurd.
79708
79709         * m4/glibc.m4: New file/macro to test for the GNU C Library
79710         versions 1 and 2.  From Gordon Matzigkeit.
79711         Indent.
79712
79713 1998-09-21  Jim Meyering  <meyering@ascend.com>
79714
79715         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
79716
79717 1998-08-18  Paul Eggert  <eggert@twinsun.com>
79718
79719         Port nanosecond-resolution times to UnixWare 2.1.2 and
79720         pedantic Solaris 2.6.
79721
79722         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
79723         AC_STRUCT_ST_MTIM.
79724         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
79725         Generate name of ns member, instead of just 1 or undef.
79726         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
79727
79728 1998-08-15  Jim Meyering  <meyering@ascend.com>
79729
79730         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
79731         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
79732         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
79733         instead of jm_TYPE_SSIZE_T.
79734
79735 1998-08-12  Jim Meyering  <meyering@ascend.com>
79736
79737         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
79738
79739 1998-08-02  Jim Meyering  <meyering@ascend.com>
79740
79741         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
79742         in acconfig.h manually.
79743
79744 1998-07-31  Paul Eggert  <eggert@twinsun.com>
79745
79746         * m4/st_mtim.m4: New file.
79747
79748 1998-07-28  Jim Meyering  <meyering@ascend.com>
79749
79750         * m4/utimes.m4: Undef stat.
79751
79752 1998-07-25  Jim Meyering  <meyering@ascend.com>
79753
79754         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
79755         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
79756
79757 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
79758
79759         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
79760         uid and gid actually remain unchanged.
79761
79762 1998-07-07  Jim Meyering  <meyering@ascend.com>
79763
79764         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
79765
79766 1998-07-04  Jim Meyering  <meyering@ascend.com>
79767
79768         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
79769         to prove that this macro can be used in packages without regex.c.
79770
79771 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
79772
79773         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
79774         is to be used.
79775
79776 1998-07-03  Jim Meyering  <meyering@ascend.com>
79777
79778         * m4/gettext.m4: Add -lintl if it's found to be necessary.
79779
79780         * m4/gettext.m4: New file -- from gettext-0.10.35.
79781         * m4/lcmessage.m4: Likewise.
79782         * m4/progtest.m4: Likewise.
79783
79784         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
79785         * m4/jm-macros.m4: Require the new macro.
79786
79787 1998-06-29  Jim Meyering  <meyering@ascend.com>
79788
79789         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
79790         for the definition of NGROUPS (used in a system header included
79791         by sys/mount.h).
79792
79793 1998-06-28  Jim Meyering  <meyering@ascend.com>
79794
79795         * m4/ls-mntd-fs.m4: New file.
79796         * m4/fstypename.m4: New file.
79797
79798         * m4/jm-macros.m4: Require the new macro.
79799         * m4/jm-glibc-io.m4: New file.
79800
79801 1998-05-19  Jim Meyering  <meyering@ascend.com>
79802
79803         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
79804         * m4/lchown.m4: New file.
79805
79806         * m4/Makefile.am.in: New file.
79807         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
79808
79809 1998-05-14  Jim Meyering  <meyering@ascend.com>
79810
79811         * m4/Makefile.am (EXTRA_DIST): Add them.
79812         * m4/jm-macros.m4: New file.
79813         * m4/utimbuf.m4: New file.
79814
79815 1998-05-12  Jim Meyering  <meyering@ascend.com>
79816
79817         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
79818
79819 1998-05-11  Jim Meyering  <meyering@ascend.com>
79820
79821         * m4/isc-posix.m4: New file.
79822
79823 1998-05-10  Jim Meyering  <meyering@ascend.com>
79824
79825         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
79826
79827 1998-05-09  Jim Meyering  <meyering@ascend.com>
79828
79829         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
79830         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
79831         with automake.
79832
79833         * m4/ssize_t.m4: New file.
79834         * m4/mktime.m4: Remove file -- the new automake has this now.
79835
79836 1998-04-26  Jim Meyering  <meyering@ascend.com>
79837
79838         * m4/assert.m4: New file.
79839         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
79840
79841 1998-04-05  Jim Meyering  <meyering@ascend.com>
79842
79843         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
79844         (jm_PREREQ): Use it here.
79845
79846 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
79847
79848         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
79849         in acconfig.h.
79850
79851 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
79852
79853         * m4/prereq.m4: New file.
79854         * m4/error.m4: New file.
79855         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
79856
79857 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
79858
79859         * m4/getline.m4: Don't set am_cv_func_working_getline before the
79860         cache-check for the same variable -- that defeated the purpose of
79861         the test; the test program was never run.  This was a problem only
79862         on systems with losing getline functions -- HP-UX 10.20 is one.
79863         Reported by Bjorn Helgaas.
79864
79865 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
79866
79867         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
79868
79869 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
79870
79871         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
79872
79873         * m4/const.m4: New file.  Use an initializer in this declaration
79874         typedef int charset[2]; const charset x;
79875         Reported by Bob Glickstein.
79876
79877 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
79878
79879         * m4/chown.m4: Fix reversed types on -1 args to chown.
79880         From Kaveh Ghazi.
79881
79882 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
79883
79884         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
79885         Add lseek and memchr.
79886
79887         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
79888         T.E.Dickey <dickey@clark.net> said that some older preprocessors
79889         have a 20-character limit on names.
79890
79891 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
79892
79893         * m4/inttypes_h.m4: New file.
79894         * m4/uintmax_t.m4: New file.
79895         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
79896
79897
79898         -----
79899
79900         Local Variables:
79901         coding: utf-8
79902         End:
79903
79904         Copyright (C) 1997-2011 Free Software Foundation, Inc.
79905
79906         Copying and distribution of this file, with or without
79907         modification, are permitted provided the copyright notice
79908         and this notice are preserved.